How to split a condition value across line items with varying percentages?

Hello, can anyone suggest how this can be resolved.  This is the scenario. 
My client wants to be able to determine pricing for a sales document with a wide range of conditions.  One particular condition contributes to the total price of each sales item by determining a percentage of the total amount.  The percentage used isn't a fixed percentage but it is determined as follows:  Lets say I have 3 sales items in the document  with prices 200, 300 and 500 respectively.  The total amount for the condition (which is known) then has to be shared amongst these 3 items according to the price of each item.  How can this be achieved?  Any ideas?

You will have to define a Header Condition which will apply to all the Items.
Then, You will have to develop a Z- Requirement in T-Code - VOFM with help your ABAPer.
Then assign this Routine in Alternative formula for condition base value column in your Pricing Procedure.
The ABAP code in the Requirement will read the Basic Price of all the Items & then proportionately divide the value of said Condition line-item wise.
Hope this clarifies.
Thanks,
Jignesh Mehta

Similar Messages

  • How to fetch the condition value per line item in PO o/p

    Dear Experts ,
    I need to fetch the value of the all valid condition types in the PO item , for its o/p .
    For this i should know
    1.what all are the  condition types involved in the item .
    2.what is the condition rate
    3. what is the condition value .
      Pleas etell me how do i fetch this data ??
    Thanks in advance
    Regards
    Anis

    Hi Anis,
    At first collect the doc.condition-KNUMV from EKKO table.
    Later enter the above doc.condition no in KONV and KONP to get the details.
    Regards
    Ramesh Ch

  • Error in entering header level conditional value - toomany line items to PO

    Hi experts
    I have an issue while  processing a PO. While entering condition values like Freight, Customs duty etc in header level where the order contains more than 1000 line items, i am getting an error " too many line items, msg no.899". Can somebody, guide on this how this can be resolved.
    rgds
    Raghu

    HI Raghu,
    The only possible way is to create two diffrent PO's.
    As you have maintain various conditions, this will lead to updation of many FI documents at the time of GRN.
    This is SAP Limitation.
    Regards,
    Amit
    njoy SAP..
    njou Life....

  • How to split ACC_DOCUMNET03 IDOC after 100 line items for given posting

    Hi Friends,
    I need to create an IDOC based on the company code and posting date & a particular company code for a given date has reached 100 line items then create another IDOC for that.
    EX:
    I have 150 Line Items in file
    120 Items are related to Company Code "1100" and remaining 30 related to company code "1200"
    For this i need to create IDOC's like this
    one IDOC with 100 line items which will contain 1100 company code
    second IDOC with 20 line items which will contain 1100 company code
    Third IDOC with 30 line items which contain 1200 company code
    I assume that this can be done through UDF.
    Please can you guys help me this.
    Thanks in advance.
    Thanks,
    Vivek.

    chk this:
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool

  • How to update all condition records at a time with some percentage or some

    Dear Sir,
    In PRD system we have more than 600 condtion records.
    Noe desiel hikes happend, due to that client want to update all condition records(600) at a time with required percentage or required value.
    How to update all records at a time
    With regards
    Lakshmikanth

    Hi,
    Through BDC or LSMW first you have to do the recording for particular transaction code and then base on that u have to prepare the flat file to upload the file for the same.
    For BDC programing you have to take the help of ABAP progmer but LSMW you can also do.
    For more information about LSMW plz go to following link :
    [LSMW |http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench/]
    [Step-by-Step Guide for using LSMW|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]
    BDC
    [BDC Call Transaction|http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm]
    [BDC Recording|http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm]
    But it would be better for you to please contact to your ABAPer for BDC programming.
    Cheers...

  • How to pull PO line item with "Block" indicator

    Hi all
    In ME2N, how do I pull all the PO line items with the "block" indicator set?
    I couldn't find a field in dynamic selection.
    Thanks in advance!

    HI,
    1. In ME2N -
    >Go to EDIT menu and then select Dynamic Selections (Shift+F4).
    Next select Purchasing Document item and double click on deletion indicator.
    Select the indicator and excute.
    Hope it helps..
    regards

  • GL account balance splitting in more than one line item in FSV

    Friends,
    While going through the FSV, gl account balance is splitting in more than one line item with same account name.  But if we total the line items ultimately it is tallying with GL balance.  What might be the reason.  Why it is splitting the balance in more line items with same name and same account number.

    Dear,
    You might be having Document Splitting Activation.with Bussiness Area/ Segment wise/Profit Center Wise. For this please Check - Path > Spro > SAP reference IMG > Financial Accounting (New) > General Ledger Accounting (New) > Business transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting.
    Please go through this & will  be able see the Document Splitting is based on Bussiness Area/ Segment wise/Profit Center wise or may be both.
    T & R,
    Madhuri Panda

  • In Sales enquiary stage how system calculate EK02 condition value as cacula

    Hi
    In Sales enquiary stage how system calculate EK02 condition value as caculated cost
    Is there any cofig to get the value of EK02 condition for calculated cost at Enquairy stage only for forcasting
    Regards
    Santosh

    Hi,
    In our company we get the calculated cost into our sales document with the following configuration:
    IMG: Plant maintenance and customer service / Maintenance and service processing / Basic settings / Quotation creation and billing / ODP4 - Assign conditions to sales document types
    With this configuration, we assign the calculated cost condition (EK02) to the corresponding sales document. The system sends the calculated costs from the order to the corresponding sales order created.
    Regards,
    Óscar
    http://blogdesap.blogspot.com

  • Printout of Changed PO Line items with Quantity and value

    Hi SAP Gurus,
    I want to have the printout of  only those PO Line items with the change in Quantity and Value....
    How can i achieve this...
    Any config./ Developement...
    Plz. suggest....
    Rgds,
    Navin

    Hi,
    In config Purchasing->Messages->Output Control->Message Determination Schemas->Define Message Schema for PO, under 'Assign Schema to Purchase Order', if the 3rd indicator from the right 'New message determination process for change messages' is NOT selected, only changes are printed in the changed PO's.
    Are you using standard print program and SAPScript?
    Also under config Messages->Message Type->Define Message Type for PO->Fine-Tuned Control: Purchase Order, make sure you have operation '2' for PO output type.
    Phyllis.
    Edited by: Phyllis Waugh on Oct 10, 2008 6:40 AM

  • Display conditions as billing line items

    Hello,
    I have a sales order with one line item.  This line item is mapped to 2 conditions.  Everything works fine.
    When I generate a billing document, I get only 1 line item (also expected).
    But I would like my billing document to show the conditions.  This is because I'd like my customer to see a complete breakdown of all the prices that were used.
    Is this possible in SD? If so, how?  Thanks!

    If I understood correctly , you have a sales order one line item with 2 conditions , the same order if you do the billing only one condition is appearing.. ?
    If yes then check the pricing analasys in Billing , then check in pricing procedure if Requirement-24 has been assigned againes missing condition type.

  • How to create matreial document for ten line items (10 documents) by BAPI

    Hi
    how to create matreial document for ten line items (10 documents) by BAPI_goodsmvt_create
    i created but it gives error as "no ites were transferre
    and i need code also.
    thanks in advance

    Prabhu Peram wrote:>
    > >
    Gareth @ Atos Origin UK wrote:
    > > Prabhu,
    > >
    > > You have been on SDN a long time and have a decent amount of points - why do you feel the need to simply cut and paste standard SAP documentation? _-----> I least bother abt the Points, and i never ask somebody to give points to me , if u have any doubt on it , u can check all my postings ? All it does is fill up the SDN servers with replicated data which the original poster could quite easily access themselves via SE37----> Sorry I have seen ur Posting/Reply,dont assume that i do copy & paste for sake of Points.Njoy SAP.>
    > > Gareth.
    >
    >
    >
    > regards
    > Prabhu
    Prabhu.
    I didn't question you about points at all - I was making the point that you have been on SDN a long time and have a lot of points.  Therefore you should know better than to simply cut and paste standard SAP help.  If you don't copy and paste for sake of points, what do you do it for?  It serves no purpose other than to fill up the servers here on SDN.  The original poster appears to have access to a SAP system and SE37 and wants to know how to call a BAPI - they can easily go to SE37 and read the documentation themselves.  Posting it here just adds noise and makes searching harder, as well as taking up more and more space on SDN servers.
    Gareth.

  • How to set the default value of an item type DATE PICKER to the day of yest

    Hi
    How to set the default value of an item type DATE PICKER to the day of yesterday ?
    Thank you very much !
    Christian.

    Hi Christian,
    Have a look at this thread Re: Default the Date Picker to Today
    It covers this issue in detail.
    Regards
    Paul

  • How to place a delivery block at line item level from Inbound ORDERS IDoc?

    Hi EDI/ABAP Experts,
    Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
    I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
    Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
    Thanks,
    Matt .

    Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
    FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
      CALL CUSTOMER-FUNCTION '001'
        EXPORTING SEGMENT = IDOC_DATA
                  DVTCOMAG = VTCOMAG
                  DXMESCOD = IDOC_CONTRL-MESCOD
                  CONTRL   = IDOC_CONTRL
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DD_FLAG_P = D_FLAG_P
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        CHANGING  DXVBAK   = XVBAK
                  DD_FLAG_K = D_FLAG_K
        EXCEPTIONS
                  USER_ERROR = 01.
    If you are in ECC6.0  you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U

  • Can we see costing value for line item batch in Batch Information Cokcpit r

    Can we see costing value for line item batch in Batch Information Cokcpit report - BMBC?
    Business like to see standard cost/ item and extended cost which should be qty in inventory * standard cost.
    Help appreciated.
    Edited by: Tom_Eric on Jan 13, 2012 2:33 AM

    HI.
    YES it is passible.
    If the GL is activated line item display check box is active then we can able to see the data as per line items.
    T<Code. Fbl5n
    Thanks.
    Vasu
    Edited by: Vasu Enaguthi on Apr 7, 2010 8:46 AM

  • Generate 2 line items with posting keys in same table while using  FM .

    Dear Expert ,
    For T-code f-65 ,I have to park a FI Document  .i tried with PRELIMINARY_POSTING_FB01 for parked Document . But  i am not  successfully park the document .
    with the help of F-65 the data Segregate between Tables VBSEGS and VBSEGD with respecting Posting key . but with this Fm entire entry is displaying in table VBSEGS .For example it generated two line items with posting keys '15' and '40' and these both are displayed in VBSEGS whereas posting key '15' has to be displayed in VBSEGD.
    when i check this Document in FBV0 Error reflect " G/L Account 0012000 1001 Does not Exist ".
    Here my code -
    DATA:   XT_BKPF LIKE  BKPF OCCURS 0 WITH HEADER LINE ,
            XT_BSEG LIKE  BSEG OCCURS 0 WITH HEADER LINE ,
            XT_BSEG1 LIKE  BSEG OCCURS 0 WITH HEADER LINE ,
            XT_BSEC LIKE  BSEC OCCURS 0 WITH HEADER LINE ,
            XT_BSET LIKE  BSET OCCURS 0 WITH HEADER LINE ,
            XT_BSEZ LIKE  BSEZ  OCCURS 0 WITH HEADER LINE ,
            XT_BKORM  LIKE  BKORM OCCURS 0 WITH HEADER LINE ,
            XT_THEAD  LIKE  THEAD OCCURS 0 WITH HEADER LINE ,
            XT_SPLTTAB  LIKE  ACSPLT  OCCURS 0 WITH HEADER LINE ,
            XT_SPLTWT LIKE  WITH_ITEMX  OCCURS 0 WITH HEADER LINE .
    DATA :    XTEXT_UPDATE  LIKE  BOOLE-BOOLE VALUE SPACE,
              XTEXT_ITEM_UPDATE LIKE  BOOLE-BOOLE VALUE SPACE,
              XI_UF05A  LIKE  UF05A,
              XI_XCMPL  TYPE  XFELD VALUE 'X',
              XFS006_FB01 LIKE  FS006 ,
              XI_TCODE  LIKE  T020-TCODE  VALUE 'F-65',
              XI_PARGB  LIKE  RF05A-PARGB        ,
              XI_TCODE_INT  TYPE  TCODE           .
    DATA P_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    XT_BKPF-BUKRS     =     'CP01'.
    XT_BKPF-GJAHR     =     2011.
    XT_BKPF-BLART     =     'DZ'.
    XT_BKPF-BLDAT     =     SY-DATUM.
    XT_BKPF-BUDAT     =     SY-DATUM.
    XT_BKPF-MONAT     =     '06'.
    XT_BKPF-CPUDT     =     SY-DATUM.
    XT_BKPF-WWERT     = SY-DATUM.
    XT_BKPF-USNAM     =     'ABAPER'.
    XT_BKPF-TCODE     =     'F-65'.
    APPEND XT_BKPF.
    XT_BSEG-BUKRS     =     'CP01'.
    XT_BSEG-GJAHR     =     '2011'.
    XT_BSEG-BUZEI = '001'.
    XT_BSEG-BSCHL = '40'.
    XT_BSEG-KOART = 'S'.
    XT_BSEG-SHKZG = 'S' .
    XT_BSEG-GSBER     =     'CPLN'.
    XT_BSEG-BUPLA = 'CP01'.
    XT_BSEG-WRBTR     =     10000.
    XT_BSEG-PSWSL = 'INR'.
    XT_BSEG-ZUONR = 'CH. 123456'.
    XT_BSEG-HKONT = '241000'.
    APPEND XT_BSEG .
    CLEAR  XT_BSEG.
    Vendor line item - required even for header only - BSEG table
    XT_BSEG-BUKRS     =     'CP01'.
    XT_BSEG-GJAHR     =     '2011'.
    XT_BSEG-BUZEI = '002'.
    XT_BSEG-BSCHL = '15'.
    XT_BSEG-KOART = 'S'.
    XT_BSEG-SHKZG = 'H' .
    XT_BSEG-GSBER     =     'CPLN'.
    XT_BSEG-BUPLA = 'CP01'.
    XT_BSEG-WRBTR     =     10000.
    XT_BSEG-PSWSL = 'INR'.
    XT_BSEG-ZUONR = 'CH. 123456'.
    XT_BSEG-HKONT = 'PC04000001'.
    APPEND XT_BSEG .
    CLEAR  XT_BSEG.
      CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
       EXPORTING
         TEXT_UPDATE            = XTEXT_UPDATE
         TEXT_ITEM_UPDATE       = XTEXT_ITEM_UPDATE
      I_UF05A                =
         I_XCMPL                = XI_XCMPL
      FS006_FB01             =
          I_TCODE                = XI_TCODE
      I_PARGB                =
      I_TCODE_INT            =
      IMPORTING
        XEPBBP                 = CHECK_A
        TABLES
          T_BKPF                 = XT_BKPF
          T_BSEG                 = XT_BSEG
          T_BSEC                 = XT_BSEC
          T_BSET                 = XT_BSET
          T_BSEZ                 = XT_BSEZ
      T_BKORM                =
      T_THEAD                =
      T_SPLTTAB              =
      T_SPLTWT               =
              EXCEPTIONS
                ERROR_MESSAGE = 1.
      P_RETURN-ID         = SY-MSGID.
      P_RETURN-TYPE       = SY-MSGTY.
      P_RETURN-NUMBER     = SY-MSGNO.
      APPEND P_RETURN.
         p_return-MESSAGE_V1 = XSYMSGV.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT = 'X'.
      ENDIF.
      WRITE :/ sy-subrc , sy-MSGV1 .
    Thanks ,
    Ashish Gupta

    Hi Raghuram,
    I found a very important SAP Note 103051, details are below.
    An IDoc processed by function module IDOC_INPUT_INVOIC_MM (of category INVOIC01) must not refer to the same purchase order item in several invoice items. This is also valid if for a goods receipt-related invoice verification several delivery notes belong to the same purchase order item.
    Depending on the system settings and the situation, various error messages can occur (for example, FD240 'Order item ... selected more than once' or M8050 'Balance not zero: & debits: & credits: &').
    In this situation module IDOC_INPUT_INVOIC_MRM generates error message M8321 'Document contains same order item more than once'.
    For example, this situation occurs if you work with individual batch valuation and the SD billing document executes a batch split for different batches which belong to the same purchase order item and delivery.
    Other terms
    INVOIC, SAPLIEDI,  M8047, M8, 321
    Reason and Prerequisites
    This is because of the program design.
    Solution
    There is no solution for IDOC_INPUT_INVOIC_MM.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active.
    Owing to this symptom, billing documents for single batch valuation with batch split cannot be settled in MM-EDI inbound processing. The settlement generates exactly the situation described (several invoice items for the same purchase order item). In this case, the only solution is to deactivate the billing of the batch sub-items in SD Customizing and to calculate the main item only.
    Hope this helps.
    Reward if helpful.
    Thanks

Maybe you are looking for

  • Transport Org Structure without Org Data

    Hello HR experts, I have a simple org structure - one org unit, one postion and 4 users assigned to that position in Dev client. How do I transport this request to Q without re-creating it? Also, When we transport this, by default, does it carry the

  • Floating point values

    Hi all; Please help. I am getting floating point values in my source IDoc like 1.234- but while inserting into the ODS system i need the negative sign before 1.234. How to achive this out. Nalin

  • 10.4.8 Will not install (preflight script failed)

    Attempting to install 10.4.8 (Power PC) and it fails at the very begining of the install. Received this message (from the log): "Dec 18 21:25:08 MyMac-G4 : Install failed: The following install step failed: run preflight script for Mac OS X Update Co

  • Problem with my Zen touch USB connection. Help need

    Hey, I have a problem, my usb connection is damaged so I can't send songs to my ZEN TOUCH anymore...can I do something with it's? /warranty are not working/Message Edited by Jason-CL on 06-09-2006 0:4 AM

  • ACS 5.1 Anyconnect Atributes

    Hi, Can some one explain me the steps to configure AnyConnect tunneling protocol of svc and so forth in the ACS 5.1 please. Also I will be highly appreciated if there's a reference document available. Thanks in advance.