FM/BAPI to update sales order item characteristic values

Hi experts,
I have an urgent requirement on changing the characteristic values of a sales order item (VA01/VA02). Is there any FM or BAPI to update the characteristc values?
Points will be awarded.
Regards,
Leo

Hi,
I need an FM/BAPI that can be run inside user exit USEREXIT_SAVE_DOCUMENT_PREPARE to update the item configuration. I tried the FM you have given me but it didn't work. If you have sample codes that can update the configuration values of the sales order item, it will help me a lot. Thanks!
Regards,
Leo

Similar Messages

  • Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng)

    Hi,
    I have a requirement to use a Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng), which one (Function Module or BAPI) should I use? is there any sample codes?
    Thanks a lot!!

    Hi,
    *& Report  ZTEST
    REPORT  ztest.
    DATA : wa_header TYPE bapisdh1x,
                i_item TYPE TABLE OF bapisditm WITH HEADER LINE,
                i_itemx TYPE TABLE OF bapisditmx WITH HEADER LINE,
                i_return TYPE TABLE OF bapiret2.
               wa_header-updateflag = 'U'.
               i_item-itm_number = '000010'.
               i_item-target_qty = '4'.
               APPEND i_item.
              i_itemx-itm_number = '000010'.
              i_itemx-updateflag = 'U'.
              i_itemx-target_qty = 'X'.
              APPEND i_itemx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = '1234567890'
        order_header_inx            = wa_header
      TABLES
        return                            = i_return
        order_item_in                 = i_item
        order_item_inx               = i_itemx
    Hope this will help you.
    Regards,
    Anand.

  • Idoc segment for updating Sales order item dates

    Hi All,
    I would ike to update the sales order item dates (loading date, Goods Issuance date etc) from an IDOC.
    please let me know the Idoc segment and fields that need to be filled in?
    Thanks in advance.
    Regards,
    Zeeshan.

    Hi,
    Here are some details of the segments in the idocs -
    SEGNAM Segment Name E1EDL20
    VBELN Sales and Distribution Documen 180001539
    SEGNAM Segment Name E1EDL18
    QUALF IDOC Qualifier: Control (Deliv PIC : Picking with flow records (inbound)
    SEGNAM Segment Name E1EDL18
    QUALF IDOC Qualifier: Control (Deliv PGI : Post delivery goods issue (inbound)
    SEGNAM Segment Name E1EDT13
    QUALF IDOC Qualifier: Date (Delivery 010 : Picking
    NTANF Constraint for activity start 20090808
    ISDD Actual start: Execution (date) 20090808
    SEGNAM Segment Name E1EDL24
    POSNR Item number of the SD document 10
    MATNR Material Number 1112
    WERKS Plant SG01
    KDMAT Material belonging to the cust 1112
    LFIMG Actual quantity delivered (in 55
    VRKME Sales unit EA
    POSEX External item number 10
    ORMNG Original Quantity of Delivery 55
    SEGNAM Segment Name E1EDL41
    QUALI Qualifier for Reference Data o 001 : Purchase order data of customer
    BSTNR Customer purchase order number 4500004668
    BSTDT Customer purchase order date 10
    POSEX Item Number of the Underlying 10
    SEGNAM Segment Name E1EDL37
    Regards,
    Shamma

  • Sale Orders per Characteristic values

    Hello,
    Is there a SAP standart functionality for retrieving Sale Orders (or Sale Order Items) per characteristic values?
    Thanks

    Hi
    Check the following tables. They may be of some help to you.
    IBIB
    IBIN
    IBIBT
    IBEXTINST
    IBINT
    IBINOBS
    IBINDOMAINS
    etc
    You can see a report which gives you the view of all these tables. The transaction code is CUTABLEINFO.
    Also there is a function module to extract the characteristic values, but I dont remember. You can check the FM BAPI_CLASS_GET_CHARACTERISTICS if it satisfies ur need.

  • Unable to update Sales order item level prices after invoice is created

    Dear All ,
    I have the following issue .
    When the sales order was created Z001 price was populated based on the condition record and  the order was in complete status  Then we created delivery and  invoice , the invoice had the same price as that of sales orders.
    Due to some code change related to pricing condition type - Z001 the prices in the sales order is changed to "ZERO" , when the sales order is opened in VA02 .
    We now corrected the code related to condition type - Z001  and now need to get back the on the line items . I wanted to Update prices by clicking on icon " Update" in the line item condition tab . I am not able to do it as the update icon is grayed out.
    Can any one help me with ideas for  fixing this issue  or any SAP utility  program .
    Looking forward to your help .
    Thanks and regards
    Veera

    Hi
    Without reversing invoice we can't update price and this is standard bevaior which is logical too. For your scenario I am wondering why would you want to change price for a line item or order which is alrady invoiced and posted to FI. What difference would it make to change price in sale order when this has already been posted in FI?
    Thank$

  • Function Module or BAPI to update Sales Order (delivery Block)

    Hi,
    Is there a Function Module or BAPI available that can update the Delivery Block for a looping Sales Order?
    Thanks,
    John

    Hi,
    check this sample code to update delivery block..
    DATA: BAPISDH1X LIKE BAPISDH1X.
    DATA: BAPISDH1 LIKE BAPISDH1.
    PARAMETERS: P_VBELN LIKE VBAK-VBELN OBLIGATORY.
    PARAMETERS: P_LIFSK  LIKE VBAK-LIFSK OBLIGATORY.
    * Header
    BAPISDH1-DLV_BLOCK = p_lifsk.   " Delivery block
    * header X
    BAPISDH1X-DLV_BLOCK = 'X'.   " Delivery block
    BAPISDH1X-UPDATEFLAG = 'U'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = P_VBELN
    order_header_in   = BAPISDH1
    order_header_inx = BAPISDH1X
    tables
    return = T_RETURN
    LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
      EXIT.
    ENDLOOP.
    * Check for error messages.
    IF SY-SUBRC = 0.
      WRITE: / 'Sales order not updated', T_RETURN-MESSAGE.
    ELSE.
    * Successfully updated
      WRITE: / 'Sales order updated'.
    ENDIF.
    COMMIT WORK.
    Thanks
    Naren

  • Sales order item contion value not coming correcctly

    Hi Friends,
    I created new condition type-YES7, taken sale basis as D
    Cond. class           A Discount or surcharge                 
    Calculat.type          B   Fixed amount                                                
    Cond.category       5 Customer reserve 5                                          
    Plus/minus              A Positi
    Scale basis            D Gross weight scale
    Manual entries       C Manual entry has priority
    Selected below indicators as well
    group conditon
    item conditon
    delete
    I have created condition scales as below
    scale qty                                 Rate
    0,001     KG     5,00    EUROS
    10,000          10,00
    20,000          20,00
    30,000          30,00
    40,000          40,00
    50,000          50,00
    as per my requirement, based on gross weight of each line item, condition record should pick from scales .
    But here,It is cumulating the total gross weight of all line items and showing total gross weight scale value(conditon record value) for each line item of sales order.
    so please let me know how to rectify this issues.
    Thanks in advane.
    Regards,
    Ramkrishna

    Just remove the Group condition and then try .Please refer the  logic behind the Group condition
    Group condition
    Indicates whether the system calculates the basis for the scale value from more than one item in the document.
    Use
    For a group condition to be effective, the items must belong to a group. You can freely define the group to meet the needs of your own organization. The items can, for example, all belong to the same material group.
    Example
    A sales order contains two items. Both items belong to the material group 01.
    Material     Quantity     Material group
    A     150     01
    B     100     01
    The group condition indicator is set in the definition of the condition type for material group discounts. The condition record for material group 01 includes the following pricing scale:
    Scale quantity     Discount
    from      1 pc     -1%
    from      200 pc     -2%
    Neither item alone qualifies for the 2% discount but sytem will apply the 2% as 100 + 150 > 200 .
    However, when the items are combined as part of a group condition, the combined quantity creates a basis of 250 pieces.
    This basis then exceeds the scale value of 200 pieces, which is necessary to qualify for the higher discount.
    Hope it should work after that ...
    Br
    Gaurav

  • Error at sales order: Inconsistent characteristic value assignment

    Hi SAPians
    There is a problem in variant configuration. I have configurable materials at sales order level with BOMs and super BOMs. When I am executing the scenario, not able to process further after selecting characteristic values for a configurable material. The error saying " Inconsistent  characteristic value assignment". I checked all the relevant master data, every thing is okay. But I am not able to proceed further. Can any one provide some valuable inputs for this.
    Raksha.

    Hi
    Did u create variant table (CU61) if not plz and try to make it by tick mark of Decision table..
    u can check assignmebt consitance thru CU60 ..if there again blank plz maintain it manually..
    basically wt happened during creation of Characteristics and assignment of value in value tab .. there is indicator ..which influence assignment consistance..
    hope u may get clue.
    correct me if i went wrong..
    thanks
    mk

  • Sales order item 1 values are getting deleted

    HI,
    when i am creating sales order with material variants the dimension values( legth ,width ) for the first item are getting delted. it is happening after the BAPI_SALESORDER_CHANGE executed for  the second item. where could be the problem. is any flag values do i need to check?
    please suggest.

    Hi:
    Thanks for the response.
    Yeah, when I try to create an Order manually with the item category that is coming in IDOC I am able to see the Text ID's at the item level and I am even able to save some text in them.
    Do you think we need to do something else somewhere? May be we need to explicitly write some additional logic in order to save the item texts.
    Thanks.

  • USER EXIT: Update Sales Order Item User Stauts

    Can you tell me the user exit that performs the would alter the system status from open to complete if the PO can't be cancelled and therefore the sales item can't be rejected ?
    If the item has been shipped, item system status to be changed to Complete (not allow further processing). If the item is rejected, the status can be complete.
    Thanks!!

    The status management is performed by the standard operations.
    So you cannot update it directly. If some malfunction occurred, run program SDVBUK00 to restore the right statuses.
    pls. reward if helpful
    Roberto

  • Updating Sales Order Retrospectively with PGI figure

    Hi
    Does anyone know if there is a way of retrospectively updating sales order with the value that has actually been POST GOODS ISSUED
    Thanks
    Tony

    What do you mean by Value? does the Value of the item change during PGI?
    If you mean to say, quantity, then yes, After PGI, go back to your order and change the order qty = PGI qty.
    Regards
    Sai

  • Function Module or BAPI to update Short text  for sales order item(vl02n)

    Hi All,
    I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
    Does any body know any Function Module or BAPI which can accomplish this purpose .
    Or else writing BDC is the only option I have got ? .
    Please clarify .
    Thanking you in advance .
    With Regards,
    Suriya .

    Hi
    You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
    Regards
    MD

  • Update Pricing elements for sales order item

    Hello All,
    I want to add few manual pricing elements to a sales order item through code (the pricing elements to be added will be determined dynamically). Is there any BAPI  or user exit to update the same?
    Regards,

    Hi
    You can use the BAPI_SALESORDER_CREATEFROMDAT2 for creating  the sales order.Using this you can populate the pricing conditions for sales order. To pass the Pricing conditions use the str ORDER_CONDITIONS_IN & ORDER_CONDITIONS_INX in BAPI.
    Regards,
    Raghu.

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item

    Hi,
    The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
    The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    Request your suggestions to avoid this error.
    Thanks

    >
    anikaushi wrote:
    > Hi,
    > The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    >
    >  error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    >
    >
    > Thanks
    Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
    you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
    Please see the SDN thread for how you can avoid this error...
    Re: Cancel Sale Order after Issued Billing

Maybe you are looking for

  • Some error after install and configure fmw 11g

    I have installed: jdk 1.6.0_30 x64 weblogic 10.3.4 generic forms and reports 11.1.1.2 >> patch set 11.1.1.4 on windows server 2008 standard sp2 x64 RAM 6GB installed all as services, my application is running ok (it seems to be ok) but -the url http:

  • What is "List and Labels"

    Hi, I heared like SBO Report Editor is Replaced by "List and Labels". what is "List and Labels"  and what are the uses. bcoz i am trying to use crystal Reports. plz help me asap. Regards, Anand

  • RoboHelp permissions

    Hi everyone, Our company has a very strict policy in terms of employees' permissions on their workstations. Unfortunatelly it appears users needs local admin rights not only to install but to run RoboHelp 6.0. I contacted the Adobe support and here i

  • Runtime dump error getting while goods posting

    Hi,gurus   When in MB1C i am trying to post goods.While saving i got message 49 number ranges should be defined.I done it clear in FBN1.So when i am saving posting goods i am getting runtime dump error.So how can i solve this problem Regards, Suresh

  • Changing File path for different TIFF files in a For loop

    Hi dear users: I am using "IMAQ write TIFF File.vi" that basically writes a TIFF file to a specified file path. However, I would like to CHANGE the file path for each TIFF file i save in a for loop. The reason for this is that the File path has to in