I want to display cacelled verified invoice list

I want a transaction, which will display cacelled verified invoice list.

You can get a list of the cancelled documents through fb03, in the document
type enter the document type used when cancelling, if you are not sure what the
document type is just do a look up in the document type field or check in oba7
plz assign points if helpfull

Similar Messages

  • I want to display the bluetooth headset list.

    -  I want like this screen.
    Question
    1. How do get change audio source??
    2. Could you tell me?
        public api about BluetoothManager

    You fail at the internet.

  • Condition type used for invoice list

    Hello Gurus,
            following condition type used for invoice list, why do they exit in invoice list:
             RL00    MW15.  LR00    RD01

    Hi,
    Please go through the below document
    When you work with invoice lists, you need to be familiar with the following concepts:
    Prerequisites for invoice lists
    Relationship to Pricing
    Structure of an Invoice List
    Changing header and item data
    Integration with financial accounting (FI)
    Prerequisites
    You can only process invoice lists if the following prerequisite data is defined by your system administrator in Customizing for Sales:
    Condition type RL00 (factoring discount) must be maintained and, if required, also the condition type MW15.
    An invoice list type must be assigned to each billing type that you want to process in invoice lists. The standard version of the SAP R/3 System includes two types of invoice lists: LR for invoices and debit memos, LG for credit memos.
    Copying requirements must be defined (for example, the payer, terms of payment and other fields that must be identical in the documents to be included in the invoice list)
    In addition, before you process an invoice list, you must maintain the following master data:
    A customer calendar must be defined, specifying the time intervals or dates on which invoice lists are to be processed.
    The customer calendar must be entered in the Billing Sales Area view of the customer master record.
    Pricing condition records for the condition type RL00 and, if necessary, (e.g. in Germany) the condition type MW15 must be maintained.
    Output condition records for condition types LR00 and RD01 must be created.
    Relationship to Pricing
    The system processes factoring discounts in invoice lists in exactly the same way as other kinds of pricing elements. The data for the factoring discount is stored in condition records. Controlling during document processing is carried out via condition types, pricing procedures and access sequences. This control data is defined in Customizing for Sales by your system administrator.
    For further information, see  Conditions and Pricing.
    Structure of an Invoice List
    An invoice list represents an individual billing document. It consists of a document header and document items. Each item represents a billing document that you have included in the invoice list. The header contains an overview of summary information, such as the net value of all documents in the invoice list, the value of the factoring discount, details of taxes, and so on. It also contains information on partners and output.
    Changing Header and Item Data
    You can change some of the header data - for example, the billing date - when you process the invoice list. You can change an item - either an individual or collective invoice - and display document details. However, you cannot change any data in individual billing documents once they are part of an invoice list.
    It is possible, however, to make certain global changes to output in all items in an invoice list.
    For further information on output, see  Communication in Sales and Distribution Processing.
    Integration With Financial Accounting (FI)
    The documents that you want to combine within an invoice list must already have been billed and forwarded to Financial Accounting. Here the billing documents intended for an invoice list are blocked for normal dunning transactions.
    The dunning block on FI documents is lifted as soon as you create an invoice list and transfer it to FI . The system then calculates the new dunning date for the invoice on the basis of the invoice list date.
    In addition, the system enters invoice list numbers in the FI documents as reference numbers. Invoice list numbers can then be entered for incoming payments.
    When you save the invoice list, the system automatically creates an accounting document for the factoring discount and possible taxes and posts it to the corresponding G/L account in FI.
    Regards,
    Murthy

  • How to create Invoice list??

    Hi guyz,
    could you please tell me how to create invoice list, i have created sales order, done the delivery,created billing.
    appreciate immediate reply.
    Thanks.
    Mohammed.

    Hi Mohammed,
    To create an invoice list:
    Select the Billing screen.
    Depending on the number of billing documents that you want to include, you can choose one of two ways to create the invoice list. You can either
    · Select Invoice list Create and enter each billing document separately
    · Create a list for all billing documents that are relevant for the invoice list. You can then process the work list for invoice lists.
    This procedure shows you how to create the work list.
    Select Invoice list Edit work list.
    Enter your selection criteria and press ENTER.
    The system displays a list of billing documents that meet your selection criteria.
    Select the billing documents that you want to include in the invoice list and select Invoice list Save.
    You can also simulate creation of invoice lists via the work list for invoice lists. This is useful as a test option. The simulation also allows you to carry out a split analysis, which shows you why billing documents are written to different invoice lists (e.g. due to different payers).
    Prerequisites
    You can only process invoice lists if the following prerequisite data is defined by your system administrator in Customizing for Sales:
    Condition type RL00 (factoring discount) must be maintained and, if required, also the condition type MW15.
    An invoice list type must be assigned to each billing type that you want to process in invoice lists. The standard version of the SAP R/3 System includes two types of invoice lists: LR for invoices and debit memos, LG for credit memos.
    Copying requirements must be defined (for example, the payer, terms of payment and other fields that must be identical in the documents to be included in the invoice list)
    In addition, before you process an invoice list, you must maintain the following master data:
    A customer calendar must be defined, specifying the time intervals or dates on which invoice lists are to be processed.
    The customer calendar must be entered in the Billing Sales Area view of the customer master record.
    Pricing condition records for the condition type RL00 and, if necessary, (e.g. in Germany) the condition type MW15 must be maintained.
    Output condition records for condition types LR00 and RD01 must be created.
    Hope with this info you can do it. Pl. reward if it helps.
    Thanks & Regards
    Sadhu Kishore

  • Display sales orders due list in a week

    hi , i want to display sales orders due list in a week
    what are the tables need to be referred?
    Rgds
    Umakanth
    Edited by: Alvaro Tejada Galindo on Feb 21, 2008 5:06 PM

    Hi,
    The following is a list of Sales & Distribution tables :
    VBBE Sales Requirements: Individual Records
    VBEH Schedule line history
    VBEP Sales Document: Schedule Line Data
    VBFA Sales Document Flow
    VBLB Sales document: Release order data
    KONV Conditions for Transaction Data 
    KONP Conditions for Items 
    LIKP Delivery Header Data
    LIPS Delivery: Item data
    VBAK Sales Document: Header Data
    VBAP Sales Document: Item Data
    VBLK SD Document: Delivery Note Header
    VBPA Sales Document: Partner
    VBRK Billing: Header Data
    VBRP Billing: Item Data
    VBUK Sales Document: Header Status and
    Administrative Data
    VBUP Sales Document: Item Status
    VEKP Handling Unit - Header Table
    VEPO Packing: Handling Unit Item (Contents)
    VEPVG Delivery Due Index.
    Hope this might help you.
    Regards,
    Kaveri.

  • VF21 - Creates separate Invoice Lists per invoice

    Hi There
    I have several invoice documents for the same customer that I want to apply to an invoice list
    I launch VF21 and enter the appropriate invoice numbers within the front screen
    I save
    The system currently produces one invoice list per invoice instead of one invoice list with 5 x invoices
    What could be wrong?
    Thanks
    Steve
    Points will be awarded

    Hi Srikkanth
    The payment terms and billing types are the same
    I also have a scenario for DMR invoice and standard invoice to be combined (this should work according to the HELP)
    Cheers
    Steve

  • 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

  • I have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.

    hi,
    i have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.

    i am using the below code only
     SPSite mySite = new SPSite("http://sharepoinsiteaddress");
    SPWeb myweb = mySite.OpenWeb();   
    SPList myList = myweb.Lists["Announcements"];   
    SPListItem myListItem = myList.GetItemById(1);   foreach (String attachmentname in myListItem.Attachments)
    String attachmentAbsoluteURL =    myListItem.Attachments.UrlPrefix // gets the containing directory URL
       + attachmentname;
       // To get the SPSile reference to the attachment just use this code
      SPFile attachmentFile = myweb.GetFile(attachmentAbsoluteURL);
       // To read the file content simply use this code
       Stream stream = attachmentFile.OpenBinaryStream();    StreamReader reader = new StreamReader(stream);
       String fileContent = reader.ReadToEnd();
    here i am using panel, how can i attach this attached image to panel

  • Service order is on product deliver status ,then i want to display product delivery status date and time on result list ?

    Hi Team,
    service order is on product deliver status ,then i want to display product delivery status date and time on result list ?My requirement is i want to display product delivery status date and time based on delivery status we need to display the date and time .how to do it.? basically i have created the productu delivery status field in search and result through AET.
    Now the fields will be available in BTADMINH.
    how to set based on status delivery to get the date and time .
    Thanks
    Kalpana

    HI Ajay,
    I have added code in BT116h_srvo,attributes - LCSTATUS,method -  SET_LCSTATUS.but after change status f8 ..but the value is not filled in result list..so i need to write the logic in EH_ONSAVE or some other..could you please help here..what change i need to do..
    IF
    <nval> = 'E0004'.
    DATA : lv_date TYPE dats.
    DATA : lv_time TYPE tims.
    lv_date = sy-datum.
    lv_time = sy-uzeit.
    DATA : lr_parent TYPE REF TO cl_crm_bol_entity,
    lr_adminh TYPE REF TO cl_crm_bol_entity,
    lr_root TYPE REF TO cl_crm_bol_entity,
    lv_process_type TYPE crmt_process_type,
    lv_parent_name TYPE crmt_ext_obj_name,
    lr_current TYPE REF TO cl_crm_bol_entity.
    lr_current ?= current.
    lr_parent ?= lr_current->get_parent( ).
    CHECK lr_parent IS BOUND.
    CALL METHOD lr_parent->get_parent
    RECEIVING
    rv_result = lr_adminh.
    CHECK lr_adminh IS BOUND.
    TRY.
    CALL METHOD lr_adminh->set_property
    EXPORTING
    iv_attr_name = '/itcit/F0010'
    iv_value = lv_date. "value.
    CATCH cx_sy_conversion_error .
    ENDTRY.
    TRY.
    CALL METHOD lr_adminh->set_property
    EXPORTING
    iv_attr_name = '/itcit/F0011'
    iv_value = lv_time.
    CATCH cx_sy_conversion_error .
    ENDTRY.
    ENDIF.
    Thanks
    kalpana

  • How to show regions markers in Google maps based on longitude and latitude. on-click of region marker i want to display all the country locations based on the region from share point list?

    Hello every one,
    In My requirement i am having  some regions with longitude and latitude in one SharePoint list. in another SharePoint list i am having the country values with longitude and latitude and region as look up field.  I want to display all the region
    markers in Google maps. on click of any region marker i want to zoom in the map to region level and i need to display all the country markers in Google maps under the region. can any body help me on this requirement.
    Thanks in advance,
    Venu.

    Not sure about Google Maps but this is fairly easy to do with Bing Maps. I've used Bing Maps with SharePoint lists fairly regularly. Here are some blog posts:
    http://blogs.bing.com/maps/2013/03/26/connecting-a-sharepoint-list-to-bing-maps/
    http://blogs.bing.com/maps/2013/03/07/geocoding-a-sharepoint-list-item/
    Once you have your sharepoint list connected to Bing Maps you can easily filter the list data based on the selected country if you have a country column in your list. If you want to take things a bit further an create a much cooler user experience you can
    also use the Bing Maps GeoData API to get the country boundaries and show them on the map as polygons. These could be color coded based on some metric, or set up as the clickable area on the map rather than a pushpin. Here is a blog post on how to use the
    GeoData API with the JavaScript Bing Maps control:
    http://blogs.bing.com/maps/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview/
    http://rbrundritt.wordpress.com

  • I want to display parked invoices in the PO History tab.

    I want to see the parked invoices in the PO history tab. Is there a way to pull this in? It does not show up on there currently. Thanks!
    Chris Lintner
    Aflac

    Dear Chris,
    In order for the parked invoice to be shown in PO-history, the invoice
    should be assigned to the PO item.
    If not, then technically, there will be no record in the table RSEG
    for invoice.
    If the indicator 'GR-based IV' is flagged, it is not possible to post
    an invoice or park an invoice with PO line item info. if GR has not
    been performed for that PO line item.
    Another possiblity, if you push HOLD instead of "save parked document"
    the PO history won't be update either.
    Regards,
    ian, Wong Loke Foong

  • Get invoice list

    Hi all
            I have come accross an anomaly while testing invoice list. The following is my code for getting the invoice list. The problem its that when i test it with customer no 1000 it displays invoice list of 1050 too. This happens ONLY for cutomer no 1000, testing with other entries gives the desired result. Is there anything that i am doing wrong w.r.to the coding part? Thanks
    FORM get_invoice_list  TABLES   pt_customer_list
                                        TYPE /artec/msf_tab_cust_list
                                    pet_invoice_list
                                        TYPE /artec/msf_tab_invoice_list
                                    pet_return
                                        TYPE bapiret2_t
                             USING pv_open_invoice
                                        TYPE /artec/msf_dte_flag
                                   pv_close_invoice
                                        TYPE /artec/msf_dte_flag.
      TYPES:BEGIN OF ty_cus_name,
        cus_no TYPE kunnr,
        cus_name TYPE name1_gp,
        END OF ty_cus_name.
    *-- Declaring internal table
      DATA:
            r_fkdat   TYPE TABLE OF ty_fkdat,
            lt_vrkpa  TYPE TABLE OF ty_vrkpa.
    *Declare a date range table.
    *  DATA: r_rfbsk TYPE TABLE OF ty_rfbsk. "#EC NEEDED
    *-- Declaring workarea
       DATA:  lw_fkdat     TYPE ty_fkdat,
    *         lw_vbrk      TYPE ty_vbrk, "#EC NEEDED
             lw_vrkpa     TYPE ty_vrkpa,
    *         lw_rfbsk     TYPE ty_rfbsk,
    *         lw_cust_list TYPE /artec/msf_str_cust_list, "#EC NEEDED
             lw_invoice_list TYPE /artec/msf_str_invoice_list,
             lw_datcfg        TYPE /artec/msfdatcfg.
    *-- Clearing export table
      CLEAR: pet_invoice_list[], pet_return[] .
    *-- Get closed invoices within the date range.
      IF  pv_close_invoice IS INITIAL AND
          pv_open_invoice IS NOT INITIAL.
    *-- Get open invoices within the date range.
      ELSEIF pv_close_invoice IS NOT INITIAL AND
             pv_open_invoice IS INITIAL.
        SELECT SINGLE * FROM /artec/msfdatcfg "#EC *
               INTO lw_datcfg
               WHERE type = /artec/msf_cl_common=>gc_price_list ."'PRICE_LIST'.
        lw_fkdat-sign = /artec/msf_cl_common=>gc_sign_i.
        lw_fkdat-option = /artec/msf_cl_common=>gc_option_bt.
        lw_fkdat-low =  sy-datum - lw_datcfg-retain_day .
        lw_fkdat-high = sy-datum.
        APPEND lw_fkdat TO r_fkdat.
        CLEAR lw_fkdat.
    *--Fetch both the open and closed invoices
      ELSEIF pv_close_invoice IS NOT INITIAL AND
             pv_open_invoice  IS NOT INITIAL.
      ELSEIF pv_close_invoice IS INITIAL AND
             pv_close_invoice IS INITIAL.
      ENDIF.
    * Select required entries from the database view /artec/msf_v_inv
      SELECT kunde
             parvw
             vkorg
             fkdat
             vtweg
             fkart
             kunnr
             kunag
             vbtyp
             ernam
             vbeln
             netwr
             waerk
      FROM /artec/msf_v_inv "Database view of vrkpa and vbrk
          INTO TABLE lt_vrkpa
          FOR ALL ENTRIES IN pt_customer_list
          WHERE kunde = pt_customer_list-customer_no
          AND fkdat IN r_fkdat AND
          rfbsk = /artec/msf_cl_common=>gc_close_invoice.
      LOOP AT lt_vrkpa INTO lw_vrkpa.
        lw_invoice_list-cust_no      = lw_vrkpa-kunnr.
        lw_invoice_list-invoice_no   = lw_vrkpa-vbeln.
        APPEND lw_invoice_list TO pet_invoice_list.
        CLEAR:lw_invoice_list.
      ENDLOOP.
    Sort pet_invoice_list by cust_no invoice_no.
    Delete Adjacent Duplicates From pet_invoice_list  comparing all fields.
      IF pet_invoice_list[] IS NOT INITIAL.
        DELETE pet_invoice_list WHERE invoice_date BETWEEN '19900101' AND '20090101'.
      ENDIF.
    ENDFORM.

    hard to read the code, but did you check to see if FOR ALL ENTRIES IN pt_customer_list  has rows in the PT_customer_list?  If you didn't I'd suggest a review of documentation of FOR ALL ENTRIES.  If you did make sure pt_customer_list isn't empty, then disregard.

  • Requirement of invoice list in case of a proforma invoice generation.

    Dear Experts,
    I have a case where the customer is indulged with the export sales & he had delivered the excisable goods to his customer (or we can also consider it under STO as one of the above case) & wants to arise a proforma invoice in context to this transaction with the delivery document being taken as the reference document in the billing screen VF01; where, as I have already mentioned that the PGI has been done. Now the problem is this that the billing document is not getting generated with an information log that, '_The invoice list cannot be determined_'. Now I am not able to understand that why this is happening? This was the delivery related with a single line item.
    I went for changing the billing relevance field at VOV7 from 'A' to 'J' & even tried by changing the copying requirement from '010' to '311' at VTFL, from LF to F8 (as this is normally followed during the issue of free samples & subseqyent free of charge deliveries); but was not able to get the required output.
    What to do? Kindly assist.
    With regards,
    M.S.Kumar.
    Edited by: M.Santosh.Kumar on Jan 28, 2011 7:25 AM

    1) The document flow is like this that between the two plants for e.g. 1000 & 1100 under the same company code  the stock transfer needs to take place.
    2) Plant 1000 is devoid of the required amount of stock, hence it raised an enquiry for the aforesaid amount of stock with plant 1100
    3) Plant 1100 confirmed the availability of stock
    4) Plant 1000 raised a purchase order with plant 1100
    5) Plant 1100 raised the sales order for the required quantity of stock with plant 1000, & has done the PGI under delivery.
    6) Now the plant 1100 wants to raise one proforma invoice with respect to the delivery of goods being done to the corresponding plant 1000 & one commercial invoice for the payments to be made.
    7) The processing from raising the purchase order to the delivery of the goods to the respective plant has already being performed.
    8) At the moment of creating the proforma invoice with billing type F8, the system is throwing an error message that it is not able to generate the billing document because of the reason that the invoice list date cannot be determined.
    or else in the other way, in simple manner what needs to be done when simply the billing document is not getting generated in context to a delivery document because of the reason that the invoice list date could not be determined. Does this have to do anything with the POD time frame or the pricing conditions being defined under the pricing procedure which has not been followed upon while processing the sales order?
    With regards,
    M.S.Kumar.

  • Report title displaying for the secondary list

    Hi All,
    I have done a report interactive.The basic list is ALV and the secondary list is normal report.The problem in secondary list is it is diplaying the title "Dynamic list display" I am not getting from where this text is picking up and displaying .The code is as shown below.
    LEAVE TO LIST-PROCESSING.
    write:/ 'converting spool to pdf'.
    The output is displaying as shown below.
    dynamic list display.
    converting spool to pdf.
    I dont want to display dynamic list display in the output.How to suppress this?I even observed in debug mode after leave to list-prcoessing it is going to next line converting spool to pdf.
    Regards
    Mahesh

    use
    TOP-OF-PAGE DURING LINE-SELECTION.
    when ur SY-LSIND
    trigger this event with whtever heading u want in secondary list

  • I want to display icons in ALV

    Hi friends,
    I want to display icon indicators in ALV ???
    can anybody tell me ??/
    Thanks...

    Hi sturdy,
    this code will help u...copy paste and run...
    *& Report  ZFI_TEST                                                    *
    REPORT ZFI_ICON_TEST MESSAGE-ID zz .
    *& TABLES DECLARATION *
    TABLES: vbak.
    *& TYPE POOLS DECLARATION *
    TYPE-POOLS: slis.
    *& INTERNAL TABLE DECLARATION *
    DATA: BEGIN OF itab OCCURS 0,
    icon TYPE icon-id,                 "itab-icon = '@08@' -> Green ;     '@09@' -> Yellow ;     '@0A@' -> Red
    vbeln LIKE vbak-vbeln,
    audat LIKE vbak-audat,
    vbtyp LIKE vbak-vbtyp,
    auart LIKE vbak-auart,
    augru LIKE vbak-augru,
    netwr LIKE vbak-netwr,
    waerk LIKE vbak-waerk,
    END OF itab.
    *INTERNAL TABLE FOR FIELD CATALOG
    DATA: wa_fieldcat TYPE slis_fieldcat_alv,
    it_fieldcat TYPE slis_t_fieldcat_alv.
    IT_FIELDCAT TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV
    WITH HEADER LINE,
    *INTERNAL TABLE FOR EVENTS
    DATA: it_event TYPE slis_t_event,
    wa_event TYPE slis_alv_event,
    *INTERNAL TABLE FOR SORTING
    it_sort TYPE slis_t_sortinfo_alv,
    wa_sort TYPE slis_sortinfo_alv,
    *INTERNAL TABLE FOR LAYOUT
    wa_layout TYPE slis_layout_alv.
    *& VARIABLE DECLARATION *
    DATA : v_repid TYPE sy-repid,
    v_pagno(4) TYPE n,
    v_date(8) TYPE c.
    *& CONSTANTS *
    CONSTANTS: c_x TYPE c VALUE 'X'.
    *& SELECTION SCREEN *
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
    s_vbtyp FOR vbak-vbtyp DEFAULT 'C'.
    SELECTION-SCREEN: END OF BLOCK b1.
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-003.
    PARAMETERS: p_list RADIOBUTTON GROUP rad1 DEFAULT 'X'.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN : BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-004.
    PARAMETERS: p_grid RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN : END OF LINE.
    SELECTION-SCREEN: END OF BLOCK b2.
    AT SELECTION-SCREEN.
      PERFORM validate_screen.
    *& START OF SELECTION *
    START-OF-SELECTION.
      CLEAR: itab, itab[].
    V_REPID = SY-REPID.
      PERFORM get_data.
      PERFORM display_data.
    *& END OF SELECTION *
    END-OF-SELECTION.
    *--DO ALV Process
      v_repid = sy-repid.
    *--Sort the Output Fields
      PERFORM sort_fields.
    *--Build Field catalog for the Output fields
    PERFORM BUILD_FIELDCAT.
    *--Set the Layout for ALV
      PERFORM set_layout.
    *& Form GET_DATA
    text
    TO GET THE DATA FROM TABLES INTO ITAB
    FORM get_data .
      SELECT vbeln
      audat
      vbtyp
      auart
      augru
      netwr
      waerk
      INTO CORRESPONDING FIELDS OF TABLE itab
      FROM vbak
      WHERE vbeln IN s_vbeln AND
      audat > '04.04.2005'
      AND netwr > 0.
      LOOP AT itab.
        IF itab-netwr < 10000.
          itab-icon = '@08@'.
        ELSEIF itab-netwr > 10000 AND itab-netwr < 100000.
          itab-icon = '@09@'.
        ELSEIF itab-netwr > 100000.
          itab-icon = '@0A@'.
        ENDIF.
        MODIFY itab INDEX sy-tabix.
      ENDLOOP.
    ENDFORM. " GET_DATA
    *& Form sort_fields
    FORM sort_fields .
      CLEAR wa_sort.
      wa_sort-fieldname = 'VBTYP'.
      wa_sort-spos = '1'.
      wa_sort-up = 'X'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
      wa_sort-fieldname = 'NETWR'.
      wa_sort-spos = '2'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO it_sort.
    ENDFORM. " sort_fields
    *& Form set_layout
    FORM set_layout .
      IF p_list = c_x .
        wa_layout-window_titlebar = 'LIST DISPLAY'(016).
        wa_layout-zebra = 'X'.
    *-- ALV LIST DISPLAY
        PERFORM list_display TABLES itab.
    *-- ALV GRID DISPLAY
      ELSEIF p_grid = c_x.
        wa_layout-window_titlebar = 'GRID DISPLAY'(017).
        wa_layout-zebra = 'X'.
        PERFORM grid_display TABLES itab.
      ENDIF.
    ENDFORM. " set_layout
    *& Form list_display
    FORM list_display TABLES p_itab .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = v_repid
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat[]
          it_sort            = it_sort[]
          i_save             = 'U'
        TABLES
          t_outtab           = itab
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM. " list_display
    *& Form GRID_DISPLAY
    FORM grid_display TABLES p_itab .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = v_repid
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat[]
          it_sort            = it_sort[]
          it_events          = it_event
        TABLES
          t_outtab           = itab
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM. " GRID_DISPLAY
    *& Form VALIDATE_SCREEN
    text
    --> p1 text
    <-- p2 text
    FORM validate_screen .
      DATA: lv_vbeln LIKE vbak-vbeln.
      IF NOT s_vbeln IS INITIAL.
        SELECT vbeln
        INTO lv_vbeln
        UP TO 1 ROWS
        FROM vbak
        WHERE vbeln IN s_vbeln.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'INVALID SALES DOC'.
        ENDIF.
      ENDIF.
    ENDFORM. " VALIDATE_SCREEN
    *& Form display_data
    text
    --> p1 text
    <-- p2 text
    FORM display_data .
      DEFINE m_fieldcat.
        add 1 to wa_fieldcat-col_pos.
        wa_fieldcat-fieldname = &1.
        wa_fieldcat-ref_tabname = 'VBAK'.
        wa_fieldcat-do_sum = &2.
        wa_fieldcat-cfieldname = &3.
        append wa_fieldcat to it_fieldcat.
      END-OF-DEFINITION.
      DATA:
      ls_fieldcat TYPE slis_fieldcat_alv,
      lt_fieldcat TYPE slis_t_fieldcat_alv.
      m_fieldcat 'ICON' '' ''.
      m_fieldcat 'VBELN' '' ''.
      m_fieldcat 'AUDAT' '' ''.
      m_fieldcat 'VBTYP' '' ''.
      m_fieldcat 'AUART' '' ''.
      m_fieldcat 'AUGRU' '' ''.
      m_fieldcat 'NETWR' 'C' 'WAERK'.
      m_fieldcat 'WAERK' '' ''.
    ENDFORM. " display_data[/code]

Maybe you are looking for

  • How can I use my iPhone as a GPS Tracker?

    My Phone: iPhone4S iOS 8.0.2 How can I use my iPhone as a GPS Tracker? My requirement is not just finding the iPhone using find my iPhone but to use it as a GPS Tracking Device. I wish to enable GPS on my iPhone and want somebody to locate my movemen

  • Keyboard & Character Viewer "broken"

    I'm having trouble with the above utility to view and insert special characters when typesetting. Whenever I try and launch the viewer I get a "flashing" window with an activity circle, but it never shows the actual character viewer. It just keeps fl

  • Quiz scoring incorrect

    Hi A user has taken a quiz in a course. He failed the first time and so he did it again this time getting 100% of the questions correct. On his score page though it shows he has passed with a score of 88%. Is it taking his first attempt into account?

  • Migration Assistant won't migrate or assist me

    Trying to migrate from my son's Macbook Pro to his new Macbook Air.  Both are running 10.6.8 and have had all the latest software updates run.  Tried wired (with ethernet adapter for the MBA) and wireless - he doesn't have a Time Machine backup to tr

  • Trouble sending iphoto to trash

    I am trying to print some photos in iphoto, but keep getting the error message saying "There were no themes located. Until at least one theme has been installed, this feature will be unavailable". I have reviewed the support groups and all the sugges