Error in BAPI_REQUISITION_CHANGE

Hi All,
I have encountered the following when I am trying to change the PR using the BAPI_REQUISITION_CHANGE.
I have entered all the required data in the old and new items. When i executed it, it gave an error 'Please enter valid release date'.
I have entered the valid date only. Anyway, I have put the date properly in both old and new items and executed it again. Now, the error is, 'old data does not correspond to the database data'.
I am facing this problem only for one PR.
Did anyone faced this kind of error?
Please suggest.
Regards,
Adapala M.

hi
try this BAPI_PR_CHANGE and after this BAPI add this function call:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
hope this helps
regards
Aakash Banga

Similar Messages

  • Error Message from BAPI_REQUISITION_CHANGE

    Hi Guys.
    I am getting an error message  Sum of quantities >2< larger than total quantity.I saw some related threads from this forum.But not conclusive.
    This error is from
            CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
              EXPORTING
                number                = prno
              TABLES
                requisition_items_old    = i_bapieban_old
                requisition_items_new = i_bapieban_new
                return                           = i_bapireturn.
    The Quantity in both i_bapieban_old and in i_bapieban_new is 1.
    The PR has only one quantity.
    I would like to know why this error arises.
    Thanks in advance.

    CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL'
        EXPORTING
          number            = prno
        TABLES
          requisition_items = i_bapieban
          return            = i_bapireturn.        
    READ TABLE i_bapieban WITH KEY preq_no   =  prno
                                         preq_item =  itab-bnfpo.
          IF sy-subrc = 0.
            MOVE-CORRESPONDING i_bapieban TO i_bapieban_old.
            MOVE-CORRESPONDING i_bapieban TO i_bapieban_new.
            i_bapieban_new-quantity =  itab-clqty.
            i_bapieban_new-short_text =  itab-txz01.
            APPEND i_bapieban_old.
            APPEND i_bapieban_new.
            CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
              EXPORTING
                number                = prno
              TABLES
                requisition_items_old = i_bapieban_old
                requisition_items_new = i_bapieban_new
                return                = i_bapireturn.

  • Error message in BAPI_REQUISITION_CHANGE

    Hi  gurus .
    I've got an error message :
    Runtime Errors         CALL_FUNCTION_UC_STRUCT
    Exception              CX_SY_DYN_CALL_ILLEGAL_TYPE
      The reason for the exception is:
      In the function "BAPI_REQUISITION_CHANGE", the STRUCTURE parameter
       "REQUISITION_ITEMS_NEW" is typed in such a way
      that only actual parameters are allowed, which are compatible in Uni
       with respect to the fragment view. However, the specified actual
      parameter " " has an incompatible fragment view.
    Please , look at my code below . What is my problem ?
                 I don't see any error in data definition .
    REPORT  Z_CHANGE_REQ.
    DATA  : ZREQ TYPE BAPIEBAN-PREQ_NO VALUE '1000073060'  ,
            ZITEMO_TAB TYPE TABLE OF BAPIEBAN WITH HEADER LINE ,
            ZITEMN_TAB TYPE STANDARD TABLE OF BAPIEBAN ,
            LZITEMN_TAB TYPE BAPIEBAN ,
            ZRETURN TYPE TABLE OF BAPIRETURN WITH HEADER LINE .
    CLEAR  : ZITEMO_TAB[]  , ZITEMN_TAB[]  , ZRETURN[] .
    CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL'
      EXPORTING
        NUMBER                               = ZREQ
      TABLES
        REQUISITION_ITEMS                    =   ZITEMO_TAB .
    READ TABLE ZITEMO_TAB INDEX 1 .
    CHECK SY-SUBRC = 0 .
    LOOP AT ZITEMO_TAB .
        MOVE-CORRESPONDING ZITEMO_TAB TO LZITEMN_TAB .
        LZITEMN_TAB-C_AMT_BAPI = LZITEMN_TAB-C_AMT_BAPI  * '0.95' .
        APPEND LZITEMN_TAB TO ZITEMN_TAB.
    ENDLOOP .
    CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
      EXPORTING
        NUMBER                        = ZREQ
      TABLES
        REQUISITION_ITEMS_OLD         = ZITEMO_TAB
        REQUISITION_ITEMS_NEW         = ZITEMN_TAB
        RETURN                        = ZRETURN .
    READ TABLE ZRETURN INDEX 1 .
    Regards . Helena

    you are wrong with the type of  "ZITEMO_TAB  and zitemn_tab"
    it's should be typed of  bapiebanv , not bapieban.
    pls check.
    tks.

  • BAPI_REQUISITION_CHANGE error message

    Hi.
    I'm trying insert a Purchase Requisition Item - and the Accounts related - using the BAPI_REQUISITION_CHANGE.
    The problem is that I'm getting this error - translating the message from portuguese to english:
    "Item 00020 doesn't exist and can't be created"
    Has anybody already faced this error?
    Thanks in advance.
    Tiago.

    By debugging the BAPI I've noticed that it doesn't regard new Purchase Requisition Items.
    I think to be necessary to use another BAPI.
    Does anyone know any BAPI for that purpose?
    Thanks in advance.
    Tiago.
    Message was edited by:
            Tiago Santos

  • Error while using BAPI_REQUISITION_CHANGE

    Hello All,
    I am using the bapi BAPI_REQUISITION_CHANGE, to change the quantity for the PR number.
    Currently I am passing the following details:-
    PR number in importing parameters
    PR line item,
    Storage Location,
    Material Group,
    Quantity, and
    UOM
    both in tables REQUISITION_ITEMS_OLD and  REQUISITION_ITEMS_NEW
    But I have changed the quantity field value.
    When I execute it gives a message in table RETURN:
    Data in Data in Data in REQUISITION_ITEM_OLD for item 00001 does not correspond to current database status
    Am I missing some of the parameter values that needs to passed as input...??
    Please help..!!
    Thanks & Regards,
    Tarun Gambhir

    Hi Tarun,
                 Try with the foloowing code.
    data:  lt_item_old TYPE STANDARD TABLE OF bapiebanv,
             ls_item_old TYPE bapiebanv,
             lt_item_new TYPE STANDARD TABLE OF bapiebanv,
             ls_item_new TYPE bapiebanv.
    data: iebantx_new LIKE bapiebantx OCCURS 0 WITH HEADER LINE,
            iebantx_temp LIKE bapiebantx OCCURS 0 WITH HEADER LINE.
    DATA:   lt_bapi_return TYPE STANDARD TABLE OF bapireturn.
    CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
              EXPORTING
                number                = p_banfn
              TABLES
                requisition_items_old = lt_item_old
                requisition_items_new = lt_item_new
                requisition_text_old  = iebantx_temp
                requisition_text_new  = iebantx_new
                return                = lt_bapi_return.
    U have to pass the above fields.
    Thanks,
    Sreekala.

  • How to capture an error while creating a purchase requisition

    Hello All,
    I append 50 line items while creating a PR using BAPI_REQUISITION_CREATE and I get an error in RETURN.
    So can I capture the line item which exactly has that error.
    I mean to say how to figure out the line item with error, if the BAPI gives an error.
    Please suggest.
    Thanks & Regards,
    Tarun Gambhir

    I could not find TEST_RUN option in these bapis
    Roundway will be
    1. Use BAPI_REQUISTION_CREATE with single line item  and create PR then take the requisiton number
    2. Use ME_UPDATE_REQUISITION. and add line by line into same PR (Within loop)
    BAPI_REQUISITION_CHANGE can only be possible to edit existing line and you cannot able to add new lines,
    a®s
    Edited by: a®s on Jul 29, 2009 11:13 AM

  • Error in Bapi : Change Purchase Requisition

    Dear All,
    We have requirement where we need to update the Purchase Requisition Quanity.
    For this purpose, I am using Bapi  '/AFS/CHANGE_AFS_PR_DATA'.
    In this I want to change Sheduled Qty. (AFS Grid Qty.), but I m getting error like
    "Line item 0010 : different quantities in item  and schedule line". (Sy-subrc = 3)
    Can any one help me out with this.
    Thanks in advance.
    Regards ,
    Vishal.

    Hi,
    Refer:
    * BAPI to change the PR details
        CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
          EXPORTING
            number                = v_banfn            "<--PR Number
          TABLES
            requisition_items_old = it_old_detail      "<--pass in old PR details
            requisition_items_new = it_new_detail      "<--pass in new PR details
            return                = it_return_change.  "<--return table
    *   "read for error message while changing details for PR
        READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
        IF sy-subrc = 0.
          "check for ERROR
        ENDIF.
    Hope this helps you.
    Regards,
    Tarun

  • Alternative for BAPI_REQUISITION_CHANGE, to run this in update process.

    Hi,
         I'm using BAPI_REQUISITION_CHANGE, to change a purchase requisition Qty related to a purchase order. This Bapi is used in a report program which inturn is triggered by an output type, on Purchase Order creation.
    Now, when this BAPI is executed, it ends up in dump saying "Invalid COMMIT WORK in an update function module".
    The search criterion it gave was ..
    "COMMIT_IN_POSTING" C
    "SAPLBAPT" or "LBAPTU05"
    "TRANSACTION_END"
    And the error analysis as
    Calling a COMMIT WORK in an update process is not allowed
    because the function modules triggered in a Logical Unit
    of Work cannot then be processed correctly.
    This clearly shows that commit is being done inside the BAPI. Is there any other way that I can update Purchase Requisition Qty?
    Thanks for your time on this.
    Regards,
    Srikanth Peri

    Hi,
       This issue is now resolved. I have found BAPI_PR_CHANGE and tried using it. It works perfectly in update mode.
    Thanks and apologies for your time on this.
    Regards,
    Srikanth Peri

  • HELP!!!   BAPI_REQUISITION_CHANGE  and ME52N change!!!!

    There is a PR needs to be updated.
    I can update it with ME23n.
    but when i use BAPI_REQUISITION_CHANGE to update.
    it shows error as : Create account 5401xxxx  for YYY/MM/DD as a cost element in control area XXX.
    SO I maintain the cost element of account by FS00. it success.
    My question is why I need to maintain the cost element when i execute BAPI_REQUISITION_CHANGE  but ME23n need not.

    Hi
    In the new version they have changed certain BAPI's for which you need to maintain certain fields constant(as required), in case of BAPI_REQUISITION_CHANGE  the cost element has to be maintained.
    These are the other few where you have to maintain certain things constant
    Exit Name Description
    LMR1M001 User exits in Logistics Invoice Verification
    LMR1M002 Account grouping for GR/IR account maintenance
    LMR1M003 Number assignment in Logistics Invoice Verification
    LMR1M004 Logistics Invoice Verification: item text for follow-on docs
    LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006 Logistics Invoice Verification: Process XML Invoice
    MRMH0001 Logistics Invoice Verification: ERS procedure
    MRMH0002 Logistics Invoice Verification: EDI inbound
    MRMH0003 Logistics Invoice Verification: Revaluation/RAP
    MRMN0001 Message output and creation: Logistics Invoice Verification
    Possible useful BAPIs:
    BAPI_GOODSMVT_CREATE
    BAPI_GOODSMVT_RELEASE
    BAPI_INCOMINGINVOICE_CREATE
    BAPI_INCOMINGINVOICE_RELEASE
    BAPI_PO_CHANGE
    BAPI_PO_CREATE1
    BAPI_REQUISITION_CHANGE
    BAPI_MATERIAL_SAVEDATA
    BTE:
    MRM_PRELIMINARY_INVOICE
    Reward if useul.
    Regards
    Divya

  • BAPI_REQUISITION_CHANGE

    Hii All,
    We are using this bapi_requisition_change
    here we are trying to change a multiple account assignment based on quantity to single account assignment
    we are getting this error "With multiple acct. assignment, enter distribution indicator"
    we have checked that distrib remains blank but still shows this error.
    Regards
    Hiren K.Chitalia

    Hiren,
    The error message is right.
    If you doing a multiple account assignment then you should specify whether you are doing that on a % basis or on a quantity basis.
    You cannot leave that blank.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • BAPI_REQUISITION_CHANGE  please suggest the mandatory  fields.

    I am using the Bapi_requisition_change  in se 37 .
    i am inputting the following parameters
    NUMBER                          10032908
      REQUISITION_ITEMS_OLD
    REQUISITION_ITEMS_NEW
    REQUISITION_ACCOUNT_OLD
    REQUISITION_ACCOUNT_NEW.
    but following error is coming while executing the fs.
    Data in REQUISITION_ITEM_OLD for item 00010 does not correspond to current database status
    and also please suggest the mandatory fields for this bapi

    Shashi,
    Try this:
    report z_po_req_create.
    DATA : T_REQUISITION_ITEMS LIKE BAPIEBANC OCCURS 0 WITH HEADER LINE,
    T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    DATA : E_NUMBER LIKE BAPIEBANC-PREQ_NO.
    T_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
    T_REQUISITION_ITEMS-DEL_DATCAT = '1'.
    T_REQUISITION_ITEMS-DELIV_DATE = '20020626'.
    T_REQUISITION_ITEMS-PLANT = 'P1'.
    T_REQUISITION_ITEMS-STORE_LOC = '01'.
    T_REQUISITION_ITEMS-PUR_GROUP = 'P01'.
    T_REQUISITION_ITEMS-MAT_GRP = '01'.
    T_REQUISITION_ITEMS-PREQ_ITEM = 1.
    T_REQUISITION_ITEMS-MATERIAL = '1MAT1'.
    T_REQUISITION_ITEMS-QUANTITY = 10.
    T_REQUISITION_ITEMS-PREQ_NAME = '123456'.
    T_REQUISITION_ITEMS-PURCH_ORG = '1000'.
    T_REQUISITION_ITEMS-ACCTASSCAT = 'U' .
    T_REQUISITION_ITEMS-VEND_MAT = 'G'.
    APPEND T_REQUISITION_ITEMS.
    CALL FUNCTION 'BAPI_REQUISITION_CREATE'
    EXPORTING
    SKIP_ITEMS_WITH_ERROR =
    IMPORTING
    NUMBER = E_NUMBER
    TABLES
    REQUISITION_ITEMS = T_REQUISITION_ITEMS
    REQUISITION_ACCOUNT_ASSIGNMENT = T_REQ_ACCOUNT_ASSIGNMENT
    REQUISITION_ITEM_TEXT =
    REQUISITION_LIMITS =
    REQUISITION_CONTRACT_LIMITS =
    REQUISITION_SERVICES =
    REQUISITION_SRV_ACCASS_VALUES =
    RETURN = T_RETURN
    REQUISITION_SERVICES_TEXT =
    EXTENSIONIN =
    REQUISITION_ADDRDELIVERY =
    IF NOT E_NUMBER IS INITIAL .
    WRITE:/ 'REQ NO:' , E_NUMBER , 'CREATED'.
    ELSE.
    LOOP AT T_RETURN.
    WRITE T_RETURN-MESSAGE.
    ENDLOOP.
    ENDIF.
    Reddy

  • AFS BAPI_REQUISITION_CHANGE

    Hi,
    In AFS 6.3
    I am using the Bapi BAPI_REQUISITION_CHANGE to change the quantity of the PR item. The input for table REQUISITION_ITEMS_OLD is taken from the standard Bapi BAPI_REQUISITION_GETDETAIL. Hence there shld not be any issues with the input data. Another input table REQUISITION_ITEMS_NEW is also populated in the same manner with the quantity changed. It gives the following error.
    Error Code 8W126: PO item 00010: different quantities in item and schedule line.
    Regards,
    Azhar

    I dont know if is the BAPI_REQUISITION_CHANGE that it have the problem because when I try to change some purchase requisition that not have the field
    "Supplying plant (xban-reswk = space)" the function run ok.
    I did a debug and I found that the BAPI try to insert register in the table J_3ABSDSI if the field " if xban-reswk NE space " and this register already are in this table, that is the error but i dont know if that is for an error of standard program or because that is the funtional process.
    Another thing is that for the transaction ME52N I be able to do everithing ok
    please help me with that
    Thank you Naren

  • Error in BAPI  'BAPI_PPMSRVAPS_SAVEMULTI_30A'  for PPM data change

    Dear All,
    I have a assignment to upload variable cost  against Plan number for a particular product and location in PPM master data.
    I have used a bapi 'BAPI_PPMSRVAPS_SAVEMULTI_30A'  to update cost in SCM 5.0 version.It works fine,but if i use same bapi in SCM 4.0 it doesn't work and throw following error:
    1.Plan number is already exit.
    2.Plan couldn't found.
    but all entries are maintained in master data leaving cost that i have
    to upload.
    I have to update cost only in SCM 4.0.
    Please help.
    Thanks
    Mohit Khandelwal

    Hi,
    Refer:
    * BAPI to change the PR details
        CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
          EXPORTING
            number                = v_banfn            "<--PR Number
          TABLES
            requisition_items_old = it_old_detail      "<--pass in old PR details
            requisition_items_new = it_new_detail      "<--pass in new PR details
            return                = it_return_change.  "<--return table
    *   "read for error message while changing details for PR
        READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
        IF sy-subrc = 0.
          "check for ERROR
        ENDIF.
    Hope this helps you.
    Regards,
    Tarun

  • Error in starting Adobe Bridge in Photoshop CS2

    I've just installed Photoshop CS2, however upon opening Adobe Bridge this error message appears " The application has failed to start because libagluc28.dll was not found. Reinstalling to application may fix the problem"
    I have reinstalled and click repair but to no avail
    I followed Adobe Support Knowledgebase solution and run CMD and this appears:
    c:Documents and Settings/Jesus M Ferraris>
    then i entered the command
    cacls c:\windows\installer /T /E /C /G administrators:F
    but an error message appears - 'cacls' is not recognized as an internal or external command, operable program or bathc file
    I also entered the next command
    cacls "c:\documents and setting\all users" /Y /E /C /G administrators:F
    still the same error as above appears, Please help, have I miss something or was my procedure correct...
    P4, 512ram, WXP 80gHD

    Very useful.
    Good Luck.
    My
    Si
    tes

  • Windows Vista: Ipod Error Message, no longer read by PCs

    Hello,
    I have a 5th generation black ipod video with 30GB of memory.
    The other day I hooked it up to my laptop (Toshiba, 4 months old) that it's been functioning on with no problems whatsoever. This weird error message flashed twice about it not being able to sync because of some software problem.
    Eversince then, the only thing I can charge my ipod on is the family treadmill in the basement (~_~) as no other computer in the house recognizes it. I can't even charge it through the wall sockets, either.
    I have changed the ipod cord, still no luck. I've also reset the device about 3 or 4 times and uninstalled, restarted the laptop then reinstalled itunes. I would like to reset it back to factory settings but that's impossible as computers/laptops don't pick it up. I live very far from a Mac store...
    What's a girl to do? I can't live without my Busta Rhymes and Wu-Tang Clan!
    Any advice would be greatly appreciated! Thanks!

    you have to update Vista go to this site and up-date http://windowsupdate.microsoft.com

Maybe you are looking for

  • Import phonebook from E50 to 3120 Classic

    Dear fellows, I've just exchanged from E50 to 3120 Classic phone. Before returning E50 I backed up my phonebook in my 1Gb memory card, and each contact appeared as a vcf file. Then, I put the memory card into my 3120, and the files are there, but 312

  • A particular song crashes at start-up.

    Hi All, this has never happened before. I have one particular song that won't load at all, Logic crashes right away. I have no idea why, I ran Disk Warrior on all my HD's but it didn't help at all. anyone know how to remedy this?

  • Many rows in DBA_UNDO_EXTENTS

    Hi, in my DBA_UNDO_EXTENTS I have many and many rows with status = UNEXPIRED I'm reading these link: http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm and Oracle® Database 2 Day DBA but i don't know how i can delete these row. I

  • Display color setting stuck at "Lowest (4 bit)"

    I'm experiencing a problem that so far I haven't been able to resolve. I am running Windows XP Home Edition, MSI Graphis Card G3TI200 Pro, Sound Blaster Audigy MP3+, 512 MB DDR RAM, 80 GB HD with plenty of room. My system was running just fine but I

  • Odd white blocks in some photos

    Hi- I've noticed a few pictures in my catalog now show white areas with slanted red or green lines - like parts of the image are corrupt or missing.  If I export to jpg it carries this corruption with the picture. However, this is not the case when t