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

PO pricing :: Furlan needed your attention

Hi all,

I had a requirement.

currently, if i create a PO (ME21) the price for that material is being pulled by the PO creation date.

I am maintaing info records for that material for dif dates with corresponding prices.

<b>I want to get the price for the materials based on the delivery date which i mention at the time of creation of the PO instead of taking PO creation date.</b>If any body has faced the similar problem or having any idea about how to solve this issue.please help me.

Thanks in advance.

Raja.

Message was edited by: raja gurrala

Message was edited by: raja gurrala

Message was edited by: raja gurrala

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

16 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 10:19 AM

    Thanks for clarification.

    I mean ..

    I am creating a formula routine for this functionality(VOFM).

    As per ur answer i can use ...but this ETT[] table shud be availalbe ..right?

    i tried on EXIT_SPALMEKO_002...komk structure available ..but it's wonder i cud not able to see the delivery date ...it's wonder ..

    Can we able to get this ETT[] in this routine.

    DOn't mind if it silly q.

    As per ur previous mail...

    U mean that change the RV61AFZA..user exit...?

    it is asking access key..do i need to get that from basis?

    U r always mentioning that ME21N...won't it work for ME21?

    I am novice to this process..

    kindly reply me

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2005 at 01:29 PM

    Raja, Please try to change this price through PO User Exit . In the user exit get the price on the delivery date and modify the current price .

    Please let me know if you need more details regarding PO user exit .

    thanks

    Roy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2005 at 12:24 PM

    Hello,

    I faced this problem few days ago.

    For transaction ME21N, at user exit USEREXIT_PRICING_RULE (include RV61AFZA), change the follow fields, komk-fbuda and komk-prsdt with date that you want pricing routine calculate pricing.

    For transactions ME22N and ME23N, the system only change the price when user click on "Update" button at Conditions tab (material level). In that case, use user exit USEREXIT_PRICING_RULE (include RV61AFZA) to chage fields komk-fbuda and komk-prsdt with delivery date.

    So, if you want to calculate the price based on delivery date, just move delivery date to these fields and let system do calculations based on new date.

    Try the code below in the both user exits that I mentioned above.

    • Declare variables.

    FIELD-SYMBOLS: TYPE ANY TABLE.

    DATA: l_date TYPE d

    l_ebelp TYPE ebelp,

    w_beket TYPE beket,

    t_beket TYPE STANDARD TABLE OF beket,

    w_data TYPE ty_data.

    • Get the item number in the correct format.

    l_ebelp = komp-kposn+1(5).

    • Get the tabe with Delivery Schedule data.

    ASSIGN ('(SAPLMEPO)ETT[]') TO [].

    READ TABLE t_beket INTO w_beket WITH KEY ebelp = l_ebelp.

    l_data = w_beket-eindt.

    • Move new dates to calculate the price based on delivery date

    komk-fbuda = l_data.

    komk-prsdt = l_data.

    I hope this help you!

    Regards!

    Flávio Furlan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2005 at 01:05 PM

    Thank god & Furlan.

    At last i got one prototyep solution which falls for my requirement.

    Cud u plz clarify me one more thing.

    can we able to restrict this functionality to work based on particular plant?

    waiting for ur reply.

    Add a comment
    10|10000 characters needed characters exceeded

    • Thank god & Furlan.

      At last i got one prototyep solution which falls for

      my requirement.

      Cud u plz clarify me one more thing.

      can we able to restrict this functionality to work

      based on particular plant?

      Yes, you can add the follow statement:

      CHECK komp-werks = .

      If the werks of the item doesn't be , all code bellow CHECK statement will not be executed.

      The structure komp had the information about select item line.

      waiting for ur reply.

      See you!

      Flávio Furlan

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2005 at 01:56 PM

    Hi,

    Use BADI : ME_PROCESS_PO_CUST

    Implemet the BADI.

    then in Method : PROCESS_ITEM

    DATA: ls_mepoitem TYPE mepoitem.

    Use Get Data-->

    ls_mepoitem = im_item->get_data( ).

    Change LS_MEPOITEM-NETPR based on your conditions.

    then use set data to change price

    im_item->Set_data( )

    ls_mepoitem .

    Try this.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 13, 2005 at 01:26 PM

    Hi!

    Forget the user-exits! You can define the pricing date on several places, e.g. ME21 entry screen field pricing date (RM06E-PRDAT).

    Because manual maintenance for every PO would be very anoying, it's possible to define defaults on two levels:

    - Vendor master data, purchasing data, field pricing date category (LFM1-MEPRF)

    - Inforecord, purchasing org. data 1, field pricing date category (EINE-MEPRF).

    In your case you should (let) maintain value 2 - Delivery date. The PO pricing will use (estimated) delivery date for pricing date of purchase pricing.

    Also you wouldn't maintain the inforecords time dependent (no new vendor starts at the end of the period), just the conditions have to be time-dependent.

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2005 at 04:44 AM

    Hi all of u,

    Thanks for giving replies.

    <b>I want the price based on delivery date which we provide in ME21 at the time of creation.

    I need to fetch the price from Inforecords where iam maintaining the dates & corresponding prices.</b><b>

    christian,

    Iam not aware of the solution u provided.Kindly explain how to maintain value 2 and where to maintain</b>.

    Kindly any body help me in this regard.

    Raja.

    Message was edited by: raja gurrala

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Raja!

      Go to transaction ME12, choose existing vendor / article / purchase organization. Enter, push button Purch. org. data 1. In frame 'Conditions' you will find field 'Pr. date cat.' (just above incoterms). If it is not included, ask your MM consultant to activate the field in the customizing of inforecords. Maintain value 2.

      Now create a new purchase order, check which pricing date is used. Goto tab conditions, choose analyze, have a look, whith which date conditions are selected.

      Maintenance of price date category will default the correct value for inforecord creation - but current inforecords have to be changed in addition.

      Regards,

      Christian

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2005 at 04:51 AM

    Roy,

    If u think that i can solve this issue by userexit.

    <b>Kindly provide which user exit i can go for?

    where to modify this pricing date to become the delivery date which we provide in the Me21 screen?</b>

    waiting for your reply.

    your help will be appreciated

    Raja.

    Message was edited by: raja gurrala

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sorry, I just saw your reply . I have done this for SD & Invoice price changes . I have used following routines for SD .

      • User routines

      • Condition value formulae / RV64ANNN

      We can do this for PO also . Please let me know if you still have problems . I can do some research for PO price change user-exit .

      thanks

      Roy

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2005 at 11:47 AM

    chistine,

    Thnaks for ur help.

    can we use this solution ...which wud some thing restricetd to only one plant.

    <b>i find one thing in SPRO.

    Define condition at plant level..</b>is that useful?

    waiting for ur reply.

    Message was edited by: raja gurrala

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Raja!

      Is this restricted to one delivering plant (in a cross-company stock transfer order) or a receiving plant?

      In case it's a receiving plant, then you might need to go for site-specific inforecords. Then you would automatically site-specific conditions, too.

      In case it's a sending plant, then your plant is treated like a vendor. Then maintenance on vendor level (in inforecords) is enough.

      In most cases, contracts with vendors define an unique handling (order date or delivery date) for all sites - but of course every customers has some differences...

      Regards,

      Christian

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2005 at 12:52 PM

    christian,

    Thanks for your help.

    As per head proposal we shud do this with user exits.

    Any how i learnt a new thing from ur proposal.

    Thanks again.

    <b>Guys,

    can any body suggest me this solution with implementaion of userexits??</b>

    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.