PO Order Unit is not updating by BAPI_PO_CHANGE

Hi Experts,
While Iu2019m trying to change the PO using BAPI_PO_CHANGE, for few materials only Item quantity(PO quantity-quantity )  is updating but not the pack size( PO Order Unit-orderpr_un)
I want to know is there any indicator or any field to be passed to change  both according to our requirement ?
Waiting for reply.
Thanks & Regards
Biswajit

by myself

Similar Messages

  • PO error in Process-Order Unit PU not convertible into unit lot of req

    Hi ALL,
    SRM 5.0 SP13 ECS
    Service based req with order unit LOT was pushed to SRM . SC got approved in SRM with order unit LOT, PO got approved with order unit LOT and now the PO is in error in process state. I looked up RZ20 to find the message "Order unit PU not covertible into unit Lot of req. We are using material groups and not material masters.
    Any idea what is causing this error? order unit seems to be the same, right though the scenario, It was never tried to change at any point of time in the cycle
    Krishna

    krishna
    update here your findings.it helps others too when they are in trouble.
    Muthu

  • Purchase Order history is not updated with Invoice number

    Hello Experts ,
    Please suggest some inputs/solution for my problem.
    Scenarios is :
    PO --> SO --> Invoice
    I am creating the invoice with the medium EDI , when I click on Save button IDOC is generated with the message " IDoc 'xxxxxxxxxxxxx' was created and forwarded for transmission " and it showing the status as 03 i.e, The IDoc was sent to an R/3 System or an external program via a transactional RFC ...but the problem is if I got to the Purchase Order history Its not updated with the Invoice number.
    What could be the problem , please suggest.

    Hi!
    I'm not sure, in which process you link PO and SO. There are some different ways, which are totally different scenarios - if you need help here, describe more detailed.
    Your invoice is probably only created with reference to SO, so check the invoice itself. In this case also the SO history should include the invoice.
    Regards,
    Christian

  • Periodic Unit Price not update/release to Standard Price

    Dear Gurus,
    We have a problem, when closing period is done the PUP (closing period) not update/relase to Standard price (in future period).  We have checked all the steps during the closing period, and all seems to be right.
    The closing period is not more than 2 period, we closing April 2014.
    I have checked note 666681.
    Maybe Gurus can tell me something that i missed.
    Please help
    Regards,
    Beto

    Hi Szymon,
    So the OSS note saying that PUP from April 2014 cannot update to May 2014, the earliest is in June 2014?
    I tested the same scenario in testing server and it work.  The PUP get update to standard price in period May.
    It just doesn't make sense, the PUP is an average price within April transactions and it needs to update Standard price in May.
    Now it makes me more confuse..
    This is period 4
    This is period 5 (this is what we expecting), PUP period 4 = Standard price period 5
    Can you help me
    Thanks in advance
    Regards,
    Beto

  • Sales order qty is not updated in COPA

    Dear All,
    for Warranty process ; we are using the standard item category - TANN which is working correctly and updates the sales qty in COPA at the time of billing
    and today we have created new Z item category-ZTAA ( it is same as standard item category ) but  this item category is not posted any COPA values at the time of billing and its posted the COPA at the sales order settlement without sales qty values.
    Can you please help me to know the reason for this 2 item category behavior and what can be the missing configuration or setup ? ( pls note i have checked different settings for this both the item categories configuration and the configuration is always same )
    Thanks for your quick feedback
    Regards
    Ramu

    Hi Ajay,
    yes ; i already checked this settings and the sales order does not have any requirement type.
    i think its very strange for me becuase both standard item categories ( without any item type in item categories ) and the behaviour is different ; for your quick reference pls check the below exmaple.
    Sales order - 123
    Item-10 /TANN
    Item-20/ZTAA
    COPA results :
    for item -10 , COPA is posted at the time of billing with correct qty
    for item-20, COPA is posted at the time of sales order settlement without qty.
    BR
    Ramu

  • Sales order change BAPI not updating items Profit center

    Dear ,
    I am facing the problem in using the BAPI for Item 's profit centre  in blank space.
    I write down the below code <but it's not at all updating the profite centre .
    please ccorrect the code if any required'
    TYPES: BEGIN OF file_data ,
           vbeln TYPE vbap-vbeln, " order numner
           posnr TYPE vbap-posnr, " orderitem
           profit_ctr TYPE vbap-prctr, " [profite centre
          END OF file_data.
    DATA: t_data TYPE STANDARD TABLE OF file_data .
    DATA : wa_data LIKE LINE OF t_data.
    DATA: t_data_item TYPE STANDARD TABLE OF file_data .
    DATA : wa_data_item LIKE LINE OF   t_data_item.
    **DATA: t_data_item TYPE file_data OCCURS 0.
    *DATA: return TYPE STANDARD TABLE OF bapiret2.
    *DATA: wa_return LIKE LINE OF return.
    DATA: wait LIKE bapita-wait VALUE 'X'.
    DATA: s_order_header_in LIKE bapisdh1.
    DATA: s_order_header_inx LIKE bapisdh1x.
    DATA: BEGIN OF i_order_item_in OCCURS 0.
            INCLUDE STRUCTURE bapisditm.
    DATA: END OF i_order_item_in.
    DATA: BEGIN OF i_order_item_inx OCCURS 0.
            INCLUDE STRUCTURE bapisditmx.
    DATA: END OF i_order_item_inx.
    DATA: BEGIN OF it_return OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_return.
    ***********************selection
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS : file LIKE rlgrap-filename OBLIGATORY.
    "ctu_mode  TYPE ctu_mode  DEFAULT 'N'.
    SELECTION-SCREEN END OF BLOCK b1.
    *********assign file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
      CLEAR file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = file
        EXCEPTIONS
          OTHERS    = 1.
      DATA:  it_text TYPE truxs_t_text_data .
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_field_seperator    = 'X'
          i_line_header        = 'X'
          i_tab_raw_data       = it_text
          i_filename           = file
        TABLES
          i_tab_converted_data = t_data[] " Your internal table of structure of Excel sheet
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      t_data_item[] =  t_data[].
      DELETE ADJACENT DUPLICATES FROM t_data COMPARING vbeln.
    Header update indicator
      s_order_header_inx-updateflag = 'U'.
    Line items
      REFRESH: i_order_item_in, i_order_item_inx.
      LOOP AT t_data INTO wa_data.
        LOOP AT t_data_item INTO wa_data_item WHERE vbeln = wa_data-vbeln. .
          i_order_item_in-itm_number = wa_data_item-posnr.
          i_order_item_in-profit_ctr = wa_data_item-profit_ctr.
          i_order_item_inx-itm_number = wa_data_item-posnr.
          i_order_item_inx-updateflag = 'U'.
          i_order_item_inx-profit_ctr = 'X'.
          APPEND: i_order_item_in, i_order_item_inx.
        ENDLOOP.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = wa_data-vbeln
          IMPORTING
            output = wa_data-vbeln.
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            salesdocument     = wa_data-vbeln
            order_header_in   = s_order_header_in
            order_header_inx  = s_order_header_inx
            behave_when_error = 'P'
          TABLES
            return            = it_return
            order_item_in     = i_order_item_in
            order_item_inx    = i_order_item_inx.

    i already used same But it's not working
    s_order_header_inx-updateflag = 'U'.
    Line items
      REFRESH: i_order_item_in, i_order_item_inx.
      LOOP AT t_data INTO wa_data.
        LOOP AT t_data_item INTO wa_data_item WHERE vbeln = wa_data-vbeln. .
    BAPISDITM
          i_order_item_in-itm_number = wa_data_item-posnr.
          i_order_item_in-profit_ctr = wa_data_item-profit_ctr.
    BAPISDITMX
          i_order_item_inx-itm_number = wa_data_item-posnr.
          i_order_item_inx-updateflag = 'U'.
          i_order_item_inx-profit_ctr = 'X'.
          APPEND: i_order_item_in, i_order_item_inx.
        ENDLOOP.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = wa_data-vbeln
          IMPORTING
            output = wa_data-vbeln.
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            salesdocument     = wa_data-vbeln
            order_header_in   = s_order_header_in
            order_header_inx  = s_order_header_inx
            behave_when_error = 'P'
          TABLES
            return            = it_return
            order_item_in     = i_order_item_in
            order_item_inx    = i_order_item_inx.

  • Change in Responsible Org Unit does not update Project Correctly

    Hi Gurus
    I set-up a Project in cProjects and Released/Transferred.
    The Project was visible in SAP PS, etc.
    Then I went back into cProjects and modified the Responsible Org Unit to another of our Org Units which has a differing Profit Center.
    When I view this Project in CJ20N. The Project Definition still carries the Original Profit Center, not the new one.
    However when I view all of the WBS Elements these all have the new Profit Center.
    Does anyone know how I can get the Project Definition to also update correctly?
    Many Thanks in advance
    Panduranga

    Hi Virendra
    I'm very new to PS & cProjects as I come from a CRM background.
    How would this substitution be done?
    Thanks
    Panduranga

  • Cancel Transfer Order - Delivery is not updated

    Hello,
    I'm using the FM L_TO_CANCEL to cancel a TO item.
    The problem i'm facing is that in the delivery, the picked quantity does not increase after canceling the TO.
    The TO status shows as completed and canceled
    Hence if I try to create another TO, it says that items are already picked
    It works fine while executing standard tcode LT15.
    Is there any other way to cancel a TO item or a workaround while using L_TO_CANCEL?

    Solved it using a dirty method.
    By debugging, I noticed that the FM L_TO_CANCEL itself sets a lock and then checks  the same lock before dequeuing the item.
    This caused the update on the delivery to fail.
    I was able to see that there was an error in the delivery update at the item level detail display of the TO
    I was then able to find the  error message using transaction LX47.
    LX47 allows the user to rerun the delivery update.
    Debugging it, I found the function module L_RESTART_QUEUE is used.
    Hence, in my code, I did a commit work and dequeue and then called the above function module.

  • Sales order delivery date not update on PO delivery confirmation

    Hi all,
    I have the following issue. When a sales order is created for a material that is to be purchased a purch req is automatically created. Next I create a Po from this Purch req. When I confirm the delivery date to a later date in this po and do this without entering a storage loc in the po, the delivery date in the sales order remains unchanged, which should be adjusted according to the confirmed delivery date in the PO.
    When I do this with a storage location, the date is changed in the sales order.
    Anybody any ideas on what could be the reason for this?
    Thanks,
    Kevin.

    Hi there,
    I thumb rule that you have to follow when posting the thread is, to be clear in what you are asking. Looking at the thread posted, can you make out anything? No spaces, no full stops. How will people understand what your query is? Just read back your question & help us understand what does the query mean.
    From what you have given, you are saying that in material master MRP views, GR processing time is mentioned as 15 days. What after that? Are you asking of the materials are available before that 15 days & you run an availability check is the delivery date going to change? Is that what you are asking?
    If the material is already available on that date, system will confirm the reqested delivery date. If item is not available then system will propose a new confirmed delivery date basing on the availability check. It will not propose a date which is earlier to the requested delivery date. It either confirms the requested delivery date or proposes a confirmed delivery date at a later time.
    For eg when the customer requests delivery on the 25th in the sales order, then if material is available, system will confirm 25th as the delivery date. If material is not available,, then it will check item availability & proposes 28th as confimed delivery date. It will never propose 22nd as delivery date.
    Regards,
    Sivanand

  • From Work Order Functional area not Updating in MM & FI Documents During GI

    Hi All
    In work order functional area is getting updated in additional data tab from functional location. In functional location we have the work center and this work center is assigned to cost center. In this cost center we maintain the functional area & profit center.
    from there it is updating in the work order. But in MM & FI documents the functional area is showing as blank we are facing this issue for only one work order for other work orders the functional area is updating in MM & FI documents.
    Thanks & Regards
    VIshvesh Saodekar
    Edited by: Vishvesh Saodekar on Nov 8, 2010 12:43 PM

    I have posted thread in PLM forum

  • Sales order text is not updating

    Hi All,
      call function 'SD_SALESDOCUMENT_CHANGE'
        exporting
          salesdocument    = salesdocument
          order_header_inx = w_order_header_inx
          simulation       = testrun
          business_object  = 'BUS2032'
          call_from_bapi   = 'X'
        tables
          return           = return
          sales_text       = order_text
          textlines_ex     = text_lines.
      COMMIT WORK.
    I am using above FM for updating Sales order test .I am Passing test in the Prameters      textlines_ex     = text_lines.
    I am Unable to dig what the issue is .Can anyone help me out in this .
    salesdocument  = Sales Document number
    Moderator Message: Even we cant help you, with a question like that. Put more effort into framing your questions.
    Edited by: kishan P on Jan 9, 2011 6:56 PM

    Sounds like a text determination config issue - have you assigned the text in VOTXN?  Have you run the text determination analysis from VA02 in the document?

  • BAPI_PO_CHANGE does not update as desired

    Hi there,
         I used BAPI_PO_CHANGE FM to change the delivery date and stat.delivery date in Purchase Order,
        but its not updating...
    Here is my code..pls help...thanks in advance,
    REPORT  ZSUDHIR_BAPI_PO_SCHDLE.
    PARAMETERS: P_PO  TYPE EKKO-EBELN,
                P_ITM TYPE EKKO-EBELN,
                P_DD  TYPE EKKO-EQ_EINDT.
    DATA: IT_RETURN TYPE STANDARD TABLE OF BAPIRET2,
          WA_RETURN TYPE BAPIRET2,
          lv_flag TYPE flag,
          IT_SCH TYPE STANDARD TABLE OF BAPIMEPOSCHEDULE WITH HEADER LINE,
          IT_SCHX TYPE STANDARD TABLE OF BAPIMEPOSCHEDULX WITH HEADER LINE.
          IT_SCH-PO_ITEM = P_ITM.
          IT_SCH-DELIVERY_DATE = P_DD.
          IT_SCH-STAT_DATE = P_DD.
          IT_SCH-QUANTITY = '10'.
          IT_SCH-SCHED_LINE = '0001'.
          APPEND IT_SCH.
          CLEAR IT_SCH.
          IT_SCHX-PO_ITEM = P_ITM.
          IT_SCHX-PO_ITEMX = 'X'.
          IT_SCHX-DELIVERY_DATE = 'X'.
          IT_SCHX-STAT_DATE = 'X'.
          IT_SCHX-QUANTITY = 'X'.
          IT_SCHX-SCHED_LINE = 'X'.
          APPEND IT_SCHX.
          CLEAR IT_SCHX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        PURCHASEORDER                = P_PO
    *   POHEADER                     =
    *   POHEADERX                    =
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    * IMPORTING
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = IT_RETURN
       POITEM                       = IT_SCH
       POITEMX                      = IT_SCHX
    *   POADDRDELIVERY               =
    * POSCHEDULE                   =
    *  POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   POHISTORY                    =
    *   POHISTORY_TOTALS             =
    *   POCONFIRMATION               =
    LOOP AT IT_RETURN INTO WA_RETURN WHERE TYPE = 'E'.
      WRITE / WA_RETURN-MESSAGE.
      lv_flag = 'x'.
      ENDLOOP.
      IF lv_flag IS INITIAL.
        READ TABLE IT_RETURN INTO WA_RETURN WITH KEY TYPE = 'S'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
        WRITE / WA_RETURN-MESSAGE.
        ENDIF.
    Edited by: Thomas Zloch on May 19, 2011 5:11 PM - please use code tags

    Are you really sure that your IT_SCH has the same fields like POITEM?
    the delivery date and statistical delivery date are located in the schedule tab in ME23N and stored in the schedule table EKET, not in EKPO where the PO item data is stored.
    I think you should assign your IT_SCH to POSCHEDULE

  • Changes in poduction order,routing not updating in product cost estimate

    Dear SAP Gurus,
    i had done mto thru sale order and done some changes in production order,routing,and not updated the standard costestimate  of newly updated can anybody tell me the procedure of updating the routings and production  orders after production order released .
    pls help me the standard cost estimate how to get updated while changing the routing,production order.
    regards,
    muralidhar putta

    Hi Muralidhar,
    Could you please share with us how your problem was resolved. It may help others too.
    Thanks,
    Manjula.S

  • Purchase Order history not updating in my STO

    Dear Experts,
    We are doing stock transfer order internally for FERT and *BOUGHT OUT * items. Now at the time of delivery through VL10B all bought out items are appear in outbouddelivery but FERT item material is not coming automatically in delivery.  System pickes up item category as NLN but if i manually added FERT material at the end system picks up item category as ULN & purchase order history also not updated in STO.
    Also in MD04 system is showing reservation against STO number & the result is i am not able to do delivery because system is showing message as only 0 qty is available for picking
    Can any body helps me in this?
    Thanks
    Trupti

    Hi,
      Define your item category setting for your Delivery..
    Under SPRO>Loge-Exce>Shipping-->Define item category determination in Deliveries.
    Note: You should not enter the line item manually in delivery, thus it will store the item category as DLN  (DLN is for without order Reference) so it wont record any history.
    Regards
    GK..
    Edited by: Gnana Kumar on Oct 26, 2010 1:04 PM

  • Transfer Order Confirmation not updated in Header level (Table: LTAK)

    Hi,
        We are facing a problem, transfer order header is not updated with confirmation, but TO items are confirmed and resulting these transfer order to display in RF monitor (LRF1 and LRF2 transactions).
    And the other issue is, we are seeing some transfer orders created without item data (in LTAP table) and unable to confirm these TOs since Item data is not available, hence TO header is not updated with confirmation and resulting these TOs to display in LRF1 and LRF2 report.
    I have cleared some transfer orders by updating the confirmation field in LTAK table through debugging. But we see the issue is ongoing and would like to have permanent solution.
    It will be a great help if anyone have solution to these issues.
    Thanks & Regards,
    Nagarjun

    Hi Nagarjun,
    do you have any Z code in-between ?  Did you check OSS notes ?  Did you apply all patches to your system ?
    What you are describing is something usual when Z programs were developed, you should provide more details for analysis.
    Many thanks,
    Enrico

Maybe you are looking for

  • Getting new Mac for Aperture and have a question...

    I totally realize that this is a personal preference with no "wrong" way to do it. However, I would appreciate some thoughts so I can form a better idea of how I will set up an Aperture workflow that will work for me for a long time and how to config

  • Problems exporting a pdf from indd book panel

    I have an indd book set up and when I try to export the book the file stops halway through. Thought it was getting hung up on some images, so replaced those. Document got hung up at another point after that. If I create the book in 2 sections the pdf

  • JClient 3-tier questions

    How can I develop JClient which uses middle-tier on AS? I've created Application Modules from "Creating Swing Clients for Business Components Tutorial". Added Business Components Session EJB deployment profile. Added application modules as Session Fa

  • Is there a way to get your backup password or reset it

    Im pretty sure im entering down my password down maybe i changed it but my backup password isnt going through!

  • C2960 Web Catalyst Device Manager switch view shows "Unsupported Device"

    Hi All, I`ve setup many C2960 switches over the years but this one has me stumped. I`ve configured a brand-new out of the box Cisco C2960+24pc-l using the same procedure used on our other switches but when accessing the Web GUI the view that should s