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: 

IDOC

Former Member
0 Kudos

Hi,

There is a service agreement.Billing document is generated for that service agreement.The issue is that the billing document is having one PO number. Then the billing document is converted into an IDOC, and sent to the customer.

the IDOC that gets generated for Billing document is having a different PO number.

Can you please tell me why and how it gets changed.

How can I find from where the data in IDOC is filled and how can we find the function module relating to that IDOC.

Thanks in advance

Expects quick reply

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

We19 is for testing idoc tcode where u can debug the idoc.

we41 is the outbound idoc process code where u can see the FM.

Which idoc are you using?

Rhea.

8 REPLIES 8

Former Member
0 Kudos

Hi,

In the outbound function module of the IDoc, put a break point where the data for the Purchase order is fetched and populated to the IDoc field. You will get your answer.

regards,

Advait

0 Kudos

Hi advait,

How can I find the function module relating to that IDOC.

and will the data in IDOC gets populated form function module only?

Actually the below settings I have observed for that IDOC

Segment type = EIEDP02 -> EIEDP02001. Here in field BELNR PO number is stored.

MESSAGE TYPE = INVOIC

IDOC TYPE = INVOIC02

Former Member
0 Kudos

>

> Expects quick reply

You presume a lot.

Former Member
0 Kudos

Hi,

We19 is for testing idoc tcode where u can debug the idoc.

we41 is the outbound idoc process code where u can see the FM.

Which idoc are you using?

Rhea.

0 Kudos

Hi Rhea,

MESSAGE TYPE = INVOIC

IDOC TYPE: Basic = INVOIC02, Extended =ZSDINV01

In WE41, Iam able to see the process code and description.

How can I find the exact function module related to my IDOC

0 Kudos

Click on that process code

you can see the used FM.

Rhea.

Former Member
0 Kudos

Hi,

The function module is IDOC_OUTPUT_INVOIC if the message type is INVOIC.

regards,

Advait

Former Member
0 Kudos

there was a user exit where we had a bug for which we changed the code