‎2006 Nov 02 1:42 PM
Hi all,
I have my data in the BAPI and need to create an IDoc using that data.
Can anyone please tell me how can this be done?
It would be of great help if i get an instant response.
Your help will be awarded for sure.
Thanx in advance.
Regards
Rakesh.
‎2006 Nov 02 2:30 PM
Not sure how your BAPI is invoked. if it is used within Z Program then call IDOC processing function module for that message type or use Function module "IDOC_CREATE_ON_DATABASE" to create IDOC.
Also what is your SAP version ? In SAP 6.10 and greater it can be done differently.
‎2006 Nov 02 2:38 PM
hi
thanx for that.
but need some clarifications with that....
i am calling bapi_ctracdocument_getdetail and have all the relevant data in the bapi. now i need to get this is into a bapi that is a copy of idoc fidccp02.
wat am i supposed to do ?
please help
thanx
rakesh
‎2006 Nov 02 2:54 PM
Hi Rakesh,
You can use this FM as reference on how to create IDoc type FIDCC2 by populating EDIDC and EDIDD segments.
FI_IDOC_CREATE_FIDCC2 (Outbound)
IDOC_INPUT_FIDCC2 (Inbound)
Hope this will help and give an idea.
Regards,
Ferry Lianto