Quantity field KWMENG not updating in Salesorder created through BAPI

Hi ,
I created sales order through BAPI - BAPI_SALESORDER_CREATEFROMDAT2.Here, I passed material , quantity , unit of measure etc..
But, when the sales order is created the value in the quantity filed is missing.
I passed values as :--
  wa_itemx-updateflag = 'I'.
      wa_item-itm_number = '10'.
      wa_itemx-itm_number = 'X'.
      wa_item-material = wa_alv-matnr.
      wa_itemx-material = 'X'.
      wa_item-rnddlv_qty = wa_alv-kwmeng.
      wa_itemx-rnddlv_qty = 'X'.
      wa_item-target_qu = wa_alv-kmein.
      wa_itemx-target_qu = 'X'.
      wa_itemx-ITEM_CATEG = 'X'.
      append wa_item to it_item.
      append wa_itemx to it_itemx.
What possibly could be the error?
Thanks,
Shivaa......

Hi,
You have to pass the quantity in the schedule lines parameter ORDER_SCHEDULES_IN..
Thanks
Naren

Similar Messages

  • In smartforms the quantity field is not showing the perfect value .

    In smartforms the quantity field is not showing the perfect value because the point is shifting left
    insted of showing 8.10 it is showing 80.00.

    Hi,
    Dont use the quantity field same as that it come from interface Fm declare one field for quantity in the global settings and write the logic to pass the value to that field and pass that global value to the particular texts...same is the case with currency fields also.
    Regards,
    Rohan.

  • Nokia E52 Message Sender Name Field is not updated...

    Nokia E52 Message Sender Name/Field is not updated automatically on Firmware 054.003!
    Issue 1: Message Sender Name/Field is not updated automatically after changes made in contacts.
    e.g. Message send by Mr. A is displayed in inbox, however when same contact changed to Mrs. AB in contacts does not update sender name/field inside inbox. Sender name remains Mr. A physically on handset. However the changes made to contacts and Message Sender Name/Field is updated automatically on use of Nokia PC Suite 7.1.60.0 and Nokia Ovi Suite 3.0.0.290 but not on phone. 

    Thanks for sharing the answer here, it is really helpful for others with the similar issue.
    Qiao Wei
    TechNet Community Support

  • Planner group is not updated in service notification using BAPI

    Hi,
    Planner group is not updated in service notification using BAPI BAPI_ALM_ORDER_MAINTAIN.
    I have written the below code, but planner group is not updated in the service notification.
    Please advice which parameters do i need to pass to update planner group in the service notification.
              wa_methods-refnumber      = '000001'.
              wa_methods-objecttype     = 'PARTNER'.
              wa_methods-method         = 'CREATE'.
              wa_methods-objectkey      = wa_subscr1-aufnr.
              APPEND wa_methods TO i_methods.
              wa_methods-refnumber      = '000002'.
              wa_methods-objecttype     = 'HEADER'.
              wa_methods-method         = 'CREATE'.
              wa_methods-objectkey      = wa_subscr1-aufnr.
              APPEND wa_methods TO i_methods.
              wa_methods-refnumber      = '000000'.
              wa_methods-objecttype     = ' '.
              wa_methods-method         = 'SAVE'.
              APPEND wa_methods TO i_methods.
              REFRESH i_partner.
              CLEAR wa_partner.
              wa_partner-orderid        = wa_subscr1-aufnr.
              wa_partner-partn_role     = 'VW'.
              wa_partner-partn_role_old = ''.
              wa_partner-partner        = wa_subscr1-parnr.
              wa_partner-partner_old    = ''.
              APPEND wa_partner TO i_partner.
              REFRESH i_planrgrp.
              CLEAR wa_planrgrp.
              wa_planrgrp-orderid        = wa_subscr1-aufnr.
              wa_planrgrp-plangroup      = wa_subscr1-ingpr.
              APPEND wa_planrgrp TO i_planrgrp.
              REFRESH i_planrgrp_up.
              CLEAR wa_planrgrp_up.
              wa_planrgrp_up-orderid     = wa_subscr1-aufnr.
              wa_planrgrp_up-plangroup   = 'X'.
              APPEND wa_planrgrp_up TO i_planrgrp_up.
    *----Change order details with Technician name
              CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
                TABLES
                  it_methods   = i_methods
                  it_header    = i_planrgrp
                it_header_up = i_planrgrp_up
                  it_partner   = i_partner
                  return       = i_return.
    Thanks & regards,
    Krishna

    Try this way
    CALL FUNCTION 'BAPI_SERVNOT_CREATE'
    EXPORTING
    * EXTERNAL_NUMBER =
    notif_type = 'S3'
    notifheader = ls_notif_h
    * TASK_DETERMINATION = ' '
    * SENDER =
    * ORDERID =
    IMPORTING
    NOTIFHEADER_EXPORT = ls_notif_e
    TABLES
    * NOTITEM =
    * NOTIFCAUS =
    * NOTIFACTV =
    * NOTIFTASK =
    * NOTIFPARTNR =
    * LONGTEXTS =
    * KEY_RELATIONSHIPS =
    return = lt_return
    * IF lt_return IS INITIAL.                                               " <<< Comment this lie
    read table  lt_return into ls_return with key type = 'E'. " << Change
    if sy-subrc ne 0.                                                             " << Change
    COMMIT WORK AND WAIT.
    write: / ls_notif_e-NOTIF_NO.
    ELSE.
    LOOP AT lt_return INTO ls_return.
    WRITE:/ 'errors'.
    * ls_return.
    ENDLOOP.
    endif.

  • Print of TO created through Bapi

    Hi friends,
    I want to have immediate printing of the TO created through BAPI l_to_create_multiple.
    I don't want to change the configuration setting what is the other way to get TP printed immediately.
    Thanks,
    Kiran

    Immediate printing of Transfer order is depend on the spool code setting.If the transfer order which you are creating through L_TO_CREATE_MULTIPLE is having the spool code and print immediately is activated for the spool code then it should trigger the printing.
    SPRO---LE  - WM --ACTIVITIES -- DEFINE PRINT CONTROL  (Definition -----Spool code)

  • Quantity column is not updating in YR02 report

    Dear Experts,
    While doing download the asset data into excel through t.code YR02 the field quantity is not updating. If i checked in asset master data, there i am getting asset quantity 1 for each asset but in YR02 report i am not getting.
    Please help me to resolve this issue.
    Thanks,
    Anjiee
    Edited by: anjiee on Mar 21, 2011 12:47 PM

    Transaction YR02 is in customer namerange and hence it is not a standard functionality of the system .
    Hence whenever you are quoting any queries then you will have to also provide the Y programme that you have created for the purpose .
    I mean to say the coding of the programme to comment further .
    Cheers ,
    Dewang

  • Edit in datasheet field is not updated in real time

    Hello,
    I have SharePoint 2007, a list viewed in Edit in DataSheet and a workflow attached to the list which updates a field FirstTitle in the list when the item is created. 
    The problem is that, while in Edit in Datasheet view, the field FirstTitle is not updated in real time so the workflow starts again and again because the field is still viewed as empty. The users keep receiving the error message "Your changes conflict
    with those made concurrently by another user" (the other user being actually themselves). So they have to exit Edit in Datasheet and enter again in order to have FirstTitle field refreshed and that is annoying and totally unproductive.  
    I tried from SharePoint designer different checks, I used different actions like wait until item is changed and then stop but nothing worked. Is there any workaround to this ?
    Thanks in advance,
    Teddy
    Able was I ere I saw Elba

    Thanks for sharing the answer here, it is really helpful for others with the similar issue.
    Qiao Wei
    TechNet Community Support

  • Delivered quantity in co03 not updated

    Hi folks,
    I'm using bapi 'BAPI_GOODSMVT_CREATE' to post goods movement (type: 101). After i posted it, the field 'GWEMG' (delivered quantity) is not updated with the value i posted. But when i try to post manually using mb31, it works. anyone have any idea whats wrong with this?
    Thanks!

    Hi,
    Check that have you maintained " Movement Indicator" as F?
    Regards,
    Velmurugan S

  • Value field does not updated in COPA Billing

        Hi,
    We are facing one issue in COPA.
    We are created one Condition type ABC, this condition type we have selected the check box for Accruals in control data 2 ,then we are created one Account key 123 , in pricing procedure we have assigned this one ABC condition type to accrual account key 123.Then Vkoa setting in TAble one customer/mat/ acckey combination we have assign one g/l like transfer cost with (11 cost element) in provision for accrual column.
    COPA side setting as been done :
    step 1: user defined value field like NMR and this value field is assign in ke4i with respective condition type ABC  value filedNMR.
    We are generated the billing document.in a/c document is below entry.
    Customer a/c dr 10
    Trasnfer Cost a/c dr 1
       To Cost on sales a/c 11-
    Above one 1 rs in coming in condition records in billing document.But In COpa document  my revunue is 10 rs with value filed, NMR  value filed  amount "1" is not updated.
    Note :above condition type ABC  we are not selecting the statistical check box  in Pricing procedure
    Please give me suggestion.
    Regards
    Reddyrrreddr

    Hi Reddy
    As far as I understand, any GL Account maintained in VKOA under provision column will not flow to COPA, be it B/S 8754 or P/L 4567.
    The GL mapped under G/L Account column would essentially flow to COPA. Therefore in your case, values posted to GL 1234 should flow to NMR Value field through SD Condition type ABC.
    I dont have access to system so can you check below options:
    1) Once you had done KOFK, did you create the cycle from scratch to evaluate the results. If so and if its still not working, can you please share with us the output of the KEAT and / or KE4ST report for the billing document, posted to accounts.
    2) Also check in the pricing procedure, if you set an account key under accruals column, then in VKOA, you need not have to mention seperate GL under Provision Column. Just maintain the GL account under "G/L account" column for each Account keys (4 records with KOFI & KOFK)
    3) If above also doesnt help, test if removing the check from Accruals in the ABC Condition type configurations really helps, in which case you may need to maintain GL under provision column.
    Will explore more options and will revert back hopefully by tuesday.
    Hope it helps
    Regards

  • Quantity field is not getting as an mandatory field.

    Hi all,
    when I try to add a material without quantity field it is allowing me to add in the order.
    I have Item categeory TAN for which I have assigned incompletion procedure 20 which has  KWMENG field for screen PKAU and warning indicator is set.
    Despite of this I am able to enter material without quantity.
    Is there any other setting I am missing please guide.......
    Regards,
    Rathan

    Hi Mr.Rathan Kumar
    As far as I know for Item Incomplete procedure I have added field "KWMENG" with
    Warning Indicator set but even then iam not getting error when entering material
    with out quantity.
    Pls be informed that SAP is giving the option of warning only for  Incompletion procedure not error
    This is because SAP allows you that there will be some fields which will be incomplete during creation say PO number or order reason in return order That information may not be available during creation but can be filled later in change mode in VA02 transaction on a later date
    It is not logically correct to stop with error if any data is incomplete during creation itself
    Coming to your issue how we will be doing a sales order
    We will give order type then sales area and sold to party and PO number  ( if reqd )
    Then the materail and qty
    Say you are entering material A then not entering the qty pressing enter
    System will give warning message (even without the incompletion log set as per your confiuration)
    Check that message no if V4 message type in t code OVAH you can convert the message from warning to error
    Try this (remove your incomplete config and try)
    Otherwise you need to use userexit to throw error when the qty is not entered and if anyone is trying to save the order
    My suggestion in earlier post actually does this only,  in another way
    For your exact requirement you have to use userexit
    Regards
    Raja

  • Aggregate value of a transient field is not updated from cache

    Hello together,
    A view object has a transient field which display the count of records from a view accessor. In the EO for the view object ( of the view accessor) opearations on rows are perfomed from a different view object, this changes are not reflected in the transient field value.
    I know is not very clear,here is sample:
    Woker VO
    -Worker EO
    Worker2Department VO
    -Worker2Department EO
    Department VO
    -Deparment EO
    -workerCount: WorkersCounterViewAccesor.count("WorkerID")
    WorkerCounter VO
    -Worker EO
    -Worker2Department EO
    attribute binding: DepartmentID
    If from Worker2Department records are deleted or inserted, the value of workerCount is not updated.
    I've try to executeQuery on each view object,without success. I've notice that the WorkerCounter VO is having always the same records count after Worker2Department VO is updated.
    If the method getDBTransaction().postChanges() is invoked, then the data is correctly fetched but then there are different other problems, and i would like to avoid using of postChanges().
    My question is: why when rows are inserted/removes into/from a view object the changes are not visibile on different view objects declared for the same entiy object? Or how to make sure that the changes from an entity object are reflected in each view object that are using it?
    Thank you a lot,
    Bogdan

    Hi,
    If you place the 0WBS_ELM_EX  in the ODS ,either in the key field or in the data field , you can find it as a charecteristic in the report and you can drag it into the rows.
    To reflet the changes that you made to the masterdata , you need to run the attribute change run every time you load the data .
    regards,
    haritha

  • Form with report, update field in the form = field is not updated in table

    Hi,
    I have a form with report. On Primary Key in the report is a link to the form. I select one row in the form by choosing the link in the report. Then I update a field in the form and press "Save". I see the success message "Action processed" and I'll be back in the report. I see the field in the report with it's old content. It is not updated. I don't understand why. Can anybody help me?
    Thanks Daniela

    Daniela,
    Is the form field source set to the proper database column? It's either not properly defined or your Save button and the builtin update process have somehow become disconnected. Check to make sure that the Save button is set to perform an Update in the database operations setting.
    Earl

  • BUDAT and TPARTDOCNO field is not updating in HRPAD25 table

    Hi,
    I am  facing one weird issue where in HRPAD25 table field BUDAT and TPARTDOCNO is not updating for corresponding ADATNR of HRP1001 table.
    Due to this when I am doing course follow -upi(marking attendance) system is throwing an error.
    Kindly help ,why this is happening
    Regards,
    Sadaf

    Hi Sadaf
    Are you using the LSO transactions to book the person on the course ?
    Please do not use TEM transactions i.e. PSV1, PVCT etc. for trainings.
    Pl refer
    Follow Up Course - Dump - ERP Human Capital Management - SCN Wiki
    Regards
    Chetan Bajaj

  • Reference field is not updating in VBAK table

    Hi Experts,
    I am using SD_SALESDOCUMENT_CREATE bapi for Credit Memo Creation .
    but the field XBLNR is not updating in the table vbak.
    Kindly help me to sort out this issue.
    Thanks in advance.
    In which field i should pass the value to update in the table vbak.
    Regards,
    Ajay.
    Edited by: srinivasan12345 on Nov 14, 2011 9:21 AM

    Hi,
    follow this,may help u..
    Re: Credit Memo Creation
    thanks & regards.

  • Tax field is not updated in COPA documents

    Hi
    There is a Value field for Tax is not updated in COPA documents due to missing configuration in KE4I. Now the tax field is updatating properly after completed the configuration in KE4I.
    But we have couple of COPA documents which are generated (source ) through SD billing. And we have entered proper condition type in Sales order. It is calculating the Tax amount based on condition type in sales order.
    Now we want to update the Tax value filed information into COPA documents .  Please let me know the procedure to update the Tax value field in COPA documents.
    Thanks
    Richa

    Hi,
    reverse/repost the docs again to CO-PA using KE4S.
    best regards, Christian

Maybe you are looking for