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

Inbound Idoc question

Former Member
0 Likes
587

Hi,

I have an inbound IDOC for creating sales order. my reqeuirment is at item level segement which has many fields and three fields from this list( plant, stor.loc and shipping point) will be blank. We want to derive these fields from a Z table and populate with correct values. I tried to use all possible exits in VEDA0001 but nothing worked. I tried to popolate DXVBAP with new values and also tried to change didoc_data but when it comes to Vall transaction I don't see these values in BDCdata table.

If I manually update these fields in the IDOC I get them properly in the call transaction. can you please point me where I'm making mistake.

thanks in advance.

1 ACCEPTED SOLUTION
Read only

former_member215575
Active Participant
0 Likes
537

Hi,

I have also faced the same issue. But I resolved it by calling BAPI_SALESORDER_CHANGE after the Salesorder is created.

after IDOC_INPUT_ORDERS FM is executed, SO No. is generated, pass that SO No. to BAPI and use exporting parameters

order_header_in, order_header_inx to update shipping type, and order_item_in, order_item_inx to update Plant.

Please go through the BAPI, you will understand the whole scenario.

Regards,

Sravan Guduru.

Hi,

I have an inbound IDOC for creating sales order. my reqeuirment is at item level segement which has many fields and three fields from this list( plant, stor.loc and shipping point) will be blank. We want to derive these fields from a Z table and populate with correct values. I tried to use all possible exits in VEDA0001 but nothing worked. I tried to popolate DXVBAP with new values and also tried to change didoc_data but when it comes to Vall transaction I don't see these values in BDCdata table.

If I manually update these fields in the IDOC I get them properly in the call transaction. can you please point me where I'm making mistake.

thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
537

Hi,

I suggest that you debug code of EXIT_SAPLVEDA_011 and change dxvbap structure there.

Check what happens after leaving this u-exit function module and if/where the entries get substituted back with original values.

Regards,

Dominik Modrzejewski

Read only

former_member215575
Active Participant
0 Likes
538

Hi,

I have also faced the same issue. But I resolved it by calling BAPI_SALESORDER_CHANGE after the Salesorder is created.

after IDOC_INPUT_ORDERS FM is executed, SO No. is generated, pass that SO No. to BAPI and use exporting parameters

order_header_in, order_header_inx to update shipping type, and order_item_in, order_item_inx to update Plant.

Please go through the BAPI, you will understand the whole scenario.

Regards,

Sravan Guduru.