Line Item Sequence

Hi Gurus,
When I create a F2 or F5 invoice, the line item sequence copied is different to the sequence in the sales order. Could you tell me how I can overcome this?
Many Thanks
Kumar

Hi ,
Please check the copy control setting from sales order to Billing in the transaction VTFA.
In the there is one option   / check box  copy item number.
The functionality of it is , it  will copy the item number from the source document to the target document.
Hope this clears.
santosh

Similar Messages

  • Goa line item sequencing issue

    Hello experts,
    I am facing a problem in GOA line item sequencing in SRM 4.0.
    I create a GOA with lets say 3 line items and distribute it successfully to the backend.
    Now if I want to add extra items using option 'Add Calaog items' from R/3 material and service catalog. The new items that I select and tranfer to SRM are created under line item 53 54  and so on..
    Why is this gap in the line items and why I can't I get the new line items in proper sequence?
    Please help.
    Thanks and regards,
    CM

    Hello CM,
    Have you received any repsonse on this? we are facing same issue.

  • Config - Line Item Sequence

    As parts are automatically added using config (guided selling) when the user makes guided selling selections, can we control the sequence of the parts being added?  We would like the more important parts to be listed first.  And unfortunately, the more important parts are not always the most expensive which rules out the option to sort the parts to price.

    Hi ,
    Please check the copy control setting from sales order to Billing in the transaction VTFA.
    In the there is one option   / check box  copy item number.
    The functionality of it is , it  will copy the item number from the source document to the target document.
    Hope this clears.
    santosh

  • Sequence of material line items in Project

    Hi all,
            I have transfered the BOM using CN33 in the project, the systems is configured such a way that after BOM upload the system creates PR automatically but, when the PR is created in the system the sequence of the line item material is not same as that of in BOM. How this has to be solved?
    Best Regards,
    Nitesh H Panchal

    Hi,
    I am aslo using BAPI for uploading material component. What it is doing , it is creating the line item number in the sequence I am planning . Like if I planned material A first then it is creating line item number for that irrespective of its activity and WBS number.
    Regards
    Keshav

  • Line Item numbers out of sequence in C_T_DATA

    We are using several different data sources within include ZXRSAU01.
    For one of them, we have assigned a custom structure ZOXNRD0112 to C_T_DATA which contains two different fields for Line Item number. One of these fields is based on FAGLFLEXA-DOCLN and the other is based on BSEG-BUZEI.
    The values in these two fields should agree on each record contained within C_T_DATA, but occasionally we get a situation where they do not. BUZEI is always correct when compared to the Billing Document, but DOCLN will be out of sequence.
    For example:
    DOCLN BUZEI
    000001 001
    000003 002
    000002 003
    DOCLN & BUZEI both arrive already populated in the C_T_DATA table.
    We simply use the values as keys to read FAGLFLEXA and BSEG, the values in DOCLN & BUZEI themselves are not derived.
    They are there when entering the user exit ZXRSAU01, and they are still there when processing leaves ZXRSAU01.
    I donu2019t have a lot of experience in BI, and am not familiar with how C_T_DATA receives itu2019s data.
    Iu2019m trying to look back further in the processing to find where C_T_DATA is populated and draw some conclusions from that. I have asked a couple of our FI people to examine the documents involved to see what could be going on there.
    We are on ECC 6.0, and BI version 7.0.
    Has anyone out there run into this kind of problem before?

    Hello Dan,
    Welcome to SDN!
    The program ZXRSAU01 is an exit program for transactional DataSource extraction. Whenever the DataSource pulls data from ECC, it usually divides the data into several data packages, and for every package it will comes to that program. The internal table C_T_DATA contains all records of the data package.
    We don't use sequence to link data together, but use fields mappings. For example, I want to read FAGLFLEXA-DOCLN, I first need to find a key field say XXXX which exist both in C_T_DATA and FAGLFLEXA. Then use below statement to read FAGLFLEXA:
    loop at c_t_table into ls_structurename.
    select single DOCLN
        from FAGLFLEXA
        into ls_structurename-docln
      where XXXX = ls_structurename-XXXX.
      modify c_t_table from ls_structurename.
    endloop.
    With the code we don't need to worry about sequence. And it works for either full loading or delta loading.
    Please let us know if you have any questions.
    Regards,
    Frank

  • Itunes - how do i select multiple line items not in sequence ?

    itunes - how do i select multiple line items not in sequence ?

    Hold down the Command key and click each in succession.
    To extend the selection across items that ARE contiguous, use the Shift key.

  • Generate sequence nuumber for line items.

    Hi,
    Am using jdeveloper 11.1.1.6.0
    I have generated a form using master detail. po_header as master and po_line as child in po_line i need to generate the sequence number.
    The problem am facing is
    If i generate using create sequence in my DB. Its working fine.
    consider
    I have po_number 1234 for this po_line while i click the add button the sequence number is added. for eg: form 1 to 10 i have the po_line against po_number.
    If am created another po_number 12345 for this while i click the add button the sequence number starts from 11...., But it need to be started from 1 since its a different po.
    Could anyone help me how to acheive this?
    Regards,
    Prasad K T,

    Hi,
    in addition, have a look how you would model the line items in a database schema. Here you would have purchase orders and line items in separate tables that are linked with a foreign key. To uniquely address line items you would have a unique sequence in the line items table. What you are looking for is a combined key (purchase order AND line item ID) to have line items numbered 1 .. 10 (this however, from a database design aspect makes no sense).
    Frank

  • How to trigger Condition Access sequence multiple times for one line item?

    Hi,
    We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
    Logic goes like this:
    1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
    2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
    3.we have enhanced the tkomp structure to hold the sale deal.
    Challenge:
    As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
    Functional team maintained diffrent access tables in the access sequence!!!
    Fnds, please help me to get some clue
    Thanks,
    Sunil Y

    Hi Eduardo , Thanks for the response.
    I am trying to explain again, this is the requirment given by the functional guys.
    we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
    At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP.  We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
    We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
    Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items.  Line item 10  may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
    We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
    Please help me ...
    Thanks,
    Sunil Y

  • Query to derive number of children "folders/nodes" and children "line items" from a numbering sequence

    I am writing a query to determine some information from a work breakdown numbering structure (single column) and it is simple enough to describe, just not sure how to do it in code.  I am trying to determine for the parent items, how many children items
    that parent has and how many children folders are under that parent (think of something like a folder/file structure).  The numbering structure looks like this:
    1       
    1.1     
    1.2     
    1.2.1   
    1.2.2   
    1.2.3   
    1.2.3.1 
    1.2.3.2 
    1.2.3.3 
    1.2.4   
    1.2.5   
    1.2.5.1 
    1.2.5.2 
    1.3     
    I would like my query to return this information:
    WBS    ChildFolders ChildLineItems
    1.1               0                      0
    1.2               2                      8
    1.3               0                      0
    Hope that makes sense!  

    I almost have this working in the following query in at least I figure out a way to tell how which ones were the folders and which were the line items with this query (sorry I have different WBS numbers than my example above:
    declare @wbs table (wbs varchar(max))
    insert @wbs select
    '1.1'     as wbs union all select
    '1.2'     union all select
    '1.2.1'   union all select
    '1.2.2'   union all select
    '1.2.3'   union all select
    '1.3'     union all select
    '1.4'     union all select
    '1.4.1'   union all select
    '1.4.1.1' union all select
    '1.4.1.2' union all select
    '1.4.2'   union all select
    '1.5.1' 
    select 
    x.wbs
    , CASE count(x.wbs) WHEN 1 THEN 'LineItem' ELSE 'Folder/Has Children' END as Description
    from
    @wbs x
    ,(select
    from @wbs w) as data
    where
    data.wbs like x.wbs + '%'
    group by
    x.wbs
    This give me these results:
    WBS Description
    1.1 LineItem
    1.2 Folder/Has Children
    1.2.1 LineItem
    1.2.2 LineItem
    1.2.3 LineItem
    1.3 LineItem
    1.4 Folder/Has Children
    1.4.1 Folder/Has Children
    1.4.1.1 LineItem
    1.4.1.2 LineItem
    1.4.2 LineItem
    1.5.1 LineItem
    I would just like to add the columns with the counts of ChildFolders and ChildLineItems like my example above.
    For example the results for 1.4 would look like this:
    WBS Description
    ChildFolders ChildLineItems
    1.4 Folder/Has Children
    1 3

  • Line item Ship-to Info is not the same in Header Ship-to Party During Sales Order Creation via IDOC

    We have observed that during creation of sales order using idoc, the line item ship-to party is not the same with header ship-to. The ship-to party info in line item is equivalent to the header's sold to party. To give you a quick background, Sold to party info is given in idoc and ship to party is being determined using table EDPAR. In this specific scenario, sold to customer is not the same with ship to customer.
    Initial checking on the code leads us in function module VIEW_KUAGV. This FM populates partner details of sales order header and line item in program LVEDAF1Z
    Below is the code for Sales order Header. Notice that WE_INPUT parameter which contains Ship to party is passed as exporting parameter in FM VIEW_KUAGV. This is the reason why Ship to Party is populated correctly in sales order header but not in sales order item.
    Initially, it first set to Sold-To Party. However, if WE_INPUT is given or provided, partner details is set to Ship-To Party.
    Please advise on how we can make the ship to party info in header and line item be consistent. This is SAP Standard program which why we are hesitant to make change on the program. If there is a configuration to make this happen, kindly advise.
    Regards,
    Rommel

    Hi Jayesh,
    If I understand you correctly, you want that when creating SO from Quoatation
    the Ship to Party also follow/copy Ship to Party from Quotation, right?
    Just to confirm with you, when you creating SO reference from Quotation, you
    use copy/follow-up function, am I right?
    You can do this by setting in configuration of Copy Control (like mentioned by Hui).
    Step as follow :
    1. Go to IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions
    2. Create your BAdi (Business Add-In for Copying Control), such as get Ship to
        Party value from source document and use it in current document
    3. Use this Rule you have created in BAdi (no. 2), in copy control transaction type
        IMG->CRM->Transactions->Basic Settings->Copying Control for
        Business Transactions-> Define Copying Control for Transaction Types
    4. Here you set Copying Routine for your transaction types (put name of your Badi
        created in step no. 2)
    Or alternatively, you can set it on access sequence in Partner Function
    Ship to Party in configuration. You can define access sequence the Ship
    to Party is taken from Preceeding Document -> Ship To Party
    1. Go to Partner Function access sequence :
        IMG->CRM->Basic Functions->Partner Processing->Define Access Sequence
    2. Create new access sequence with following entry :
        - Source COM_PARTNER_A (PrecedingPartner)
        - Check Mapping for Partner Being search
        - Partner Function in Source  = Ship To Party
    3. Assign this Access Sequence in you Partner Function used in Sales Order Transaction
       Type.
    Tell me if this is what you looking for
    Gun.

  • Adding Values of same line item number

    Hi Experts... please help me on my issue below...
    I have this strucutre of my target message.
    Line_item (1..n)
    ...Line_itemno (1..1)
    ...Material_no (1..1)
    ...Qty (1..1)
    The line item no can be as follows...
    10
    20
    30
    31
    40
    50
    My problem is... i need to combine values for 30 and 31, at the same time i need to add the qty of the both... so for the sequence above, my target message should only contain 5 line items, with line item 30 as the combination of line items 30 and 31. Can I achieve this using standard functions?
    Please help.

    Follow this mapping.
    For Line Item parent node use this.
    http://www.flickr.com/photos/28929439@N06/4405415707/sizes/o/
    For Qty element mapping use this
    http://www.flickr.com/photos/28929439@N06/4405415711/sizes/o/
    make both the Line_itemno & qty element in the source to the highest context level.
    Use this UDF to sum-up the quantity of line items. UDF type shoudl be context.
    int sum=0;
    for(int i=0;i<var1.length;i++)
    sum = sum+ Integer.parseInt(var1<i>);
    result.addValue(sum);
    ~SaNv...

  • Order creation logic how to pass line items

    experts
    i have the following data in iternal table itab.
    po number ,customer number, matnr,quantity ,order date.
    1212838383  7494749  8383938833   20  20032009
    1212838383  7494749  8383938832   10  20032009
    1212838382  7494749  8383938833   20  20032009
    1212838384  7494745  8383938823   30  22032009
    1212838384  7494745  8584858588   05  22032009
    now i want to populate this data into idocs orders segement .
    for all po the customer will be the same and i need to create one order for that.
    in the above data first 2 lines have same po so i need to create order with 2 line items.
    sales org,division,distribution channnel,ordertype will be same for all the records.
    loop at itab into workarea.
    at new po. "for same po, same header data so i am using AT NEW
    edi_dd40-segnum = 1.
    edi_dd40-segnam = 'E2EDK14 '.
    edi_dd40-mandt = sy-mandt.
    edi_dd40-psgnum = psgnum.
    e2edk14-qualf = '008' .
    e2edk14-orgid = 'NN21.
    MOVE e2edk14 TO edi_dd40-sdata.
    append edi_dd40 to itab_output.
    edi_dd40-segnum = 1.
    edi_dd40-segnam = 'E2EDK14 '.
    edi_dd40-mandt = sy-mandt.
    edi_dd40-psgnum = psgnum.
    e2edk14-qualf = '006' .
    e2edk14-orgid = 'ni.
    MOVE e2edk14 TO edi_dd40-sdata.
    append edi_dd40 to itab_output.
    endat.
    now the item data comes , so i need to create items with same po.and afetr this i need to submit this data to fm before another diffent  po comes.below same customer and po so need to consider as one sales order and submit to fm.
    item1  1212838383  7494749  8383938833   20  20032009
    item2  1212838383  7494749  8383938833   20  20032009
    call function 'MAST_IDOC_DISTRIBUTE'
    My concern is how to tell to the system for the same po create the order with multipl line items , do i need to use to AT NEW
    or some other commands above?
    endloop.

    i have used at end of po. but my matnr is becoming *************. no date is showing in the internal table while populating the matnr to segments.
    Loop at itab into workarea.
    at end of po.
    here i am filling the matnr to the segment. here  workarea-matnr is showing ***********  only stars,
    endat.
    endloop.
    If i remove the at end of po , then the matnr is comming .
    Please sugggest me what to do.
    my fields sequence are like this.
    kunnr " customer
    bstnk "po
    matnr " material
    currency
    kwmeng "order quantity
    podate
    orderdate
    so how to handle this please suggest.

  • LSMW upload of vendor line items

    Hi
    I have prepared a template for vendor line item upload. For payments as well as invoice. Now when i upload, i want that it should automatically get knocked off.
    For example:
    There is a vendor invoice - Rs.100
    Advance - Rs.40
    Now when i upload both the line item, SAP should automatically show Rs. 100 & Rs.40 cleared with each other and Rs. 60 must be shown as open item.
    Is there any link available for upload ?

    Hi Max Tan,
    a) You will probably only be able to use multiple T-Codes in one of the Standard uploads provided by SAP.In these you have to enter the T-Code to be used, so therefore you could code it to use different T-codes. A recording would not allow this.
    b) Multiple in Sequence is just a design issue not any specific function. In reality they are seperate programms, but i use the same source file with coding to decide which items are used in each programm.
    eg for Asset uploads- I have a single file but 2 programms.
                            a) Programm for main Asset numbers    -   Code   If Sub-no NE 0.
                                                                                    Skip_Record.
                            b) Programm for Sub Asset numbers         Code   If Sub-no = 0
                                                                                    Skip_Record.
    In this case i have to run a) before b), therefore "in sequence".
    KInd regards

  • Different Tax base in pricing procedure for a single sales order for different line item material.

    Hi,
    I have a scenario wherein in a sales order, for two different material, the tax base of pricing should get triggered on the basis of sold to party and the material entered at line item level.
    Logic triggers on the basis of Region of Customer & a unique field in the Material Master but problem comes in the calculation of Tax base as the sequence of condition type (from – to)  is already defined in the pricing procedure to pick from a particular step but in second line item the base is different i.e. the sequence of condition types that are maintained in pricing procedure should be different for Tax to calculate differently.
    Kindly suggest if the same can be handled in a single pricing procedure and dynamically taking care of condition type sequence through Alt Cal Base Formula, so far I’ve tried both Alt Cal Formula & Base but it is not working
    Client doesn’t want to go ahead by creating two different orders (through separate Pricing Procedure) for that. They want to have both materials in same order.
    Kindly suggest a suitable way to handle this scenario.
    Regards,
    Aashika Agarwal

    Hi,
    Click on the ''check availability'' button at item overview and then click on ''One-time delivery'' on the top. This will ensure that you will have only one delivery for whatever quantity is confirmed on that date.
    If you want to apply this rule for all orders across a sales area, then you can do the below configuration step :
    SPRO->sales and distribution->basic functions->availability check with ATP logic->Define default settings-> Here in avail. checking rule select A (one time delivery). This will ensure that all orders created for a particular sales area will have only one delivery.
    Hope this helps.
    Regards,
    Palani

  • Deletion and creation of Schedule line for Line Item

    Hi BW Experts,
    In P.S.A. when i have checked for first schedule line 001 reqdelqty is 50 , after deleting 001 and after creation of second schedule line in R/3 there are two records transferred from R/3 for schedule line 002 first with reversal indicator 'X' and delivery quantity -50 and next record with Reversal Indicator blank with value 50. which in turn results Reqdelqty zero.
    Reason of wrong data in BW: -
    Schedule line category for an item is being deleted forcefully. R3 doesn’t allow deletion of a schedule line category if delivery is already created. Here user is creating one same schedule line and then he deletes the order quantity from earlier one. This forces system to pick up schedule line 2 in the document flow
    · User shouldn’t delete schedule line.

    Hello Ganesh,
    Schedule line number sequence will not be in control of the user.
    once delivery for a schedule line is completed, no way you can delete the schedule line (except renumbering case). This is general SAP logic relates to schedule lines.
    Let me know how they are deleting the schedule lines even though delivery is completed.
    Now coming to Data load problem in BI.
    When you delete schedule line 001, the generated record should be with schedule line 001 with Reversal Indicator as R and delivery quantity -50.
    And for new schedule line 002, reversal indicator as blank and delivery quantity 50
    Regards,
    Nandakumar.A

Maybe you are looking for