Quantity is not updating while using BAPI_SALESORDER_CREATEFROMDAT2

Hi all,
i am Creating Sales Order using BAPI_SALESORDER_CREATEFROMDAT2 BAPI,
Here i am passing all required fields. Sales order also created, but in the created order; quantiy value is updating as 0 only. Even though i passed the value.(BAPISDITM-ARGET_QTY)
My bapi is returning...
SALES_HEADER_IN has been processed successfully
SALES_ITEM_IN has been processed successfully
The sales document is not yet complete: Edit data
Standard Order 12323 has been saved
Help me to solve it.
Thanks
Regards

You cannot update quantinty from that field
use the REQ_QTY field in  ORDER_SCHEDULES_IN
and set its corresponding flag in  ORDER_SCHEDULES_INX to X
It will work

Similar Messages

  • Picked Quantity not updated while using FM in background

    Hi All,
    We have a requirement to update the picking quantity in a delivery order (VL02N) through a custom screen.
    Inorder to do the above operation we are using the  Function Module SD_DELIVERY_UPDATE_PICKING_1. We find a strange behaviour while using this FM.
    The FM updates the picking quantity when executed online, but when called in the program (By passing exactly the same parameters) it does not update the picking quantity even after using a COMMIT WORK command after the function module. While debugging it was found that the XLIPS intl. table and LIPS structure was not being populated when the FM was executed through a function call in program.
    We tried using the WS_DELIVERY_UPDATE, but even this FM behaves in the
    same way.
    Please let us know as to how to over come this issue.
    regards,
    Sandeep

    Hi Babul,
    Thanks for your reply. I actually tried using even the above mentioned FM. But I am faced with the same error. The problem is that in one of the includes LV50LF01 (Subroutine READ_DELIVERY) of the FM, the internal table XLIPS gets refreshed. This happens only when the FM is called in our program.
    regards,
    Sandeep

  • Schedule lines not updating while using the BAPI_SCHEDULE_MAINTAIN

    Hi all,
    I am using BAPI_SCHEDULE_MAINTAIN to change the schedule line delivery date and schedule line quantity
    while i was changing using t-code ME38 it is changing but while using the above mentioned BAPI i am getting the below errors
    1)Instance PurchSchedagreement of object type <schedule agreement no> could not be changed
    2)Delivery date outside period covered by factory calendar H2.
    Any idea??
    Regards,
    Satishreddy.

    Issue Resolved

  • Contact statistics not updated while using campaign automatization

    Hi everybody,
    I m now working on campaign automatization. One campaign element within the workflow was specified to "adding BP in target group". After executing the workflow , the correspoding target group shows nothing in the contact statistics (we use WebGUI). It means, that NO new data was added in the table CRMD_IM_ML_head and CRMD_IM_ML_ITEM. But actually the BP has been sucessfully added in that target group as we expected. 
    On the contrary one another campaign element specified with "transfering reactor to channel" has all the complete and correct contact statistics.
    Does anybody know, why nothing was added in the CRMD_IM_ML_head and CRMD_IM_ML_ITEM?
    Did anybody experience this
    Thank a lot
    Yang

    This is because I think the campaign is not transfered to channel for execution, so data is not populated in the mentioned tables.
    If you execute the campaign automation with another workflow which is for sending the target group to channel then you will get the data in tables.

  • Picked Quantity is not updated After delivery in Vl03n

    After delivey in Order (VA03), the picked quantity is not updated Properly(VL03n). It is coming as Zero.
    Is it any configurations needed or writng any code.
    For that I put Break point in FMs like SD_DELIVERY_UPDATE_PICKING in program RVADEK01.
    But it is not stopping the Program.
    Please give any possible solution.

    Hi Vinod,
    Thank u For ur Answer.
    Just my Fuctional Consultant given Procedure.
    How to test the picking list. The problem is after Deliver  the Order quantity in VA03 and after saving, this will creates One Out Bound delivery.
    Now We r checking VL03n. Now it is updating the Picked Quantity Correctly, For that We r using the Standard Print program: RVADEK01, Form: RVPICSKSIN.
    Output Type: EK00, Application: V4.
    Here My problem is We copied the Form and print Program and modified according to our requirement and they configured in Nace with our own Output type.  We haven't chenged the updated Functionality and Not even Standard program. We wrote some include program for getting new values in scripts.
    Now the picked quantity is not updated after picking in VL03n.

  • Vertical slider position not updated while displaying .pdfs with Adobe Reader X

    When a .pdf file is opened inside Firefox 4 (beta/RC1), the vertical slider position does not update while scrolling through the document until the mouse cursor is moved to the slider bar (then the slider immediately jumps to the right place).
    I am using Adobe Reader X.

    Here is a URL that will not save in Reader X:
    http://samplepdf.com/sample.pdf?meaningless=1234567890123456789012345678901234567890123456 789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 7890/&blah=blah.pdf
    However, if the last slash is removed or encoded as %2f (which should not be necessary, as it appears in the query portion of the URL), there is no problem.

  • Recon Account not updating while in MIRO

    Hi all..
    Im facing the problem: Recon account is not updating  while during the MIRO. even though Vendor account is get updated and i have checked in vendor master also the same account has been maintained.
    Thanks In advance
    Akhil

    Definitely wrong forum to ask for this topic.  Have you posted this in MM and FI forum?

  • Some email images do not show while using the icloud web app.  I can see the images on my IOS devices and in gmail but I only see a small gray box in the icloud web mail app.  Load HTML images is checked in preferences.

    Some email images do not show while using the icloud web app.  I can see the images on my IOS devices and in gmail but I only see a small gray box in the icloud web mail app.  Load HTML images is checked in preferences.  Is there a solution to this issue?

    I've seen the opposite issue.  My wife recieved an email with jpg attachments.  She couldn't see or print them on her iPhone 4S but they showed up fine in iCloud or in the mail app.  I had her forward the email to herself and then they showed up.  I assume there is an issue with how Apple is processing the attachments and resending causes them to get reformatted in a way that makes them easier to handle.
    So yeah.  Seems like some bugs.  Hope Apple fixes them soon.

  • ERD not determined while using plain http adapter as Sender

    Hi All,
    ERD is not determined while using Plain Http Adpter as Sender.Is there any way to determine ERD table by using Http adapteras Sender?
    Regards,
    Rajesh

    Are you doing synchronous scenario???
    if yes should have leaving the value for the Software Component Version empty for Receiver determination .
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    /people/jin.shin/blog/2007/12/11/sap-netweaver-process-integration-enhanced-receiver-determination-for-synchronous-scenarios

  • I have just put a link to my web site but it does not appear while using Firefox but it does if using Internet explorer or Chrome why would this be?

    I am using Window 7 I have just put a link to my web site but it does not appear while using Firefox but it does if using Internet explorer or Chrome why would this be?
    It does appear on a friend's computer using Firefox.
    Barossa Vintage Festival ... this is the missing link on my computer just under the link named ... Autumn photo collection

    No problems here with the tree links:
    View photos
    Friends gather for breakfast
    Friends take an Autumn drive
    Photos of the Barossa Festival
    Reload the web page and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Microphone not working while using handset

    microphone not working while using handset
    But it is working when loud speaker is On
    Y
    Wat to do??
    Kindly revert with your comments

     Repair the phone with PCC and report back  PC Companion (PCC)  Bridge (for Mac)   Alternatives on How to backup Xperias http://talk.sonymobile.com/thread/36355  

  • My autofill does not work while using Safari. Have checked both Safari and Apple settings.

    My Autofill does not work while using Safari. I have checked both my Safari settings and my Apple settings but don't know what else to do.

    Hi Eustace....yes, I did reset Safari but it didn't help. I'm running Mac OS X Lion 10.7.5...which might be the problem...my Safari is Version 6.1.1.

  • The Firefox 4.0 cookies window does not update while open

    While visiting different websites, the Firefox 4.0 cookies window does not update while open.

    See also related problems:
    Firefox 4.0 reopens the last webpage visited if the cookies window is open.
    https://support.mozilla.com/en-US/questions/801533
    Firefox 4 doesn't open in a homepage, but rather opens the last page I visited, which I HATE!!!!!!!!!!!!!!!!!!
    http://support.mozilla.com/en-US/questions/789325

  • BAPI_SALESORDER_CREATEFROMDAT2 Quantity is not updating in sale orders

    Hi All,
    the BAPI is creating sales orders without quantity but i am passing target quantity in ORDER_ITEMS_IN but still the sales orders which has been created doesn't have the quantity field updated. Please let me know if you have any answeres on this. i am using BAPI_SALESORDER_CREATEFROMDAT2.
    Regards,
    Kumar

    Hi,
    You have to fill schedule line data also.  Fill the structures ORDER_SCHEDULES_IN & ORDER_SCHEDULES_INX.
    order_schedules_in-itm_number = <itemnumber>.
    order_schedules_in-sched_line = '0001'.
    order_scehdules_in-req_qty = <qty>
    append order_schedules_in.
    order_schedules_inx-itm_number = <itemnumber>.
    order_schedules_inx-sched_line = '0001'.
    order_scehdules_inx-req_qty = 'X'.
    order_schedules_inx-updateflag = 'I'.
    append order_schedules_inx.
    Regards
    Vinod

  • Order Quantity (Config.) not set when using BAPI_SALESORDER_CREATEFROMDAT2

    Hi when I use BAPI_SALESORDER_CREATEFROMDAT2 order quantity is empty (missing also in the inclompent log in VA03)
    why ? what should be also set ? thanks a lot !
    I set this data:
    ls_order_header_in-doc_type    = 'TA'.
    ls_order_header_in-sales_org   = '1000'.
    ls_order_header_in-distr_chan  = '01'.
    ls_order_header_in-division    = '01'.
    ls_order_header_in-PURCH_NO_C  = 'test'.
    ls_order_partners-partn_role = 'AG'.
    ls_order_partners-partn_numb = 'CH10'.
    APPEND ls_order_partners TO lt_order_partners.
    ls_order_item_in-material = 'S-000'.
    APPEND ls_order_item_in TO lt_order_item_in.
    ls_order_cfgs_value-charc = 'S001'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S002'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S002'.
    ls_order_cfgs_value-value = '2'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S003'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S003'.
    ls_order_cfgs_value-value = '3'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        order_header_in               = ls_order_header_in
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    * IMPORTING
    *   SALESDOCUMENT                 =
      TABLES
        return                        = lt_return
        order_items_in                = lt_order_item_in
    *   ORDER_ITEMS_INX               =
        order_partners                = lt_order_partners
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
        order_cfgs_value              = lt_order_cfgs_value.
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
    *   NFMETALLITMS                  =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    We use the same BAPI to process Web orders into SAP.  You have to have a corresponding ORDER_SCHEDULES_IN entry with matching ITM_NUMBER for every ORDER_ITEMS_IN entry.  Within ORDER_SCHEDULES_IN is where you put the quantity.  Should be stored in REQ_QTY.    We had to fill ITM_NUMBER and SCHED_LINE with the line number value in order to make it work.  Remember to fill in your corresponding X-structure fields as well.
    hope this helps,
    Chad

Maybe you are looking for