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

FM using BAPI

Former Member
0 Likes
366

Hi all,

I have written a fm in place of idoc_input_orders and it has got no resemblence to that and uses an bapi BAPI_SALESORDER_CREATEFROMDAT2. ive attached this to process code and am posting the orders with the help of an idoc . But its creating an idoc with status 51 saying sales document was not changed. can somebody help mw with this please.

thanks,

Kiran.

2 REPLIES 2
Read only

Former Member
0 Likes
347

I would suggest that you return to SAP's "standard" methodology and abandon your custom process.

Your company paid a lot of money for SAP's pre-built methodologies.

Read only

Former Member
0 Likes
347

If you are using your own custom function module for processing an IDoc, you also have to set the status records appropriately. See the original function module where it sets the status records and use a similar logic. I hope you have a very sound reason for not using IDOC_INPUT_ORDERS.