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 creation while creating a PO.

former_member65049
Active Participant
0 Kudos
495

Hi,

While creating a Purchase Order, the segments E1EDK04 and E1EDK05 in IDOC Type ORDERS02 are not getting populated.

Can anybody let me know the reason or any specific setting or configuration needed to populate these segments.

Also, I want to know how can we check if a segment is active or not.

Thanks,

Rupam

1 ACCEPTED SOLUTION

former_member65049
Active Participant
0 Kudos
249

Hi,

My confusion is that the segments E1EDK04 and E1EDK05 are not getting populated when a PO is generated. I need data in these two segments.

As far as segments being active is concerned, I was thinking, that if the segment is not active, that could be a possible reason for it not being populated. I might be wrong in this.

Any clues on why the segments are not populated?

Thanks,

Rupam

8 REPLIES 8

Former Member
0 Kudos
249

hi,

what do u mean by whether segments are active or not?

As per my knowledge, segments are not relevant at a technical level in an IDOC. They are used to interpret field SDATA in the data record (EDIDD) and hold relevance at a business level.

For status u can check the idoc as a whole for its current (as well as previous) status.

My knowledge is pretty limited in this domain. Someone please correct me if i am horribly wrong!!!

regards,

PJ

former_member65049
Active Participant
0 Kudos
250

Hi,

My confusion is that the segments E1EDK04 and E1EDK05 are not getting populated when a PO is generated. I need data in these two segments.

As far as segments being active is concerned, I was thinking, that if the segment is not active, that could be a possible reason for it not being populated. I might be wrong in this.

Any clues on why the segments are not populated?

Thanks,

Rupam

0 Kudos
249

Are you sure that PO has data for populating these segments ? What values are you expecting in these segments ? Sometimes when no data is available segment in not created.

Cheers,

Sanjeev

0 Kudos
249

Hi Rupam;

That IDoc type is used for the sales order and the PO, so standard PO processing may not update them. You may need to populate the segments in a user exit from the enhancement MM06E001.

More specifically, it would be EXIT_SAPLEINM_002, program ZXM06U02 that could populate those segments. You would have to insert the segment data into the table int_edidd in that user exit in order for it to appear on the IDoc.

-John

Former Member
0 Kudos
249

The segments in question are related to header taxes and header conditions both of which are configured and will be calculated during creation. You cannot pass any data in these segments unless they are manual conditions or tax entries. I am not sure if your situation requires you to pass them.

In ME23N, if you look at the PO itself, do you see the taxes and conditions? Are the taxes and conditions that you want are additional to what you see there?

Srinivas

0 Kudos
249

Have you checked your vendor masterfile to ensure it has both a payment transactions view and a purchasing view? Ignore this, I have tested, and found this makes no difference.

Message was edited by: Brian Rowley

Message was edited by: Brian Rowley

0 Kudos
249

Tested and found the same omission applies in ORDERS05 as well as ORDERS02.

former_member65049
Active Participant
0 Kudos
249

Hi,

I think the solution given by John seems to be the most appropriate. We need to implement the user exit to pass data to the segments.

Thanks a lot.

Rupam