Application Development 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: 

regarding posting invoice to sap system from non r/3 system

former_member186099
Contributor
0 Kudos

HI experts,

I have to create or change the existing invoice in sap system by using the idoc. Idoc has been extended to meet customer requirements. for creating i am using BAPI_INQUIRY_CREATEFROMDATA2 and for changing i am using BAPI_CUSTOMERINQUIRY_CHANGE in the same function module Z_IDOC_INPUT_INQUIRY_CREATEFRO (standardd one: IDOC_INPUT_INQUIRY_CREATEFROMD)

It is working fine for the creating but it is going into dump for change by giving error messge fm is not called properly. I am passing same all parameters to the change bapi like i have passed for the Creating bapi. please help me out in this.

Thanks & regards,

Prasanna

*good solutions will be rewarded***

1 ACCEPTED SOLUTION

former_member589029
Active Contributor
0 Kudos

What does the dump says?

Double ckeck that the structures you pass into the change match the structures used in the change. Just because the parameter name might be the same in the create and change IDOC they don't necessarily have the same structure.

Michael

3 REPLIES 3

former_member589029
Active Contributor
0 Kudos

What does the dump says?

Double ckeck that the structures you pass into the change match the structures used in the change. Just because the parameter name might be the same in the create and change IDOC they don't necessarily have the same structure.

Michael

0 Kudos

hi Michel,

k...thank you for the info, it worked out, but how to get the info like , some particular field of the parameter should be set to some particular value value before passing to the FM to make the changes to work(ex: INQUIRY_ITEMS_INX-UPDATEFLAG = 'U' for updating) . Is there any documents available if so pls send me or provide me the link.

Thanks & regards

Prasanna

former_member589029
Active Contributor
0 Kudos

Hello Prasanna,

Go to transaction SE37, put in 'BAPI_INQUIRY_CREATEFROMDATA2' and use menu entry

- Goto - Documentation - Function Module Documentation

There you can find a description of the various parameters for that BAPI.

Regards,

Michael