BAPI_OUTB_DELIVERY_CONFIRM_DEC problem in change quantity again?

Dear all,
I used BAPI_OUTB_DELIVERY_CONFIRM_DEC to PGI . And I also want to change the delivered quantity.
But the bapi did not work . What's the problem?
DATA: BAPI_Z05DOGI_DELIVERY LIKE BAPIOBDLVHDRCON-DELIV_NUMB ,
BAPI_Z05DOGI_HEADER_DATA LIKE BAPIOBDLVHDRCON OCCURS 0 WITH HEADER LINE ,
BAPI_Z05DOGI_HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCON OCCURS 0 WITH HEADER LINE,
BAPI_Z05DOGI_ITEM_DATA LIKE BAPIOBDLVITEMCON OCCURS 0 WITH HEADER LINE,
BAPI_Z05DOGI_ITEM_CONTROL LIKE BAPIOBDLVITEMCTRLCON OCCURS 0 WITH HEADER LINE ,
BAPI_Z05DOGI_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE .
CLEAR: BAPI_Z05DOGI_DELIVERY , BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA ,BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
REFRESH: BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA , BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
BAPI_Z05DOGI_DELIVERY = ZMM_WB1-ISSUE .
BAPI_Z05DOGI_HEADER_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
APPEND BAPI_Z05DOGI_HEADER_DATA.
BAPI_Z05DOGI_HEADER_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
BAPI_Z05DOGI_HEADER_CONTROL-POST_GI_FLG = 'X'.
APPEND BAPI_Z05DOGI_HEADER_CONTROL.
BAPI_Z05DOGI_ITEM_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
BAPI_Z05DOGI_ITEM_DATA-DELIV_ITEM = 10.
BAPI_Z05DOGI_ITEM_DATA-DLV_QTY = XTAB-LFIMG.
BAPI_Z05DOGI_ITEM_DATA-SALES_UNIT = XTAB-MEINS.
BAPI_Z05DOGI_ITEM_DATA-DLV_QTY_IMUNIT = XTAB-LFIMG.
APPEND BAPI_Z05DOGI_ITEM_DATA.
BAPI_Z05DOGI_ITEM_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
BAPI_Z05DOGI_ITEM_CONTROL-DELIV_ITEM = 10.
BAPI_Z05DOGI_ITEM_CONTROL-CHG_DELQTY = 'X'.
APPEND BAPI_Z05DOGI_ITEM_CONTROL.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
EXPORTING
DELIVERY = BAPI_Z05DOGI_DELIVERY
HEADER_DATA = BAPI_Z05DOGI_HEADER_DATA
HEADER_CONTROL = BAPI_Z05DOGI_HEADER_CONTROL
TABLES
ITEM_DATA = BAPI_Z05DOGI_ITEM_DATA
ITEM_CONTROL = BAPI_Z05DOGI_ITEM_CONTROL
RETURN = BAPI_Z05DOGI_RETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = BAPI_Z05DOGI_RETURN.
Can anybody help me ? Thanks very much indeed.
The error message is :
I   |VU                  |014   |                                         <
E   |VU                  |010   |                                         <
E   |VL                  |605   |                                         <
E   |VU                  |010   |                                         <
Thanks and Best Regards.

I have a mistake. Please see Topic "New! BAPI_OUTB_DELIVERY_CONFIRM_DEC problem in change quantity again?
".  Thanks, all.

Similar Messages

  • I have a  problem while changing quantity value in VA01

    Hi,
                       I am written my conditions in User exit save_document_prepare
    and in that I have given custom error message. After the error I have to correct the
    quantity value and then save it.
    But when I am trying to change after error mesasage it gives an Abort message
    "Item xxxx doesnot exist."
    Here is my code pls help me regarding this
    DATA : FLAG(2),
           FCODE LIKE SY-UCOMM,
    FCODE = SY-UCOMM.
    IF FLAG <> 'X'.
      IF SY-TCODE = 'VA01'.
        IF SY-UCOMM = 'SICH' OR SY-UCOMM = 'OPT1'.
          DATA: BEGIN OF T_VBAK OCCURS 0,
                        VBELN LIKE VBAK-VBELN,
                        VGBEL LIKE VBAK-VGBEL,
                        AUART LIKE VBAK-AUART,
                        NETWR LIKE VBAK-NETWR,
                       END OF T_VBAK.
          DATA : BEGIN OF T_VBAP OCCURS 0,
                         VBELN LIKE VBAP-VBELN,
                         POSNR LIKE VBAP-POSNR,
                         ZMENG LIKE VBAP-ZMENG,
                         KWMENG LIKE VBAP-KWMENG,
                 END OF T_VBAP.
          DATA : BEGIN OF I_VBUK OCCURS 0,
                   VBELN TYPE VBUK-VBELN,
                   RFGSK TYPE VBUK-RFGSK,
                 END OF I_VBUK.
          DATA : T_VBAK_RE LIKE T_VBAK OCCURS 0 WITH HEADER LINE,
                  WA_VBAK TYPE VBAK.
          DATA : I_NETWR1 TYPE VBAK-NETWR,
                 I_NETWR2 TYPE VBAK-NETWR,
                 I_NETWR3 TYPE VBAK-NETWR.
          DATA : L_VBELN TYPE VBAK-VBELN.
          SELECT VBELN VGBEL AUART NETWR
             FROM  VBAK
                   INTO TABLE T_VBAK.
          IF NOT T_VBAK[] IS INITIAL.
            SELECT VBELN RFGSK
                   FROM VBUK
                   INTO TABLE I_VBUK
                   FOR ALL ENTRIES IN T_VBAK
                   WHERE VBELN = T_VBAK-VBELN.
          ENDIF.
          SORT T_VBAK BY VBELN DESCENDING.
          IF NOT T_VBAK[]   IS INITIAL.
            SELECT VBELN POSNR ZMENG KWMENG
            FROM VBAP
            INTO TABLE T_VBAP
            FOR ALL ENTRIES IN T_VBAK
             WHERE VBELN = T_VBAK-VBELN.
          ENDIF.
          LOOP AT T_VBAK where VGBEL = XVBAK-VGBEL.
            IF T_VBAK-AUART = 'TA'.
              I_NETWR2 = T_VBAK-NETWR  + I_NETWR2.
            ENDIF.
          ENDLOOP.
          LOOP AT T_VBAK WHERE VBELN = XVBAK-VGBEL.
            IF T_VBAK-AUART = 'TISC'.
              I_NETWR1 = T_VBAK-NETWR.
            ENDIF.
          ENDLOOP.
          I_NETWR3 = I_NETWR1 - I_NETWR2.
          WA_VBAK = XVBAK.
       READ TABLE T_VBAP WITH KEY VBELN = VBAK-VBELN.
       IF SY-SUBRC = 0.
          LOOP AT XVBAP.
    READ TABLE XVBAP WITH KEY VBELN = SPACE.
            IF SY-SUBRC = 0.
              MOVE T_VBAK-VBELN TO XVBAP-VBELN.
              MODIFY XVBAP.
            ENDIF.
          ENDLOOP.
          IF FLAG <> 'X'.
            IF   WA_VBAK-AUART <> 'RE'.
              IF WA_VBAK-NETWR > I_NETWR3.
              MESSAGE E000(ZMS1) WITH I_NETWR3.
                      ENDIF.
                       ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
       ENDIF.
      ENDIF.
    ENDIF.
                                                                  Thanks in Advance
                                                                          Ravi

    Hi,
    This error comes when we use the work area taht is already defined in the program and that u have not created in this exit.
    i think in this exit, u have created ur own internal table and workarea for all tables except XVBAP.
    just create WA like
    <b>data : xvbap type xvbap.</b>
    LOOP AT XVBAP.
    READ TABLE XVBAP WITH KEY VBELN = SPACE.
    IF SY-SUBRC = 0.
    MOVE T_VBAK-VBELN TO XVBAP-VBELN.
    MODIFY XVBAP.
    ENDIF.
    ENDLOOP.
    IF FLAG <> 'X'.
    i had faced the same problem and it got solved in this way.
    Hope it helps.
    Regards,
    Sonika

  • Problem while changing Business Area in Cost Center Master Data

    I am having a problem while changing the Business area in cost center master data, the system does not allow to change the business area due to the following reasons;
    1.  The transactional data already exists for that cost center
    2.  The desired date required to be changed, falls between analysis period 01.01.2000 to 31.12.2999
    Can anyone help me in order to reslove this issue
    Thanking in anticipation
    Edited by: Arshad  Iqbal on May 24, 2010 2:10 PM

    Dear Dejan !!
    Thanks a lot for resolving my problem actaully i have tested the scenario in Testing Server by changing the fiscal year and the system allowed to change the business area before any transactional data posted.
    Thanks Once Again
    Regards
    Ch. Arshad Iqbal

  • Problem with changing Label in Bridge CS3 and CS6

    Hi there,
    I am having some problem with changing Label in Bridge CS3 and CS6 in windows.
    1. In Bridge CS3 (Windows XP), most of the time with most of the files, there is no problem. But I found that in some files, the Label does not get changed. I usually change Label by right clicking on the picture, then Label and select any Label. When I do so in those files, nothing happens. But when I rename the file by changing or adding just a single character, then it works. And if I again rename to original name, it still works. But without renaming the Label does not change. Again this does not happen with all pictures, but occationally with some. We usually receive pictures from different clients for editing purpose.
    2. In Bridge CS6 (Windows 7), if you create lot of Path using Pen tool in Photoshop for the purpose of removing background, you save the file, close, and change Label in Bridge, again open the file in Photoshop, you see no Path in the Path Pallette. So that means, changing Label works, but it removes the Path from the file. But if there is small amount of path, then no prboblem. But if there is lot of path, like you need to create for a necklace to remove background, then the problem arises.
    I am using Bridge for a purpose where it is very helpful so I really need to use Bridge, and Labeling feature is the most important to me, but after feaguring out this problem, I am really tensed as to whether or not I will find a solution to this. So any help, guidance will really be appreciated.
    Thanks very much in advance for any solution.
    Best regards

    I have re-checked the issue and I found that the problem is with JPG file.
    I wasn't even aware you could save a path to a jpeg file (always use PSD because of wanting to keep the Alpha Channel, jpeg only can contain 1 layer and no alpha channels and/or transparency).
    However I tried it on a file with a simple path and one with a complex path. It seems indeed you have found a bug. The simple path is no problem but the more complex path is indeed disappearing.
    It is not only label but also rate or adding IPTC in the description field. The moment metadata is saved to this jpeg file and reopened the earlier present work path of a more complex path is gone.
    Despite the fact that to my opinion a jpeg is not the most suitable file format for saving a work path this should not happen. If a work path is saved to a jpeg then it should be kept saved after just altering metadata in Bridge.
    It still is the same behavior in Bridge CC because that is what I use. Don't know when it started but it still needs to be repaired
    Here is the link for filing a problem or bug:
    http://feedback.photoshop.com/photoshop_family/

  • Stuck "calculating changes."  Again.

    This is driving me crazy. It's the only problem I am having with my brand new Intel core i3 iMac. Time Machine chugs along smoothly for anywhere from a day to a week, then gets stuck seemingly forever "calculating changes." It has been calculating changes for four hours now. All the system log in Console shows is:
    Apr 3 06:44:36 macintosh-2 com.apple.backupd[5839]: Starting standard backup
    Apr 3 06:44:36 macintosh-2 com.apple.backupd[5839]: Backing up to: /Volumes/G-DRIVE Back-Up/Backups.backupdb
    Last successful backup was an hour before this. The computer was not even used between the end of the previous successful backup and the beginning of the stuck backup. So I have no idea what changed.
    If I try to stop the backup, the computer will freeze (beachball of death) so that only a hard restart will work. If I try to restart without touching the backup the computer will freeze (beachball again) and again, only a hard restart will work. If I leave it alone, the beachball will go for literally hours until I do the reboot. I've restarted this machine more in the last three weeks than I did on the previous machine in the past three years. I've done everything in Pondini's excellent troubleshooting guide. The only thing that seems to work at all is trashing the TM Preferences. Then I'll go along just fine for anywhere from a day to a week before the trouble starts again. I can't pinpoint any particular software or files, and have spent hours trying to do so.
    I'm at my wit's end and really don't want to harm the computer with all the hard restarts. I searched the forum but couldn't find anybody with this exact situation. Any thoughts from y'all would be greatly, greatly appreciated. -- Tom

    OK. Did everything like Linc said. At the end of verifying/repairing the TM drive in Safe Mode (there was nothing found wrong) the external drive went away. I got an error message stating that I had ejected the drive improperly. I did no such thing; the computer went immediately from the green "appears to be OK" to the "improperly ejected" window. Could not get the drive to appear on the desktop no matter what to try the backup in Safe Mode.
    Finally restarted the computer in my usual environment. No drive on the desktop. This time turning it off, reconnecting the cable, and turning the drive back on worked and it reappeared. Reconfigured Time Machine using the backup drive and ran a successful backup.
    Now we'll have to wait and see if it continues to back up, or if I hit the "calculating changes" snag again, in a day or six.

  • SSRS 2012, SQL Server 2012. Problem with changing database

    Hi all!
    I have a problem with changing database for SSRS.
    I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
    I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
    connection (it's successed) and push Next again. Then I see this error message:
    Error
    The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
    OK   
    I'm confused, cause I have compatible versions of programs and THIS error.
    Please, help me.
    Thanks.

    Hi Kirill,
    From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
    When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
    Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
    http://technet.microsoft.com/en-us/library/cc645993.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Production order change (quantity) doubt.

    Hi pp experts,
        I have a problem, while changing order quantity in the production order through Coois or co02, i am not getting the changed quantity. how to display that.
    for ex,
    The order qty is 10 Nos , through Coois i change this qty to 4, i want to display the order qty 10 with change qty 4. give some soln.
    Thanks,
    Gowri

    Gowrisankar,
    Check if the refresh button is there. Click that. If not there then you have to come out and come back in.
    Rgds
    Ram

  • Problem with the quantity field

    hi every one
    i am facing a problem with the quantity field (vbap-kwmeng)
    as per my requirement i need to display this quantity field along with some other item fields from VBAP in an alv grid.
    among all the fields displayed in the alv grid only this quantity field is editable(end user can change this quantity)
    once end user changes this quantity and press save button i need to capture this new quantity in my internaltable.
    problem is input of length of quantity is 15 and the output length is 19
    so when i am pressing save
    say my quantity is 50 when i am pressing save '0.050' is coming because of the length difference
    how can i capture the original changed value.
    vamsi

    what about define two fields in  you inner table ,one as char and the other as vbap-kwmeng, you can show the char one in the ALV gird , when user input value and press SAVE ,you can move the value to vbap-kwmeng.
    you can test it,mybe some one has one better idea.

  • Change quantity for a PO

    Hi All,
              User has problem in changing the quantity of a PO. The invoice of the PO has been cancelled by A/P, but still he is not able to change the quantity.
    Iam new to SRM, what is the process to be followed in order to change the quantity in a PO for an exisiting shopping cart?
    Thanks,
    Shravya

    Shravya,
    You did not mention which scenario you are working in.
    Assume that you are in ECS, log in to SRM URL with purchaser role and click Purchase Orders on the left side menu. Then click Process Purchase order , select your PO, click change button and go to item data to change the quantity.
    This should allow you to change the PO quantity.Let me know if any questions.
    Regards,
    Jagadish

  • WM: Sending output for delivery after changing quantity on TO by shipping control

    Dear Experts:
    You have to allow user to change quantity of delivery, for all kinds of reasons, for example, they didn't find enough inventory to ship!
    There are options:  at SPRO WM interface for shipping control, select copy WM quantity (to delivery), you can choose:
    ------ "1": copy quantity,
    ------ "2", copy quantity and post goods issue.
    I want to choose "2", since after changing quantity at TO confirmation then going back to outbound delivery and Post Goods Issue becomes an extra step, since you are not changing anything there.
    Now the problem is the output. Since the delivery quantity has been changed, another output must be sent with the new quantity.
    The requirement (in output determination procedure) to trigger the output at Post Goods Issue is "1": Delivery GI posted.
    Then for the output condtion, for the "Dispatch time", I tried "4".
    In my testing, the delivery was updated with the new quantity and PGI was also completed, output was also created. Perfect, but DAMN, the output just doesn' go, It is yellow "0 Not processed".
    I had to use VL02N, open the delivery, then save it, now it went out, "1 Successfully processed", since now the "Dispatch time", "4": Send immediately (When saving application), " is met..
    I tried "Dispatch time", "3", and "1", doesn't work too.
    So I could just set up shipping control ------ "1": just copy quantity and not to PGI, then get users to PGI with VL02N, it just makes me feel bad, I wanted to automate the last step, PGI and get my output with the new quantity, so Is it possible?
    Thank you guys!
    Regards
    Simon

    Dear Experts:
    You have to allow user to change quantity of delivery, for all kinds of reasons, for example, they didn't find enough inventory to ship!
    There are options:  at SPRO WM interface for shipping control, select copy WM quantity (to delivery), you can choose:
    ------ "1": copy quantity,
    ------ "2", copy quantity and post goods issue.
    I want to choose "2", since after changing quantity at TO confirmation then going back to outbound delivery and Post Goods Issue becomes an extra step, since you are not changing anything there.
    Now the problem is the output. Since the delivery quantity has been changed, another output must be sent with the new quantity.
    The requirement (in output determination procedure) to trigger the output at Post Goods Issue is "1": Delivery GI posted.
    Then for the output condtion, for the "Dispatch time", I tried "4".
    In my testing, the delivery was updated with the new quantity and PGI was also completed, output was also created. Perfect, but DAMN, the output just doesn' go, It is yellow "0 Not processed".
    I had to use VL02N, open the delivery, then save it, now it went out, "1 Successfully processed", since now the "Dispatch time", "4": Send immediately (When saving application), " is met..
    I tried "Dispatch time", "3", and "1", doesn't work too.
    So I could just set up shipping control ------ "1": just copy quantity and not to PGI, then get users to PGI with VL02N, it just makes me feel bad, I wanted to automate the last step, PGI and get my output with the new quantity, so Is it possible?
    Thank you guys!
    Regards
    Simon

  • Posting change quantity less than quantity already posted

    Hello,
    Our customer have a problem on Live system. On transaction LU04 have a
    posting change notice impossible to display, because system provide the
    message number L2 145 'Posting change quantity less than quantity
    already posted'. The Posting Change Number XXXXXX and the
    transfer order is XXXX Is there any way to cancel this TO??It is impossible to do something with that.
    The history is: 321 movement from quality for 5040 un. 3 TO, 2 with 2160 are fine, and the 3rd to sap have generated 2160 un instead of 720 pending.
    Any one had this problem in the past?We are forbidden to change status for PCN from 'T' to 'U'.
    Thanks

    Hi,
    I think you have posted the question in the wrong forum. This is MDM forum.
    Thanks and Regards
    Nitin Jain

  • All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yahoo as my start page and default s

    I don't know what happened. All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yahoo as my start page and default search engine. I click the box 'do not ask me again' and it comes up EVERY TIME. I change things like I don't want history remembered, and when I reload FireFox again, it's back to the way it was BEFORE. EVERY SINGLE TIME. I don't know why this is happening, or how to fix it. What do I do??

    I do not want to download another virus program.. I do not believe it is a virus. I am running the full version of Norton 360 and it is doing a daily scan. I have Windows 7, 64 bit OS.
    This is very irritating !! If I wanted Yahoo I would ask for it !

  • Can't change quantity when copy from Sale order for Delivery

    Hi all!
    Can i use authorization for can't change quantity when copy from Sale order for Delivery.

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Problem in changing branding image.

    Hi all,
    I have a problem in changing the branding image for portal logon page.
    To my knowledge I have the change the image file under
    \usr\sap\EPD\JC0\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.runtime.logon\layout
    But to my surprise I am not able to see gthe com.sap.portal.runtime.logon folder in the server.
    Can somebody suugest me what might be the reason.Is it any problem with the versions or something?
    Thank You,
    Regards,
    Rajesh

    It is:
    \usr\sap\EPD\JC0\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout\
    You can do a simple search for branding-image.jpg from \usr\sap\EPD\JC0\j2ee\cluster\server0 to find the location. You can change the location or name in the config tool.
    Regards,
    Slava

  • I no longer have access to the back up email address I used when I set up my apple ID. I have since forgotten the answers to my security questions and am having a problem making changes to my account. What can I do?

    I no longer have access to the back up email address I used when I set up my apple ID. I have since forgotten the answers to my security questions and am having a problem making changes to my account. What can I do?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (114957)

Maybe you are looking for