10-26-2007 3:47 PM
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***
10-26-2007 7:16 PM
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
10-26-2007 7:16 PM
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
10-27-2007 6:27 AM
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
10-29-2007 12:10 PM
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