11-05-2007 12:08 PM
I'm using ORDERS05 for purchase order IDOCs, process code ME10.
The purchase order line item table contains a field EKPO-RETPO which
represents the "Returns Line" check box in transaction ME21N and ME22N.
But, I can't find the field in the ORDERS05 idoc.
How can I tell the difference between a normal PO line and a returns line
in the ORDERS05 IDOC?
11-05-2007 12:14 PM
Hello Ed,
The easiest way to find out is to create a return Purchase order in your system and have a dummy partner for sending the Idoc. You could then have a look at the ORDERS05 IDoc generated to find out how the Idoc should be filled.
Regards,
John.
11-05-2007 1:29 PM
I did that. That's how I found out that the RETPO field doesn't exist in ORDERS05.
Further research on my end shows that there's a segment in BLAORD03 called E1EDPD1 that does contain RETPO.
Why it isn't in ORDERS05 seems a little screwed up.
11-05-2007 12:21 PM
Hi..
If u dont have this Field in the Standard Idoc type, then u have to create a Segment with this field and Create the Extended IDOC type to add this new segment.
then Implement the FM Exits to Populate this field.
<b>reward if Helpful.</b>
11-05-2007 1:32 PM
Yes, I think that's what I'll have to do.
I'll add E1EDPD1 to the as a level 3 segment of the E1EDP01 segment.
This is ugly, I expected this to be in the standard IDOC.
12-12-2007 3:15 PM
We updated E1EDP01-ACTION like this
Secondly change flag if position to be returned to vendor
IF pw_ekpo-retpo EQ 'X'. " flag for pos. to be returned to vendor
lw_p01-action = '093'. " = return
pw_edidd-sdata = lw_p01.
ENDIF.