11-21-2007 1:52 PM
Hi to all,
I need to modify pricing on the purchase order (ME21N), so that the pricing condition PB00 would use the delivery date (EEIND) from the line item instead of the document date.
Working with the functional analyst, we decided to create a condition value through transaction VOFM (we created 600). I found the which date to override (komk-prsdt). My problem is that I can't find the line item delivery date. I found structure KOMP, which seems to have other line item info, but not delivery date. I have gone through every other condition out there, but if they use L/I info, they get it from KOMP. I can't find the delivery date anywhere. I'm running in 'debug' with a specific date so I could tell if I found it.
Can someone tell me how to pass EEIND to the routine, or find where it is? Thanks in advance.
11-21-2007 3:50 PM
Hi Michael,
there is no programming needed - it's possible to get this by corresponding master data.
In vendor master a default value for the inforecord can be defined: maintain field LFM1-MEPRF with value '2'.
In material master the field EINE-MEPRF is to be set to '2'. From here it will be the default for the purchase order. The old ME21 (not enjoy) had a parameter on the entry screen. In the enjoy version, somewhere in the details (last tab?) this field can be found again.
And then the standard will use the first delivery date as pricing date.
Regards,
Christian
11-21-2007 2:23 PM
Hi,
line item delivery date you can find in table.
EKET "table
EBELN "PO number
EBELP "item line
EINDT "delivery date
Message was edited by:
Perez C
11-21-2007 2:40 PM
Hi, thanks for getting back to me.
Unfortunately, tables EKKO, EKPO, EKET are unavailable to the condition. The PO is still being created, so the data wouldn't be there anyway. If I do an 'F1' on the delivery field, it says it's stored in structure MEPO1211, but that isn't available to the condition.
I've never used VOFM before, so if anyone can point me in the right direction, it would be greatly appreciated.
11-21-2007 3:50 PM
Hi Michael,
there is no programming needed - it's possible to get this by corresponding master data.
In vendor master a default value for the inforecord can be defined: maintain field LFM1-MEPRF with value '2'.
In material master the field EINE-MEPRF is to be set to '2'. From here it will be the default for the purchase order. The old ME21 (not enjoy) had a parameter on the entry screen. In the enjoy version, somewhere in the details (last tab?) this field can be found again.
And then the standard will use the first delivery date as pricing date.
Regards,
Christian
11-21-2007 4:22 PM
Thank you Christian. That was exactly the answer. My functional analyst is slapping himself in the forehead.
Best regards,
Mike