Skip to Content
author's profile photo Former Member
Former Member

Passing delivery date from line item in ME21N to VOFM

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Nov 21, 2007 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 04:22 PM

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

    Best regards,

    Mike

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.