Question:
Hello
I have a requirement where I need to update the GRKOR (Delivery group) field for incoming order (IDOC ORDERS05) depending upon the material numbers available in a Z table.
I found the enhancement VEDA0001 and it has 11 function modules. I prefer to modify the IDOC and update the GRKOR field for record EDP01006 (Document Item General Data) before calling VA01.
Now I have following questions (keeping in mind that my ABAP is not good)
-Should I use function 1 or function 2 (update the GRKOR field for VA01)
-And can you please help with code also?
Thanks for you help.
Ravi1
Answer:
I modified my EDI 850 map to update the GRKOR field depending upon the martial. The value shows in IDOC on We02 (E1EDP01) but when I process the IDOC, delivery group values is not updating in VA01. It looks like system is ignoring the GRKOR field coming from IDOC and assigning a running number. If I checked the Header value "AUTLF" (E1EDK01), the system move 0 to delivery group.
My requirement is to assign
- delivery group 888 to line 1 and 2
- delivery group 1 to line 3,
- delivery group 2 to line 4
to an EDI purchase order with 4 line items.
Thanks
Ravi1