Invoice List-Header & line items

Dear Expert,
If I want to create an invoice list which both AR invoice header & line items, then how can I create it as the line items has the same header?
Could you advise this?
Thank you.
Raymond

Hi Raymond,
You can use the following query,
SELECT T0.CardCode, T0.CardName, T1.ItemCode, T1.Dscription, T1.Quantity FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
If you are using QPLD for this then you can sort and group header items so that not to repeat again n again with row items.
Regards,
/Siddiq

Similar Messages

  • FI Posting of Invoice at the Line Item Level.

    Hi All
    Client has requirement of posting at the invoice line item level.But standard FI-AR posts at the Invoice Header level.
    E.g If invoice has two line items of $20 and $30 respectively.
    On the standard FI-AR side,one accounting document of $50 will be generated.It will not be posted for each invoice line level.
    In order to post at the invoice line item level,i am looking for a posting user exit from SD side that will two individual account document each having invoice line item amount.Or we can have one FI accountng doc having two invoice line items in that.
    Is there any way we can do this unique type of enhancement in ABAP? and also what is the exact user exit we can use from SD invoice side.
    Regards
    Manjinder

    This is not entirely accurate - if the items are pointing to, say, different profit centers then there will be one posting per profit center. If this cannot be resolved by the standard SD/FI configuration, then the users might need to change their business process. I personally don't see any need to create postings on line item level. Just imagine what it will do to your database size.
    Anyways, you'll find all the user exits here:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/sdUserexits
    But, again, this sounds like a very bad idea.

  • Header, Line Item and Cache Techniques Using Hashed Tables

    Hi,
    How can I work with header, line item, and a cache techniques using hashed tables?
    Thanks,
    Shah.

    Hi,
    Here is an example to clarify the ideas:
    In general, every time you have a header-> lines structure you have a unique key for the lines that has at least header key plus one or more fields. I'll make use of this fact.
    I'll try to put an example of how to work with header -> line items and a cache technique using hashed tables.
    Just suppose that you need a list of all the material movements '101'-'901' for a certain range of dates in mkpf-budat. We'll extract these fields:
    mkpf-budat
    mkpf-mblnr,
    mseg-lifnr,
    lfa1-name1,
    mkpf-xblnr,
    mseg-zeile
    mseg-charg,
    mseg-matnr,
    makt-maktx,
    mseg-erfmg,
    mseg-erfme.
    I'll use two cache: one for maintaining lfa1 related data and the other to maintain makt related data. Also I'll only describe the data gathering part. The showing of the data is left to your own imagination.
    The main ideas are:
    1. As this is an example I won't use inner join. If properly desingned may be faster .
    2. I'll use four hashed tables: ht_mkpf, ht_mseg, ht_lfa1 and ht_makt to get data into memory. Then I'll collect all the data I want to list into a fifth table ht_lst.
    3. ht_mkpf should have (at least) mkpf's primary key fields : mjahr, mblnr.
    4. ht_mseg should have (at least) mseg primary key fields: mjahr mblnr and zeile.
    5. ht_lfa1 should have an unique key by lifnr.
    6. ht_makt should have an unique key by matnr.
    7. I prefer using with header line because makes the code easier to follow and understand. The waste of time isn't quite significant (in my experience at least).
    Note: When I've needed to work from header to item lines then I added a counter in ht_header that maintains the count of item lines, and I added an id in the ht_lines so I can read straight by key a given item line. But this is very tricky to implement and to follow. (Nevertheless I've programmed it and it works well.)
    The data will be read in this sequence:
    select data from mkpf into table ht_mkpf
    select data from mseg int table ht_mseg having in count all the data in ht_mkpf
    loop at ht_mseg (lines)
    filter unwanted records
    read cache for lfa1 and makt
    fill in ht_lst and collect data
    endloop.
    tables
    tables: mkpf, mseg, lfa1, makt.
    internal tables:
    data: begin of wa_mkpf, "header
    mblnr like mkpf-mblnr,
    mjahr like mkpf-mjahr,
    budat like mkpf-budat,
    xblnr like mkpf-xblnr,
    end of wa_mkpf.
    data ht_mkpf like hashed table of wa_mkpf
    with unique key mblnr mjahr
    with header line.
    data: begin of wa_mseg, " line items
    mblnr like mseg-mblnr,
    mjahr like mseg-mjahr,
    zeile like mseg-zeile,
    bwart like mseg-bwart,
    charg like mseg-charg,
    matnr like mseg-matnr,
    lifnr like mseg-lifnr,
    erfmg like mseg-erfmg,
    erfme like mseg-erfme,
    end of wa_mseg,
    data ht_mseg like hashed table of wa_mseg
    with unique key mblnr mjahr zeile
    with header line.
    data: begin of wa_lfa1,
    lifnr like lfa1-lifnr,
    name1 like lfa1-name1,
    end of wa_lfa1,
    data ht_lfa1 like hashed table of wa_lfa1
    with unique key lifnr
    with header line.
    data: begin of wa_makt,
    matnr like makt-matnr,
    maktx like makt-maktx,
    end of wa_makt.
    data: ht_makt like hashed table of wa_makt
    with unique key matnr
    with header line.
    result table
    data: begin of wa_lst, "
    budat like mkpf-budat,
    mblnr like mseg-mblnr,
    lifnr like mseg-lifnr,
    name1 like lfa1-name1,
    xblnr like mkpf-xblnr,
    zeile like mseg-zeile,
    charg like mseg-charg,
    matnr like mseg-matnr,
    maktx like makt-maktx,
    erfmg like mseg-erfmg,
    erfme like mseg-erfme,
    mjahr like mseg-mjahr,
    end of wa_mseg,
    data: ht_lst like hashed table of wa_lst
    with unique key mblnr mjahr zeile
    with header line.
    data: g_lines type i.
    select-options: so_budat for mkpf-budat default sy-datum.
    select-options: so_matnr for mseg-matnr.
    form get_data.
    select mblnr mjahr budat xblnr
    into table ht_mkfp
    from mkpf
    where budat in so_budat.
    describe table ht_mkpf lines g_lines.
    if lines > 0.
    select mblnr mjahr zeile bwart charg
    matnr lifnr erfmg erfme
    into table ht_mseg
    from mseg
    for all entries in ht_mkpf
    where mblnr = ht_mkpf-mblnr
    and mjahr = ht_mjahr.
    endif.
    loop at ht_mseg.
    filter unwanted data
    check ht_mseg-bwart = '101' or ht_mseg-bwart = '901'.
    check ht_mseg-matnr in so_matnr.
    read header line.
    read table ht_mkpf with table key mblnr = ht_mseg-mblnr
    mjahr = ht_mseg-mjahr.
    clear ht_lst.
    note : this may be faster if you specify field by field.
    move-corresponding ht_mkpf to ht_lst.
    move-corresponding ht_mseg to ht_lst.
    perform read_lfa1 using ht_mseg-lifnr changing ht_lst-name1.
    perform read_makt using ht_mseg-matnr changing ht_lst-maktx.
    insert table ht_lst.
    endloop.
    implementation of cache for lfa1.
    form read_lfa1 using p_lifnr changing p_name1.
    read table ht_lfa1 with table key lifnr = p_lifnr
    transporting name1.
    if sy-subrc <> 0.
    clear ht_lfa1.
    ht_lfa1-lifnr = p_lifnr.
    select single name1
    into ht_lfa1-name1
    from lfa1
    where lifnr = p_lifnr.
    if sy-subrc <> 0. ht_lfa1-name1 = 'n/a in lfa1'. endif.
    insert table ht_lfa1.
    endif.
    p_name1 = ht_lfa1-name1.
    endform.
    implementation of cache for makt
    form read_makt using p_matnr changing p_maktx.
    read table ht_makt with table key matnr = p_matnr
    transporting maktx.
    if sy-subrc <> 0.
    ht_makt-matnr = p_matnr.
    select single maktx into ht_matk-maktx
    from makt
    where spras = sy-langu
    and matnr = p_matnr.
    if sy-subrc <> 0. ht_makt-maktx = 'n/a in makt'. endif.
    insert table ht_makt.
    endif.
    p_maktx = ht_makt-maktx.
    endform.
    Reward points if found helpfull...
    Cheers,
    Siva.

  • Payment terms, Payment method, etc. blank in the Invoice Lists header.

    Hello,
    I am creating Invoice Lists - LR with F2 - Invoices but surprisingly the payment terms, payment method, VAT registeration no., etc. are not populated into the Invoice Lists header. I think it should have been populated from the 'Payer's' customer master.
    I am using 'Copycontrol' routine no. 16; if it is relevant in any way.
    Can someone help me with this, cause I need to use these field's data into the printout.
    Thanks,
    Nandish.

    Hi Sreedhar,
    BBP_UPLOAD_PAYMENT_TERMS program does not work well.I tried using this and this ask for RFC destination(LOGSYS) while replicating the payment terms.
    and when you try to see these payment terms in customzing it does not give you correct result and so result in SRM HTML screens.
    What I did for this.
    There are two tables involved in this
    BBP_PAYTERM
    BBP_PAYTERM_TEXT .
    If you see entries in table BBP_PAYTERM ,it will have data with ERPCLNTXXX system while same kind of data will not be there for SRMCLNTXXX.
    You have to copy ERPCNLTXXX data into SRMCLNTXXX data.
    To do that copy all data with SRMCLNTXXX ,go to table Entry in Menu and delete all entries.
    Then copy all ERPCLNTXXX data and go to Table Entry ,Create with template.
    You can do this is SE11 or SE16 transactions.Do similarly with BBP_PAYTERM_TEXT.Please check entries before doing it for BBP_PAYTERM_TEXT table as this table may have similar entries for SRMCLNTXXX and then you will not require to copy all.
    Actaully program recognise only Payment terms in SRM.
    Once you have done this..You can see in customzing all correct payment terms replicated.
    SPRO->SRM server->Cross application basic setting->Create payment conditions.
    I hope this helps.
    regards,nishant
    please reward if this helps

  • Template of List of line items

    Hi Gurus,
                  Here is my requirement.
    Business wants to store list of line items as template by the time of taking the orders.
    This templates will be used for future order reference.
    I want to create a new sales document type which is copy of quotation.
    Is it good way of doing it? Does it has any implications?
    Can some one update this thread?
    Thank you
    ANil
    Edited by: anil maguluri on Jun 9, 2008 5:04 PM

    Dear Anil,
    If you want to have a template for a single customer or the same for a lot of customers or a different template for different customers, in SAP there is a provision called Item Proposal where you make a list of Items that the customer orders regularly and store that in his CMR.
    Go to VA51,
    Item Proposal Type: PV and enter your Org data and click ENTER
    in next screen, on 'Item Proposal' use F4, and system gives you the number range and from it select one number and give it a description and enter a list of Items and required quantities and save.
    The Item Proposal No. that you selected can be entered in the Customers CMR in XD02 and whenever  you are making a sales order and when you click on  Item Proposal icon, which is the first icon just above the field where you enter the Sold to Party, it will give you the list what you saved and from this you have the option of selecting either all or part of items with or without the quantities you entered.
    It was a long time that you asked this question and since you did not close this thread I am replying to this. If found to be useful plz do reward points and once you found your answer kindly remember to close the thread.
    Regards.
    yajee_venkat yahoo.co.in

  • Invoice Receipt by Line Item

    Hi
    How is the Differences between invoice Receipt  and  Invoice Receipt by Line Item according to purchasing
    thanks
    SM

    Hi,
    You have 2 options to post invoice,
    1. Post Invoice for all the line items as in the PO (or)
    2. Post Invoice line item wise (one by one) (i.e) Partial Invoice posting. So you decide accodingly in MIRO
    Regards,
    Baskar

  • Removing invoice block at line-item level

    Hello SAP gurus
    I've been asked by a client to create a way to delete invoice blocks at a line item level via workflow.  The workflow sends a workitem for each blocked line-item that the invoice has.  What I need to do now is create custom code that will delete a single line-item block instead of removing the block at the header level.  This header-level block deletion will only occur when all the line item blocks are cleared.
    I know there are a few programs that exist for doing this at the header level (BAPI_INCOMINGINVOICE_RELEASE, MRM_INVOICE_RELEASE_UPDATE, running a MRBR BDC, etc.), but so far I haven't found a standard SAP code to make this possible at the line-item level.  I am aware that making changes to standard SAP table records is heavily not recommended (if not practically forbidden), but the client is insisting they want this functionality and soon.  Is there another way of making this line-item block deletion without resorting to modifying the RSEG/RBKP/RBKP_BLOCKED tables?  Thanks a lot for your help.
    Regards,
    -Juan Ramos

    Hi,
    If you want to split the deliveries in to number of nvoices general configuration is in Item category use Billing relevence = K (Delivery-related invoices for partial quantity).
    At the time of creating Invoice in VF01 give the delivery number and click the selection list on the right side top.
    You can split based on your line items.
    Thanks,
    Sree.Manam

  • 1 line item in invoice for Multiple line items of SO

    Hi SD Gurus,
    My client requirement is multiple line items of the sales order should reflect as a single line item in the invoice ..?
    For ex: I am using Service material type Dien & material created under different material groups.
    My Sales order looks somthing like below with material no & amount:
    10  Testing charges    10$     material group xx1
    20  Baking charges     20$     material group xx2
    30  Scan/Taping          20$    matierial group xx1
    Now in the invoice its should reflect only with 1 line item with the whole amount 50$.
    Kinldy let me know how  this requriement can be fullfilled.
    Thanks,
    Rahul

    Dear Rahul
    I think you can apply Rate Routing for this.
    A rate routing is a routing for repetitive manufacturing. It enables you to easily reproduce the lean production process.
    In the rate routing, the production rate per operation is defined (production time according to a base quantity). Set-up time is not usually defined, since no changes to setup are planned.
    However, you can also use standard routings. A standard routing represents the various steps of production (such as setup, processing, teardown and so on), operation by operation, if necessary with suboperations.
    A rate routing does, however, offer all the same functions as a standard routing.
    <b>Structure</b>
    If you use the same standard value key for all the work centers on the line, the system copies the descriptions of the standard values to the routing as the column headings of the operation overview.
    If you use different standard value keys for the work centers, the system copies the descriptions into the routing that is entered in the control data for the routing in Customizing.
    To create a Rate Routing, follow the steps as under:-
    1)  Starting from the main Line Design menu, choose Rate routing --> Create.
           The system displays the initial screen for rate routings.
    2)  Enter the plant, the material and in the field Group, the group to which you want to assign the rate routing.
    3)  Choose Enter.
         The system displays the screen Header details.
    4)  Enter the following data:
             => the routing description
             => the plant
             => the usage of the rate routing, i.e.production
             => the status, i.e. released
             => the unit of measure of the materials to be produced
    5)  Save your rate routing.
    <b>Result</b>
    You have created the rate routing. Continue creating the main production line and if necessary, feeder lines.
    You can also take the help of your PP guy for this.
    Thanks
    G. Lakshmipathi

  • ALV: Display Header,  line item, information after page break .............

    Hi .
    I am facing problem in displaying a particular layout in ALV.
    the layout is as follows:
    1. Header part
    2. Line item
    3. There is field customer and after every change of customer do page break and display information like how many record read and how many record processed. below is brief detail about how to get read and processed record.
    I have two internal table  say table1 and table2.
       Looping table1
      increase the counter as counter_read = counter_read +1.
    compare the record with table2.
    if matches
    increase the counter as counter_process = counter_process + 1.
    4. At the end of report display a error log.
       to get the error log we will follow the above logic and if record not matched then display as error record.
    Please help ASAP to find the solution.
    Thanks in advance

    There is a knowledge base article C2014229 (1210986 - Subreports do not have a Page Header) , but instead of providing link I will just copy content here:
    Symptom
    Since subreports are objects in the Main Report, they do not contain Page Headers. How can you create a fake page header for subreports?
    Resolution
    To create a fake page header for subreports, use the following steps:
    1. In the subreport, create a formula:
    @FakePageHeader
    //name of formula
    WhileReadingRecords;
    2. Go to the 'Insert' menu and click 'Group'. Select the @FakePageHeader formula.
    3. Select the 'Repeat Group Header on Each New Page' option, and click 'OK'.
    This inserts a new group at the lowest, or innermost, grouping level. You will need to move this group to the highest, or outermost, grouping level.
    4. Go to 'Report' menu and click 'Group Expert'. Use the up arrow to move this newest group up to the top of the list.
    5. Move all the headers that you would like repeated into this Header for the @FakePageHeader group.
    Hope it will help.

  • Invoice List Header text disabled (VF22) and note 357732 missing

    1. Can any body please let me know the Invoice List text Determination? Presently, My Invoice list screen is showing the Header text tab is disable, if possible please let me know how to do enable so that I can enter into the Text.
    2.  I checked SAP Note  # 943390. But this note has link to note 357732 which does not exist. 
    Please let me know if any work around.
    Thanks in advance.

    Hi Laxmipathi sir,
    as you said i went in the bussiness area account assignment and checked it and foound that the Sales area, distributin channel and division are assiogned to rule called 003 -Buss Area Det.from sales org/dist.channel item div.
    but there are other two.which were not assigned.
    001-buss area det.from plant/dividion(T134G)
    002-buss area det.from Sales area (TVTA).
    so do you think this is the reason it is not picking it up in the invoice list,
    i have discussed with one of the SD person here he said even though you don't assign them it shoudn't bother because the buss area is getting picked in invoice
    so could you please tell me what should i ask that person or what i have to tell them about this.
    thanks
    Jay

  • Invoice with Multiple Line item

    Hi
    Delivery Order (D.O) with many line items (more than 1 page) happen to print multiple invoices automatically. Infact I would need to set up in a single invoice with multiple pages.
    But currently if the line items exceeded the max, automatically creates another invoice document (with different number).
    Could anyone suggest step by step resolution.
    Thanks in advnce.
    RG

    Maintain adjust the "billing relevance" setting in item category(VOV7) to K Delivery-related invoices for partial quantity.
    Then when you create billing reference to delivery, you would be able to press "Selection List" button to change the billing quantity that you want to bill. But, mind it can't be done with tcode VF04, so, you have to use VF01 to create Billing doc.
    Thanks & Regards
    JP

  • Sales BOM Header line item confirmed without components in Delivery

    Hi Experts,
    The issue is about the delivery is created with the single component for the Sales BOM where as it contains two.
    We have analyzed the issue and checked that the missing component would have not been available in the stock during the time when the delivery is created and hence is not included(Header material and single component is included in the Delivery).
    The user's concern is; when there is no stock for any one of the component, then it shouldn't have confirmed the header material. Kindly suggest.

    Hi Azam,
    It seems to me that you want to use Delivery Group for Sales BOM where If Mat A = Mat B + Mat C and Mat B Availability date is 20/07/2014 (DD/MM/YYYY) and Mat C availability is 25/07/2014 then Main line item should be confirmed with 25/07/2014.
    If any one sub Item is not available, then Any of the item from the Grouping should not be dispatched.
    If this is the requirement then, In Item Category (VOV7) for main Item update Create Delivery Group field with X and your requirement will be fulfilled.
    Do let us know the result after testing.
    Regards,
    MJ.

  • Invoice Split on line items

    Dear all,
    We are on CRM 7.0. We are doing billing in crm for service products . We have a requirement that if the number of line items in the invoice is more than 200, invoice split should happen. Has anyone worked on this scenario and if so pl. let me know how to go about this.
    Regards
    P.Bhaskaran

    might give you better answers.
    If this applies to your processes CRM Web Channel, the work will still be in the CRM backend.
    Easwar Ram
    http://www.parxlns.com

  • Customer Invoice/Billing Document  Line Item Details

    I have be trying to get the line item details incuding Description, Qty, Ea pricing, etc., for an invoice for several days.   I am successfuly able to us the RFC FI_DOCUMENT_READ  to get a plethora of data back in several tables,  but none that contain the details I need.  I can see the informationI need usinf VF03 and the Document Number.  
    Here is the call I am making (Output tables defaulted in the .net connector wsdl file)
                Dim sAWORG As String = ""
                Dim sAWREF As String = ""
                Dim sAWSYS As String = ""
                Dim sAWTYP As String = ""
                SapBillingProxy1.Fi_Document_Read("", _
                     Me.txtDocNumber.Text, _
                    "VBRK", _
                    "MPMP", _
                    sAWORG, _
                    sAWREF, _
                    sAWSYS, _
                    sAWTYP)
    Am I asking for the wrong information or ??? 
    Please help or point me in the right direction.
    Thanks in advance for the help!

    Hi,
    If you are looking for Billing document line item details and if you have range of sales document reference numbers try using 'BAPI_BILLINGDOC_GETLIST' function module.It is remote call enabled.
    Regards,
    Sreekanth

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

Maybe you are looking for