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: 

Passing delivery date from line item in ME21N to VOFM

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

christian_wohlfahrt
Active Contributor
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

christian_wohlfahrt
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you Christian. That was exactly the answer. My functional analyst is slapping himself in the forehead.

Best regards,

Mike