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

Similar Messages

  • 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

  • Size Property of OracleParameter is not set when used in constructor

    Hi
    I have an issue in using OracleParameter in my .net windows app(vb.net) . If I create a OracleParameter like this, ths size property is not set
    Dim opParam As New OracleParameter("v_Test", OracleDbType.Char, 120, ParameterDirection.Output)
    'Here 120 is the size I have set, but it is not getting assigned to the Size property
    MsgBox(opParam.Size) 'This will return 0
    'I have to assign like this explicitly to have the size property set.
    opParam .Size=120
    Is it a problem in ODP.Net or I am doing something stupid ?.
    Any answers would be greatly appreciated
    Cheers
    John

    Hi John,
    In looking at the constructor call you have this "format":
    string, OracleDbType, int, ParameterDirection
    This does not match to a constructor that does what you want. What it matches to is:
    string, OracleDbType, object, ParameterDirection (i.e. the value (object) is being set where it looks like you want to set the size).
    The closest matching constructor for what you want would be:
    string, OracleDbType, int, object, ParameterDirection
    i.e.
    Dim opParam As New OracleParameter("v_Test", OracleDbType.Char, 120, null, ParameterDirection.Output)Hope that helps a bit (assuming I have not misread, etc...)
    - Mark

  • Error "Object refernce not set" when using http context in Eventreceiver for Document Library,

    Hi,
    Httpcontext returning null values when I used in item adding event of document library.
    I have a document set home page which has document set properties(by default) and one OOTB document library is placed in the same page.When user clicking on upload documents in the ribbon I need to read the document set properties.
    when uploading the docs if I pass the Hardcoded item id of the document set I am getting the values of the document set in the item added event.
    now the problem, i have the id in the query string if i want to read the query string value using httpcontext in the itemadding event and pass it to item added event using httpruntime it is throwing "object reference error" .
    if any body has any solution/workaround how to read the context in the document library event receiver,please help me out.
    Thanks ,G1

    Hi,
    Did you use the HttpContext.Current method to get the current context?
    You can use the HttpContext.Current to check whether it works.
    There is a similar thread for your reference.
    http://stackoverflow.com/questions/1601352/how-to-obtain-the-httpcontext-in-event-handler
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Sale Order quantity,amount not reduce when raised 1st partialy AR invoice

    Help needed,
    Please can anyone help .. I came with case that our company policy is to raise Partial AR Invoice on single Sale order.
    When we generate 1st AR Invoice on Sale order and manually changed qty till this process ok. but when we select 2nd time to same SO , all rows came with same qty and amount when SO was generated.
    i need to reduce the amount and qty automatically when i raised 2nd partial invoice through AR invoice.
    i am new on this forum , please help me to solve this problem if there is any query,
    Thanks in advance.

    Dear Shafi ullah,
    This is difinetly  system bug, what is you SAP patch.
    try to run same senario with different patch
    And log raise support tiket to SAP.
    Regards
    MANGESH PAGDHARE

  • How can i set songs within a playlist, or an entire playlist, so that they are not included when using the shuffle function on IPOD Classic? Is this possible?

    How can i set songs within a playlist, or an entire playlist, so that they are not included when using the shuffle function on IPOD Classic?
    Is this possible?

    You can set any song to Skip when shuffling.
    In your iTunes Library, highlight the song and right-click/Get Info. On the Options tab is the Skip when shuffling box. Select that and then Sync the iPod with your Library.

  • How do I set up a mail group on mac mail?  All the advise on line seems to refer to 'address book' and I only have 'contacts'.  The guidance does not work when using 'contacts' - can anyone help me?

    How do I set up a mail group on mac mail?  All the advise on line seems to refer to 'address book' and I only have 'contacts'.  The guidance does not work when using 'contacts' - can anyone help me?

    Create a group and send mail
    http://www.dummies.com/how-to/content/how-to-create-a-basic-contact-group-in-mac -os-x-li.html
    http://www.macworld.com/article/1165582/how_to_email_groups_with_mail.html
    Best.

  • Images on Facebook do not appear when using different web browsers

    Images on Facebook do not appear when using Safari on my Macbook Pro (I've tried Google Chrome too with the same result).  This makes me think it's a setting within OS Mavericks that I'm missing.  I have not seen this issue on any other computers.  This only occurs on my, and others' profile pictures on my profile page and on the news feed, not photos that are posted in albums or on walls.  and yes, i have images enabled in Safari.
    In safari the images don't appear, and in their place is a small blue "?" square >>.
    In Chrome it appears as a broken image link >>
    Has anyone encountered this?  Is there a fix?  It is very annoying.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Problem in Sales Info Structure - Order Quantity is not calculated in EA.

    Dear all,
    My info structure is taking order quantity in not taking EA (Each) unit of measure. Instead it is taking from the CAR (Cartons).
    We maintained one carton is equal to 5 pieces.
    I want to disply order quantity in EA in my info structure.
    Your suggestions will be highly appreciated.
    Best regards,
    Raghu ram

    hello, friend.
    check in MC7F, select info structure S001 and see if there is an entry in the field 'Base Unit of Measure'. if the entry is 'CAR', either try changing it to 'Ea' or just leave it blank.
    regards.
    Dear Friend,
    I have checked my info structure in MC7F, the base unit of measure  field is blank. I have maintained EA in that field but it is not resulting any thing.
    in my info structure output just beside values system showing *** sybol instead of showing unit of measure.
    should I need to do any further config for this. Please help to solve the issue. I would be grateful for your help.
    Best regards,
    Raghu ram

  • Using Firefox (and having ZoneAlarm), when logging into my work email (Lotus Notes) through a secure Citrix program, a quesitonmark types as and accented "E". This does not happen when using IE (which I prefer not to use). I have turned off the anti-key

    Using Firefox (and having ZoneAlarm), when logging into my work email (Lotus Notes) through a secure Citrix program, a question mark types as and accented "E". This does not happen when using IE (which I prefer not to use). I have turned off the anti-keylogger in ZA (an old, and no longer successful fix). Can anyone help? I need my question marks at work.
    Thanks!
    PS. my keyboard language is not set to French.
    == This happened ==
    Every time Firefox opened
    == I tried to type a "?" in a work email using remote access.

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • The volume up and down controls on my wireless keyboard show a no entry sign and do not respond when used...please help?

    The volume up and down controls on my wireless keyboard show a no entry sign and do not respond when used...please help?

    If you want to get a little more "exotic" you can try remapping the function keys.  I did a little google searching and the hits that looked promising are,
    Mapping volume and eject keys to 3rd-party keyboard Other Hardware
    Spark
    Spark is a powerful, and easy Shortcuts manager. With Spark you can create Hot Keys to launch applications and documents, execute AppleScript, control iTunes, and more...
    You can also export and import your Hot Keys library, or save it in HTML format to print it.
    Spark is free, so use it without moderation!

  • Getting error "Object variable or with block variable not set" when trying to open a FR report in studio

    Problem Description
    We are on FR 11.1.2.2.305 installed on AIX. a user is getting this error: "Object variable or with block variable not set" when trying to open a FR report from FR studio client installed on windows xp . Initialy, we thought it may be a FR client installion issue. We uninstalled and cleaned up registry and did a fresh installation of the client but the issue still persists. The FR server and the client are on the same version.
    The user is a LDAP user who is facing the issue. We have confirmed with other users and they dont have any issue accessing FR report from their own client but when they try to connect from the users machine who is having issues, the others users also see the above error. All the users are ldap users and all belong to same shared services groups so the provisiong is the same.
    Any input will be appreciated.
    Thanks

    OK, in this case of one single computer, please make sure that settings as per below KB document as in place and then validate the issue:
    Internet Explorer (IE7, IE8, IE9 and IE10) Recommended Settings for Oracle Hyperion Products (Doc ID 820892.1)
    The information in this document applies to the following Enterprise Performance Management products:
        Calculation Manager
        Data Relationship Management (DRM)
        Enterprise Performance Management Architect (EPMA)
        EPM Workspace
        Essbase Administration Services (EAS)
        Financial Data Quality Management (FDM)
        Financial Management (HFM)
        Financial Reporting
        Foundation Services
        Interactive Reporting
        Planning
        Shared Services
        Web Analysis
    Thanks!

  • Module borders not displaying when using Aggregator

    I am using Captivate 4.  I created a TOC for both modules in a project. Then I created an Aggregator to connect them and display both TOCs.
    The issue I am havving is that the individual modules have borders on all 4 sides, yet they do not display when using the aggregator. How do I correct this?
    Thank you.

    Lenny,
    I apologize for not having an answer to your question, but I'm envious that you've successfully configured mod_jk. I've read several different versions of how to configure this, but nothing has worked so far. I wonder if you could either point me to some correct instructions on how to integrate Apache and Tomcat so I might try to duplicate your success.
    Thanks in advance,
    Vince

  • U/tube videos open when using Safari but will not open when using Firefox.

    u/tube videos open fine when using Safari but will not open when using Firefox. With Firefox I get the unhighlighted Quicktime symbol with a question mark in the center. WHY?? Any help appreciated --- Toroya

    Hmmmm, strange you view YouTube in Safari & not FF. Which version of FF are you using?
    Try the following:
    Repair permissions & restart.
    Make sure you have the latest versions of Adobe Flash Player Software
    QuickTime Preferences > Advanced > MIME Stettings > Miscellaneous.
    Deactivate the "Flash Media" option.

  • Look for a progarm that will let me have 2 moniters but one will lock on and will not change when using spaces

    look for a progarm that will let me have 2 moniters but one will lock on and will not change when using spaces

    ok so i have one moniter to the right of me and i want to keep my google chrome on that one but still be abel to use space on the many monter. cuz when you go to spaces it movies both moniter i hope that help and i hope that you can help me.

Maybe you are looking for