2009 Aug 07 9:18 AM
Hi Guys,
For our scenario we have extended the custom IDOC ORDERS05 to add one custom field (ZZREF) in the header and one at the line item level (ZZLINEREF).
Same fields have been appended to VBAK (Order header) and VBAP (Line items) tables.
Now the problem is I am unable to find a standard way of populating these standard tables with the values coming in the custom fields.
I am using standard process code attached to function module IDOC_INPUT_ORDERS. this function module creates the order using call transaction method, which is creating a problem to pass on the values.
Can you please help me on this situation and provide me with the possible solutions.
Thanks
Hi Guys,
For our scenario we have extended the custom IDOC ORDERS05 to add one custom field (ZZREF) in the header and one at the line item level (ZZLINEREF).
Same fields have been appended to VBAK (Order header) and VBAP (Line items) tables.
Now the problem is I am unable to find a standard way of populating these standard tables with the values coming in the custom fields.
I am using standard process code attached to function module IDOC_INPUT_ORDERS. this function module creates the order using call transaction method, which is creating a problem to pass on the values.
Can you please help me on this situation and provide me with the possible solutions.
Thanks
2009 Aug 07 9:45 AM
Hi,
In the Function Module - IDOC_INPUT_ORDERS, U have an Userexit which is triggered after creation of the Salesorder.
It has SO number, IDoc Number, Control data & Segements data passed into it...
Use the SO & code Update the DB table VBAK & VBAP accordingly. (Think u need to use Lock objects...)
Function Module - IDOC_INPUT_ORDERS
CALL CUSTOMER-FUNCTION '004'
EXPORTING
sales_document = belegnummer
docnum = idoc_contrl-docnum
TABLES
didoc_data = idoc_data
didoc_status = idoc_status
didoc_cntrl = idoc_contrl.
Regards,
Bhargava
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |