BAPI_PR_CHANGE

Hi Guru's,
I am changing price in PR using BAPI_PR_CHANGE in ECC 6.0 using RFC call from other system. We are using a background id specific to this interface. It is working fine except in some cases except for one case. I would like to know if any one knows of any settings specific to Preis field which would differ from foreground and background user. Also how can we see the exact data what was sent via RFC.
Thanks!

No Answers?? Please gimme ur suggestions...Thanks!
Moderator message: please do not use SMS speak when posting.
Edited by: Thomas Zloch on Oct 24, 2010 8:57 PM

Similar Messages

  • Problem using BAPI_PR_CHANGE - Error:  Creation Indicador B invalid

    Hi Experts:
    I'm trying to execute BAPI_PR_CHANGE to modify a PurRqs.
    My code is (from a test program):
    * Step 1
    s_number = '0010028817'.
      CALL FUNCTION 'BAPI_PR_GETDETAIL'
        EXPORTING
          NUMBER = s_number
        TABLES
          RETURN = ERRMSG
          PRITEM = S_ITEMEXP.
    * Step 2
    READ TABLE S_ITEMEXP INTO WA_ITEMEXP
           WITH KEY MATERIAL = '000000000000216255'.
      S_ITEM-PREQ_ITEM  = WA_ITEMEXP-PREQ_ITEM .
      S_ITEM-MATERIAL   = WA_ITEMEXP-MATERIAL  .
      S_ITEM-QUANTITY   = 48  .
      S_ITEM-PLANT      = WA_ITEMEXP-PLANT     .
      S_ITEM-PUR_GROUP  = WA_ITEMEXP-PUR_GROUP .
      S_ITEM-PREQ_NAME  = WA_ITEMEXP-PREQ_NAME .
      S_ITEM-SHORT_TEXT = WA_ITEMEXP-SHORT_TEXT.
      S_ITEM-SUPPL_PLNT = WA_ITEMEXP-SUPPL_PLNT.
      S_ITEM-item_cat   = '0'.
      APPEND S_ITEM.
      S_ITEMX-PREQ_ITEM  = WA_ITEMEXP-PREQ_ITEM .
      S_ITEMX-MATERIAL   = 'X'.
      S_ITEMX-QUANTITY   = 'X'.
      S_ITEMX-PLANT       = 'X'.
      S_ITEMX-PUR_GROUP   = 'X'.
      S_ITEMX-PREQ_NAME   = 'X'.
      S_ITEMX-SHORT_TEXT  = 'X'.
      S_ITEMX-SUPPL_PLNT  = 'X'.
      s_itemx-ITEM_CAT  = 'X'.
      APPEND S_ITEMX.
    * Step 3:
      s_number = '0010028817'.
      CALL FUNCTION 'BAPI_PR_CHANGE'
        EXPORTING
          NUMBER    = s_number
          TESTRUN   = S_TEST
        TABLES
          RETURN    = ERRMSG
          PRITEM    = S_ITEM
          PRITEMX   = S_ITEMX
          PRITEMEXP = S_ITEMEXP.
    The message is:
    E MEPO                 081 Creation indicator B invalid
    E BAPI                 003 Instance 10028817 of object type PurchaseRequisition could not be changed
    Anybody can help me with this issue.
    Thanks
    Diego

    Hi a®s:
    I'm using on first step BAPI_PR_GETDETAIL to capture the PurRqs information.
    On BAPI_PR_CHANGE, I'm filled structure PRITEMEXP using the values from structure PRITEM (BAPI_PR_GETDETAIL) on structure PRITEMEXP (BAPI_PR_CHANGE)
    These are the values from the first fields.
    PREQ_ITEM                      00010
    DOC_TYPE                       NB
    DOC_CAT                        B
    CTRL_IND
    DELETE_IND
    PROC_STAT                      N
    CREATE_IND                     B
    What I need to change?

  • BAPI_PR_CHANGE (Not Able to insert more than 3 Line Items)

    Hi Friends,
    I have Issue with BAPI_PR_CHANGE.
    I could Able to insert up to 3 lines items using this BAPI but if I am Trying to Insert More Than 3 BAPI throwing Dump.
    Any Idea on this?
    Any Parameter I need to pass for more than 3 line items.
    Let me know any help on this BAPI...I am on ecc 6.0.
    Thanks,
    Yogesh Patil

    We are on ECC 6.0 and have no problems creating a PR with 100+ line items or adding multiple lines to a existing PR . Please paste the first page of the dump to help me answer your question.
    Thanks,
    Raj

  • Usage of BAPI_PR_CHANGE

    Hello Experts,
    What is the usage of BAPI_PR_CHANGE ?

    Hi,
    A way to solve this may be use the ENHANCEMENT-POINT in BAPI_EQUI_CHANGE:
      ENHANCEMENT-POINT EHP_BAPI_EQUI_CHANGE_01 SPOTS ES_SAPLITOB_BAPI_EQ
    Here you can adjust the value of L_ITOB_REC-GWLEN and L_ITOB_REC-GWLDT .
    Best regards,
    Leandro Mengue

  • No parameter found to add service item detail in BAPI_PR_CHANGE.

    Hi,
    I am trying to add new service item in an existing purchase requisition. But i can not find any parameter, where i can pass these service details.
    Regards
    PG

    Hello PG ,
    Please review SAP Note 499627 , Question # 9. Here , you will be able to find more information on how to add service
    items using BAPI_PR_CHANGE
    9.  Question:
    Can service items be created using BAPI_PR_CREATE or changed using
    BAPI_PR_CHANGE?
    Answer:
    Yes. Release 6.04 (Enhancement Package 4) provides new API functions for
    the object BUS2105 that include this function. In addition the business
    function LOG_MM_CI_2 or the switch MM_SFWS_SC2 must be active.
    Also , Please read SAP Note 1312947 for further information.
    I hope this information has been helpful for you.
    Best Regards,
    Frank Farinella

  • BAPI_PR_CHANGE, ME053

    Dear All,
    I have created one ALV report and using the information selected here I call BAPI_PR_CHANGE in order to mark for deletion one existing item and to add a second item in the PReq. The material that I want to add has mara-mstae set as locked for acquisition. But the PReq has supplying plant (no vendor) and item category transfer stock. This means the item is not purchased from the vendor but is transferred inside the company - from my point of view the status settled in the material should not determine the message ME  053.
    It is something that I'm missing? Could I skip this error or could I do different settings in OMS4?
    Regards,
    Florina Rau

    Read the KBA  1876210 - Error ME053 in stock transport order
    It explains the causes and workaround of this error message.

  • Bapi_pr_change with blocked field

    Hello,
    I blocked the purchase request when i created it.
    Now I need to open it via the Bapi_pr_change  ,so I filled the following fields:
    <b>Import:NUMBER = my number
    Tables:PRITEM  :PREQ_ITEM=00010 , REQ_BLOCKED =(none),
              PRITEMX:PREQ_ITEM=00010  ,PREQ_ITEMX=X,REQ_BLOCKED =X</b>
    REQ_BLOCKED ---> This field can get '1' for blocking and nothing for non blocking.
    I generated the bapi with commit and i got a return that it has been changed,but when i looked in the ME23N -->nothing ,the same as it was.
    The other fields such as short_text and etc. works well.
    Please let me know the reason for that.(I tried even to block with '1' and nothing,and with the reason (text) via the bapi_pr_change )
    My R/3 ECC6 WITH SAP_APPL SAPKH60007
    Thank you,
    Boaz

    HI
    Bapi_pr_change is used for PR so you go to transaction code ME52n and see the changes you will get.
    You are looking into PO that is whay you are not able to see the changes.
    If you are doing for PO then use    BAPI_PO_CHANGE and proceed and then look into ME23n.
    Regarsd
    sunny

  • How to add Service item in  PR Document using BAPI_PR_CHANGE

    Hi Folks,
    I am using BAPI_PR_CHANGE to change existing purchase requisition document. By using this FM, i am able to add new item in PR document.
    Now my requirement is to add services and limits at item level details.
    But when i saw the parameter list of this FM, i am not able to find any parameter where service details or limits can be passed.
    So does it mean that, its not possible to edit service details at item level of PR by using  FM BAPI_PR_CHANGE?
    Or if yes then how can we do it.
    If No, then what could be the alternative to change the service details of the item.
    Regards
    PG
    Edited by: PG on Aug 30, 2010 6:32 PM

    Hi,
    I just realised that, this question can be asked in specific forum of MM.
    Regards
    PG

  • BAPI_PR_CHANGE : Add line items

    I've read some contradicting posts regarding bapi: BAPI_PR_CHANGE. I was under the impression you could add line items to a requisition using this BAPI? Can it be said for certain it can not be done? The documentation is rather lacking.
    Thanks!
    Enrique Leon

    it's very easy to do this with this BAPI.
    If you have experiences with BAPI_PO_CHANGE you have done this within some minutes.
    Here's some sample-coding. Maybe this will help you:
    LOOP AT it_change_pr INTO wa_change_pr.
        ADD 10 TO lv_pr_counter.
        wa_pritem-preq_item      = lv_pr_counter.                "Item Number of Purchase Requisition
        wa_pritem-material       = wa_change_pr-orig_matnr.  "Materialnumber
        wa_pritem-plant          = lv_plant.                 "Plant
        wa_pritem-pur_group      = lv_pur_group.             "Purchasing Group
        wa_pritem-store_loc      = lv_store_loc.             "Storage Location
        wa_pritem-quantity       = wa_change_pr-menge.       "Purchase Requisition Quantity
        wa_pritem-unit           = wa_change_pr-meins.       "Purchase Requisition Unit of Measure
        wa_pritem-del_datcat_ext = lv_del_datcat.            "Date type (day, week, month, interval)
        wa_pritem-deliv_date     = lv_deliv_date.            "Item Delivery Date
        wa_pritem-fixed_vend     = wa_change_pr-lifnr.       "Fixed Vendor
        CLEAR: temp_matnr.
        CONCATENATE '0000000000' wa_change_pr-matnr INTO temp_matnr.
        SELECT SINGLE * FROM mbew
          WHERE matnr = temp_matnr
          AND   bwkey = wa_change_pr-werks.
        IF sy-subrc = 0.
          wa_pritem-preq_price   = mbew-stprs.                "Price in purchase requisition
          wa_pritem-price_unit   = mbew-peinh.                "Price Unit
        ENDIF.
        wa_pritem-purch_org  = lv_purch_org.                "Purchasing Organization
    **    wa_pritem-po_unit    = wa_change_pr-meins.        "Purchase Order Unit of Measure
        wa_pritem-vend_mat   = wa_change_pr-matnr.          "Material number used by vendor
        wa_pritemx-preq_item      = lv_pr_counter.
        wa_pritemx-preq_itemx     = 'X'.
        wa_pritemx-material       = 'X'.
        wa_pritemx-plant          = 'X'.
        wa_pritemx-store_loc      = 'X'.
        wa_pritemx-pur_group      = 'X'.
        wa_pritemx-quantity       = 'X'.
        wa_pritemx-unit           = 'X'.
        wa_pritemx-del_datcat_ext = 'X'.
        wa_pritemx-deliv_date     = 'X'.
        wa_pritemx-fixed_vend     = 'X'.
        wa_pritemx-preq_price     = 'X'.
        wa_pritemx-price_unit     = 'X'.
        wa_pritemx-purch_org      = 'X'.
        wa_pritemx-vend_mat       = 'X'.
        APPEND wa_pritemx TO it_pritemx.
        APPEND wa_pritem TO it_pritem.
      ENDLOOP.
      CALL FUNCTION 'BAPI_PR_CHANGE'
        EXPORTING
          number                      = lv_banfn
    *   PRHEADER                    =
    *   PRHEADERX                   =
    *   TESTRUN                     =
    * IMPORTING
    *   PRHEADEREXP                 =
    TABLES
         return                      = it_change_return
         pritem                      = it_pritem
         pritemx                     = it_pritemx
    *   PRITEMEXP                   =
    *   PRITEMSOURCE                =
    *   PRACCOUNT                   =
    *   PRACCOUNTPROITSEGMENT       =
    *   PRACCOUNTX                  =
    *   PRADDRDELIVERY              =
    *   PRITEMTEXT                  =
    *   PRHEADERTEXT                =
    *   EXTENSIONIN                 =
    *   EXTENSIONOUT                =
    *   PRVERSION                   =
    *   PRVERSIONX                  =
    *   ALLVERSIONS                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =

  • BAPI_PR_CHANGE, successul message but commit does not actually update

    I am testing in SE37 BAPI_PR_CHANGE.   In the result msg  I get these messages:
    Purchase requisition 10013879 changed
    Instance 10013879 of object type PurchaseRequisition has been changed.
    and in the line item I get a qty update I'm expecting.  I then do a BAPI_TRANSACTION_COMMIT but when I go to look at the PR in the SAP GUI the qty update does not appear.
    Any ideas?  Perhaps, I am missing something in the structure that I should check.
    Thanks

    are you using the TESTRUN parameter.. if so then the bapi runs in a stimulous mode and doesnt really do what its supposed to do.
    [Example|http://sapabapscreenshotsexamples.blogspot.com/2007/11/sap-abap-screenshots-examples.html]
    Re: BAPI change PR version

  • Bapi_pr_change closed

    Hi,
    We are trying to close a PR and delete a PR line item through BAPI_PR_CHANGE. The bapi deletes the line item but does not close a PR.

    HI,
    Try this Fm
    BAPI_REQUISITION_DELETE  -  Delete/close purchase requisition

  • BAPI_PR_CHANGE EXTENSIONIN

    Hi,
    We have some customer fields in include structure CI_EBANDB in EBAN. We use bapi_pr_change to change some other items. how can i use EXTENSIONIN to change customer fields.
    Thanks

    Hi,
    I am also stuck in same issuse . If u got any soln on please post it on SDN.
    Thanks,
    Vikram.

  • BAPI_PR_CHANGE and Source Plant

    Hi,
    Have any one able to Change Source Plant using BAPI_PR_CHANGE.
    Its giving me a error Vendor XXX and supplying plant YYYY incompatible
    I am trying to move a STO from one plant to another, Its working if i change it in ME22N.
    Thanks

    Please check whether the Plant is assigned in vendor mater record in Additional data.
    warm regards
    Ramakrishna.

  • BAPI_PR_CHANGE within user-exit

    Hi friends am using the BAPI_PR_CHANGE within a user-exit while doing transfer posting in MIGO.
    since its within the user-exit i am not able to write commit work or transaction commit . Is ther any other way to commit the BAPI.
    Even once the documents are posted the PR changes are not updated.
    Please suggest a suitable solution for this issues.

    Iam using the EXIT_SAPLMBMB_001. As per my requirement in the exit am doing changes to PR's and updating the same in R/3 and also it should be updated in APO server so am using the particular BAPI. But its not updating the PR changes in r/3 or APO.

  • Bapi_pr_change in services

    Hi experts!
    I have to modify the price for the services in a purchase requisition using the BAPI_PR_CHANGE and I can´t do it!
    For materials, I can do the changes, but not for services.
    Do you have some example about how to fill the values in this bapi?
    Thanks!
    Vir.

    Hi,
    please check first the following notes:
    - OSS note 499627, question 9.                                                                               
    Can service items be created using BAPI_PR_CREATE or changed using                   
    BAPI_PR_CHANGE?                                                                               
    Answer:                                                                               
    Yes. Release 6.04 (Enhancement Package 4) provides new API functions for             
    the object BUS2105 that include this function. In addition the business              
    function LOG_MM_CI_2 or the switch MM_SFWS_SC2 must be active.                                                                               
    See Note 1312947 for further information.   
    Please check if you have applied th enote 1062000.
    Regards,
    Edit

Maybe you are looking for

  • F110 - Payment Run -Advance to Vendors

    Dear Experts, I am Facing an Issue in Payment Run . The case is as below: We have a Vendor whose debit balance exists because advance payments have been made to the said vendor . When I check the Vendor Line item using FBL1N for that particular vendo

  • CONFIG of KE30 report

    Hi, SAP FICO EXPERTS, We have configured the report KE30, and we want a new field to added as SALES GROUPS in it. We created 3 sales groups, and raised sales order using a particular sales grp, and invoiced it. now we want to view the value in KE30 r

  • DD_DOMA_GET not remote enabled but system is 4.7

    Backend system is 4.7 that i try to connect from web dynPro project (portal)..It gives error say that "RFC_ERROR_SYSTEM_FAILURE: The function module "DD_DOMA_GET" not released for 'remote' calls." I have searched forum beceuse of the function is not

  • After fontconfig upgrade, web fonts are ugly...

    They're all thin, blocky and pixilated. http://i.imgur.com/qEgrd.png I don't even know where to start to fix this. I know so little about fonts and how to make them look nice it's embarrassing. Gross. Any help?

  • Tracing SQL statements during an ODBC reverse

    I'm trying to connect to an ODBC source via the Sun JDBC/ODBC bridge driver and am not having a lot of success. I believe most of my issues are with requests for meta data (and based on the ODBC trace file, it appears that ODBC requests made by the b