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

IDOC ABAP enhancements before processing

Former Member
0 Likes
368

Hi Guys!

My scenario is that I'm using XI to send a Sales Order IDOC to ERP. I need to make some ABAP enhancements in ERP so that some data is modified before it creates a Sales Order IDOC upon sending from XI. Would anyone have any idea how I can go about this?

Thanks in advance!

Glenn

Hi Guys!

My scenario is that I'm using XI to send a Sales Order IDOC to ERP. I need to make some ABAP enhancements in ERP so that some data is modified before it creates a Sales Order IDOC upon sending from XI. Would anyone have any idea how I can go about this?

Thanks in advance!

Glenn

1 REPLY 1
Read only

Former Member
0 Likes
328

Hi Glenn,

User Exit – Function module IDOC_INPUT_ORDERS

In the function module IDOC_INPUT_ORDERS, form call_va01_new_orders is performed wherein BDC data is built up for every screen required to post a sales order. User Exit ZXVEDU04 is performed at various stages during the built up of BDC data

XI tool translates the order into an intermediate document (IDOC) with message type ORDERS and IDOC type ORDERS01. Reaching into SAP, the function module IDOC_INPUT_ORDERS processes the IDOC and calls VA01 transaction with BDC data built out from IDOC data. Successfully processed IDOC posts a sales order, whereas a failed IDOC processing generates workitem for workflow processing.

At a high level, the IDOC processing executes in the following manner:

1. Interpret IDOC header segments and captures organizational, customer master and purchase

order header details. Performs user exits for each segment to process customizations to data

processing.

2. Interprets item level segments and captures item level details like material information. Again,

it performs user exits for each segment.

3. Sums up the order data and determines the posting criterion viz. creating order with reference

etc.

4. Builds up batch data communication sequence (BDC) with respect to the required screen

sequence of posting a sales order.

5. While building up the BDC data, system performs user exit to process customizations to BDC

data.

6. Calls transactions VA01 using the BDC data.

7. If the processing fails, an appropriate workitem is generated for workflow processing.

if you give me brief i can help you out more.

Thank you .

Regards

Ram