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

BAPI and IDoc

Former Member
0 Likes
539

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.

3 REPLIES 3
Read only

Former Member
0 Likes
446

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.

Read only

0 Likes
446

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

Read only

Former Member
0 Likes
446

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