BAPI_REQUISITION_CHANGE Price

Hi,
  I try to use BAPI_REQUISITION_CHANGE to change price of my PREQ and I have always this message "Data in REQUISITION_ITEM_OLD for item 00010 does not correspond to current database status".
  Do I have to fill all the field in the requisition_items_old or just the field I want to change.....
Does somebody already use this BAPI and can help me
Best regards
Andre

before calling  BAPI_REQUISITION_CHANGE  you should read current data into ITEM (requisition_items and requisition_account_assignment).to do so :
data:
prnum TYPE bapieban-preq_no ,
i_pritem LIKE bapieban OCCURS 0 WITH HEADER LINE ,
i_acc LIKE bapiebkn OCCURS 0 WITH HEADER LINE ,
pritem LIKE bapiebanv  OCCURS 0 WITH HEADER LINE  ,
      pritem_new LIKE bapiebanv OCCURS 0 WITH HEADER LINE ,
req_acc_old  LIKE  bapiebknv OCCURS 0 WITH HEADER LINE ,
      req_acc_new  LIKE  bapiebknv OCCURS  0 WITH HEADER LINE
CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL'
        EXPORTING
          number                               = prnum
         account_assignment                   = 'X'
  ITEM_TEXTS                           = ' '
  SERVICES                             = ' '
  SERVICE_TEXTS                        = ' '
        TABLES
         requisition_items                    = i_pritem
         requisition_account_assignment       = i_acc
  REQUISITION_TEXT                     =
  REQUISITION_LIMITS                   =
  REQUISITION_CONTRACT_LIMITS          =
  REQUISITION_SERVICES                 =
  REQUISITION_SERVICES_TEXTS           =
  REQUISITION_SRV_ACCASS_VALUES        =
  RETURN                               =
   know you have data in internal tables and you can change these tables, you can loop in tables , but before change data MOVE these tables into New tables :
           MOVE-CORRESPONDING  i_pritem  TO pritem  .
           MOVE-CORRESPONDING  i_pritem  TO pritem_new .
NOTE: dont change data in  pritem ,just change pritem_new  because we want to call BAPI_REQUISITION_CHANGE   and we will send pritem_new  and  pritem.BAPI_REQUISITION_CHANGE will read pritem_new   to change PR items.
also for account assingment:
MOVE-CORRESPONDING  i_acc  TO req_acc_old .
MOVE-CORRESPONDING  req_acc_old TO  req_acc_new.
APPEND  req_acc_old.
" CHANGE VALUE IN req_acc_new (NOT IN req_acc_old)
       req_acc_new-funds_ctr  = 1000.
        req_acc_new-cmmt_item  = 482000.
append  req_acc_new.
NOW CALL bapi fm -
  DATA: c_x LIKE bapita-wait .
  c_x = 'X'.
  DATA:ret TYPE TABLE OF bapiret2 WITH HEADER LINE  .
CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
    EXPORTING
      number                        = prnum
    TABLES
      requisition_items_old         =  pritem
      requisition_items_new         =  pritem_new
     requisition_account_old       =  req_acc_old
     requisition_account_new       = req_acc_new
    REQUISITION_TEXT_OLD          =
    REQUISITION_TEXT_NEW          =
     return                        = ret
  break rrostami.
  READ TABLE ret INTO ret WITH KEY type = 'E' .
  IF sy-subrc NE 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = c_x.
  ENDIF.

Similar Messages

  • I'm trying to upgrade my iCloud storage for the new price.

    I'm trying to upgrade my iCloud storage for the new price, but it doesn't gives me the option of 20G for $0.99 a month.
    How can I get 20g for $0.99 a month?
    Thanks!

    Katherine,
    have you read the message in the panel? Something is wrong with your credit card. Perhaps you have to enter a new date of expiration.
    In the small print it says, there is still a purchase, that needs paying,"Ugly Heart" with an amount of R 9.99. And "We were unable to authorise your credit card for this purchase".  You will first have to update your Billing Information before you can proceed to make a new purchase for upgraded storage.  Click "Account Details" in the iCloud panel.
    -- Léonie
    If you cannot fix the account from the iCloud panel, open iTunes and sign into the "Store" menu, Then use the "Store > View account" item there to check for problems with your Billing Information.

  • Creation of PO with Zero Price

    Dear Experts,
    I need to craete a PO with 0 Price (Free of Cost). But I will be charged only for the transportation.
    Example I am creating a PO for 1000 TON of Material. Free of Cost. For delivering 1000 TON 100 delivery will be required. Transportation charge for each delivery =  150
    So I should be charged for only 100 * 150 = 15000.
    How to do this in SAP.
    Thanks.

    Hi,
    You can post Transportation charge related to separate G/L account in MIRO.
    Active "G/L account'  TAB in the MIRO screen to post COST by selecting check box of "Direct posting to G/L account=active" &  then save, in the following path
    SPRO> Material Management>Logistics Invoice Verification->Incoming Invoice->Activate Direct Posting to G/L Accounts and Material Account
    OR.
    Post Transportation charge related in t.code:FB60.
    For check link:
    http://www.sap-img.com/financial/unplanned-and-plan-delivery-costs-in-stock-and-gl-account.htm
    Regards,
    Biju K

  • Moving average price in case of goods receipt with free of charge

    Hello everyone,
    Need some inputs......
    Sometimes we receive materials from suppliers free of charge (e.g. warranty replacement) u2013 moving average goes down u2013 worst case 0,01 EUR/piece. This causes problems in government reporting and export documentation EX1 and clearance/pro-forma invoice) for deliveries to field engineers (Order type ZIS1, ZIS3 u2013 item cat. ZICA), because moving average price is used for the values in government reporting and on the invoices. In government reporting and on invoices we need to state a true value of the part.On the other hand, the value warehouse stock is depending on the moving average cost as well.Could you please let me know, how to handle such receipts from the supplier to have a correct stock value and correct values on invoices and government reporting?
    Thanks
    Deepthi...

    Hello Deepthi,
    It depends on your company policy. If you want to valuate the material along with the material purchased handled in moving average price, free consignment will bring down the MAP for the material.
    In that case, you can revaluate the material to the original price in MR21 transaction.
    If you are not going to handle the materials received free of charge along with the purchased material, you can go with another material code, with non valuated material type.
    But i guess, no company will be asking for another material code. So go for revaluation after the receipt of free consignment.
    Regards

  • Need to specify different price on Goods Receipt than on Purchase Order

    Hi!
    My application creates Goods Receipt (object of type SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes). This Goods Receipt is based on an existing Purchase Order. Creation itself (including the reference to the Purchase Order) works well.
    The problem is that using DI API, price in a document line is always set (automatically) to the price specified on the Purchase Order line. I'm not able to set the unit price to any other value. When I assign my unit price, document is added successfully, but my unit price is ignored. Unit price specified on the appropriate line on Purchase Order is used instead.
    Thanks for help!
    Jan

    Hi! I'm using SBO 8.81. I put my C# code below. The %xxx% strings are just symbols - for simplification.
    SAPbobsCOM.Documents oPurchaseDeliveryNotes = (SAPbobsCOM.Documents)SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
    oPurchaseDeliveryNotes.CardCode = %CARDCODE%;
    oPurchaseDeliveryNotes.DocDate = %DOCDATE%;
    oPurchaseDeliveryNotes.TaxDate = %TAXDATE%;
    bool first = true;
    while(...) {
        if(!first) oPurchaseDeliveryNotes.Lines.Add();
        oPurchaseDeliveryNotes.Lines.BaseType = (int)SAPbobsCOM.BoAPARDocumentTypes.bodt_PurchaseOrder;
        oPurchaseDeliveryNotes.Lines.BaseEntry = %DOCENTRY_OF_PO%;
        oPurchaseDeliveryNotes.Lines.BaseLine = %LINENUM_OF_PO%;
        oPurchaseDeliveryNotes.Lines.ItemCode = %ITEMCODE%;
        oPurchaseDeliveryNotes.Lines.Quantity = %QUANTITY%;
        oPurchaseDeliveryNotes.Lines.Price = %UNIT_PRICE_DIFFERENT_FROM_PO%;
        oPurchaseDeliveryNotes.Lines.Currency = %CURRENCY%;
        first = false;
    oPurchaseDeliveryNotes.Add();
    Althought the unit price on the Purchase Order is for example 7 and in my code I assign the Price property for example 9, then when the document is successfully added, I see that on newly created document the unit price is still 7 (same as on PO). Value 9 is ignored without any errors or warnings.
    When I remove the code which connects this Goods Reception with PO (i.e. assignment to BaseType, BaseEntry and BaseLine properties), created document is correct. However when there is a connection to PO, I'm unable to set different unit price.
    Do you or anybody else have explanation for this? Or do you have some piece of working code you can provide?
    THANKS!

  • Change of Net Price in Sales Order

    Hello Experts!
    I wanted to know how the "Net Price" of a sales order can be "changed" by the system or "indirectly" by the user.  I have an issue with the net price that changed in the sales order, and wanted to know how this could have happened; <b>besides</b> changing the pricing conditions, price adjustments, and order surcharge.  Is there someway the system could have changed it or user "indirectly"?  Please advise.  Thank you in advance!
    WC

    Net price is not changed directly.
    It's chanegd via changes to pricing only unless you have some code which updates this field AFTER SAP calculated it based on pricing conditions.
    NOTE: if you reject line items it's vlaue is substracted form order net value, the same is true if any of your pricing conditions is made inactive due to various reasons.
    Changes to pricing condiitons are not shown in order change history, you can see changes per condition record, but if any of your conditions in sales order was made inactive - you won't see it in change log. One of the options may be - if you generate any outputs (IDOCs) which send pricing info - you can check those IDOCs to determine when & what was changed in the pricing of your order.

  • Price difference after return of saled goods.

    Hi gurus,
    Please help me to solve one scenario.
    I sale X material for Y price to my customer.But due to some problem if he returns my material.
    If I want to take that material in stock again for Z price that will be less than price Y, then what should I do.
    i.e.Suppose sale price-100 Rs and I want retun price should be -90 Rs.
    How would I handle this price difference.
    Pl help.
    Regards,
    rb

    Hi Bruce,
    Thanks for your reply.
    Can this will change my material price having price control "V".
    Because I don't want to change my material price.
    Waiting for your reply.
    Regards,
    rb

  • Config of Goods Receipt indicator specific to individual PO line price

    Hello all
    Is there a way to define Goods Receipt indicator (field WEPOS in EKPO table) to default to either checked or unchecked, for individual PO Lines, based on the price of the material at each PO line ? (ex price beyond a threshold value should require a Goods Receipt)
    Goods Receipt requirement would therefore not be vendor specific (ie configured at Vendor level XK01) or Account Assignment Category specific (ie configured at OME9), but specific to individual PO lines value/price. Where can this threshold value of price be specified ?
    Thanks a lot

    This can be configured on the basis of USER ID
    Inforecord.
    I dont think on the basis of PO valu.
    IN inforecord u can check this.

  • Price condition equal to VPRS cost of goods

    I have a senario ,which we will create sales orders for customers with sales price equals to the MAP(moving average price) at the  time when the SO being input .And the sales price in sales orders should be copy to the billing whether  the MAP has changed or not .
    Now I have set up an pricing procedure ,which  use  VPRS  as the sales price condition type ,but here comes another question when I create billing according to the delivery . When I create the billing document ,the net value is defferent with the net value of the sales order ,because the MAP has changed during the goods issue.
    Is there any idea that can make sure the sale price equals to the MAP , and the billing net value is same as sales order net value?
    can you give me some advice ? thanks for you help!

    Hi,
    The pricing type (Copy control)  is an extremely important field. It is worthwhile keeping this entry
    in mind when creating your pricing condition types. As a rule of thumb, you should
    have all item categories for a particular sales document with the same settings.
    Generally, you may use pricing type B (carry out new pricing), G (copy pricing
    elements unchanged and redetermine taxes), or C (copy manual pricing elements
    and redetermine the others).
    When using condition B all manual pricing condition types are lost.
    If you want to copy the sales order to the invoice without changing the sales order
    conditions, use pricing rule G. This will copy the pricing conditions from the order into the
    invoice without changing them, but will redetermine the taxes.
    Regards...
    SBC

  • Transfer cost price from free of charge item to main item but not for VPRS

    Hi,
    I want to transfer cost price from free of charge item to main item but not for VPRS but for a new Z contidion type.
    For CO-PA proposes. Can you help me with This?
    Catarina Alves

    hi,
    transfer of cost from sub item to main item is configured in the delivery to billing copy control for the main item. go to VTFL  > select the required item cateogry > here at the bottom you will find a check box Cummulate cost. Tick it.
    Not really what you meant COPA purposes. But the pricing conditions are mapped to COPA value fields at KE4I transaction.
    regards
    sadhu kishore

  • Error in Updating the Prices through DTW

    Hello Expert,
                         I am getting an error while updating the item prices through DTW.
    I upload all the items in SAP and prices in Price List 01
    Now I create One more Price List with Other name and want to update the Price in this Pricelist for all items through DTW
    but system giving an error "this entry is already present in Table(ODBC-2035) Application Defined or Object Defined ErrorItems"
    SAP 8.8
    PL 5
    Regards
    Atif

    What Neetu suggests is great.  However, you will run into problems if your users have deleted a price list.  Perform the following query as suggested:
    SELECT T0.[ListNum], T0.[ListName] FROM OPLN T0
    Copy this to excel and create a further column called 'RealNumber' or something
    Start numbering cells in this new column from 0 to whatever you need to cover all the lists from the database.
    The number in the 'Real Number' column is the one you should insert into the LineNum field in the prices spreadsheet.
    Hope this helps.  Reply if you need more guidance.
    Regards
    Bob

  • Not able to view actual Price updated 'Value' in Change Tracker

    I was able to get my Change tracker to work and it is functioning. (SRM 5.0 MDM5.5 )... Configured Portal iViews for change tracker.
    If I change a description I can see it in the change tracker application. But if I try and track a Price change it only shows me a date-time  and user as to I when the price was changed it doesnu2019t show me the actual value changed, for my audit purposes.
    On the portal the change tracker "Field" dropdown shows -> Price Updated. this is what is tracking any change of price.
    In MDM Console-> Admin->Change Tracker I am tracking under Catalog Items: Price information, Price Updated, Special search terms, long description.
    When I look at the Data manager in the Record Detail, I see  u2018Price Updatedu2019 and it only has a Date and time stamp. In this same Record Detail,  I see the field Price Information that contains :Lower bound, Purchasing Info record ID, Purchasing Organization, Amount and Currency.  Amount-> contains the actual price value. This is what i want to see in the portal iView as Old value and New value....this is what I am unable to view? theres one small step i am not doing...
    I am trying to track the actual change in the filed u2018Amountu2019u2026 I have tried to search for it in the Portal iView fields (table, record contains, fields, record)
    cheers
    alex

    Hi Alex,
    I would not here comment on change Tracking functionality but can you suggest another workaround to achieve this requirement. If it fits in your requirement you can go ahead with it.
    In MDM, Create another field in Main table say Initial Price and for already existing field Amount replace its name with Updated Price in Qualified table Price.
    now after this you will see that your by default Updated Price has values as it was your Amount field earlier and Initial Price field as empty. Now for next time, if any record comes using Import Manager then MDM workflow should trigger at Record Import.
    This workflow contains following steps.
    Start(Checkout)>Assign>Stop(CheckIn)
    Assign step should have below expression and assignment:
    Price Information.Updated Price
    Where I am assuming Price Information is the field in main table which is look up to this qualified table Price.
    So in this way you can maintain both existing and updated values of Price and cant then show in your Catalog.
    suppose you have already existing record say 1 which has value of Amount as 20.
    So that means you have Updated Price as 20 and Initial Price as empty(Null)
    Now when same record 1 updates with new Amount say 40, it triggers this workflow on record import which will then assign value of existing updated Price 20 to Initial Field after that Updated Price will update by 40.
    Note: This Assignment works well only if your main table record has this Qualified table link as single record. If your main table record contains more than one qualified links then this Assignment would not work fine. So use only if it fits.
    Regards,
    Mandeep Saini

  • How to reflect variable price in outline agreement

    We procure many very complex tools that have options which significantly affect the price of that tool.  We would like to be able to reflect those price differences in the outline agreement by option within the following boundary conditions.
    1. Do not want to create a new material master for each option
    2. Do not want to utilize BOM
    3. We are buying the tool so sales order solutions won't work for us
    I have looked at configurable materials where I set up characteristics to reflect the options but I have not been able to figure out a way to price those individual options.  I do see how I could create multiple line items on the outline agreement for the same material and put unique combinations of the option characteristics in individual lines but that means I have to create a line item per option combination permutation which is much more painful than simply pricing individual options.  I also haven't seen any way to get SAP to select the correct line item based on these characteristics when doing source selection on the PR or PO.   I have started looking at variant pricing but that is completely new to me and I am not sure if that is going to go in the direction I want.  My fear is that this just allows me to price a combination of characteristics vs. pricing individual characteristics then combining the prices at the time of purchase (no different that having to create an OA line item per option combination permutation).  My apologies in advance for the convoluted message but it is difficult to ask about solutions when you are not sure what functionality potentially exists.
    Thanks,
    Ben

    Hi
    Try to check with variant Configuraqtion may be upto some extent helpful
    Check the link
    http://help.sap.com/saphelp_erp2004/helpdata/EN/92/58d455417011d189ec0000e81ddfac/frameset.htm

  • How hard can it be to get a price for DPS Enterprise?

    Is the Enterprise License made from Unicorn tears or what?
    We have now spent  three hours on three separate calls to Adobe enquiring about the cost of an Enterprise license. We are Adobe Pro users, and find it bizarre that no-one in the wide Adobe world appears to be able to be prepared to even guestimate a price for us.
    But Adobe's support network is really good at passing us on to another department, in another country, to another department in another country until "our office is now closed".
    Today, on attempt no 3 the Adobe sales person cut me off. She then  called my phone and left me a voicemail message, during which she put my voicemail on hold. Yes, she put my voicemail on hold…

    Hi Renny,
    I work for MEI, Adobe's top reseller for the DPS product. We're working with a number of customers moving from Pro to Enterrpise and I'd be happy to help you as well. We also have some value-add products and services to help you make the most out of the DPS Enterprise platform like our recently announced MEI Portico solution.
    Please feel free to email me at the address below. I also sent you a PM with my cellphone.
    Best,
    Brett
    [email protected]

  • Adobe Cloud Price changes from $14.99 for student edition to $19.99 at checkout

    http://www.adobe.com/au/education.html  - Clearly says $14.99 for student subscription but changes to $19.99 when I go to checkout.  I have an edu account and Adobe ID with same address.  Can I checkout with the $14.99 price.

    Notice the au in the link and also notice the price is A$ 14.99. Is your Adobe ID billing address and credit card for Austrlia or for the United States?

Maybe you are looking for

  • Invoice Tax left after create credit memo (Receivable)

    Hi All, I have problem after creating Credit Memo(CM) in Receivable. The invoice line become 0 but invoice tax still appear. It's caused the tax in CM is 0, even the line value have match value. Can anyone help me? Best regards, Erie

  • There is the possibility to showcase a pdf document?

    I want to show a PDF that I have created on the page of my blog: http://dariovignali.net/hosting-wordpress/ It's like an infographic but it's not an image. There is the possibility to embed the PDF in the blog post?

  • Automatically copy format to new slide

    HI all, I'm new with Keynote and I'm sure there is an easy answer to this, but I certainly can't seem to find it. I'm putting together a boring, bulleted presentation and have adjusted the master slide to the format I want. Changed font, size, bullet

  • MBEW-LPLPR Change pointer creation

    Hello Experts, I need a clarification on Change Pointer concept. I am trying to change the planned price (mbew-lplpr) in the costing view of MM02 through a transaction CK24. CK24 sets the current price in MM02. change pointer is enabled at the data e

  • Problem finding Photoshop Installer for CS6

    I am using Photoshop CS6 and I am being told that one or more files is missing from the Adobe Support Folder and I need to run Photoshop installer and re-install Photoshop. I tried to find that installer and only see an uninstaller in CS6 folder in A