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
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
I Need to Created own Custom Tab. Thanks for your reply.
I guess you can achieve that through custom table only. Use table control to insert row/delete row. Add two buttons for Add and Delete. Get records in internal table and update your custom table on save.
For Inserting a Row
For Deletion of a Row
And if you want to make only one row editable and rest disabled. Please follow below thread:
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.
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.
Append structure is used to add your custom fields to standard table.
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.
In your case its not possible. Because you cannot have same primary keys for N number of rows.
Thank u i got clarification.I will close the post. Please Wait for some time. Thanks for your reply.
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 .
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.
I tried to do that in OBBH, but here the field BKPF-BUDAT is missing in the field catalog. Please help
I guess you can achieve that through custom table only. Use table control to insert row/delete row. Add two buttons for Add and Delete. Get records in internal table and update your custom table on save.
For Inserting a Row
For Deletion of a Row
Hi Shi,
Hope the below link helps you, please read through the link below completely for better understanding.
Regards
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
Hi,
Thanks for your reply. Imagaine value i made key field at se11.I given the below combination.
5300000111 | 10 |
5300000111 | 20 |
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.
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.
Better add a field 'Row Number' as primary key, then keep increasing its count. Then, you can have any number of duplicate records.
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.