Report for Invoiced Documents

Hi Experts,
We got a new requirement from Finance department for a report.They got a requirement like this.
1.Invoice Document 2.Invoice amount 3.Invoice date 4.All Taxes in detail for each invoice 5.Vendor Name and Vendor Number 6.Reference Document Details
7.If excise tax exists then Excise document Number.
So,please anyone tell me, what information i must give to my ABAP Consultant.
Please guide me how to prepare this report,step by step.
Thanks and Regards

Dear MK,
Here's some fields that may help :
       EBELN  LIKE EKPO-EBELN,   " PO#
       EBELP  LIKE EKPO-EBELP,   " PO item
       ELIKZ  LIKE EKPO-ELIKZ,   " Complete
       BEDAT  LIKE EKKO-BEDAT,   " PO creation date
       AEDAT  LIKE EKKO-AEDAT,   " PO date
       EKGRP  LIKE EKKO-EKGRP,   " Purchasing Grp
       LIFNR  LIKE LFA1-LIFNR,   " Vendor#
       NAME1  LIKE LFA1-NAME1,   " Vendor name
       MATNR  LIKE EKPO-MATNR,   " Material#
       TXZ01  LIKE EKPO-TXZ01,   " Description
       NETPR  LIKE EKPO-NETPR,   " Unit price
       WAERNT LIKE EKKO-WAERS,   " Unit Price Curr
       MENGE1 LIKE EKPO-MENGE,   " Quantity in EKPO
       ZTERM  LIKE EKKO-ZTERM,   " PayTerm
       INCO1  LIKE EKKO-INCO1,   " Incoterm 1
       BEWTP  LIKE EKBE-BEWTP,   " Category Code
       BEWTK  LIKE T163C-BEWTK,  " Category
       BEWTL  LIKE T163C-BEWTL,  " Category Text
       BELNR  LIKE EKBE-BELNR,   " Doc#
       XBLNR  LIKE RBKP-XBLNR,   " Reference
       BUZEI  LIKE EKBE-BUZEI,   " Item
       BWART  LIKE EKBE-BWART,   " Mvt
       BUDAT  LIKE EKBE-BUDAT,   " Posting Date
       MENGE  LIKE EKBE-MENGE,   " Quantity
       MEINS  LIKE EKPO-MEINS,   " Uom
       SHKZG  LIKE EKBE-SHKZG,   " Indicator (+)/(-)
       AUGDT  LIKE BSEG-AUGDT,   " Clearing Date
       AUGBL  LIKE BSEG-AUGBL,   " Clearing Doc
       GJAHR  LIKE EKBE-GJAHR,   " Fiscal Year
       BKLAS  LIKE MBEW-BKLAS,   " VClass
       BKBEZ  LIKE T025T-BKBEZ,  " VClass Desc
       BEDNR  LIKE EKPO-BEDNR,   "XTracking No
       CPUDT  LIKE EKBE-CPUDT,   "XArrival Date
       AFNAM  LIKE EBAN-AFNAM,   "XDivision Name
       EINDT  LIKE EKET-EINDT,   "XGoods Delivery
       WRBTR  LIKE EKBE-WRBTR,   " Value in DCurr
       REWRT  LIKE BSEG-REWRT,   " Gross Amt in DCurr
       WAERS1 LIKE EKKO-WAERS,   " DCurr
       DMBTR  LIKE EKBE-DMBTR,   " Value in LCurr
       REWWR  LIKE BSEG-REWWR,   " Gross Amt in LCurr
       WAERS  LIKE T001-WAERS,   " LCurr
       DMBE2  LIKE BSEG-DMBE2,   " Value in GCurr
       BONFB  LIKE BSEG-BONFB,   " Gross Amt in GCurr
       WAERS3 LIKE EKBE-WAERS,   " GCurr
       ZUONR  LIKE BSEG-ZUONR,   " Allocation
       BLART  LIKE BKPF-BLART,   " DType
       BKTXT  LIKE BKPF-BKTXT,   " Doc Header Text
       FIDOC  LIKE BSEG-BELNR,   " FI Doc#
       ZBD1T  LIKE BSEG-ZBD1T,   " PTerm (days)
       ZFBDT  LIKE BSEG-ZFBDT,   " EstPmtDt
       MATKL  LIKE EKPO-MATKL,   " MatGrp
       WERKS  LIKE EKPO-WERKS,   " Plant
       BSART  LIKE EKKO-BSART,   " PODocTyp
       BUKRS  LIKE RBKP-BUKRS,   " InvCoCd
       NETPRQ LIKE EKPO-NETWR,   " PO Amount
       WRBTRA LIKE BSEG-WRBTR,   " Inv Amnt in PO Curr
       STATUS LIKE EKPO-BSTAE,   " Status
       VGABE  LIKE EKBE-VGABE,   "XHistory
       TKNUM  like VTTK-TKNUM,   "XShipment#
       BEZEI  like TVKNT-BEZEI,  "XPOD
       DPTEN  like VTTK-DPTEN,   "XETA
       CMILL  like VTTK-HANDLE,  "XCargo to Mill
       VERKF  like EKKO-VERKF,   "XSales Person
       INCO2  like EKKO-INCO2,   "XIncoTerm 2
       POACT  like BKPF-BLDAT,   "XPO from Acct
       IVACT  like BKPF-BLDAT,   "XInv to Acct
       ACPIV  like BKPF-BLDAT,   "XAcct process Inv
       IVTPC  like BKPF-BLDAT,   "XInv to Pymt Ctrl
       DATEN  like VTTK-DATEN,   "XATA
Regards,
w1n

Similar Messages

  • Output Type for Invoice document

    Hi,
    The Output Message for Invoice Document was not created during MIRO in 2004. So no output generated & user cant able to take invoice printout via MR90.
    Now user needs to output the message & take the printout. How to create the output type (tcode) for invoice document.
    Regards,
    Baskar

    Hi
    Follow this
    Goto Tcode NACE ...select application MR ...click output types .... here create a copy of ERS and name it as say INVS
    Now again in NACE slect MR and click on condition records and maintain condition record for INVS wrt co code
    Now in Tcode M808 maintain INVS in the schema MR0002
    Now when u create a MIRO doc then at header level do check if print is getting activated or not
    Then take print out in MR90 tcode

  • Report for Purchasing Documents with Over Delivery or Under Delivery Tolera

    Dear All !
    please suggest me a report for Purchasing Documents with Over Delivery or Under Delivery Tolerance limit.
    thanks n regards
    Naagsekhar

    hi,
    Go to ME2N --> Use dynamic selection, choose for hte Puchase doc item --> here select for the over and under delivery and then execute the report..
    Hope it helps..
    Regards
    Priyanka.P

  • Text determination steps for Invoice document

    Hi friends,
    can any one send text determination steps for invoice document.
    Thanks ,
    Laxminarayana

    hi
    GO TO VOTXN
    PRESS ON TEXT TYPE
    CREATE AS PER YOUR REQUIREMENT AN D SAVE IT
    GO BACK CHANGE
    DEFINE TEXT ID PROCEDURE
    DEFINE ACCESS SEQUENCE
    ASSIGN TEXT ID PROCEDURE TO ACCESS SEQUENCE
    ALSO CHECK PARTNER FUNCTION AND LANGUAGE  AND ASSIGN WITH TEXT ID OF CUSTOMER TYPE
    SAVE IT
    NOW U CAN ASSIGN EST AT RELEVENT TEXT OBJECT LIKE INVOICE .
    HENCEAFTER SYSTEM WILL GIVE YOU POP UP MESSAGE WHENEVER YOU WIL CROSS WITH THIS APPLICATION IN SALES PROCESS.
    THANKS
    REWARD IT

  • Internal No range for Invoice document types

    Hi Guys,
    For all  SD documents types like Sales order and Delivery document , we have both external as well as internal no ranges.But why we have only Internal no ranges for Invoice document ? why we don't have external no ranges for this ?
    Regards,
    Kumar

    Hi,
    In this thread sufficient explanations are given..chech it
    Re: why invoice always use internal no range?
    Reg,
    JJ

  • Different No Range for invoice document no(MIRO) - company code wise.

    Dear All,
    Hi.
    at present we have just one company code in the server.
    now we are getting second company code in the same server, for this new coopany code. business needs seperate no range for invoice document no (MIRO)
    so please guide me how i can configure in the system
    Thanks
    h shah

    Hi,
    However, after testing in SAP internal system, I am afraid that your      
    request is not possible.        
    From the sap-Documentation ("Maintain Number Assignments for Accounting Documents")    :                              
    "Because document number assignment in Materials Management is not             
    company code-specific......   "                                                
    Best regards
    Erika

  • Please Help .... in identifying(SAP Delivered): Reports for Invoice-to-Cash

    Hi,
    I will be at a meeting to help gather requirements for a project in relation to Invoice-to-Cash.
    Can you guide me to get the following information:
    1. a high level list of reports for Invoice-to-Cash
    2. a detail list of reports for Invoice-to-Cash
    3. To see the SAP deleivered data flow to give me an idea of the extractors, DSOs, Cubes(dimensions...), etc.
    Also, apart from your experience, is there a process to get this information for any requirement in general? I went to BI Content in rsa1 on our development system hoping to see some reports related to Invoice-to-Cash but to no avail?
    Thanks
    Edited by: Amanda Baah on Apr 24, 2009 8:36 AM

    Hi,
    invoice to cash is basically a sub process of the process: Customer Order to point of receiving Cash from Customer.
    So, Invoice to cash as used in my original post actually is: The point at which Customer Invoice was issued to the point at which Cash was received.
    So back to my original question, can you guide me to get the following information:
    1. a high level list of reports for Invoice-to-Cash
    2. a detail list of reports for Invoice-to-Cash
    3. To see the SAP deleivered data flow to give me an idea of the extractors, DSOs, Cubes(dimensions...), etc.
    Also, apart from your experience, is there a process to get this information for any requirement in general? I went to BI Content in rsa1 on our development system hoping to see some reports related to Invoice-to-Cash but to no avail?
    Thanks
    Edited by: Amanda Baah on Apr 27, 2009 9:35 AM

  • Problem to add the Note for Invoicing Document using Idoc

    Hi All,
    I would like to use the idoc to create the Invoicing document (MIRO). it seem can't use standard segment E1EDKT1 to create the standard text.
    Anybody have any suggestion to create this standard text?
    Regards,
    Luke

    Hi Krishna,
    I checked WE60 and tried use the E1EDKT1 to create the standard text for invoicing document.
    Document created successful but can't add the standard text in this document.
    also i try to find some exit for update the standard text. i can't find out any exit after creating the invoiceing document.
    would you please give more advise to me ?
    Regards,
    Luke

  • Parallel buffeing for invoice documents

    what is the meaning for *'parallel buffeing for invoice documents'*, and what is its use?

    Check the following note
    Note 599157 - Number ranges: new buffering method
    G. Lakshmipathi

  • Standard report for invoices against a quantity contract

    dear experts,
    is there any standard report for how much invoices(billing) should be made against a quantity contract.
    my requirement is suppose if  i enter a quantity contract number then it will display all the invoices against that contract with
    invoice values.if any please let me know so that we make make our process much better.
    regards,
    amar.

    Dear Amar,
    In SAP, this contract to Invoice their is not standard report.
    Report
    If you enter a quantity contract number, to get a list of invoices with qty and invoice amt
    Prepare a SQVI REPORT
    USING TABLES
    VBRK for Invoice qty amt
    VBRP for Invoice number, dates...
    VBFA to get the intial document number
    VBAK - to get the contract number
    VBAP - to get the material.
    Its worth spending little time to create the report.
    Ensure standard SAP contract to Invoice is like compartments
    Regards,
    Mani

  • Alv Report for invoice details

    Dear All,
                 I need to develop one alv report for following details. i developed coding for this requirment but i am getting some error.kindley help me to how to move data from different internal table to final internal table. I used LOOP AT and READ Statement even i didn't get any output.
    kindley help me out.
    TYPES: BEGIN OF XT_TAB,
             LIFNR  LIKE LFA1-LIFNR,
             NAME1  LIKE LFA1-NAME1,
             STCD1  LIKE LFA1-STCD1,
             STCD2  LIKE LFA1-STCD2,
             STCD3  LIKE LFA1-STCD3,
             STCD4  LIKE LFA1-STCD4,
           END OF XT_TAB.
    TYPES: BEGIN OF YT_TAB,
            BUKRS LIKE BSEG-BUKRS,
            BELNR LIKE BSEG-BELNR,
            BUZEI LIKE BSEG-BUZEI,
            LIFNR LIKE BSEG-LIFNR,
            GJAHR LIKE BSEG-GJAHR,
           END OF YT_TAB.
    TYPES: BEGIN OF ZT_TAB,
            LIFNR  LIKE LFA1-LIFNR,
            NAME1  LIKE LFA1-NAME1,
            STCD2  LIKE LFA1-STCD2,
            BELNR  LIKE BSEG-BELNR,
            BUZEI  LIKE BSEG-BUZEI,
            GJAHR  LIKE BSEG-GJAHR,
           END OF ZT_TAB.
           I N T E R N A L   T A B L E   D E C L A R A T I O N S         *
    *-----Internal table to store data
    DATA: ITAB1   TYPE STANDARD TABLE OF XT_TAB INITIAL SIZE 0,
          WA_TAB1 TYPE XT_TAB.
    DATA: ITAB2   TYPE STANDARD TABLE OF YT_TAB INITIAL SIZE 0,
          WA_TAB2 TYPE YT_TAB.
    DATA:   ITAB  TYPE STANDARD TABLE OF  ZT_TAB  WITH HEADER LINE,
            WA_ITAB TYPE ZT_TAB,
            ITAB_FINAL2 TYPE STANDARD TABLE OF ZT_TAB.
    DATA: ITAB_TEMP1 TYPE STANDARD TABLE OF ZT_TAB  WITH HEADER LINE.
                    Selection Screen Declarations                        *
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN begin OF LINE.
    SELECTION-SCREEN COMMENT (23) text-003 FOR FIELD P_LIFNR.
    PARAMETERS P_LIFNR LIKE LFA1-LIFNR OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK bk1.
    START-OF-SELECTION.
          PERFORM XTRACT_DATA.
    END-OF-SELECTION.
    *-----Filling the Output table
      PERFORM populate_main_table.
          PERFORM BUILD_FIELDCATALOG.
         PERFORM SORTING.
          PERFORM BUILD_LAYOUT.
          PERFORM BUILD_ALV_GRID_DISPLAY.
         Form  XTRACT_DATA
    FORM XTRACT_DATA .
    *SELECT
          a~LIFNR
          a~NAME1
          a~STCD2
          b~BELNR
          b~BUZEI
          b~GJAHR
    INTO TABLE ITAB
    FROM LFA1 as a INNER JOIN BSEG as b
      ON  aLIFNR = bLIFNR
    WHERE  a~LIFNR = P_LIFNR.
    SELECT LIFNR
           NAME1
           STCD1
           STCD2
           STCD3
           STCD4
      FROM LFA1
      INTO TABLE ITAB1
      WHERE LIFNR = P_LIFNR.
    IF NOT ITAB1[] IS INITIAL.
        SORT ITAB1 BY LIFNR.
        SELECT BELNR
               BUZEI
               LIFNR
               GJAHR
    INTO TABLE ITAB2
          FROM BSEG
    FOR ALL ENTRIES IN ITAB1
    WHERE LIFNR = ITAB1-LIFNR.
    ENDIF.
    ENDFORM.                    " XTRACT_DATA
    *&      Form  POPULATE_MAIN_TABLE
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_MAIN_TABLE .
       LOOP AT ITAB1 INTO WA_TAB1.
               ITAB-LIFNR = ITAB1-LIFNR.
               ITAB-NAME1 = ITAB1-NAME1.
               ITAB-STCD2 = ITAB1-STCD2.
       READ TABLE ITAB2 INTO WA_TAB2 WITH KEY LIFNR = WA_TAB1-LIFNR.
               IF sy-subrc = 0.
               ITAB-BELNR = ITAB1-BELNR.
               ITAB-BUZEI = ITAB1-BUZEI.
               ITAB-GJAHR = ITAB1-GJAHR.
               ENDIF.
      ENDLOOP.
      ENDFORM.                    " POPULATE_MAIN_TABLE
         Form  BUILD_FIELDCATALOG
    FORM BUILD_FIELDCATALOG .
      REFRESH t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 1.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Vendor Number'.
      wa_fcat-seltext_m = 'Vendor Number'.
      wa_fcat-seltext_l = 'Vendor Number'.
      wa_fcat-fieldname = 'LIFNR'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 2.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Vendor Name'.
      wa_fcat-seltext_m = 'Vendor Name'.
      wa_fcat-seltext_l = 'Vendor Name'.
      wa_fcat-fieldname = 'NAME1'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 3.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Vendor TIN Number'.
      wa_fcat-seltext_m = 'Vendor TIN Number'.
      wa_fcat-seltext_l = 'Vendor TIN Number'.
      wa_fcat-fieldname = 'STCD2'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 4.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Document No'.
      wa_fcat-seltext_m = 'Document No'.
      wa_fcat-seltext_l = 'Document No'.
      wa_fcat-fieldname = 'BELNR'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 5.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Item Number'.
      wa_fcat-seltext_m = 'Item Number'.
      wa_fcat-seltext_l = 'Item Number'.
      wa_fcat-fieldname = 'BUZEI'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 6.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Fiscal Year'.
      wa_fcat-seltext_m = 'Fiscal Year'.
      wa_fcat-seltext_l = 'Fiscal Year'.
      wa_fcat-fieldname = 'GJAHR'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
    ENDFORM.                    " BUILD_FIELDCATALOG
         Form  BUILD_LAYOUT
    FORM BUILD_LAYOUT .
    GD_LAYOUT-NO_INPUT = 'X'.
    GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    GD_LAYOUT-TOTALS_TEXT = 'TOTALS'.
    ENDFORM.                    " BUILD_LAYOUT
         Form  BUILD_ALV_GRID_DISPLAY
    FORM BUILD_ALV_GRID_DISPLAY .
    gd_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = gd_repid
                i_callback_top_of_page  = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
                is_layout               = gd_layout
                it_fieldcat             = t_fcat[]
                it_events               = gt_events
                is_print                = gd_prntparams
                it_sort                 = it_sortcat[]
                i_save                  = 'X'
           TABLES
                t_outtab                = ITAB
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
    thanks and regards
    Murugesh

    TYPES: BEGIN OF XT_TAB,
             LIFNR  LIKE LFA1-LIFNR,
             NAME1  LIKE LFA1-NAME1,
             STCD1  LIKE LFA1-STCD1,
             STCD2  LIKE LFA1-STCD2,
             STCD3  LIKE LFA1-STCD3,
             STCD4  LIKE LFA1-STCD4,
           END OF XT_TAB.
    TYPES: BEGIN OF YT_TAB,
            BUKRS LIKE BSEG-BUKRS,
            BELNR LIKE BSEG-BELNR,
            BUZEI LIKE BSEG-BUZEI,
            LIFNR LIKE BSEG-LIFNR,
            GJAHR LIKE BSEG-GJAHR,
           END OF YT_TAB.
    TYPES: BEGIN OF ZT_TAB,
            LIFNR  LIKE LFA1-LIFNR,
            NAME1  LIKE LFA1-NAME1,
            STCD2  LIKE LFA1-STCD2,
            BELNR  LIKE BSEG-BELNR,
            BUZEI  LIKE BSEG-BUZEI,
            GJAHR  LIKE BSEG-GJAHR,
           END OF ZT_TAB.
           I N T E R N A L   T A B L E   D E C L A R A T I O N S         *
    *-----Internal table to store data
    DATA: ITAB1   TYPE STANDARD TABLE OF XT_TAB INITIAL SIZE 0,
          WA_TAB1 TYPE XT_TAB.
    DATA: ITAB2   TYPE STANDARD TABLE OF YT_TAB INITIAL SIZE 0,
          WA_TAB2 TYPE YT_TAB.
    DATA:   ITAB  TYPE STANDARD TABLE OF  ZT_TAB  WITH HEADER LINE,
            WA_ITAB TYPE ZT_TAB,
            ITAB_FINAL2 TYPE STANDARD TABLE OF ZT_TAB.
    DATA: ITAB_TEMP1 TYPE STANDARD TABLE OF ZT_TAB  WITH HEADER LINE.
                    Selection Screen Declarations                        *
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN begin OF LINE.
    SELECTION-SCREEN COMMENT (23) text-003 FOR FIELD P_LIFNR.
    PARAMETERS P_LIFNR LIKE LFA1-LIFNR OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK bk1.
    START-OF-SELECTION.
          PERFORM XTRACT_DATA.
    END-OF-SELECTION.
    *-----Filling the Output table
      PERFORM populate_main_table.
          PERFORM BUILD_FIELDCATALOG.
         PERFORM SORTING.
          PERFORM BUILD_LAYOUT.
          PERFORM BUILD_ALV_GRID_DISPLAY.
         Form  XTRACT_DATA
    FORM XTRACT_DATA .
    *SELECT
          a~LIFNR
          a~NAME1
          a~STCD2
          b~BELNR
          b~BUZEI
          b~GJAHR
    INTO TABLE ITAB
    FROM LFA1 as a INNER JOIN BSEG as b
      ON  aLIFNR = bLIFNR
    WHERE  a~LIFNR = P_LIFNR.
    SELECT LIFNR
           NAME1
           STCD1
           STCD2
           STCD3
           STCD4
      FROM LFA1
      INTO TABLE ITAB1
      WHERE LIFNR = P_LIFNR.
    IF NOT ITAB1[] IS INITIAL.
        SORT ITAB1 BY LIFNR.
        SELECT BELNR
               BUZEI
               LIFNR
               GJAHR
    INTO TABLE ITAB2
          FROM BSEG
    FOR ALL ENTRIES IN ITAB1
    WHERE LIFNR = itab1-lifnr.
    ENDIF.
    ENDFORM.                    " XTRACT_DATA
    *&      Form  POPULATE_MAIN_TABLE
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_MAIN_TABLE .
      LOOP AT ITAB1 INTO WA_TAB1.
              ITAB-LIFNR = ITAB1-LIFNR.
              ITAB-NAME1 = ITAB1-NAME1.
              ITAB-STCD2 = ITAB1-STCD2.
      READ TABLE ITAB2 INTO WA_TAB2 WITH KEY LIFNR = WA_TAB1-LIFNR.
              IF sy-subrc = 0.
              ITAB-BELNR = ITAB1-BELNR.
              ITAB-BUZEI = ITAB1-BUZEI.
              ITAB-GJAHR = ITAB1-GJAHR.
              ENDIF.
    ENDLOOP.
    LOOP AT itab1 INTO wa_tab1.
       MOVE:  wa_tab1-lifnr TO itab-lifnr,
              wa_tab1-name1 TO itab-name1,
              wa_tab1-stcd2 TO itab-stcd2.
          Append itab.
      READ TABLE itab2 TRANSPORTING NO FIELDS WITH KEY lifnr = wa_tab1-lifnr.
      IF sy-subrc eq 0.
        MOVE: wa_tab2-lifnr TO itab-lifnr,
              wa_tab2-belnr TO itab-belnr,
              wa_tab2-buzei TO itab-buzei,
              wa_tab2-gjahr TO itab-gjahr.
      Append itab.
    endif.
    endloop.
    *LOOP AT t_agr_tcodes INTO s_agr_tcodes.
    READ TABLE t_tstc
    TRANSPORTING NO FIELDS
    WITH KEY tcode = s_agr_tcodes-tcode.
    IF sy-subrc eq 0.
       MOVE: s_agr_tcodes-tcode TO it_agr_tcodes-tcode,
             s_agr_tcodes-agr_name to it_agr_tcodes-agr_name,
             t_tstc-pgmna to it_agr_pgmna.
    *Append it_agr_tcodes.
    *endif.
    *endloop.
      ENDFORM.                    " POPULATE_MAIN_TABLE
         Form  BUILD_FIELDCATALOG
    FORM BUILD_FIELDCATALOG .
      REFRESH t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 1.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Vendor Number'.
      wa_fcat-seltext_m = 'Vendor Number'.
      wa_fcat-seltext_l = 'Vendor Number'.
      wa_fcat-fieldname = 'LIFNR'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 2.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Vendor Name'.
      wa_fcat-seltext_m = 'Vendor Name'.
      wa_fcat-seltext_l = 'Vendor Name'.
      wa_fcat-fieldname = 'NAME1'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 3.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Vendor TIN Number'.
      wa_fcat-seltext_m = 'Vendor TIN Number'.
      wa_fcat-seltext_l = 'Vendor TIN Number'.
      wa_fcat-fieldname = 'STCD2'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 4.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Document No'.
      wa_fcat-seltext_m = 'Document No'.
      wa_fcat-seltext_l = 'Document No'.
      wa_fcat-fieldname = 'BELNR'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 5.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Item Number'.
      wa_fcat-seltext_m = 'Item Number'.
      wa_fcat-seltext_l = 'Item Number'.
      wa_fcat-fieldname = 'BUZEI'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
      wa_fcat-col_pos = 6.
      wa_fcat-row_pos = 1.
      wa_fcat-seltext_s = 'Fiscal Year'.
      wa_fcat-seltext_m = 'Fiscal Year'.
      wa_fcat-seltext_l = 'Fiscal Year'.
      wa_fcat-fieldname = 'GJAHR'.
      wa_fcat-tabname = 'ITAB'.
      APPEND wa_fcat TO t_fcat.
      CLEAR t_fcat.
    ENDFORM.                    " BUILD_FIELDCATALOG
         Form  BUILD_LAYOUT
    FORM BUILD_LAYOUT .
    GD_LAYOUT-NO_INPUT = 'X'.
    GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    GD_LAYOUT-TOTALS_TEXT = 'TOTALS'.
    ENDFORM.                    " BUILD_LAYOUT
         Form  BUILD_ALV_GRID_DISPLAY
    FORM BUILD_ALV_GRID_DISPLAY .
    gd_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = gd_repid
                i_callback_top_of_page  = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
                is_layout               = gd_layout
                it_fieldcat             = t_fcat[]
                it_events               = gt_events
                is_print                = gd_prntparams
                it_sort                 = it_sortcat[]
                i_save                  = 'X'
           TABLES
                t_outtab                = ITAB
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
    Edited by: Murugesh P on Apr 6, 2009 10:54 AM
    Edited by: Murugesh P on Apr 6, 2009 10:54 AM

  • Standard report for material document with excise

    Dear Gurus,
        Is there any standard report for which i can trace for all the incoming material grn whether excise is captured or not.
        i.e) a report with excise no, quantity and material document   
        thanks in advance
    Vasanth

    Hi,
    J1i7 is the standard report which shows wether the part1 or part2 is posted or no posting is done, you can select the layout as per your choice by change layout.
    Thanks,
    Vinay

  • Report for Billing Document/sales order against project/WBS/Network

    Hi Experts,
    I want to see the Billing Document/Sales Order for Network/WBS in the projects.
    Also want to see the cost transaction against the WBS and Network.
    Suggest report which can show the details of the Sales Order/Billing Document against the WBS/Network.
    Thanks and Regards
    Ram Kalel

    Hi Ram,
    Please check standard TCODE like
    CN45N for Order list
    CN54N for sales n Distribution documents
    CN55N for sales document items
    Thanks
    Sunil

  • Sap standard report for delivery document block.

    Hi,
    We want to block delivery document for further processing that picking and PGI.
    For that we are looking for sap standard report if available so we could provide it to client.
    so we need
    SAP standard report for blocked delivery document.

    Hi,
    As far as my understanding there is no such report but you can try with report MATERIAL WHERE USED LIST
    Please find t-code for this as due to system unavailable i am not mentioning t-code for same
    kapil

  • Report for invoices project wise

    Hello All,
    I need a report where I can see the invoices project wise i.e (PS module and SD module)
    I am looking for invoices details project wise is there any standard report which I can check that how many invoices have been raised for  a particular project or a particular sales order.
    Thanks in advance,
    Priya

    Hi
    You are not getting the fields in FBL5N or not getting the value in them?
    If you are not gettng the fields,
    1. Go to SM30 - Table V_T021S...
    2. Include BSEG-FIelds Sales Order and WBS Element as special fields
    3. Generate the transport request and transport it to PRD
    4. Execute SE38 - RFPOSXEXTEND in PRD client
    Now when you execute the report, it should show you those fields..
    BR,Ajay M

Maybe you are looking for