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

BDC

Former Member
0 Likes
425

Hi,

I have to write one BDC. I have one std transaction VA02. For particular line item I need to delete the entry & recreate that line item & upload the amount, plant from file.

Anybody will pls suggest me how to handle it??

3 REPLIES 3
Read only

Former Member
0 Likes
401

Hi!

The easiest way is to separate it into 2 batch inputs. In the first, you make the deletion, in the second, you make the insertion.

But the best way is to make it with BAPI. Check function module: BAPI_SALESORDER_CHANGE. With this you can make it in 1 step.

Regards

Tamá

Read only

Former Member
0 Likes
401

Hi Neha,

Record whatever you have explained now using SHDB transaction.

You can generate a bdc program from the recording.

ALternatively you can use the bapi BAPI_SALESORDER_CHANGE.

Regards,

Ravi

Read only

0 Likes
401

Hi Friends,

Thanks for quick reply. Actually my requirement is like that

If for a particular line item field reason for rejection code is set then delete that entry & upload plant, item no, amount from excel file.

Any suggestion how to handle this??