New Line Item to be created in sale order

Hi,
Client requires a new line item to be created in sale order for particular regions only..
Scenario 1 :
For a particular region Additional Tax shud be calculated on Basic Price .
Scenario 2 :
For a particular region Cess on Vat need to incorporated.
Client wants to maintain condition records in Cond Type :UTXJ and also the client shall maintain a 2 different Tax Codes for above each scenarios,  In future in case Additional Tax or Cess on Vat is applicable to other regions it shud get posted in their respective G/L's
Plz suggest...
Thanx...

It would be wonderful had you shared your suggestion in this forum itself rather sending to personal mail ids which is against the rules and regulations of this forum.
I request you to dont do that please.

Similar Messages

  • XVBAP has the new line item but does not update Sales Order

    Hi
    I need to update the sales order with a new line item when the line item has a base unit of measure as the sales unit. I need to then convert the base unit to sales unit with a whole figure and the rest can be in the base unit.
    I am able to see the update in the xvbap but the line item doesn't get updated.
    I am puting this code in a perform within
    MV45AFZB  within   Form  USEREXIT_CHECK_VBAP
    But I guess I am doing something wrong can someone please take a look at it and tell me what is wrong with the coding.
    *&  Include       ZSD_CREATE_NEW_LINE_ITEM              *
    *&      Form  create_new_line_item
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_NEW_LINE_ITEM .
      CONSTANTS: C_MEINH LIKE MARM-MEINH VALUE 'CSE'.
    Variables Used
      DATA: WS_WMENG LIKE VBEP-WMENG.
      DATA: INPUT  LIKE VBAP-KWMENG,
            WS_EA  LIKE VBAP-KWMENG,
            WS_CSE LIKE VBAP-KWMENG.
      DATA: WS_MVKE_VRKME LIKE MVKE-VRKME.
    Internal Tables and Structures
      DATA: WS_XVBAP LIKE XVBAP.
    DATA:
    it_vbap  LIKE vbap OCCURS 0 WITH HEADER LINE,
    it_vbep  LIKE vbep OCCURS 0 WITH HEADER LINE,
    it_xvbap LIKE vbapvb OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF WS_MARM,
              MEINH LIKE MARM-MEINH,
              UMREZ LIKE MARM-UMREZ,
              UMREN LIKE MARM-UMREN,
            END OF WS_MARM.
      CLEAR WS_MVKE_VRKME.
      SELECT SINGLE VRKME INTO WS_MVKE_VRKME
        FROM MVKE
        WHERE MATNR EQ XVBAP-MATNR
        AND   VKORG EQ XVBAK-VKORG
        AND   VTWEG EQ XVBAK-VTWEG.
      IF VBAP-VRKME <> WS_MVKE_VRKME.
       LOOP AT XVBAP.
          SELECT SINGLE MEINH UMREZ UMREN
            FROM MARM
            INTO WS_MARM
            WHERE MATNR = VBAP-MATNR
            AND   MEINH = WS_MVKE_VRKME.
          IF XVBAP-MEINS <> WS_MVKE_VRKME.
            IF NOT XVBAP-KWMENG = 0.
              WS_WMENG = XVBAP-KWMENG / WS_MARM-UMREZ.
              IF WS_WMENG > 1.
    This means that the line item needs to be split into CSE & EA
                  INPUT  = XVBAP-KWMENG.
                  WS_EA  = INPUT / WS_MARM-UMREZ.
                  WS_CSE = WS_EA.
                  WS_EA  = WS_CSE * WS_MARM-UMREZ.
                  WS_EA  = INPUT - WS_EA.
    Now we have the qty. split into EA & CSE. Now to
    assign it to xvbap
                  XVBAP-KWMENG = WS_EA.
                  XVBAP-VRKME  = WS_MVKE_VRKME.
              READ TABLE XVBAP WITH KEY POSNR = XVBAP-POSNR.
                MODIFY XVBAP INDEX SY-TABIX.
                  WS_XVBAP = XVBAP.
                  WS_XVBAP-KWMENG = WS_CSE.
                MOVE-CORRESPONDING WS_XVBAP TO XVBAP.
                INSERT XVBAP INDEX SY-TABIX.
              ENDIF.
            ENDIF.
          ENDIF.
      ENDIF.     " IF xvbap-vrkme 'EA'.
    ENDFORM.    " create_new_line_item

    Hi Clark,
    Pls check the Include MV45AFZZ instead of the one which you are using . Here in this include MV45AFZZ you can have access to the Header and Line items data .
    Here in this include
          FORM USEREXIT_SAVE_DOCUMENT                                   *
          This userexit can be used to save data in additional tables   *
          when a document is saved.                                     *
          If field T180-TRTYP contents 'H', the document will be        *
          created, else it will be changed.                             *
          This form is called at from form BELEG_SICHERN, before COMMIT *
    form userexit_save_document.
    Endform.
    Either you can write the code you want to update the XVABP table here or you can use the form .
          FORM USEREXIT_MOVE_FIELD_TO_VBAP                              *
          This userexit can be used to move some fields into the sales  *
          dokument item workaerea VBAP                                  *
          SVBAP-TABIX = 0:  Create item                                 *
          SVBAP-TABIX > 0:  Change item                                 *
          This form is called at the end of form VBAP_FUELLEN.          *
    form userexit_move_field_to_vbap.
    endform.
    This are the 2 performs in this include where you can do you code and it will defnitely solve your problem.
    Good Luck to you . Let me know if your problem get solved.
    Thanks & Regards,
    Naidu.

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How many line items can be entered in sales order(maximum)

    hi,
    how many line items can be entered in sales order(maximum)
    SRK

    Hi SRK,
    The maximum number of line items in a SO or Invoice is 9999.
    Please close the thread if answered.
    regards
    Param

  • Add new line item in VA02 by copying same Order line details

    Hi All,
    I've a requirement where i need to add new line items in the Sales Order (T Code VA02) with reference to the same Order lines . For e.g an Order 80000100 which has 2 line items and the requirement is to create a new line i.e. line item 0030 by copying the details from the existing line item 0010 of the same order .
    I've checked the BAPI - BAPI_SALESDOCUMENT_COPY which is for Order Creation T Code VA01 . I'm looking out for Sales Order Change BAPI where i can give the reference as Order no and Order line item which will create a new line item in the same Order with the same details of the reference Order line item .
    Do let me know your thoughts !!!!
    Thanks,
    Bintu

    Hi -
    Please check these two FM's BAPI_SALESORDER_GETDETAILBOS & BAPI_SALESORDER_CHANGE.
    Regards,
    Atul Mohanty

  • Line item restriction after billing in sales order ?

    Hi All
    i am new to this forum and this is my first question going to put up
    After doing the billing , i am able to add another line item in the sales order via va02 , so i want know how can i restrict to add line item after completing whole cycle in sales order ?
    Regards
    Vincent

    Irrespective of whether it is an order related or delivery related, you can add en number of linei tems in sale order which is a standard functionality.  If you want to restrict, you have to go with user exit.  But there is nothing wrong in adding new line items via VA02.
    G. Lakshmipathi

  • Line Items are getting rejected in Sales Orders

    Hi,
    I am creating sales orders using ORDERS Message type and for this I am using the Standard SAP Inbound Function Module to create sales orders.
    Idocs are getting processed successfully and sales orders are getting created, but line items in the sales order are getting rejected and hey are getting rejected with reason for rejection to be <b> No Availability Lost</b>.
    So, I would like to know if this is a problem with the data furnished in the Idoc or else any custom setting have to be maintained or not?
    Raghuram

    The reason why they are failing is because in the user exit as per the logic present here whenever a EDI Order with customer Purchaser Order Type DFUE is to be processed ABGRU (Reason for Rejection) has been flagged equal to 01 and hence order item lines are having rejection reason.

  • One line item delivery for 3rd party sales order

    Hello Experts,
    We have configured a 3rd party sales order process where the PR gets created. We are using scheduling agreement(PO) and creating Schedule line and doing a GR for partial line items.  The stock is recieved as a Sales Order stock.
    But when i create a Sales Delivery the delivery document copies all the line items (ieven for the ones which we don't have GR)  from the sales order and we have to manually delete the line items from delivery doc.
    Is there a way i can restrict the delivery document to only copy the line items from the sales order  for which the sales order stock is available? If so how can we do that?
    Appreicate your help.
    Thanks
    Arpita Rani

    Hello All,
    We have configured a 3rd party sales order process. The schedule line category is configured with account assignment categoory as "M". when we are creating GR the Moving average price of the material  is not getting updated.
    But if i replace with "E" it is getting updated, but the CO-PA is not getting generated for Profitability segment reporting.--we need profitability segment reportng.
    Can some one tell me how we can update the moving average price using acc. asssignment category type "M" at the same time the Profitability segement information is updated.
    THanks in advance
    Appreciate your help
    Arpita Rani

  • Line item wise exchange rate in sales order and same in billing

    Hi,
    The client requirement is that to have  different exchange rate at line item level in sales order, for multiple sales order, we have different exchange rate in the line items wise,  we do the collective billing through VF04.  System is picking in the billing document, but not in the accounting document.
    The accounting entry should be posted separate exchange rate wise.  How to map the same.
    Can anyone throw light on this issue.?
    Regards,
    Satya

    Go through this thread
    Difference in Billing Exchange rate(VBRP-KURSK) w.r.t OB08
    G. Lakshmipathi

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • How to read overall status of line item in Tab Status of Sales Order

    Hi Friends,
    I need to read the overall status of a sales order line item in transaction VA02.
    For example line item 00010, in its status tab under processing status there is a field overall status which has value Open, Completed etc.
    I need to read the text like open, completed etc.
    Kindly help.
    Thanks,
    Pradeep

    Hi Pradeep,
    Try these tables.
    Please have a look at below tables.
    AUSP
    Characteristic Values
    CMFK
    Storage Structure for the Error Log Header
    CMFP
    Storage Structure for Errors Collected
    FMSU
    FI-FM Totals Records
    FPLA
    Billing Plan
    FPLT
    Billing Plan: Dates
    INOB
    Link between Internal Number and Object
    JCDO
    Change Documents for Status Object (Table JSTO)
    JCDS
    Change Documents for System/User Statuses (Table JEST)
    JEST
    Object Status
    JSTO
    Status Object Information
    KANZ
    Assignment of Sales Order Items u2013 Costing Objects
    KEKO
    Product Costing - Header
    KEPH
    Product Costing: Cost Components for Cost of Goods Mfd
    KNKO
    Assignment of a Cost. Est. Number to Config. Object
    KOCLU
    Cluster for Conditions in Purchasing and Sales
    KSSK
    Allocation Table: Object to Class
    NAST
    Message Status
    SADR
    Address Management: Company Data
    VBAK
    Sales Documents: Header Data
    VBAP
    Sales Documents: Item Data
    VBEH
    Schedule Line History
    VBEP
    Sales Document: Schedule Line Data
    VBEX
    SD Document: Export Control: Data at Item Level
    VBFCL
    Sales Document Flow Cluster
    VBLB
    Sales Document: Release Order Data
    VBSN
    Change Status Relating to Scheduling Agreements
    VBUK
    Sales Document: Header Status and Administrative Data
    VBUP
    Sales Document: Item Status
    VBUV
    Sales Document: Incompleteness Log
    VEDA
    Contract Data
    Regards,
    Vijay

  • User Exit during Sales Order Creation - New Line Item needed

    I have a situation during the process of sales order creation. If a Material in a line item has say 27 EA and the Base Unit is EA. But the Sales Unit is CSE. Then whenever the user enters 27 EA and presses enter he should get two line items.
    The first line item needs to convert to maximum number of CSE posible and the rest will be the second line item with the remaining EA. The order isn't important but that is what is needed. Question is how do I approach this problem and code my user exit accordingly and where do I code it.
    I was looking at SAPMV45A and saw the program MV45AIZZ which is meant as a user exit for any PAI event handling. If anybody has encountered this kind of requirement can you please share your view on this.
    I will definitely reward points for useful answers.
    Clark

    Hello Mahendra
    The requirement is as follows :
    PART 1:
    Sales Order Enter: 
    1.     When a line item is entered on a sales order (VA01 or VA02), at enter, check the sales unit of measure (VBAP-VRKME).
    •     Do not check line items where item category (VBAP-PSTYV) = TANN, TAPS or ZTAP.  TANN are free goods that should not be considered for consolidation.  TAPS & ZTAP are lower level materials as a result of product selection.  They will be attached to a higher-level material with an item category of TAX, which is relevant for consolidation.
    •     Do not check items where VRKME <> EA
    2.     If VRKME = EA, go to MARM for MATNR.
    3.     Go to record where alternate unit of measure (MEINH) = CSE, get the value from the numerator field (UMREZ).
    4.     Divide the order quantity (VBEP-WMENG) by UMREZ.
    5.     If the result is greater than 1.0, the customer has ordered more than one case and a new line item needs to be added to the sales order for the case quantity.
    6.     Add a new line to VBAP for the same material with the case quantity.  If not a whole value, the remainder of eaches (bottles) should update the qty on the first item on VBAP.
    •     Part 1 is relevant for order types ZCA, ZOR, ZSO, RE, ZSM
    PART 2:
    Batch Job to run prior to the Delivery Due List:
    1.     Read VBUK for Delivery Status (LFSTK) = A (delivery not processed).  Get all of the document numbers (VBELN).
    2.     Go to VBEP for those document numbers to get the goods issue date for the order.  There will be many records in VBEP for the same sales order.  Look at all orders with a goods issue date (WADAT) of next day.
    3.     Go to VBAK for those document numbers to see if there are multiple sales orders for the same Sold To party (KUNNR).
    4.     For customers who have more than one order in VBAK, search all line items (for all orders).  If there are no duplicate materials across sales orders, do nothing.
    •     Do not check line items where item category (VBAP-PSTYV) = TANN, TAPS or ZTAP.  TANN are free goods that should not be considered for consolidation.  TAPS & ZTAP are lower level materials as a result of product selection.  They will be attached to a higher-level material with an item category of TAX, which is relevant for consolidation.
    •     Do not check line items where reason for rejection (VBAP-ABGRU) is not blank
    5.     If there are duplicate materials, go through the same logic as in part 1.  If the quantity across the sales orders adds up to greater than one case, add the appropriate quantity to a new line item on the first sales order.   If there is a remainder qty, update the line item on the first sales order with this qty. In this case, the quantities on the second sales order needs to be closed out with a reason for rejection code of 50, ‘Line Item Consolidation’. If there is no remainder,  update the qty on this item directly.
    •     Part 2 is relevant for order types ZOR, ZCA, ZSM
    •     This batch job will have to be run manually for Day Pick orders.  The end of this program should automatically kick off the delivery due list for Day Pick orders, shipping condition 02.
    Business Justification:
    The business requires that like order line items be consolidated to one line item prior to the order going to the warehouse for picking.  This will aid in picking at the warehouse as well as result in the customer invoice not reflecting more than one line item for the same material.  In the case where the customer has truly ordered more than a case, i.e;, 1 case, 2 bottles, the documents in SAP will still reflect 2 lines.

  • How to add new line item to PO using BAPI_PO_CREATE1

    Hi,
    I have a purchase order with 2 line items, now i want to add new line item to the same PO using BAPI_PO_CREATE1.
    Here new line item should be created with reference PR line item.But this PR line item is Dynamic it get generated once the Sales order line item get changed.
    Please let me know how can i pass the PR doc no, PR line item no as reference to create the new PO line item.
    Thanks
    Bhuvana

    Hi,
    I think you need to use BAPI: BAPI_PO_GETDETAIL, then BAPI:BAPI_PO_CHANGE.
    BAPI_PO_CREATE1 equals ME21N, but adding new line item needs to be done in ME22N.
    Cheers,

  • Block creation of new line item in SO

    Hi,
    Scenario:
    In the sales order, the order quantity of line item 10 is 10pcs, only 5pcs is shipped. I want to allow the remaining 5pcs to be able to ship at some other time. However, no modification is allowed in the order quantity of this line item 10. Also, no addition of new line item in this sales order.
    Question:
    How to block creation/addition of new line item or block modification in the order quantity of the existing line item, but allow the existing line item to be shipped in a sales order?
    Thanks.

    Hi Wooi,
                 You can control through User authorisation, you maintain the authorisation for VA02 for the specific User with the help of BASIS people.
    If you donot want maintain the authorisation you need to activate the User Exit for the with the help of ABAPer.
    You can use these User exits.
    The program is MV45AFZZ
    USEREXIT_READ_DOCUMENT
    USEREXIT_SAVE_DOCUMENT
    USEREXIT_SAVE_DOCUMENT_PREPARE
    I hope it will help you
    Regards,
    Murali.

  • Adding new line item to the Purchase Requisition

    Hi Guys,
    I have created the PR using the BAPI_PR_CREATE. Now I want to add the new line item to already created PR. I tried with BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE but nothing worked for me.
    Can anyone help me in this.
    Thanks in advance
    Edited by: jayakrishna.k on Feb 16, 2011 12:07 PM

    Hi,
    Please try MEMASSRQ or change by ME52N
    Regards,
    Manish Jain

Maybe you are looking for

  • �how can I resolve a "com.ms.security.SecurityExceptionEx"?

    I've got a problem. I've done a client/server application that extends from Applet. When I try to connect the client application with the server one, the Internet Explorer gives me this error: excepcion= com.ms.security.SecurityExceptionEx[ConexionSe

  • Looking for logic audio platinum version 6

    I have looked high,and low,i cant find it on ebay,craigslist,anywhere.Does anyone know where i could find Logic audio platinum,version 6,for os 9?Every site that had it expired,or doesnt have it any more.Any ideas would be wonderful,thanks

  • Total orders in three weeks for a customer that was new three weeks ago.

    I need help figuring out the MDX to use to calculate this measure: Total orders in three weeks for customers that were new three weeks ago.   I seem to be having a brain freeze or over thinking this as usual.  My records have a customer, a date, a f

  • Coloured portion in XY graph

    Dear All, I am trying to build a vi which starts to find the average of data points. The starting point is specified with the no of points taken for the averaging. I like to have a coloured region - a line to be shown in the XY graph where the s

  • Problem using saxparser(reading japanese xml file)

    Hi everybody, I hav a problem while reading japanese xml file.(UTF-8 charset) I have to read the file and process it. But in the characters function of the saxparser(defaulthandler) the japanese chatracters are not read properly and the program is di