Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom fields in ORDERS05 Idoc

Former Member
0 Likes
2,500

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

1 REPLY 1
Read only

Former Member
0 Likes
1,308

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