Modifying line item price in Purchase Order

Hi guys,
Need your help regarding pricing modification in purchase order.  I know the below explanation is quite long enough, but still if you can look into it and put some thoughts:
The price picked for a line item from PIR, needs to be modified depending on total price.
Say for example, in a PO there are two line items
Mat1     10PC 10 usd/1pc
Mat2     10PC 20 usd/1pc
so total price for PO goes as 300 usd.
Now, if PO price exceeds 250 usd a different price needs to be picked from a custom table for line items. Say it should now become 8 usd/1PC and 18 usd/1PC for Mat1 and Mat2 respectively.
So, after entering PO items if the user presses the 'check' button, new price should be picked, as per the above example the new lines should be shown as
Mat1     10PC 8 USD/1PC
Mat2     10PC 18 USD/1PC
so total price for PO goes as 260 USD.
Hope I've made you clear about the requirement.
Now, what we are able to do so far is:
We have used the 'check' method BADI 'me_process_po_cust'. And we are calculating the total price and changing the item conditions.
But it's not reflecting on the me21n screen even after execution of the 'check' method successfully.
It still shows the line items as
Mat1     10PC 10 USD/1PC
Mat2     10PC 20 USD/1PC
But, now if we make any changes in the line items (say we add the requisitioner name) and hit ENTER the changed prices are reflected. And the items become
Mat1     10PC 8 USD/1PC
Mat2     10PC 18U SD/1PC
This is a thing we are stuck into.
Please express if you have any idea how to come out of this issue.
Thanks in advance.
Anupam

Hi Anupam,
Flow Logic of the screen.
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
  LOOP AT ITAB WITH CONTROL TABC.
  ENDLOOP.
PROCESS AFTER INPUT.
  LOOP AT ITAB.
    MODULE READ_TABLE_CONTROL.
  ENDLOOP.
Write the read_table_control module like below
MODULE read_table_control INPUT.
   MODIFY itab INDEX tabc-current_line.
   "The above will update the entered data on table control
ENDMODULE.
Kindly check if this table control gets updated in PAI or not.... if not... try to find an exit where  this can be done on PAI.....
Regards,
Deeba

Similar Messages

  • How to create an inspection lot for each line item of the Purchase order?

    Hi,
    How to create an inspection lot for each line item of the Purchase order ?
    In detail if possible.

    Hi
       please check this
    [thread|Create Inspection Lot;

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • Max # line items in a purchase order

    What is the maximun number of line items that can be created in a purchase order or in a contract?
    Thanks

    >
    mamamoraga wrote:
    > What is the maximun number of line items that can be created in a purchase order or in a contract?
    >
    > Thanks
    Best practice would be to stay with 99 line items, as if created more, than you will have trouble in Goods receipt. GR allows just 99 line items receiving. If more than 99 line items are used in PO, then you need to do multiple GR's against the said PO.

  • Blocking a Requisition Line Item if A Purchase order exists

    Hi All,
    We are looking at a way to block a purchase requisition (not allow the end user to make changes) if a Purchase Order Exists for that purchase requisition line item. Is there a way of doing this without having to use a user exit?
    We do have release strategies on requisitions so we can control the filed status there but this is not really going to solve the 'problem'
    Your help will appreciated.
    Kind Regards,
    GA

    Hi,
    Thanks for your help. The end user are mostly changing the value, quantity and adding specification in the text fields. But the procurement department do not pick these changes up as the PO is already with the Vendor.
    Regards,
    GA

  • Delete SO after deleing PO line item in Individual Purchase order

    "Individual Purchase order"
    if i create SO with individual PO then PR is created automatically and i convert this PR to PO if i want to delete So line item i can't because it's linked to PO.
    I deleted this PO line item and i tried again to delete SO line item the same information message comes u can't delete SO because it's linked to PO however PO is deleted.

    You can reject the line item in Sales Order rather than deleting the sales order.
    Thanks,
    Ramesh
    PS: please award points if you find my information useful.

  • How to move the item level details to line item in the Purchase order form

    Hello,
    I am in SAP SRM7.0 system, my customers requirement is that the item level details like MPN (Manufacturer Part Number) etc.. should be moved to line item field in the Puchase Order.
    Can any one give me susggestion on this. This is not the correct forum for this thread but still pls post the link of related threads which may help in this regard.
    Regards
    Madhan

    HI Masa,
    THanks a lot for your reponse, in the option given by you i could find it to make visible or required but there is clue on moving the MPN to item field in the line item level. Can you give more input on this.
    Regards
    Madhan

  • Vendor Line Item display/ and Purchase order Field

    FI Experts
    We recently implemented the MM PO module in SAP, we are creating PO's automatically in SAp from a 3 party system. We are using field "Our Field" EKKO-UNSEZ to enter a reference from the 3rd party system. Our account payable have requested that they need this field to display in FBL1N "Vendor Line Item Display". I tried by using special fields but table is not available. Anyone has any suggestions? I know I can use BSEG and EKKO but it is too big of a table to use. Does this requires more of an ABAP report rather than just a simple QUERY report?
    Your suggestions are appreciated.

    Hi,
    PO Nr. doesn't appear in Vendor line item, but yes, in GRIR account.
    So when are you performing MIRO, you may use XREF3 field, which usually remains blank, through user exit (OBBH) for populating PO Nr. But yes, if you are processing MIRO of multiple POs, you may not be able to set multiple values.
    BR

  • Item text in Purchase Order getting updated with info. record Purchase Order Text

    Hello All,
    I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
    Issue:
    Item text in Purchase Order getting updated with info. record Purchase Order Text
    01) PO Text is maintained in the material master under "Purchase Order Text" tab
    02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
    03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
    03.1) this behavior is not observed in the Plants/ Company code that is already Live
    Configurations in the system:
    The copying rules for the "Texts for Purchase Orders" is
    Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
    We have modified the Purchase Order form to print one of  the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
    I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
    Am I missing any configuration or where can I look in what is causing this error.
    Request help from the experts in the forum.
    with Regards,
    Dhandapani R

    There is no company/purchasing/plant specific customizing for purchase order text.
    The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
    If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract)

  • Can I modify the column "Net Price" of purchase order to display 3 decimals

    Dear expert,
         Can I modify the column "Net Price" of purchase order to display 3 decimals?
         Looking forward to your reply.
         Many thanks.
    Best Regards,
    Merry

    Hi,
    You can easily change ur decimal place in OY04 by seeting number of decimal place to ur currency.
    But be careful as it cause a huge effect to ur finance documents, read system message carefully before applying.
    Regards
    ManUfacTuReR

  • Sales Order line item Price after Discount

    Hi all
    How to get the line item price after discount in Sales Order Query?
    Kedalene

    Hi Kedalene,
    Please check below Query.
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardName], T1.[Dscription], T1.[Quantity], T1.[Price] as Price_After_Discount, T1.[PriceBefDi] As Price_Before_Discount,T1.[DiscPrcnt],  T1.[LineTotal] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry]
    Hope this help
    Regards:::::
    Atul Chakraborty

  • To add Net price in Purchase order

    Hi,
    I have a sceneria where i need to add net price against line item which was marked as free in purchase order (Net price is 0). Subsequently material was deliverd from vendor and GI also was done. Goods receipt is also completed. This material batch number is consumed for custmer sales orders subsequently. There is 0 quantity available for this material in the plant. Now the user wants to change the net price to 2 for the line item. To change net price in purchase order, we tried to cancel GR material document.But we get an error that 'Deficit of unrestricted use' for the batch number.
    Can any one give us solution for changing the net price in purchase order?
    Regards,

    Hello,
    the only chance to add a PO price is to unflag the free flag in ME22N.  This is only possible when quantity received for the PO is zero. Therfore you must reverse the quantity received by doing a dummy receipt for the batch, reverse the GR for PO, you change the flag, set a price, redo GR for the PO, reverse the dummy receipt.
    Hope this helps, regards
    Michael

  • Approval template for line item price variation

    Any recommendation on how to managed price variations at a line item level with using approval templates? The approval templates currently only allow for TOTAL document differences.
    A senario as follows
    1.  Purchase order with line item price created
    2. GRNI created (and unit price changed)
    3. AP invoice created  - AP approval template kicks in advising that there is a price discrepancy at a line item level between the Base and target documents.

    Hi!
    You can achive this via Stored Procedure.
    Approval Procedure will not work for Row Level.

  • Keep Quote line item numbers in Sales order

    While creating a Sales order from Quote, SAP always creates line items with 100,200,300...and so on.
    If quote has 3 line items say 100,110, & 120 and we create a sales order with reference to this quote in VA01. The sales order line items become 100,200 & 300.
    The requirement is for Sales order to also have same line item numbers i.e. 100,110 & 120.
    To retain quote line item numbers in Sales order the ABAP change will be in VOFM or user exit?

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • How to configure Item Category in Purchase Order document

    Hi
    Can someone tell me how to configure the Item Category in Purchase ORder document?  This field is displayed next to Account Assignment in PO screen.
    Thanks,
    Lin-Lin

    I think your issue is screen layout of the PO
    please go to
    SPRO-MM-Purchasing-Purchase order-Define Screen Layout at Document Level
    here you can select the ME21N and double click on it
    on field selection of basic data you can make item category is optional than it will be avialable
    if still you find the problesm than check your field selection of your document type and change that field selection as above mentioned.

Maybe you are looking for

  • How to update pricing condition type in a cancelled invoice?

    I have one invoice(let say invoice number 01) which did not posted any accounting documents because one condition type in pricing procedure didn't had any record at the time of creation of invoice. so i cancelled the previous invoice and maintained t

  • Find corresponding BPM to message in SXMB

    Hello everybody, we made a mass test: 500 IDOCs where send through BPM to call a JDBC insert. Now there is just one insert with an error and I want to find the corresponding BPM to find out, which  IDOC caused the error. Where is the link from SXMB_M

  • Exchange any Lync 2010 - delayed emails

    Hi, I have Exchange 2010 configured with Lync 2010 to send email about missed Lync calls. A certain user is getting those email with a random delay (can be a few minutes up to few days), the user is getting all those mails in a bulk. Mails appear in

  • Graphics Server - CGI or OAS?

    Is it possible to avoid using OAS when running Graphics Server? Both Forms-server and Reports-server may be run using separate services and enabled via CGI, but I haven't found any information about running Graphics Server "outside" the OAS (separate

  • Many problems with new iPod nano

    I had an iPod Mini for a year, and never had any problems with it. Last month, I bought a Nano (4 GB), and I've already had several problems. Has anyone else experienced these issues? 1. When I jog with it (which is very often), it often skips. 2. Se