Regarding INVOICE

Hi friends,
i have a doubt in "INVOICE". What is the difference between "Invoice type"  and "invoice list type". These two we are maintaining in "CUSTOMER MASTER", in thtat "SALES AREA " , Iin that "BILLING" .
can any one explain about these two and where we are using, in which business scenario , we are using.

<u>Invoicing Dates:</u>
Identifies the <b>calendar (company’s)</b> that determines the schedule of billing dates for the customer.
If, for example, a customer wants to consolidate the invoices you send out, you can predefine the billing schedule in a calendar in the system. During billing, the system automatically proposes the appropriate billing date from the calendar.
The system proposes the billing schedule from the customer master record of the payer. You can change the value manually in the sales document.
<u>Invoice List dates (Invoice List Schedule)</u>:
Identifies the <b>customer's factory calendar</b> that is used during the processing of invoice lists.
An invoice list is a list of invoices (single or collective) that you create for the customer either periodically or on predefined dates. The periods and dates are defined in the customer's factory calendar. Typically, the recipient of an invoice list takes on the responsibility for collecting payments from numerous individual customers and receives a factoring or del credere discount for the service.
If you want to create invoice lists for the customer, you must enter an identifier for a predefined factory calendar.
You must first define a factory calendar for the customer either in Customizing for Sales or as part of the master data for Sales (Menu path: Logistics -> Sales & distribution ->Master data -> others -> billing schedules).
Regards
AK

Similar Messages

  • Regarding Invoice and Payment slip   both needs to print sub sequently

    Hi Guys,
             i have problem with smartform ,
    the requirement was ,
    invoice and payment slip both i need to develop using smartforms,
    the thing is invoice will print on white paper(Portrait) and
    payment slip will print on pre - printed paper (landscape) ,
    subsequently it needs to print one invoice and payment slip for that invoice and
    another invoice and payment slip like this in the sequence it needs to print .
    this would be done by overnight job scheduling ,
    how could i do this ,
    what about output types and how can i proceed with technically please guide  me .
    urgent requirement ..help me out this .
    Thanks & Regards
    Vijay Kumar Reddy
    +91-9789098418
    [email protected]

    Hi Dewang,
    I have a different situation, I posted SD request at contract account level posted using FPSEC1.
    Since the contract account is for purpose of Aggregation, I did a aggregated posting then when I prepare a print doc for the same using EA10_AGGRBILL it is not picking up the security deposit request.
    I have maintained the necessary entry in Item Selection in Account Maintenance/ Define Sub-Items for RF clearing type.
    Please advice.
    Thanks
    Satyajeet

  • Regarding Invoice document attachment -VF03

    Hello friends..
    when I go to transaction vf03. In some invoice documents I am getting the preview of the document attached to that document.the attachemnt you can see in attachment list of 'Service for Object'. does anybody have idea about this whether it is done manually or it is done automically on the time of firing output. if there is no attachment the attachment list is not enabled.
    <> <b>VF03 --> enter documnet number --> change or display document --> System --> Service for Object -- > Attachment List</b> <>
    Could anybody help me out for this. is there any setting regarding the attachment.
    Thanks in Advance
    Dinesh goyal
    P.S. : Helpful answers will be rewarded with gud points...
    Message was edited by:
            Dinesh  Goyal

    Yes after opeining the document...
    Hello friends..
    when I go to transaction vf03. In some invoice documents I am getting the preview of the document attached to that document.the attachemnt you can see in attachment list of 'Service for Object'. does anybody have idea about this whether it is done manually or it is done automically on the time of firing output. if there is no attachment the attachment list is not enabled.
    <> VF03 --> enter documnet number --> change or display doc -->System --> Service for Object -- > Attachment List <>
    Could anybody help me out for this. is there any setting regarding the attachment.
    Thanks in Advance
    Dinesh goyal
    P.S. : Helpful answers will be rewarded with gud points...

  • Regarding invoice verification.

    HI
    In Invoice verification what is parking of the bill and posting of the bill.what is credit memo,subsequent credit and subsequent debit.how do BSX,WRX keys hit when the above tasks are performed.

    Hi
    In MIRO transaction when you are posting the invoice, for example if the balance is not equal to zero,if you post the invoice then the invoice will be blocked due to price variation, like it will be the same for quantity variation also.
    Once the invoice is blocked you can't modify and repost the invoice.
    But in the case of invoice parking  one you find the difference in balance or quantity then you can temporarily park the invoice and modify the same later after you get the clarification you can re-post the invoice.
    Parking of invoice can be done in two ways
    1. From MIRO transaction : Header Menu -- Edit -- Switch to document parking
    2. Throu MIR7, like eneter all the details in how you enter in MIRO then if you want you can post or you
       park the document.
    Look into the following help link you will get detailed idea about the LIV process.
    Regards,
    Govardhan

  • Regarding Invoice Detail SMS to customer through ABAP program

    Hi  All ,
                   How can i send details of invoice ( invoice number,quantity,amount,total ledger balance of customer)  through SMS
    to customer with ABAP application program.
    please provide some sample code for this .
    Thanks & Regards
    shailesh

    Hi,
    I hope this link should be of help.
    [Send SMS from SAP;
    Regards,
    Pranav.

  • Regarding invoice blocked for payment

    Hello gurus
    I have done the MIRO and invoice is blocked say any reason
    now when i check the F-53 and make a payment for the this it is working fine where i can able to make a payment for this
    the requirement is when the invoice is blocked the RE invoice should not come inside the f-53 for payment
    How to do that
    Thanks in advance
    Rajesh

    Hi,
    Check the setting in SPRO
    Financial Accounting (New)  - Accounts Receivable and Accounts Payable - Business Transactions -Outgoing Payments -
    Manual Outgoing Payments - Check Payment Block Reason
    Check for Block Indicator - "Indicator: Change in Payment Proposal Permitted?" which  Indicates whether a change is allowed in the payment proposal. If you do not set this indicator, its block reason can be neither set nor deleted when a payment proposal is processed. Try Selecting this indicator or deselecting it ...not sure.
    Examples
    You can prohibit the block indicator that is set in invoice verification from being changed in the payment proposal.
    Regards,
    Vikas

  • Regarding invoice Duplication

    Hi All,
    Got struck with a issue. please help me out in this. I need to check the duplication of invoice when i post a document in F-42. It also a country specific as well. so can anyone pls suggest me which method i can use and how to use it. I appericiate if u can guide me with some sample codes.
    Thanks
    Sathish

    Dear Sathish Kumar
                  you have two way to do for this requirement .
    First : IMG : Validation in Accounting Documents (T Code : OB28) or substitution ( Tcode : OBBH )
    I will explain about substitution.
    in the configuration , you can create substiution for your company code after that
    you will see sub tree
    - Document header
    - Line item
    - Complete Document
    That are a trigger , for example if you create substitution in Document header , system will check when you entry data in Document header or If you create substituion in Line item , system will check after you entry data in line item.
    If your requirement is checking duplicate invoice , you have a condition which identify that the new invoice is duplicate .
    For example  the differenet document should be the different reference.
    and the doc date should be different too.
    in substitution you can use exit .
    Coding like this
    select XBLNR into v_XBLNR from bsis where bukrs = 'CXXX' and budat = '20070805'
    if v_xblnr = bseg-xblnr.
       ......" Do anything that you would like
    endif.
    Regards
    Wiboon

  • Regarding invoice address for document type

    Hi friends,
    I want to know how to print the INVOICE ADDRESS for a perticular document type if user-id  is not exist.
    Please suggest me the suitable code for the above requirement.
    Regards
    Kumar

    Hi,
    Check Table RBKP & Field name RMWWR for Gross invoice amount & BLART for document type.
    Regards,
    Biju K

  • Regarding Invoice split

    Hi All-
    Please help with the below situation.
    sales order is created.
    There are two line items exist in sales order.
    line item 20 is a sub item for lineitem 10.
    Lie item 10 item category is "ZABC"
    Line item 20 item category is :ZCBA"
    when we check the item category details in config by going T code  VOV7 ,
    Item category  ZABC has Billing Plan type (Periodic Billing).
    and Billing relavance indiacator is "I"( Orfder relevant billing -Biiling Plan)
    For Item category ZCBA  billing plan was not set.
    Billing relevance set as "B"(relevant for order related billing :status according to order quantity)
    Both line items are not relevant for delivery as it was set in the respective item categories.
    So when i create a billing by going to VF01 (order reference) , Invoice got split in two invoices.
    Now the requirement is to create a single invoice.
    I have checked in copy control  routines but not found any thing related to spliiting the invoice with some selection criteria.
    can any one tell me how to identify that why the invoice got split ??
    Thanks in advance.

    Hi,
    Go to Vf03.Enetr first invoice number and in menu bar follow the path
    Environment -Split analysis.
    Enetr the second invoice number here.and enetr.
    Here you can check why the invoice is getting split.And the fields which is causing this.
    Reward points if useful
    Regards,
    Amrish Purohit

  • Regarding invoice and credit memo of sales order

    Hi,
    I have invoice for sales order and also have credit memo for the same sales order. I can see invoice and credit memo differently through transaction VF03. I want to append credit memo details to the invoice ...is it possible ?..if yes then please tell me the procedure.
    Thanks.

    check in the documnet flow if you can see the invoice and the credit memo. Then you can see them both in the document flow of any of the document.
    When you say append, what does it mean? Please explain.
    Regards
    Sai

  • Regarding invoice verification issue

    hi Sap Gurus,
    how can do MIRO without P.O.
    please i need your feed back.
    Thanking you
    from
    Praveer

    hi,
    Go to MIRO,
    and you can directly enter the assignment or postings to G/L account tab or on the material tab and assign the vendor at the item overview and then post the document...
    SPRO settings req. is :
    SPRO >> MM >> LIV >> Here incoming invoice >> Direct posting to G/L account and material allowed...
    Regards
    Priyanka.P

  • Regarding Invoice list dates.

    Hi Experts,
    I have one requirement where i need to get the next invoice list date based on invoive list dates-profile(KNVV-PERRL) of the invoice list sold-to-customer(VKDFS-KUNNR) and I need to update the updated date to VKDFS-FKDAT.
    Please provide me with ideas or some Function modules to get the invoice list date and the FM for updating VKDFS-FKDAT.

    the payer is not equil to the sold to party and bill to party
    There is no such standard report to meet this requirement.  You have to develop the logic considering VF05
    thanks
    G. Lakshmipathi

  • Problem Regarding Invoice Booking with freight value

    Hi,
      I have RBKP , RSEG, BKPF, BSEG tables.
    I can fetch data from above tables for invoce booking values.
    But i can't fetch freight and other charges against particular  invoice.So i am getting purchase rate of material without freight
    in case of same purchase order and in same item.
    one example,
    Company purchase one item based on PO today.
    after two days Company purchase same item bsed on same PO.Now user make entry of invoice with frieght.Now in two invoice how can i find freight of one invoice.
    So kindly suggest how can i link invoice with freight.

    Hi,
    I tried in my system and its working fine allowing to change the amount in MIRO. My doubt is whether it was client requirement during implementation to set such an error message..
    It might has something to do with the Partial Inv. field in the Account assignment category in PO item level..
    Are u using Derive from account assignment category???
    Please check this answered thread
    Error Message M8575 - Partial Invoice not possible
    Please check
    sBk
    Edited by: Sujithbk on Dec 14, 2011 5:56 AM
    Edited by: Sujithbk on Dec 14, 2011 5:58 AM

  • Regarding invoice no. displaying in non-invoice no.list in document flow

    Hi All,
    I have 3 radio buttons. if i select 1st one only orders with invoice list should be displayed and for 2nd only orders without invoice list should be displayed and for the 3rd both should be displayed.
    but here the problem was when i select the 2nd radiobutton and see the output it was showing all the orders without invoice no. but when i see the document flow for the first order it was showing invoice no. in DOCUMENT FLOW. but it was not displaying in the output.
    So any one can help me in this issue, i am sending the select statements i have used,
      Get the invoice numbers and the corresponding order numbers for the
      date range specified on the selection screen.
        SELECT vbrkvbeln vbrpposnr vbrp~matnr
               vbrpaubel vbfaposnv
          INTO CORRESPONDING FIELDS OF TABLE i_invoice_items FROM vbrk
          INNER JOIN vbpa ON vbrkvbeln = vbpavbeln
          INNER JOIN vbrp ON vbrkvbeln = vbrpvbeln
          INNER JOIN vbfa ON vbrkvbeln = vbfavbeln  AND
                             vbrpposnr = vbfaposnn  AND
                             vbrpaubel = vbfavbelv
          WHERE vbrk~fkdat BETWEEN s_fkdat-low AND s_fkdat-high AND
                vbrk~bukrs  IN s_bukrs    AND
                vbpa~parvw   = 'WE'       AND
                vbpa~kunnr  IN s_kunnr    AND
                vbrk~vkorg  IN s_vkorg    AND
                vbrp~prodh  IN s_prdha    AND
                vbrp~werks  IN s_werks    AND
                vbfavbelv   = vbrpaubel AND
                vbfa~vbtyp_n = 'M'        AND
                vbfa~vbtyp_v = 'C'.
    get all open orders i.e. orders that have not been invoiced - Start.
      Step 1 - Get all invoiced orders.
        SELECT vbfavbelv vbfaposnv
          INTO CORRESPONDING FIELDS OF TABLE i_inv_ord_items
          FROM vbfa
          INNER JOIN vbpa ON vbfavbelv = vbpavbeln
          INNER JOIN vbak ON vbfavbelv = vbakvbeln
          INNER JOIN vbap ON vbfavbelv = vbapvbeln AND
                             vbfaposnv = vbapposnr
          WHERE vbtyp_n        = 'M'     AND
                vbtyp_v        = 'C'     AND
                vbpa~parvw     = 'WE'    AND
                vbpa~kunnr    IN s_kunnr AND
                vbak~vkorg    IN s_vkorg AND
                vbak~bukrs_vf IN s_bukrs AND
                vbap~abgru     = ' '     AND
                vbap~werks    IN s_werks AND
                vbap~prodh    IN s_prdha.
      STEP 2 - Get all orders that have not been invoiced.
      Step 2a) Get all orders that match the filters specified on the selection screen
        SELECT vbakvbeln vbapposnr matnr
          INTO CORRESPONDING FIELDS OF TABLE i_ord_items FROM vbak
          INNER JOIN vbap ON vbakvbeln = vbapvbeln
          INNER JOIN vbpa ON vbakvbeln = vbpavbeln
          WHERE vbpa~parvw     = 'WE'    AND
                vbpa~kunnr    IN s_kunnr AND
                vbak~vkorg    IN s_vkorg AND
                vbak~bukrs_vf IN s_bukrs AND
                prodh         IN s_prdha AND
                werks         IN s_werks AND
                vbap~abgru     = ' '.
        SORT i_ord_items BY vbeln posnr.
      Step 2b) Delete orders that have been invoiced by
               deleting records found in Step 1
        LOOP AT i_inv_ord_items INTO wa_inv_ord_items.
          READ TABLE i_ord_items
            INTO wa_ord_items
            WITH KEY vbeln = wa_inv_ord_items-vbelv
                     posnr = wa_inv_ord_items-posnv
            BINARY SEARCH.
          IF sy-subrc = 0.
            gv_index = sy-tabix.
            DELETE i_ord_items
              INDEX gv_index.
          ENDIF.
        ENDLOOP.
      Step 2c) Remove entries that exist in the invoiced orders internal table
      to avoid duplicate entries
        SORT i_ord_items BY vbeln posnr.
        LOOP AT i_invoice_items INTO wa_invoice_items.
          READ TABLE i_ord_items
            INTO wa_ord_items
            WITH KEY vbeln = wa_invoice_items-aubel
                     posnr = wa_invoice_items-posnv
            BINARY SEARCH.
          IF sy-subrc = 0.
            gv_index = sy-tabix.
            DELETE i_ord_items
              INDEX gv_index.
          ENDIF.
        ENDLOOP.
    get all open orders i.e. orders that have not been invoiced - End.
      Combine the open orders and invoiced orders into one internal table
    --Code added by CHHEDAM.SMS129705.Date- 03/28/2007--
      Clear 'invoiced' orders if open orders are opted.
        IF g_open EQ 'X'.
          CLEAR: i_invoice_items[].
        ENDIF.
    --End of code added by CHHEDAM.SMS129705.Date- 03/28/2007--
        IF g_open EQ 'X' OR g_both EQ 'X'.       
          LOOP AT i_ord_items INTO wa_ord_items.
            CLEAR wa_invoice_items.
            MOVE: wa_ord_items-vbeln TO wa_invoice_items-aubel,
                  wa_ord_items-posnr TO wa_invoice_items-posnv,
                  wa_ord_items-matnr TO wa_invoice_items-matnr.
            APPEND wa_invoice_items TO i_invoice_items.
          ENDLOOP.
        ENDIF.                                   
        SORT i_invoice_items BY vbeln.
        IF i_invoice_items[] IS NOT INITIAL.
          SELECT *
            FROM vbak
            INTO TABLE gt_vbak_table
            FOR ALL ENTRIES IN i_invoice_items
            WHERE vbeln = i_invoice_items-aubel.
          IF sy-subrc = 0.
            DELETE gt_vbak_table
              WHERE vkorg    NOT IN s_vkorg OR
                    bukrs_vf NOT IN s_bukrs OR
                    auart    NOT IN s_auart.
          ENDIF.
          SORT gt_vbak_table BY vbeln.
          IF gt_vbak_table[] IS NOT INITIAL.
            SELECT *
              FROM vbap
              INTO TABLE gt_vbap_table
              FOR ALL ENTRIES IN gt_vbak_table
              WHERE vbeln = gt_vbak_table-vbeln.
            IF sy-subrc = 0.
              DELETE gt_vbap_table
                WHERE werks NOT IN s_werks OR
                      prodh NOT IN s_prdha.
            ENDIF.
          ENDIF.
        ENDIF.
        SORT gt_vbak_table BY vbeln.
        SORT gt_vbap_table BY vbeln posnr.
    LOOP AT i_invoice_items INTO wa_invoice_items.
          READ TABLE gt_vbak_table
            INTO gt_vbak_table_line
            WITH KEY vbeln = wa_invoice_items-aubel
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-aubel     = gt_vbak_table_line-vbeln.
            display_table_line-vkorg     = gt_vbak_table_line-vkorg.
            display_table_line-auart     = gt_vbak_table_line-auart.
            display_table_line-bukrs_vf  = gt_vbak_table_line-bukrs_vf.
            display_table_line-bill_to   = gt_vbak_table_line-kunnr.
            display_table_line-vdatu     = gt_vbak_table_line-vdatu.
            display_table_line-faksk     = gt_vbak_table_line-faksk.
            display_table_line-lifsk     = gt_vbak_table_line-lifsk.
          ENDIF.
          READ TABLE gt_vbap_table
            INTO gt_vbap_table_line
            WITH KEY vbeln = wa_invoice_items-aubel
                     posnr = wa_invoice_items-posnv
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-posnr     = gt_vbap_table_line-posnr.
            display_table_line-matnr     = gt_vbap_table_line-matnr.
            display_table_line-kdmat     = gt_vbap_table_line-kdmat.
            display_table_line-maktx     = gt_vbap_table_line-arktx.
            display_table_line-werks     = gt_vbap_table_line-werks.
            display_table_line-prodh     = gt_vbap_table_line-prodh.
            display_table_line-kwmeng    = gt_vbap_table_line-kwmeng.
            display_table_line-vrkme     = gt_vbap_table_line-vrkme.
            display_table_line-waerk     = gt_vbap_table_line-waerk.
            display_table_line-net_price = gt_vbap_table_line-netwr.
            display_table_line-kzwi1     = gt_vbap_table_line-kzwi1.
            display_table_line-kzwi2     = gt_vbap_table_line-kzwi2.
            display_table_line-kzwi3     = gt_vbap_table_line-kzwi3.
            display_table_line-kzwi4     = gt_vbap_table_line-kzwi4.
            display_table_line-kzwi5     = gt_vbap_table_line-kzwi5.
            display_table_line-wavwr     = gt_vbap_table_line-wavwr.
            display_table_line-mwsbp     = gt_vbap_table_line-mwsbp.
          ENDIF.
          display_table_line-vbeln = wa_invoice_items-vbeln.
          APPEND display_table_line TO display_table_line.
          CLEAR wa_invoice_items.
          CLEAR display_table_line.
        ENDLOOP.
      Get the Purchase Order Number, Sales District and Desc
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbkd_table.
          CLEAR: gt_t171t_table.
          SELECT *
            FROM vbkd
            INTO TABLE gt_vbkd_table
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel.
          SORT gt_vbkd_table  BY vbeln.
          IF gt_vbkd_table[] IS NOT INITIAL.
            SELECT *
              FROM t171t
              INTO TABLE gt_t171t_table
              FOR ALL ENTRIES IN gt_vbkd_table
              WHERE bzirk = gt_vbkd_table-bzirk.
          ENDIF.
          SORT gt_t171t_table BY bzirk.
        ENDIF.
      Get Ship To Account
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbpa_table.
          SELECT *
            INTO TABLE gt_vbpa_table
            FROM vbpa
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel.
          IF sy-subrc = 0.
            DELETE gt_vbpa_table
              WHERE parvw <> 'WE'.
          ENDIF.
        ENDIF.
        SORT gt_vbpa_table BY vbeln parvw.
    Get Ship To Name and City
        IF gt_vbpa_table[] IS NOT INITIAL.
          CLEAR: gt_kna1_table.
          SELECT *
            INTO TABLE gt_kna1_table
            FROM kna1
            FOR ALL ENTRIES IN gt_vbpa_table
            WHERE kunnr = gt_vbpa_table-kunnr.
        ENDIF.
        SORT gt_kna1_table BY kunnr.
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbpa2_table.
          SELECT *
            INTO TABLE gt_vbpa2_table
            FROM vbpa
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel.
          IF sy-subrc = 0.
            DELETE gt_vbpa2_table
              WHERE parvw <> 'ZS' .
          ENDIF.
        ENDIF.
        SORT gt_vbpa2_table BY vbeln parvw.
        IF gt_vbpa2_table[] IS NOT INITIAL.
          CLEAR: gt_kna12_table.
          SELECT *
            INTO TABLE gt_kna12_table
            FROM kna1
            FOR ALL ENTRIES IN gt_vbpa2_table
            WHERE kunnr = gt_vbpa2_table-kunnr.
        ENDIF.
        SORT gt_kna12_table BY kunnr.
    Get Sales Group and Desc
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_knvv_table.
          SELECT *
            INTO TABLE gt_knvv_table
            FROM knvv
            FOR ALL ENTRIES IN display_table_line
            WHERE kunnr = display_table_line-bill_to  AND
                  vkorg = display_table_line-vkorg    AND
                  vtweg = '01'.
          SORT gt_knvv_table BY kunnr vkorg vtweg.
          IF gt_knvv_table[] IS NOT INITIAL.
            CLEAR: gt_tvgrt_table.
            SELECT *
              INTO TABLE gt_tvgrt_table
              FROM tvgrt
              FOR ALL ENTRIES IN gt_knvv_table
              WHERE vkgrp = gt_knvv_table-vkgrp AND
                    spras = sy-langu.
          ENDIF.
          SORT gt_tvgrt_table BY vkgrp spras.
        ENDIF.
    Get Order Status for the line items in the sales orders
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_vbup_table.
          SELECT *
            INTO TABLE gt_vbup_table
            FROM vbup
            FOR ALL ENTRIES IN display_table_line
            WHERE vbeln = display_table_line-aubel AND
                  posnr = display_table_line-posnr.
        ENDIF.
        SORT gt_vbup_table BY vbeln posnr.
        IF gt_vbup_table[] IS NOT INITIAL.
          CLEAR: gt_tvbst_table.
          SELECT *
            INTO TABLE gt_tvbst_table
            FROM tvbst
            FOR ALL ENTRIES IN gt_vbup_table
            WHERE spras = sy-langu AND
                  tbnam = 'VBUP'   AND
                  fdnam = 'GBSTA'  AND
                  statu = gt_vbup_table-gbsta.
        ENDIF.
        SORT gt_tvbst_table BY spras tbnam fdnam statu.
    Get Blocked Reason Text for Billing and Delivery Block
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_tvfst_table.
          SELECT *
            INTO TABLE gt_tvfst_table
            FROM tvfst
            FOR ALL ENTRIES IN display_table_line
            WHERE spras = sy-langu AND
                  faksp = display_table_line-faksk.
        ENDIF.
        SORT gt_tvfst_table BY spras faksp.
        IF display_table_line[] IS NOT INITIAL.
          CLEAR: gt_tvlst_table.
          SELECT *
            INTO TABLE gt_tvlst_table
            FROM tvlst
            FOR ALL ENTRIES IN display_table_line
            WHERE spras = sy-langu AND
                  lifsp = display_table_line-lifsk.
        ENDIF.
        SORT gt_tvlst_table BY spras lifsp.
        SORT display_table_line BY vbeln aubel posnr matnr.
        DELETE ADJACENT DUPLICATES
          FROM display_table_line
          COMPARING aubel posnr matnr .
        LOOP AT display_table_line INTO display_table_line.
          gv_index = sy-tabix.
      Get the Purchase Order Number, Sales District and Desc
          READ TABLE gt_vbkd_table
            INTO gt_vbkd_table_line
            WITH KEY vbeln = display_table_line-aubel
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-bstkd = gt_vbkd_table_line-bstkd.
            display_table_line-bzirk = gt_vbkd_table_line-bzirk.
            READ TABLE gt_t171t_table
              INTO gt_t171t_table_line
              WITH KEY bzirk = gt_vbkd_table_line-bzirk
              BINARY SEARCH.
            IF sy-subrc = 0.
              display_table_line-bztxt = gt_t171t_table_line-bztxt.
            ENDIF.
          ENDIF.
      Get Ship To Account
          READ TABLE gt_vbpa_table
            INTO gt_vbpa_table_line
            WITH KEY vbeln = display_table_line-aubel
                     parvw = 'WE'
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-ship_to = gt_vbpa_table_line-kunnr.
          ENDIF.
    Get Ship To Name and City
          READ TABLE gt_kna1_table
            INTO gt_kna1_table_line
            WITH KEY kunnr = display_table_line-ship_to
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-ship_to_name = gt_kna1_table_line-name1.
            display_table_line-ship_to_city = gt_kna1_table_line-ort01.
          ENDIF.
    Get Ship To Salesman Number
          READ TABLE gt_vbpa2_table
            INTO gt_vbpa2_table_line
            WITH KEY vbeln = display_table_line-aubel
                     parvw = 'ZS'
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-salesrep = gt_vbpa2_table_line-kunnr.
          ENDIF.
    Get Ship To Salesman
          READ TABLE gt_kna12_table
            INTO gt_kna12_table_line
            WITH KEY kunnr = display_table_line-salesrep
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-ship_to_srep = gt_kna12_table_line-name1.
          ENDIF.
    Get Sales Group and Desc
          READ TABLE gt_knvv_table
            INTO gt_knvv_table_line
            WITH KEY kunnr = display_table_line-bill_to
                     vkorg = display_table_line-vkorg
                     vtweg = '01'
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-vkgrp = gt_knvv_table_line-vkgrp.
            READ TABLE gt_tvgrt_table
              INTO gt_tvgrt_table_line
              WITH KEY vkgrp = gt_knvv_table_line-vkgrp
                       spras = sy-langu
              BINARY SEARCH.
            IF sy-subrc = 0.
              display_table_line-bezei = gt_tvgrt_table_line-bezei.
            ENDIF.
          ENDIF.
    Get Order Status for the line items in the sales orders
          READ TABLE gt_vbup_table
            INTO gt_vbup_table_line
            WITH KEY vbeln =  display_table_line-aubel
                     posnr =  display_table_line-posnr
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-gbsta = gt_vbup_table_line-gbsta.
          ENDIF.
          READ TABLE gt_tvbst_table
            INTO gt_tvbst_table_line
            WITH KEY spras = sy-langu
                     tbnam = 'VBUP'
                     fdnam = 'GBSTA'
                     statu = display_table_line-gbsta
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-status = gt_tvbst_table_line-bezei.
          ENDIF.
    Get Blocked Reason Text for Billing and Delivery Block
          READ TABLE gt_tvfst_table
            INTO gt_tvfst_table_line
            WITH KEY spras = sy-langu
                     faksp = display_table_line-faksk
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-fakskt = gt_tvfst_table_line-vtext.
          ENDIF.
         SELECT SINGLE vtext INTO display_table_line-lifskt
          READ TABLE gt_tvlst_table
            INTO gt_tvlst_table_line
            WITH KEY spras = sy-langu
                     lifsp = display_table_line-lifsk
            BINARY SEARCH.
          IF sy-subrc = 0.
            display_table_line-lifskt = gt_tvlst_table_line-vtext.
          ENDIF.
    Get Total Net and Total Gross Invoice Amount
          display_table_line-brtwr = display_table_line-kzwi1 -
                                     display_table_line-kzwi2 -
                                     display_table_line-kzwi3 -
                                     display_table_line-kzwi4 -
                                     display_table_line-kzwi5.
    Calculate Discount
          display_table_line-disc = display_table_line-kzwi2 +
                                    display_table_line-kzwi4.
         Unit Price and cost.
          IF display_table_line-kwmeng NE 0.
            display_table_line-unit_price = display_table_line-brtwr /
                                            display_table_line-kwmeng.
            display_table_line-wavwr = display_table_line-wavwr /
                                       display_table_line-kwmeng.
          ELSE.
            display_table_line-wavwr = 0.
          ENDIF.
        Calculate the GPM percentage.
          IF display_table_line-unit_price NE 0.
            display_table_line-gpm_perc = ( ( display_table_line-unit_price -
                                              display_table_line-wavwr ) /
                                              display_table_line-unit_price ) * 100.
          ENDIF.
        Update the internal table.
          SHIFT display_table_line-matnr   LEFT DELETING LEADING '0'.
          SHIFT display_table_line-bill_to LEFT DELETING LEADING '0'.
          SHIFT display_table_line-ship_to LEFT DELETING LEADING '0'.
          SHIFT display_table_line-vbeln   LEFT DELETING LEADING '0'.
          SHIFT display_table_line-aubel   LEFT DELETING LEADING '0'.
          WRITE display_table_line-vdatu   TO   display_table_line-vdatu_char MM/DD/YYYY.
          MODIFY display_table_line
            INDEX gv_index
            FROM display_table_line
            TRANSPORTING vbeln      aubel        bzirk        bztxt
                         bill_to    ship_to      ship_to_name ship_to_city
                         salesrep   ship_to_srep vkgrp        bezei
                         bstkd      gbsta        status       fakskt
                         lifskt     matnr        vdatu        brtwr
                         disc       unit_price   wavwr        gpm_perc
                         vdatu_char.
          CLEAR: display_table_line, tvbst_wa.
        ENDLOOP.
        IF  s_vkgrp[] IS NOT INITIAL.
          DELETE display_table_line WHERE vkgrp NOT IN s_vkgrp.
        ENDIF.
        IF  s_bzirk[] IS NOT INITIAL.
          DELETE display_table_line WHERE bzirk NOT IN s_bzirk.
        ENDIF.
        IF s_srep[] IS NOT INITIAL.
          DELETE display_table_line WHERE salesrep NOT IN s_srep.
        ENDIF.
        SORT display_table_line BY vkorg vkgrp ship_to_srep bill_to.
        DELETE display_table_line WHERE aubel = ' '.
      ENDMETHOD.                    "read_main_data
      METHOD display_report.
        CALL METHOD alv_class->set_table_for_first_display
       EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              =
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
         is_layout                     = gv_layout
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
         IT_TOOLBAR_EXCLUDING          =
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
         IR_SALV_ADAPTER               =
         CHANGING
           it_outtab                     = display_table_line[]
           it_fieldcatalog               = gt_field_cat
         IT_SORT                       =
         IT_FILTER                     =
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4
        IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDMETHOD.                    "display_report
    Thanks in Advance,
    Ramana Prasad.T

    Hi Janakiraman,
    unfortunately we don't have an upload storage here in the SDN. At this point we have two options:
    a) you could upload the screenshots to a website that provides storage and then you can paste the url to the screenshots here
    b) we can route this through our support channel. You can send a message to our support team in the <a href="http://service.sap.com/smb/sbo/support">SAP Business One Support Center</a> in our <a href="http://service.sap.com/smb/sbo">SAP PartnerEdge Portal</a>.
    Please use the method that works best for you.
    Thanks,
    Torsten

  • Regarding invoice posting through IDOC

    Hi ,
    I have created an interface to create invoice data thru INVOIC idoc which is in EDI810 Format,  It is working fine but for payment ref field for vendor line item is
    not updating for all the line items , it is only updating for lost line item .Please help me out in this.
    Thnaks,
    Rambabu.

    thanks.

Maybe you are looking for

  • Is Windows Server 2003 R2 Entreprise Edition Service Pack 2 supported?

    I tried to install ColdFusion 9 but wasn't able to finish. My OS is  - Windows Server 2003 R2 Entreprise Edition Service Pack 2 Regards mangeo

  • What's wrong with this one?

    Offset: GW803HP1 on Netware, also duped with GW2012SP1 on SLES The following is a snippet of a mail which gets generated by a scan on some sort of multifunction printer: --snip-- X-Mailer: RICOH Email Diag System Alert Info MIME-Version: 1.0 Content-

  • Help regarding Stacks and Queues.!!!!!!Please....

    I have a working program right now..But it lacks some things to be done..It already does the stacks and queues..But still it doesnt print the info on the desired output file outTwo.dat..Both the stacks and queues should be printed on it..Also it has

  • After upgrading to 7.1 iTunes does not recognize iPad device

    I upgraded iPad to system 7.1.  I got a message to connect to my iMac and iTunes by my USB cable, which I did. iTunes no longer recognizes the iPad wirelessly and does not recognize it even when attached byUSB cable. My iPhone (4.2.1) is recognized b

  • SLI question

    I just ordered some new parts to upgrade my rig abit MSI K9N Diamond nForce 590 SLI Athlon64 X2 Dual-Core 5600+ 2.8GHz 2x1MB Corsair XMS2-6400 TWIN2X2048-6400C4 4-4-4-12 Xtreme 2x1024MB Western Digital RaptorX Gamer WD1500AHFD 150GB 10000rpm 16MB cac