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,
*good solutions will be rewarded***