Unit conversion in the sales order

Hi All,
We have got a typical requirement from the user where they need unit conversion at sales order creation level.
The scenario goes as below.
Initially the order quantity will be enetered in terms of pieces and the price will be determined accordingly. Now user wants to have option in the sales order screen, by pressing which the order quantity (unit of measurement) should convert in to number of boxes. Also price they want to redetermine based on the number of boxes.
example: Assume a each box can accomodate 12 pieces.
So initially in the order 24 units of the material are entered and price per piece is 10 USD so the total price will become 240USD.
Now when they press the conversion button in the screen then the number of unit should become 2 and price per quantity should become at box level. i.e 120 per box. 
Please let me know whether through available std config is it possible to achieve this or please let me how we can achieve this.
Regards,
Anand

Hi,
In material master sales : sales orgz. 1 >>> maintain sales unit & enter system will popup new window speciefy
e.g
1 box <===> 100 ea.
Now create order and system will determining sales unit, if u want to change it change.
Also see in iteam deteail tab conversion factor is appearing.
Regards,
kapil

Similar Messages

  • Create and Pack Handling Units in the Sales Order Using HU_CREATE_ONE_HU

    Hello Experts,
    I am trying to use HU_CREATE_ONE_HU function module to create a handling unit and pack it with specific line items in the sales order program in the background.  I am able to create the handling unit and pack it but it does not get associated to the sales order / line item.  If you look at the sale order's packing proposal, it does not show it packed.  If I look at VEKP / VEPO, I see where it was created but there is no value for vbeln or the posnr I proposed.  Below is the code, I am using.  Does anyone know what I am doing wrong or is there another function module I can use?
    LOOP AT t_vbap.
        CLEAR:   is_header_proposal, it_items, es_header, et_items, et_messages, t_vbap2.
        REFRESH: et_items, et_messages, t_vbap2.
        is_header_proposal-exidv          = '$1'.
        is_header_proposal-exida          = 'A'.
        is_header_proposal-vhilm          = 'UNIBOX'.
        is_header_proposal-hu_status_init = 'A'.     "planned
        is_header_proposal-status         = '0001'.  "planned
        "get the components that make up this subassembly including the parent.
        SELECT * FROM vbap
          INTO TABLE t_vbap2
         WHERE vbeln = t_vbap-vbeln
           AND posnr = t_vbap-posnr. "parent
        SELECT * FROM vbap
          APPENDING TABLE t_vbap2
         WHERE vbeln = t_vbap-vbeln
           AND uepos = t_vbap-posnr.  "children
        "now load the items to be packaged in the proposal
        LOOP AT t_vbap2.
          CLEAR: it_item.
          it_item-velin    = '1'. "material item
          it_item-belnr    = t_vbap2-vbeln.
          it_item-posnr    = t_vbap2-posnr.
          it_item-quantity = t_vbap2-kwmeng.
          it_item-meins    = t_vbap2-meins.
          it_item-matnr    = t_vbap2-matnr.
          it_item-werks    = t_vbap2-werks.
          it_item-lgort    = t_vbap2-lgort.
          APPEND it_item TO it_items.
        ENDLOOP.
        CALL FUNCTION 'HU_INITIALIZE_PACKING'.
        CALL FUNCTION 'HU_CREATE_ONE_HU'
          EXPORTING
            if_create_hu       = 'X'
            is_header_proposal = is_header_proposal
            it_items           = it_items
          IMPORTING
            es_header          = es_header
            et_items           = et_items
            et_messages        = et_messages
          EXCEPTIONS
            input_missing      = 1    " Data that is Necessary for Creation is Missing
            not_possible       = 2    " HU Creation not Possible
            header_error       = 3    " HU Header Data Contains Incorrect Data
            item_error         = 4    " Items Cannot be Created
            serial_nr_error    = 5    " Serial Number Error
            fatal_error        = 6    " Internal Error
            OTHERS             = 7.
        CALL FUNCTION 'HU_POST'
          EXPORTING
            if_synchron = space
            if_commit   = 'X'.
      ENDLOOP.
    Thanks for the help.
    Laura

    The abap statement does not make sense.
    xlips_high_posnr = ( lips-posnr / tvlk-incpo ) * tvlk-incpo
    posnr & incpo are both type numc length 6.
    Here is my recommendation to catch the divide by zero error.
      data: l_oref    type REF to cx_root.
      data: l_text    type string.
      TRY.
            clear l_text.
             xlips_high_posnr  = lips-posnr / tvlk-incpo.
            CATCH cx_sy_zerodivide INTO v_oref.
              l_text = l_oref->get_text( ).
            CLEANUP.
    *      Put your code to do further processing if it is divide by zero
      ENDTRY.

  • Editing the conversion field in the sales order

    Can any one tell me how to use the user exit USEREXIT_FIELD_MODIFICATION in order to make the conversion field in the sales order enabled so that i can edit it in the sales order
    Regards,
    SD Consultant

    Hi Serry,
    As per my understanding you are talking about currency conversation in sales order which is in grayed out at sale header level,the values are coming from VBKD - KURSK so through the user exit ask your abaper make that filed in editable mode.
    Regars
    Ram

  • How to drive sales order Organizational Unit to equal the Sales Office

    CRM 7.0, sales order is using org rule ORGMAN_23 which has FM CRM_ORGMAN_ORGOBJECTS_FIND_11
    The sales order finds the sales org, dist channel, division, sales office, and sales group but the Organizational Unit always matches the sales group.
    Will any of the delivered FM's used in PFAC
    CRM_ORGMAN_ORGOBJECTS_FIND_1
    CRM_ORGMAN_ORGOBJECTS_FIND_2
    CRM_ORGMAN_ORGOBJECTS_FIND_3 ......
    return the results I desire? or will we need to copy and modify one of these FM's.

    Hello,
    You need to adjust your org structure in ppoma_crm.
    Currently the org unit which is mapped to an ECC sales group holds the attributes that mapped to the BP's sales area data.
    (If you are using rule ORGMAN_23).
    Please create an org unit, which is not mapped to the sales group, with the desired attributes, then assign the BP to this org unit.
    Best regards,
    Maggie

  • How can i change unit of measurement in sales order on header

    Dear all,
    I have material master with base unit of measurement " Ea ".
    I have to take unit Pc in sales order.
    how can i change unit on header in sales order.
    i changed unit on line item in sales order by setting in sales unit field in material master.

    Hi,
    You can very well do it, please do the following steps,
    Go to material master and select the Sales Org.1 and 2, here maintain the sales unit PC and
    it will ask you for the conversion, so maintain your conversion for PC to EA. Then maintain
    the Division, delivery plant, material pricing group and account assignment group(if not maintained) and save it
    Now create the sales order for that resp. material, you will find that system will pick up
    the sales unit which is maintained in the material master's sales orgnization tab.
    For this you need not to change at the header level of sales order
    Please check and revert.
    Thanks,
    Hrishi

  • PP: Production Order Qty UOM should be based on the sales order Qty UOM though having Alternate UOMs in material master

    Hello PP GURUS I am new to this and i have one issues. I.e., While creating the Production Order, want the unit in the production order should be based on the sales order unit instead of what has been defined in the material master. Since, having 3-4 alternate unit of a material & can create a Sales Order in any one of them.
    Also pls let me how to go through
    either with the help of ABAP or configuration.
    If it is with the configuration pls let me know the solution to arrive.
    Eg: Base UOM is KGS
          Alt UOMs: SQM, MTR, NOS
    Sale order is Prepared with SQM and the same shall be in production order too to produce qty.
    Pls help me.
    rgds,
    Kumar V

    Hi
    First you have to maintain alternate units in mateial master for that first go in additional data & maintain the alternate units as below..
    For example
    1200 M2=1 KG For SQM
    12 M=1 KG For MTR
    3 PC=1 KG For NOS
    And then you can get Sales unit field in sales data 1 view enter your sales unit in that field & you will get production unit in work scheduling views as per your desire production units and according to that units your sale order & production order will pick that units & you can proceed accordingly but remember that first maintian the conversion factor as above other wise it will not accept hope that it will help you have a nice day...
    Regards,
    Reena

  • Production Order and Internal Order for each item of the sales order

    Hi
       I am developing Make To Order Report where I have to display the MTO Line Items and non MTO Line Items. For non MTO Line Items I have to display Internal order with Planned and Actual Costs and also Production Order with Planned and Actual Costs. Could anybody tell how to get the Internal order no and production order with Planned and Actual costs for each line item for a sales order.
    Thanks
    Naga

    Hi,
    You can get the Production orders, Planned orders, Internal orders generated for Sales order item from AFPO table (use fields KDAUF-Sales order number & KDPOS-Sales order item). Then to identify the order type use order category (AUTYP) from table AUFK.
    Once you have the Production/internal order, you can ge the cost from COSS and COSP table. Use the object number from AUFK to get the cost entries from COSS & COSP.
    You can use the following sample code as reference.
    Hope this is helps.. (Don't forget to mark it... )
    Form GET_COSTS                                                       *
    Get the material cost, labour hours and the labour cost for the      *
    sales order material.                                                *
    There are no interface parameters to be passed to this subroutine.   *
    FORM GET_COSTS.
      DATA V_OBJNR LIKE AUFK-OBJNR.
    DATA v_menge LIKE vbap-kwmeng.
      SELECT SINGLE OBJNR
        INTO V_OBJNR
        FROM AUFK
       WHERE AUFNR EQ AFPO-AUFNR.
      SELECT * FROM COSS
       WHERE OBJNR EQ V_OBJNR
         AND WRTTP IN ('01', '04'). " p_wrttp. "Labour Cost ( Plan, Actual)
        PERFORM GET_VALUES_FROM_COSS.
      ENDSELECT.
      SELECT * FROM COSP
       WHERE OBJNR EQ V_OBJNR
         AND WRTTP IN ('01', '04')         " p_wrttp
         AND KSTAR NE '0000510033'. " EQ p_kstar2.      "Material Cost
        PERFORM GET_VALUE_FROM_COSP.
      ENDSELECT.
    Get the unit cost of the production order by dividing the production
    cost by the order quantity. The result will be multiplied by the
    GL posting qunatity (Delivery quantity) to get the production cost
    for the quantity being deluivered.
      IF NOT AFPO-PSMNG IS INITIAL.
        OUT_REC-LABOUR_HOURS_ACT = OUT_REC-LABOUR_HOURS_ACT / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_HOURS_ACT =
                          OUT_REC-ADDNL_LABOUR_HOURS_ACT / AFPO-PSMNG.
        OUT_REC-LABOUR_HOURS_PLN = OUT_REC-LABOUR_HOURS_PLN / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_HOURS_PLN =
                         OUT_REC-ADDNL_LABOUR_HOURS_PLN / AFPO-PSMNG.
        OUT_REC-LABOUR_COST_ACT = OUT_REC-LABOUR_COST_ACT / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_COST_ACT =
                         OUT_REC-ADDNL_LABOUR_COST_ACT / AFPO-PSMNG.
        OUT_REC-LABOUR_COST_PLN = OUT_REC-LABOUR_COST_PLN / AFPO-PSMNG.
        OUT_REC-ADDNL_LABOUR_COST_PLN =
                         OUT_REC-ADDNL_LABOUR_COST_PLN / AFPO-PSMNG.
        OUT_REC-MATERIAL_COST_ACT = OUT_REC-MATERIAL_COST_ACT / AFPO-PSMNG.
        OUT_REC-ADDNL_MATERIAL_COST_ACT =
                         OUT_REC-ADDNL_MATERIAL_COST_ACT / AFPO-PSMNG.
        OUT_REC-MATERIAL_COST_PLN = OUT_REC-MATERIAL_COST_PLN / AFPO-PSMNG.
        OUT_REC-ADDNL_MATERIAL_COST_PLN =
                         OUT_REC-ADDNL_MATERIAL_COST_PLN / AFPO-PSMNG.
      ENDIF.
    Multiply the calculated Unit Production costs with the GL quantity to
    get the actual production cost of the quantity delivered.
    Calculation for Labour Hours
      OUT_REC-LABOUR_HOURS_ACT = OUT_REC-LABOUR_HOURS_ACT *
                                 OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_HOURS_ACT = OUT_REC-ADDNL_LABOUR_HOURS_ACT *
                                 OUT_REC-QUANTITY.
      OUT_REC-LABOUR_HOURS_PLN = OUT_REC-LABOUR_HOURS_PLN *
                                 OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_HOURS_PLN = OUT_REC-ADDNL_LABOUR_HOURS_PLN *
                                 OUT_REC-QUANTITY.
    Calculation for Material Cost
      OUT_REC-MATERIAL_COST_ACT = OUT_REC-MATERIAL_COST_ACT *
                                  OUT_REC-QUANTITY.
      OUT_REC-ADDNL_MATERIAL_COST_ACT =
          OUT_REC-ADDNL_MATERIAL_COST_ACT * OUT_REC-QUANTITY.
      OUT_REC-MATERIAL_COST_PLN = OUT_REC-MATERIAL_COST_PLN *
                                  OUT_REC-QUANTITY.
      OUT_REC-ADDNL_MATERIAL_COST_PLN =
          OUT_REC-ADDNL_MATERIAL_COST_PLN * OUT_REC-QUANTITY.
    Calculation for Labour cost
      OUT_REC-LABOUR_COST_ACT   = OUT_REC-LABOUR_COST_ACT *
                                   OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_COST_ACT = OUT_REC-ADDNL_LABOUR_COST_ACT *
                                  OUT_REC-QUANTITY.
      OUT_REC-LABOUR_COST_PLN   = OUT_REC-LABOUR_COST_PLN *
                                  OUT_REC-QUANTITY.
      OUT_REC-ADDNL_LABOUR_COST_PLN = OUT_REC-ADDNL_LABOUR_COST_PLN *
                                  OUT_REC-QUANTITY.
    Get the planned material cost from the total of the planned cost of
    the component materials in the production order confirmations.
      SELECT BWART MENGE MATNR SHKZG FROM AUFM
        INTO (AUFM-BWART, AUFM-MENGE, AUFM-MATNR, AUFM-SHKZG)
       WHERE AUFNR EQ AFPO-AUFNR.
        CHECK AUFM-BWART NE '101'.
        READ TABLE I_MBEW WITH KEY MATNR = AUFM-MATNR
                                   BWKEY = AFPO-DWERK.
        IF SY-SUBRC NE 0.
          SELECT MATNR BWKEY ZPLPR LPLPR PEINH
            FROM MBEW
            INTO I_MBEW
           WHERE MATNR EQ AUFM-MATNR
             AND BWKEY EQ AFPO-DWERK.
            APPEND I_MBEW.
          ENDSELECT.
        ENDIF.
        IF SY-SUBRC EQ 0.
          IF I_MBEW-ZPLPR NE 0.
            IF AUFM-SHKZG EQ 'H'.
              OUT_REC-PLANNED_MATERIAL_COST =
              OUT_REC-PLANNED_MATERIAL_COST +
                           ( I_MBEW-ZPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ELSE.
              OUT_REC-PLANNED_MATERIAL_COST =
              OUT_REC-PLANNED_MATERIAL_COST -
                           ( I_MBEW-ZPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ENDIF.
          ELSEIF I_MBEW-LPLPR NE 0.
            IF AUFM-SHKZG EQ 'H'.
              OUT_REC-CURRENT_MATERIAL_COST =
              OUT_REC-CURRENT_MATERIAL_COST +
                           ( I_MBEW-LPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ELSE.
              OUT_REC-CURRENT_MATERIAL_COST =
              OUT_REC-CURRENT_MATERIAL_COST -
                           ( I_MBEW-LPLPR * AUFM-MENGE / I_MBEW-PEINH ).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDSELECT.
    Get the Future material cost per Unit by deviding the calculated
    Future material cost above with the goods reciept quantity to, then
    multiply the unit cost with the GL quantity to get the Future material
    Cost for the Quantity delivered. (Quantity in the entery from GLPCA
    Table).
      IF NOT AFPO-WEMNG IS INITIAL.
        OUT_REC-PLANNED_MATERIAL_COST =
           OUT_REC-PLANNED_MATERIAL_COST / AFPO-WEMNG * OUT_REC-QUANTITY.
        OUT_REC-CURRENT_MATERIAL_COST =
           OUT_REC-CURRENT_MATERIAL_COST / AFPO-WEMNG * OUT_REC-QUANTITY.
      ENDIF.
    ENDFORM.                               " GET_COSTS
    Form GET_VALUE_FROM_COSP                                             *
    Get the Material cost from COSP table.                               *
    There are no interface parameters to be passed to this subroutine.   *
    FORM GET_VALUE_FROM_COSP.
      FIELD-SYMBOLS: <FS> TYPE ANY.
      DATA: V_COMPONENT TYPE I.
    Cummulate the posting values of all the 16 period buckets as to get
    total production order cost. This is to handle the aprtial posting of
    prodction order values in diffrent periods.
      V_COMPONENT = 15.
      DO 16 TIMES.
        ADD 1 TO V_COMPONENT.
        ASSIGN COMPONENT V_COMPONENT OF STRUCTURE COSP TO <FS>.
        IF COSP-WRTTP EQ '04' AND COSP-KSTAR EQ P_KSTAR2.
          ADD <FS> TO OUT_REC-MATERIAL_COST_ACT.
        ELSEIF COSP-WRTTP EQ '04'.
          ADD <FS> TO OUT_REC-ADDNL_MATERIAL_COST_ACT.
        ELSEIF COSP-WRTTP EQ '01' AND COSP-KSTAR EQ P_KSTAR2.
          ADD <FS> TO OUT_REC-MATERIAL_COST_PLN.
        ELSEIF COSP-WRTTP EQ '01'.
          ADD <FS> TO OUT_REC-ADDNL_MATERIAL_COST_PLN.
        ENDIF.
      ENDDO.
    ENDFORM.                               " GET_VALUE_FROM_COSP
    Form GET_VALUES_FROM_COSS                                            *
    Get the Labour cost and Labour hours from the COSS table.            *
    There are no interface parameters to be passed to this subroutine.   *
    FORM GET_VALUES_FROM_COSS.
      FIELD-SYMBOLS: <FS1> TYPE ANY,
                     <FS2> TYPE ANY.
      DATA: V_COMPONENT1 TYPE I,
            V_COMPONENT2 TYPE I.
    Cummulate the posting values of all the 16 period buckets as to get
    total production order cost. This is to handle the aprtial posting of
    prodction order values in diffrent periods.
      V_COMPONENT1 = 15.
      V_COMPONENT2 = 111.
      DO 16 TIMES.
        ADD 1 TO: V_COMPONENT1, V_COMPONENT2.
        ASSIGN COMPONENT V_COMPONENT1 OF STRUCTURE COSS TO <FS1>.
        ASSIGN COMPONENT V_COMPONENT2 OF STRUCTURE COSS TO <FS2>.
        IF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ P_KSTAR1.
          ADD <FS1> TO OUT_REC-LABOUR_COST_ACT.
          ADD <FS2> TO OUT_REC-LABOUR_HOURS_ACT.
        ELSEIF COSS-WRTTP EQ '04'.
          ADD <FS1> TO OUT_REC-ADDNL_LABOUR_COST_ACT.
          ADD <FS2> TO OUT_REC-ADDNL_LABOUR_HOURS_ACT.
        ELSEIF COSS-WRTTP EQ '01' AND COSS-KSTAR EQ P_KSTAR1.
          ADD <FS1> TO OUT_REC-LABOUR_COST_PLN.
          ADD <FS2> TO OUT_REC-LABOUR_HOURS_PLN.
        ELSEIF COSS-WRTTP EQ '01'.
          ADD <FS1> TO OUT_REC-ADDNL_LABOUR_COST_PLN.
          ADD <FS2> TO OUT_REC-ADDNL_LABOUR_HOURS_PLN.
        ENDIF.
      ENDDO.
    ENDFORM.                               " GET_VALUES_FROM_COSS

  • Material Listing Error while creating the sales order

    Hi Guru's
    I have mantained a material in the lisitng for A002 combiantion for SO/DC/Pric. ref. material
    While creating the sales order is throwing an error as material is not listed so the transaction is not possible.
    I have done the basic invetingation on the folowing aspects
    1)checking the material in the listing
    2)Validity periods
    3)Material not blcoked
    4)Mateial is extened for the respective sales org
    Kindly help ASAP.
    Thanks & Regards
    Tarakaram

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • Error while creating the sales order with billing reference

    hi alll
    i am getting error while creating the sales order with billing reference.The line items are coming in grey.I am not able to change the items as well as the quantity field.Can u guide me
    cheers
    shalsa007........

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • How PIR's are consumed by the customer requirements even though the sales orders are blocked?

    Dear experts,
    I am using strategy 40 for material A with Backward/Forward consumption of 60 days backward and 60 days forward.
    My PIR is as follows :-
    Material Month #1 Month #2 Month #3 Month #4 Month #5 ....
    material A 100 100 100 100 100 ....
    I created a Sales Order for material A with the quantity of 600 in Day 4 of Month #1.
    After MRP run, planned order conversion and production order has been completed.
    Month #1, Month #2 and Month #3 PIR's are consumed even though we made the setting in Such a way that the sales orders should just display but not planned  . and the sales orders are into the blocked requirements list in the result of /n/afs/MD02.
    1)but why it is consuming the PIRS?
    2)is there any affect of backward and forward consumption on this?
    Thanks in advance.
    Regards
    Bhargavi Desai

    Hi,
    Normally it is recommended that, not to delete PIR's one by one or remove quantity from previous periods/ requirement manually. If the PIR's of previous month is not consumed it is normally a feedback to sales people to do a analysis at their end.
    In PP point of view, normally a re-organization run is carried out by MD74, MD75 or MD76. The same can be done by  scheduling batch job to run on month ends basis w.r.t. period you specify.
    Regards,
    Narresh

  • Packing items to display in the Sales Order & Delivery

    Hi Experts,
    My client does not have HUM in SAP. They manufacture equipments & sell it to their customers.
    So in the Sales Order only the Top level machine number is entered & not the components that
    was used to built it.
    For example, let me say that to build a machine it requires 1000 components & out of which 50 are the
    1st level components as sub-assembly.
    Now there is a requirement from the Shipping dept, to list down only the first level components (in this case only these 50 parts) in the Sales Order as F.O.C so that the delivery will also show those individual items followed by the Packing List.
    But the billing document has to show only the top level equipment & not these 1st level components.
    Please tell me the steps to meet this requirement.  Is Handling Unit required in delivery to meet this?
    Regards,
    Pri

    Hi,
    If I have not misunderstood, u have a component(comprising of several sub assemblies) and you want to bill only the main item and for the sub items the billing should not be displayed.
    Well in that case you have to create a BOM of materials with usage 5 (Sales & Distribution)
    Then in the material master maintain the item category as ERLA ie Header level pricing. Do not explode the BOM if you do not want to see the sub items (ie do not maintain the structure scope in the item category ie TAQ)
    Regards
    Mahesh
    Edited by: Mahesh V Sandbhor on Mar 24, 2010 6:13 AM

  • 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          =

  • Decimal places in unit of measure in Sales order

    Hi,
    In the Sales Order application in PCUI, when I create a create an order for customer XYZ, and add product ABC for qty 1 which uses unit of measure PC, the qty is displayed with 3 decimals as 1,000 whereas if I use the unit of measure EA the quantity is displayed without the 3 decimals as 1. I need the unit of measure PC to not have the decimal places like in SAPGUI.
    Could anyone help me understand how this can be achieved?
    Thank you for help in advance.
    Regards,
    Priya

    To elaborate better.
    Again, use Tcode CUNI - Unit of measurement : Initial Screen.
    At initial screen, choose TIME from the list (where by default AAAADL- no dimensions is there).
    And click on UNIT OF MEASUREMENT button.
    In that you will find MON - Month.
    There go for details by selecting MON or select MON and press F5 from Key board.
    For MON unit maintain following parameter as per your requirement:
    -Number of decimal places for number display
    Use - This parameter determines the number of decimal places with which this measurement unit is displayed.
    -Base ten exponent for floating-point display
    Use - This exponent determines how the values for this measurement unit are formatted as floating point numbers.
    Examples - If the exponent is 3, the floating point numbers have the format xxx.xxxxE3.
    And deselect commercial meas. unit in application parameters section.
    I would suggest instead of changing standard settings of MON, you create ZMON in TIME dimension.
    Thanks & Regards
    JP

  • How has the Sales Order Changed Prices ????

    I created a Sales Order, manually entered the prices  and Open - Printed.
    All saved and updated.
    However, customer  has received wrong prices.
    How do I check if another user has made changes?
    Or have the prices defaulted to another price list  called the (catalogue price list )
    Edited by: Philip Eller on Jun 13, 2008 9:57 AM
    Edited by: Philip Eller on Jun 27, 2008 9:53 AM*

    Darpal,
    Which Price field on the row of the Sales Order are you viewing?  There is both Unit Price and Price After Discount.  Unit Price editable, while Price After Discount is not.  If you are only viewing Unit Price on the document, B1 may be changing the price in the Price After Discount field without you being able to see it.
    B1 uses Price After Discount to calculate the final row total.
    If the Print Layout points to Price After Discount, you'd see a different price than what is in the Unit Price field on the document inside B1.
    The enhancement pack print layouts all point to the Price After Discount field, not Unit Price, out of the box.  This quite possibly be your issue if you are using the layouts directly from SAP without alterations.**
    Price After Discount will differ from Unit Price if there is any special pricing (i.e. Period and Volume Discounts or BP Special Pricing) or if a discount has been applied to the row n the Discount % column.
    Are there any types of special pricing being used?
    Confirm which database field the Price field is linked to on the print layout?
    Regards,
    Brad Windecker
    Edited by: Rui Pereira on Jul 8, 2008 5:28 PM

  • Pulling through the Variant description to the sales order

    Is there a way to change the material description in the sales order to match the Characteristic Value?  Is there an enhancement that may work?  Also, looking for an enhancement that will update the Equipment Master description based on the serial number with the Characteristic Value
    Example:
    Characteristic  XXXX Unit
    Characteristic Value number one :  XXXX   Standard Unit
    Characteristic Value number two:    XXXX  Standard Unit with  Upgrade
    Example:
    Sales Order was for the variant XXXX  Standard Unit with  Upgrade
    I would like to update the Equipment Master with this; so in the event a RMA was created we know which variant is being sent in for repair.
    Material Number: XXXXXX
    Serial Number XXXXXXX
    Description: XXXX  Standard Unit with  Upgrade
    Edited by: Kim Blair on Nov 10, 2011 3:06 PM

    hi Nikhilesh,
    Thanks for your reply, i have tried this but i am not able to save the HU (HU02), while saving i get the following error, "<b>SD doc 5141(this no. is the 1st 4 digits of my SO no.) is not in the database or has been archieved"</b>.
    It asks to run the report 'SDRQCR21', even after running this program i get the same error.
    Regards,
    Surya

Maybe you are looking for