Quantcast
Channel: SCN: Message List - ABAP Switching, Enhancing, and Adapting Standard Programs
Viewing all 2464 articles
Browse latest View live

Re: Regarding texts in ME21n tcode.

$
0
0

Hi Narasimha,

 

I do not have access to SAP so you will have to figure it out by debugging once. You can look for those structure or similar structure for PO header and line items which you can find during debugging.

 

Regards,

Amit


Re: Need to Create Custom table At Me21n

$
0
0

I Need to Created own Custom Tab. Thanks for your reply.

Re: Need to Create Custom table At Me21n

Re: Need to Create Custom table At Me21n

How to create a search help

$
0
0

Hi,

    I need to create a enhancement for ME21N,i need to create a search help for MEPOCOMM-IHREZ, but zhe question is that the search help must first to  read the order type, only under prescribed order types can enable this search help, how can i do? wish your help.

Re: Need to Create Custom table At Me21n

$
0
0

Hi, Thanks for your reply. So, Table is I need Create , Am i correct, Normally in Subsceen, They will give the Append structure i am thinking that way.

Re: Need to Create Custom table At Me21n

$
0
0

Append structure is used to add your custom fields to standard table.

Re: Need to Create Custom table At Me21n

$
0
0

Ok, If the Data will be save in Standard table i will be happy, but not possible because i need to save number of rows.Am i correct.


Re: Need to Create Custom table At Me21n

$
0
0

In your case its not possible. Because you cannot have same primary keys for N number of rows.

Re: Need to Create Custom table At Me21n

$
0
0

Thank u i got clarification.I will close the post. Please Wait for some time. Thanks for your reply.

Re: Regarding texts in ME21n tcode.

$
0
0

Hi Experts,

 

 

I wrote the above code given (Tanmay) in CHECK method. But I was not able to get text of item since there is no im_item field. How to call the interface IF_LONGTEXTS_MM~SET_TEXT in check method.

 

Note: this logic should trigger when user clicks on check button and before saving PO. Please advice the right method .

Re: Regarding texts in ME21n tcode.

$
0
0

Hi Narasimha,

 

The method if_longtexts_mm~get_text has to be called using the reference of the PO item.

As you can see in above code LS_ITEMS-ITEM is the reference of the PO item.

 

Use the below code to get the item text:

 

data: lt_text TYPE MMPUR_T_TEXTLINES.

 

       CALL METHOD ls_items-item->if_longtexts_mm~get_text

         EXPORTING

           im_tdid           = 'F01'   ( text id for PO item )

*          im_texttype       =

         IMPORTING

           ex_textlines      = lt_text.

 

Now using the reference of PO header, you can set the same text to PO text. Check the correct text id to be used for PO header.

 

~Tanmay.

Re: Posting date change on release to accounting

$
0
0

I tried to do that in OBBH, but here the field BKPF-BUDAT is missing in the field catalog. Please help

Re: Need to Create Custom table At Me21n

Re: How to create a search help


Re: In Custom Table I need to Enter Duplicate values.

$
0
0

hi ,

Make all the fields as key fields then you can try it with diffferent combinations.

 

PONUMBER       VALUE   CONDITION

50001                         20          ZMB1

50001                          30         ZMB2

 

make ponumber value and condition as key field  if not atleast make ponumber and value as key field then system can accept the values. Hope it helps.

 

 

Thanks and Regards,

Sandeep

Re: In Custom Table I need to Enter Duplicate values.

$
0
0

Hi,

Thanks for your reply. Imagaine value i made key field at se11.I given the below combination.

 

 

 

530000011110
530000011120

5300000111   20

 

INSERT zmekomvcap   FROM TABLE it_komv ACCEPTING DUPLICATE KEYS


Only two entries are inserting ie. .


5300000111 10

5300000111  20


But i need 3 has to be pass


5300000111 10

5300000111  20

5300000111  20




I have one solution but it's good are bad i dont know.

need to add one field ponumber1 ,Only Ponumber is the key field.


When ever inserting values po number i need to given 1+ number.


PONUMBER       VALUE   CONDITION            ponumber1

1                                   20          ZMB1                     50001

2                                   20         ZMB2                      50001

 

 

Any other solution.

 

 





Re: In Custom Table I need to Enter Duplicate values.

$
0
0

Hi,


I think you will only be allowed to create a single record in the table per client, as you have only MANDT as primary key.

Re: In Custom Table I need to Enter Duplicate values.

$
0
0

Better add a field 'Row Number' as primary key, then keep increasing its count. Then, you can have any number of duplicate records.

Re: In Custom Table I need to Enter Duplicate values.

$
0
0

Thanks for your reply.

 

I hope. Table should  having two key fields.

One is field should be key other than mandt.

 

If i make one field as mandatory fields. Data will be Accepts like

 

ponumber i made mandatory. So, two key fields total 1)mandt 2)ponumber. now data will be save as.

 

ponumber      value

501                  20

502                  30

 

 

But what i need is

ponumber      value

501                  20

501                  20

502                  30

 

How could i do it.

Can i create one more field ponumber1 as non key fields. now  ponumber will be, Pass +1 .because key fields And ponumber1 as  501 ,501,502,503  like this.

Viewing all 2464 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>