BAPI_SALESORDER_CHANGE Quantity in the sALES ORDER NOT GETTING UPDATED.

Hi Experts,
i am adding a new line item to the sales order with line item number and material number and QUANTITY.
by using BAPI_SALESORDER_CHANGE bapi every thing is geeting updated but QUANTITY field is not getting updated.
regards,
Jay Sawant.

I m using this code..
Fill Line Item Details
  fl_order_itm-itm_number = line_item + 1000.
  fl_order_itm-material   = mpn.
  fl_order_itm-target_qty = qty.
   fl_order_itm-sales_unit = unit.
  APPEND fl_order_itm TO it_oditm.
Fill the Header Order Details
fl_order_itm_inx-itm_number = line_item + 1000.  "added
  fl_order_itm_inx-updateflag = 'U'.
  fl_order_itm_inx-material   = 'X'.
  fl_order_itm_inx-target_qty = 'X'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
      salesdocument            = vbeln
  ORDER_HEADER_IN             =
      order_header_inx         = order_header
  SIMULATION                  =
  BEHAVE_WHEN_ERROR           = ' '
  INT_NUMBER_ASSIGNMENT       = ' '
  LOGIC_SWITCH                =
  NO_STATUS_BUF_INIT          = ' '
    TABLES
      return                   =  it_ret2
   order_item_in               =  it_oditm
   order_item_inx              =  it_oditx
  PARTNERS                    =
  PARTNERCHANGES              =
  PARTNERADDRESSES            =
  ORDER_CFGS_REF              =
  ORDER_CFGS_INST             =
  ORDER_CFGS_PART_OF          =
  ORDER_CFGS_VALUE            =
  ORDER_CFGS_BLOB             =
  ORDER_CFGS_VK               =
  ORDER_CFGS_REFINST          =

Similar Messages

  • VAT /CST% manually in the sales order,not getting copied to the Invoice

    Dear Friends,
    If I change the VAT /CST% manually in the sales order,its not getting copied to the Invoice
    Thanks
    Ivy

    Dear Friends,
    Thanks for your valuable inputs....
    I have maintained the condition record for the combination of delivery plant region and the customer  region.......assigned dummy tax code against the Tax condition...therefore I think there wont be any problem in posting billing doc to accounting doc.
    There are different combinations,where sometimes the user is liable for 2% CST ....sometimes 4%CST... but I am able to pick one tax value say 12.5% CST across and maintained the tax condition types - manual entry has priority, as allowed the user to change the value manullay as per the user requirement ....
    Now if i change the Tax condition value in the sales order ,the same is not reflecting in the Invoice....this also is applying from contract to a sales order...
    Please advice me accordingly...
    Thanks
    Ivy

  • Open sales order not getting updated in FD32

    HI
    We are configuring Credit management, and found that the open sales orders are not getting updated in FD32.
    I have checked all the settings in OVA8 and all are working fine. This is a Static credit check and system is blocking the customer in case, the limit is exceeded. But the values are not getting reflected in FD32, for open sale orders, that are not blocked.
    Info structure S066  in OMO1 all are configured perfectly. I have run F.28 and no log was issued.
    Request to suggest other reasons for not getting updated in the table.
    I have gone thru the previous threads, but cud not find any solution.
    Regards
    Vamsi Javaji.

    Hi Vamsi Javaji
    First of all check in OVA8 wheather you have checked Open sales orders feild or not . Secondly check in your pricing procedure wheather you have maintained Subtotal A or not for the Net Value .Also check wheather you have assigned to your sales document type correctly or not  Finally check in OMO1 wheather S066 has been assigned correctly or not
    Check wheather you have assigned the Credit control area to the customer in CMR , in sales tab
    Regards
    Srinath

  • Confirmed quantity in the sales order coming as 3.5 ea

    Hi Gurus
    The confirmed quantity in the sales order coming as 3.5 ea where the order quantity was 10ea.I checked CUIN for EA the decimal places is given as 0 which is very much correct moreover I checked the material master in additional data I have not find anything abnormal.The order was created by a batch job.Please help.

    Hai,
    The system has concluded that 3.5 EA for the confirmed quantity means the remaining part of the stock are already allocated to some other sales orders.Out of 10 EA only 3.5 EA are  in the stock.
    You can view through the MD04 and then enter the plant ,material and then check the quantity that are allocated to the various orders.
    Please revert for any.
    Kalyan

  • Sales order not getting created in background.

    I am using user exit to write my code to create sales order of basic type ORDERS05 with function module idoc_input_orders, and process code ORDE with my own message type.
    If I run the program in foreground message KUWEV-KUNNR is not an input field comes.
    IF I press enter the sales order is getting created with staus 53..
    But in background ERROR MESSAGE comes as:
    Function module not allowed: IDOC_INPUT_ORDERS.
    Please give suggestions.

    Dear Sir,
    Please check the FI Period is opened and FI account Number is opened.
    Thanks and Regards
    N.soma Sundaram

  • Update the material quantity in the sales order using LSMW...

    Hi Guru's,
    I created one sales order using BAPI..now i wanted update the material quantity in the sales order using LSMW...
    could you please provide the step by step process....
    if anyone of you provide the program logic similar to requirement that would be helpfull to me...
    thanks in advance
    Srinivas....

    Hi Sri,
    Hope it may help you.
    First do the recording for VA02 transaction, in that give the existing sales order number
    and update the Quantity and save it. Remaining steps are same what we used(LSMW) to upload data to applications.
    Regards,
    Vishvesh
    if helpful, rewards it.

  • The currency is not getting updated in the table VBAP

    Hi ,
    The currency is not getting updated in the table VBAP. The currency was suppossed to be copied from the header table VBAK for a Sales Order. When the user creating a Sales Order the currency WAERK is not shown in VBAP table. VBAK-WAERk is in EUR . Does anyone know why is this happenning?
    Currency is maintained in the Customer Master, Material Master and Sales Org. Any suggestions?.
    Also it is happened for only one line item in a set of line items , Other line items did display the currency field.
    The net Value has data in it .
    The system is ECC 5.0
    Regards,
    Senthil

    Dear Senthil,
    Please apply the following notes (if they apply to your support pack level) and retest:
    1460621 VBAP-WAERK is deleted after the sold-to party is changed
    1426441 VBAP-WAERK deleted for subitems
    1493998 VBAP-WAERK deleted for subitems
    This should resolve the issue. I hope this helps.
    Best regards,
    Ian Kehoe

  • Sales Order not getting Pick Release and getting BACKORDERED

    Hi Gurus,
    There is an order in oracle production. When user try to Pick Release this order the order is not getting picked instead it is getting backordered. The line quantities are available and it is also not in hold. I also see the log files of ‘Pick Slip Generation report’, but it shows no error message. Do you have any idea on this?
    Thanks,
    SamD

    Are the quantities in a reservable subinventory?
    If you go to material workbench, does the quantity show as available to reserve?
    Did you specify a subinventory in the release process?
    Does the sales order line have a subinventory on it?
    Check if your onhand is in staging subinventory?
    Check older threads on this issue such as http://kr.forums.oracle.com/forums/thread.jspa?threadID=603998
    Sandeep Gandhi

  • Fix date/Quantity in the sales order schedule line

    Dear SD Gurus,
    When we select the fix date/quantity in the lsaes order item schedule line, what happen? Hhow does it imapact the MD04,V_V2 and can this item be seen in CO06 to change the item date manually?
    Thanks
    J.Black

    With fix/date and qty, you can't use rescheduling and back order processing. The setting assumes that you want to fix the date at the time of initial confirmation and therefore these functions are not relevant, and ignore anything with fix/date and qty.  If you want to use those functions then don't use fix/date and qty.
    Rgds
    Richard

  • Sales Order Not Getting Converted to Production order

    Hi gurus,
    I have a sales order and when on MTO process i try using CO08 to create a production order using with order type ZP02 , sales order no , item no , production plant the production order doesnt gets created . could anyone help me

    Hi,
    What is the error message you are getting?
    Are you using strategy group 20 in material master?
    Did you try using other order types?
    Regards,
    Senthilkumar

  • How the sales order header status update?

    Hello,
    In the sales order header "STATUS" tab is there, under this status tab we can find OBJECT status if we click that object status it shows the Object number,Object category,status profile and status with status no. on which bases this status will update in the sales order header?
    my case is Status "10-xxxx" set automatically for some orders.
    Could you plz let me know on which bases, the status will be updated in the sales order?
    Regards|KS

    Hi
    SAPu2019S GENERAL STATUS MANAGEMENT FUNCTIONALITY
    General Status Management replaced order status management functionality in recent SAP releases (4.6C).  This discussion will address general status management, as this is how SAP allows user statuses for controlling objects in this and future releases.
    General Status Management applies to internal orders, project definitions, WBS elements, production orders and many other objects in SAP.  For the purposes of this discussion we will concentrate on status management for internal orders and WBS elements.  A list of all objects relevant for status management will be made available upon request.
    A status is an indicator that fulfills two functions.  First, it informs you that a particular status has been reached.  For example, an internal order has been created and released; a settlement rule has been entered; a particular business transaction has been executed, etc.  Second, it influences the business transactions you can perform for a particular status.  A status can allow a business transaction; allow a business transaction but issue a warning message; or prohibit a business transaction altogether.  If a warning message is issued it is up to the user whether the business transaction is carried out or not.
    Statuses can be used to control and communicate.  Statuses can be used in reporting (show me a report of all internal orders with a status of TECO, or technically complete).  Statuses can be used as selection criteria (select all internal orders with a status of CLSD, or closed).  Statuses can communicate the state of an object (ready for archiving, not ready for settlement execution).
    There are SAP standard delivered statuses that apply to all object types.  These are known as SYSTEM STATUSES.  CRTD, REL, SETC, TECO are examples of SAP standard system statuses.  SAP standard system statuses cannot be removed from use.  You cannot override the SAP system status with a user status.  You cannot change the behavior of an SAP system status.
    User statuses (or user defined statuses) exist in addition to SAP standard statuses.  User statuses are intended to augment or refine SAP standard statuses, not replace them.  There is no limitation to the number of user statuses that can be created.  Both system and user statuses influence business transactions in the same way.
    An object can have multiple statuses active at the same time.  A plant maintenance order can have released, preliminarily costed, work order printed and confirmed statuses all at the same time.  For SAP display purposes only one status can be displayed on the status line in master data screens, but it is possible to see all active statuses for an object at one time by drilling down into the master data screens.
    A STATUS PROFILE, or user status profile, contains individual user statuses and the business transaction rules defined for those statuses.  There is no limit to the number of user status profiles that can be maintained in SAP.  A user status profile is assigned to an order type or a project profile in configuration.  This user status profile is then defaulted into all objects that reference that order type or project profile.  A users status profile can be overwritten (or deleted) in an individual object (via native master data screens), but only if a user status has yet to be activated for that particular object.  Once a user status has been activated for that object the user status profile cannot be changed.
    HOW STATUS MANAGEMENT WORKS
    When an object (internal order, WBS element, production order) is created SAP assigns the system status CRTD.  MIT automatically releases the order, so the system status REL is also activated.  If there is a user status profile defined in the order type (or project profile) this is carried over into the internal order (or WBS element).  If not, only the SAP system statuses will apply to this object.
    When a user executes a business transaction for this object, SAP checks the user status to see if that business transaction can be executed without any additional influence from a user status, can be executed but with a warning message being issued, or cannot be executed at all.  SAP also checks whether the business transaction sets or deletes any other user statuses within the user status profile.
    A user status may also be maintained directly in the object master data.  Accessing the master data screens allows a user to manually maintain user statuses.  If necessary, an authorization code can be assigned to a user status to ensure that no unauthorized persons can change the status of an object.  Once changed, the new user status is fully active and acts no differently than if a business transaction set the user status.
    Status management and business transaction control only work with standard SAP transactions.  Z transactions will not show up on the business transaction list for an object.  The business transaction table is configurable, but SAP strongly recommends not changing that table.  SAP directly updates that table via support packs and it is often impacted during upgrades.
    Authorization codes / keys are available in user statuses.  The authorization code is checked only when user statuses are being set manually, from within the objectu2019s master data screens.  This ensures the user has the proper authorization to set that status for that particular object.  However, it is important to understand that SAP sets a user status in reaction to a business transaction it does not perform an authorization check.

  • On reversal of Invoice the table BKPF not getting updated properly

    Hi
    I have an issue, that when we create the Commercial Invoice, accounting document generated automatically. And after that due to some reason when we reverse the same through  VF11, the accounting document which was created while doing the invoicing not getting updated by "reversed with (STBLG)" field and "reversal Indicator (XREVERSAL) field in the table BKPF.
    However when I test the some scenario in Development and Quality server the same field is getting updated.
    I have already checked the Billing Document Type of SD and accounting document type but found everything in place.
    I am unable to get what is missing,and why this is happening in Production server only.
    Need your input at the earliest.
    Thanks in advance
    Regrads
    AA

    Hi
    thanks to all for their suggestion, the issue resolved with the help of SAP.
    For the forum members information :-
    This is standard system behaviour.
    BKPF-XREVERSAL is only populated/filled in the reversed original
    and in the reversal FI document if BKPF-STBLG and BKPF-STJAH
    are populated/filled in reversed original and reversal FI document.
    BKPF-STBLG and BKPF-STJAH are only populated/filled in reversed
    original and reversal FI document if the new/real cancellation
    procedure (-> with automatic clearing of the open items) is executed,
    and the new/real cancellation procedure is not executed, if an
    open item of the original, to be reversed FI document, has already
    been cleared (-> also see note 309208).
    Regards
    Amitesh Anand
    Edited by: AA on Apr 25, 2009 11:37 AM

  • Sales order not getting confirmed because of oldest of open items overdue.

    Hi all
             Businesses using the auto order creation for sales, sales order getting created but when I check it in schedule line the quantity is not getting confirmed even quantity is available and credit limit is also available and there are no open items due. When I check ,availability tab in VA02 manually, its coming oldest of open items overdue.
    Pls help...
    Regards
    Nagesh

    Hello,
    please check in the system in ova8
    Credit check against oldest open item
    Indicates whether the system carries out a credit check based on the age of the oldest open item.
    The oldest open item must not be older than the number of days specified.
    If in ova8 it checked then system is checking the oldest open Items .
    Thanks,
    venkataswamy.y

  • Sales order not getting closed

    Hi,
    I am creating delivery document through SDK based on existing sales orders. it creates it with perfect quantity, tax , amount and doctotal values but the original sales order does not get closed contradictory to SAP's standard flow.it does shwo all the row-status as closed. but the document status remains open.
    what could be wrong? do i have to close it through SDK?
    Thanks,
    Binita

    Binta,
    As Petr said, i have added a SO in normal SAP UI without any addon, and copied it to Delivery and changed the Freight and added the delivery, in this case, the SO remains open.
    So I guess u can summarize that if any changes occur the SO would remain open?
    Hope it helps,
    Vasu Natari.

  • Unable to confirm quantity on the sales order --- Product allocation issue

    The following configuration steps were completed in the APO system.
    1.     Maintain Product allocation object
    2.     Maintain Product allocation group
    3.     Maintain Product allocation procedure
    4.     Create planning object structure with the necessary characteristics
    5.     Maintain characteristic combination
    6.     Create Planning area with necessary key figures
    7.     Create Planning book and data view
    8.     Maintain connection to planning area
    9.     Generate Product allocation group objects
    10.     Generate characteristic combination from planning area
    11.     Allocate the stock for the CVC combination
    12.                 Assigned the product allocation group to the APO product
    Regardless of quantity in the planning book, it is confirming all the quantity on the ECC sales order. This is due to the material availability date being pushed out to 12/31/2011 which seems to be the last date of the planning area time series. The values on the planning book were maintained online (manual step).
    Also when I run the simulation of product allocation under GATP>Reporting>Product allocation,
    For the product allocation group and the combinations that I have, I get the message "No allocations defined for the current characteristic combination"
    Any help would be greatly appreciated.
    Thanks
    Ashwin

    Dear Ashwin,
    I would recommend to use the transaction /SAPAPO/ATPQ_CHKUSG. Enter the PAL group and do the following:
    First: run the transaction with the 3rd option. Select all assignments found by the report then press the button delete with incoming order qty -> this deletes all assignments without any order number                                                                               
    Second: run the transaction again with the 1st option. Select all entries. press the button "merge PAL assignments", press button execute, choose on the first popup "yes" and on the second popup "no"  -> this should correct the shortages.                                                                               
    Check the note 676128 to get further information about the //ATPQ_CHKUSG and the options.                                             
    I hope this helps.
    Regards,
    Tibor

Maybe you are looking for