Heel help for reports

hi friends
i have installed sqlplus and developer forms with different homes but know i iwant to install reports in my pc how can i install should i use the same home that one i used for forms or i should create a new home and then attach it with reports
i want to add reports in my project as well plz help me

Munzer,
when you install Oracle Forms, Oracle Reports is installed to. Even with earlier versions I cannot remember that it was possible to install one without the other (because they share the same library files).
Under no circumstances should Forms and Reports be installed into teh database home (exception is older Forms and Reports releases - before Forms 6i - that must be installed in thr default Oracle Home)
Frank

Similar Messages

  • Query Help for reporting on last receipt qty

    SBO Version: 8.82 PL11
    Hello Forum,
    I am looking for some help devising a command behind a crystal report. We are hoping to achieve the last receipt quantity. To arrive at this we would like it to get the last GRPO for an item and total the quantity on that particular GRPO. In addition to this, we want to consider all the lines on the document and SUM them.
    At present, the query I have is as follows:
    Select SUM(c0.Quantity) from PDN1 c0 WHERE c0.ItemCode = T1.ItemCode AND Shipdate = (select Max(ShipDate) from PDN1 C0  INNER JOIN OPDN c1 ON c0.DocEntry = c1.DocEntry where C0.Itemcode =T1.ItemCode AND c1.DocStatus <> 'C'))
    Any assistance would be greatly received.
    Thanks
    Sarah

    Hi Sarah,
    Please repost to the SAP Business One Application  space.
    -Abhilash

  • Need help for Report Generation

    I am using Designer 6i.
    I want to ask that :
    Is there any facility that can preserve the report layout when I want to generate the report, because every time I generate the report I can't preserve the last layout.
    Thank for helping me !
    null

    Hi,
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    n pls reply me.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    reward if it helps..
    Regards,
    Omkar.

  • Need help for reporting

    hi,
    Hope I did not post to the wrong place. but I really need help here. I've been using Crystal Report all these while before I tried out java. However, there is a problem here.
    I've been doing some complex reports that comes with subreports and grabing values from the program. but there is no one program that i found can really support the reporting in java. I've even tried the crystal clear and Jbuilder enterprise trial version (which comes with crystal report). but I still can't get the output that I want.
    So, I'm here to ask :
    1. what sort of reporting system r u using that is recommended?
    2. And if I were to continue supporting crystal report where can I get a better component that supports crystal report ?
    3. And where can I get tutorials for java integration with crystal reports?
    thanks.

    Also check out i-text. It's an open source Java -> PDF tool. You will need to write a mapper to go from JDBC ResultSet to your own custom Java class. Otherwise, it is almost like writing HTML programatically.
    - Saish

  • Help for Report Painter!!

    Dear All,
    When i create a report in Report Painter and execute, it requires insert report in report group, i chose once of report group --> ok, but an error occurs: "Objects with leading zero may not be changed".
    So, what can i do? pls help me.
    Thanks,

    Hi Vinh,
               Use this the below function module to discard the leading zero.i will send a sample code check it once..
    ata: lv_c(10) type c value '0000123'.
    call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
              exporting
                      input = lv_c
              importing
                     output = lv_c.
    write:/ lv_c.
    Reward points if helpful.
    Kiran Kumar.G.A
            Have a Nice Day..

  • Need help For report RSVTPROT

    Hello all,
    there is a standard report <b>RSVTPROT</b> which i need to convert into an ALV only for table <b>T000</b>.i am working on <b>release 4.7</b> in which <b>ALV display</b> is not possible but for <b>ECC6.0</b> SAP provided ALV option.but also i cannot copy paste the SAP code from ECC6.0 because they have implemented so many standard classes and other things which are out of my scope to define..
    <b>did anybody does this kind of development if yes please hellllllllllppppppp......i am not able to do coding for it.......</b>
    Divya

    hi chowdary ,
    could you tell me the var. creation in detail and  with which reference object i need to create ...
    whether i need to take LM_DATE / 0DATE while creating variable...
    and i kept this variables it in filter section, based on the LM_DATE Object.
    i have tried both.. y'day when i take 0DATE it giving me some results...
    But at the same time it is restricting the records..
    i think it could be a problem with var.. properties?
    need more inputs pls.
    Regards,
    VJ

  • Need help for report Variable to restrict the key figure value...

    Hai gurus,
    Now i have data in the cube as follows...
    Reuisition     HR INTW date     LM INTW DATE     TEL INTW DATE     HR Count     LM Count     TEL Count
    a1              01.01.2010     02.01.2010             01.04.2010                 1                1                 1
    a2              02.02.2010     03.02.2010             02.02.2010                 1                1               1
    a3              03.03.2010     04.03.2010             03.03.2010                 1                1               1
    when i execute the report it shd ask the prompts with Date interval as in the below...
    HR INTW date
    LM INTW DATE
    TEL INTW DATE
    if i dont give any interval in the variable prompt it should display all the recors as follows
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                   1             1
    If i give LM INTW DATE interval as    01.01.2010 to 31.02.2010
    then it should display all the other counts as in the output_1 , but for LM count for a3 it should show 0.
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                 0                  1
    that means wherever i restrict the data depending on the variable that only that interval key figure value shd be in the report..
    for this scenario, which variable i need to use... and how i need to restict the KFig value in the report...
    Right now i am getting like this but it is restricting the records,,, where it should not restrict the records...in the report..
    Please guide me for the same...
    If any concerns about the scenario please let me know...
    Regards,
    VJ

    hi chowdary ,
    could you tell me the var. creation in detail and  with which reference object i need to create ...
    whether i need to take LM_DATE / 0DATE while creating variable...
    and i kept this variables it in filter section, based on the LM_DATE Object.
    i have tried both.. y'day when i take 0DATE it giving me some results...
    But at the same time it is restricting the records..
    i think it could be a problem with var.. properties?
    need more inputs pls.
    Regards,
    VJ

  • ODS with many keys helpful for reporting ?

    Hello BW Experts,
    When you have a lot of data in the ODS.
    1) If we have more keys in the ods does it help us in the reporting point of view ?
    2) does it help in the datamart loading. i.e loading from this ods to any other data target
    3) does it help in the loading data to this ods.
    Please share your views.
    Thanks in advance,
    BWer

    Its better to have secondary indices on ODS, if you can run away from ODS Reporting.
    I think having number of keys might not hurt loading to ODSm but you need to have proper design on selecting Keys Fields. This unique combination dectates how many records can be added from the transfered records.
    No comments on Datamart loading in case of Base ODS with more keys.
    Hope this helps
    Anand.

  • I have an Ipad 2 and here is what I am trying to accomplish.  On my laptop I connect to a remote desktop connection to access a shared program we use for reporting.  How do I set up my Ipad to access this remote server?  Thanks for the help.

    I have an Ipad 2 and here is what I am trying to accomplish.  On my laptop I connect to a remote desktop connection to access a shared program we use for reporting.  How do I set up my Ipad to access this remote server?  Thanks for the help.

    Close ... before going for a specific Cisco app ... lets find out some details:
    Host we need more details:
    What is your server environment (Windows Server, or Mac OS X Server, or Linux)?
    What security is implemented in your environment - as what is restricted (RDP for all or specifc credentials on all machines? Are you part of local admin group to the server you wish to connect)?
    Does your environment Support CISCO IPSec connection? If so use Settings> VPN and IPSec tab to enter VPN details, if not then go with above suggestion. IF your restricted to RSA then either built in VPN settings or 3rd party app for RSA would suffice.
    Finally, there are many RDP applications out there I use "Mocha RDP Light" (free minimal ads when launched not when connecting).

  • How to create a F4 help for a report selection screen field

    hi,
    can any one guide me to create F4 help for a field in a selection screen in a report program,plz give me a sample code

    hi,
    Here are the following ways
    1.with the help of match code objects we can create the F4 Functionality for Field.
    Syntax is :
    PARAMETERS: p_org LIKE t527x-orgeh MATCHCODE OBJECT zorg.
    2. One more thing is we can do it with Search Help's also.
    3. Even we can do it HELP Views also.
    Help Views:
    You have to create a help view if a view with outer join is needed as selection method of a search help
    The selection method of a search help is either a table or a view. If you have to select data from several tables for the search help, you should generally use a database view as selection method. However, a database view always implements an inner join. If you need a view with outer join for the data selection, you have to use a help view as selection method.
    All the tables included in a help view must be linked with foreign keys. Only foreign keys that have certain attributes can be used here. The first table to be inserted in the help view is called the primary table of the help view. The tables added to this primary table with foreign keys are called secondary tables.
    The functionality of a help view has changed significantly between Release 3.0 and Release 4.0. In Release 3.0, a help view was automatically displayed for the input help (F4 help) for all the fields that were checked against the primary table of the help view. This is no longer the case in Release 4.0.
    As of Release 4.0, you must explicitly create a search help that must be linked with the fields for which it is offered (see Linking Search Helps with Screen Fields ).
    Existing help views are automatically migrated to search helps when you upgrade to a release higher than 4.0.
    A help view implements an outer join, i.e. all the contents of the primary table of the help view are always displayed. You therefore should not formulate a selection condition for fields in one of the secondary tables of the help view. If records of these secondary tables cannot be read as a result of this selection condition, the contents of the corresponding fields of the secondary table are displayed with initial value.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:15 PM

  • How to find the search help for the parameters stmt in a report

    hi
    how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statement

    I am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition  "Matchcode Object"
    Parameter: a type i matchcode object 'Search Help Name'
    Search Help name should be in single quotes.
    Regards,
    Anubhav.
    P.S: Award Points if useful.

  • Want to create F1 Help for radio button in my report

    Hi All,
          I want to create F1 Help for radio button in my report program. Which function module should i call in <b>at selection screen on help-request</b>
          Also do I need to define the texts somewhere or I can pass it directly to the function module.

    Try DYN_FIELD_F1_HELP,
    ~Suresh
    that is only for Dic fields..
    Pl take alook at this<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a243d9b511d1950e0000e8353423/frameset.htm">SAP Help</a>
    ~Suresh
    Message was edited by: Suresh Datti

  • Providing F4 help for a feld in alv report

    Hi,
      I created ALV report.......In tthat report I want to allow the user to edit the field by
    providing F4 help for that field............
    Is there any ways two provide that............will be appreciated.
    Regards,
    Naveen M.

    pass the field name and db table name in the ref_fieldname and ref_tabname in fieldcatalog
    check this, this will clarify your doubt.
    type-POOLs : slis.
    data : BEGIN OF gt_vb OCCURS 0,
             auart type auart,
           END OF gt_vb.
    DATA : gt_vbak type STANDARD TABLE OF vbak,
           gt_fcat TYPE slis_t_fieldcat_alv,
           gs_fcat TYPE slis_fieldcat_alv.
    SELECT auart from vbak into TABLE gt_vb UP TO 50 ROWS."gt_vbak UP TO 50 ROWS.
    gs_fcat-col_pos = 1.
    gs_fcat-fieldname = 'AUART'.
    gs_fcat-ref_fieldname = 'AUART'.
    gs_fcat-ref_tabname = 'VBAK'.
    APPEND gs_fcat to gt_fcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       IT_FIELDCAT                       = gt_fcat
      TABLES
        t_outtab                          = gt_vb
    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.
    Edited by: soumya prakash mishra on Aug 17, 2009 10:54 AM

  • Help needed to "map" HRMS fields for reporting

    Hi all,
    I have been asked to map for reporting purposes all the fields in the HRMS person and assignment forms, plus vacany requisition and absence.
    For example, on the people form in HRMS the "last Name" field would translate into sql as "per_people_F.last_name".
    I have found all the person/assignment/absence and vacancy fields but cannot find any of the following:
    Bank account/ pay method information.
    Salary previous/ salary proposal form information
    Anything from the element entries screen or the tax information fields.
    Anyone have any ideas which tables would hold this information for querying using developer or toad??

    Hi Michel, Vijaya, Praksh
    Thanks for all the replies. I will be a bit more detailed in my Query and Vijaya if u cud explain me the same way then it wud be helpful...
    Idoc Structure:
    GLMAST01
    IDOC
      BEGIN
    --EDI_DC40
         SEGEMENT
        TABNAM
    --E1SKA1M
         SEGMENT
        MSGFN
        KTOPl
        SAKNR
      --E1SKATM
         SEGMENT
         MSGFN
      --E1SKB1M
         SEGMENT
         MSGFN
    The Message type is
    FCC_MSGTYPE
    -MOVEMENT
      -Row
        MANDT
        KTOPL
        SAKNR
    I am not sure whether to Map the MOVEMENT part. Tell me what I should do. The requirement is to populate the R/3 with the MANDT, KTOPL, SAKNR etc which all occur in the E1SKA1M segemnt and the nothing to the subsegments under it.
    Please tell me how to do that.
    Thanking all in anticipation.
    Best Regards
    Chakra and Somnath

  • Help for asset aqusition report

    hi,
    here i am sending my code for asset aqusition report but not getting right output ie i am not able to get all the line items for particular asset no.
    bcoz an asset has different line items with different doc no.
    REPORT  XXXXXX                            .
    TABLES : sflight.
    TYPE-POOLS: slis.
    DATA : w_repid LIKE sy-repid.
    w_repid = sy-repid.
    DATA : BEGIN OF it_sflight OCCURS 0,
           checkbox(1),
           carrid LIKE sflight-carrid,
           END OF it_sflight.
    *layout
    DATA: wa_layout           TYPE slis_layout_alv.
    *field catalog
    DATA: it_fieldcatalog TYPE slis_t_fieldcat_alv,
          wa_fieldcatalog TYPE slis_fieldcat_alv.
    START-OF-SELECTION.
      SELECT carrid FROM sflight INTO CORRESPONDING FIELDS OF TABLE
    it_sflight.
    END-OF-SELECTION.
      CLEAR it_fieldcatalog.
      REFRESH it_fieldcatalog.
      wa_fieldcatalog-fieldname = 'CHECKBOX'.
      wa_fieldcatalog-outputlen = '3'.
      wa_fieldcatalog-col_pos = '1'.
      wa_fieldcatalog-seltext_m   = 'Chk'.
      wa_fieldcatalog-checkbox = 'X'.
      wa_fieldcatalog-edit = 'X'.
      APPEND  wa_fieldcatalog TO it_fieldcatalog.
      CLEAR  wa_fieldcatalog.
      wa_fieldcatalog-fieldname = 'CARRID'.
      wa_fieldcatalog-outputlen = '10'.
      wa_fieldcatalog-col_pos = '2'.
      wa_fieldcatalog-seltext_m   = 'Carrid'.
      APPEND  wa_fieldcatalog TO it_fieldcatalog.
      CLEAR  wa_fieldcatalog.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = w_repid
          is_layout               = wa_layout
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat           = it_fieldcatalog
        TABLES
          t_outtab                = it_sflight
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
    *&      Form  USER_COMMAND
    FORM user_command USING p_ucomm TYPE sy-ucomm
                          p_selfld TYPE slis_selfield.
      CASE p_ucomm.
        WHEN '&DATA_SAVE'.
          DATA ref1 TYPE REF TO cl_gui_alv_grid.
          CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
            IMPORTING
              e_grid = ref1.
          CALL METHOD ref1->check_changed_data.
          LOOP AT it_sflight WHERE checkbox = 'X'.
            DELETE it_sflight INDEX sy-tabix.
          ENDLOOP.
          p_selfld-refresh = 'X'.
      ENDCASE.
    ENDFORM.                    "user_command
    Check the following code...
    DATA: BEGIN OF itab OCCURS 0,
    check,
    value(20),
    END OF itab.
    SET PF-STATUS 'TEST1'.
    itab-value = 'ETSAT'.
    APPEND itab.
    itab-value = 'ETSATADSF'.
    APPEND itab.
    itab-value = 'ETSAT'.
    APPEND itab.
    LOOP AT itab.
    WRITE: / itab-check AS CHECKBOX,
    itab-value.
    ENDLOOP.
    AT USER-COMMAND.
    DATA: wa LIKE itab.
    DATA: itab_download LIKE itab OCCURS 0 WITH HEADER LINE.
    IF sy-ucomm = 'DOWNLOAD'.
    DESCRIBE TABLE itab.
    DO sy-tfill TIMES.
    READ LINE sy-index FIELD VALUE itab-check.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CHECK itab-check = 'X'.
    itab_download-value = itab-value.
    APPEND itab_download.
    ENDDO.
    DOWNLOAD
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    filename = 'C:\TEST.XLS '
    TABLES
    data_tab = itab_download.
    ENDIF.
    Thanks
    Shobi

    Hi,
      One the guy has same report as problem,  ok, my friend Eswar as given the code for that, i will send you that, hope it is helpful
    <b>Please check with this code now:
    TYPE-POOLS : SLIS.
    TABLES : ANLA,                     "ASSET MASTER RECORD-SEGMENT
            ANLZ.                     "time dependent asset allocations
    DATA : BEGIN OF T_ANLA OCCURS 0,
          BUKRS LIKE ANLA-BUKRS,
          ANLN1 LIKE ANLA-ANLN1,
          ANLN2 LIKE ANLA-ANLN2,
          AKTIV LIKE ANLA-AKTIV,
          TXT50 LIKE ANLA-TXT50,
          ZUGDT LIKE ANLA-ZUGDT,
          MENGE LIKE ANLA-MENGE,
          MEINS LIKE ANLA-MEINS,
          END OF T_ANLA.
    DATA : BEGIN OF T_ANLZ OCCURS 0,
          BUKRS LIKE ANLZ-BUKRS,
          ANLN1 LIKE ANLZ-ANLN1,
          ANLN2 LIKE ANLZ-ANLN2,
          GSBER LIKE ANLZ-GSBER,
          KOSTL LIKE ANLZ-KOSTL,
          STORT LIKE ANLZ-STORT,
          RAUMN LIKE ANLZ-RAUMN,
          KFZKZ LIKE ANLZ-KFZKZ,
          END OF T_ANLZ.
    DATA : BEGIN OF T_ANEK OCCURS 0,
          BUKRS LIKE ANEK-BUKRS,
          ANLN1 LIKE ANEK-ANLN1,
          ANLN2 LIKE ANEK-ANLN2,
          BELNR LIKE ANEK-BELNR,
          BUDAT LIKE ANEK-BUDAT,
          XBLNR LIKE ANEK-XBLNR,
          SGTXT LIKE ANEK-SGTXT,
          END OF T_ANEK.
    DATA : BEGIN OF T_ANLC OCCURS 0,
          BUKRS LIKE ANLC-BUKRS,
          ANLN1 LIKE ANLC-ANLN1,
          ANLN2 LIKE ANLC-ANLN2,
          KANSW LIKE ANLC-KANSW,
          KNAFA LIKE ANLC-KNAFA,
          AAFAP LIKE ANLC-AAFAP,
          AFABE LIKE ANLC-AFABE,
          GJAHR LIKE ANLC-GJAHR,
          END OF T_ANLC.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
           ANLN1 LIKE ANLA-ANLN1,
           ANLN2 LIKE ANLA-ANLN2,
           AKTIV LIKE ANLA-AKTIV,
           TXT50 LIKE ANLA-TXT50,
           ZUGDT LIKE ANLA-ZUGDT,
           MENGE LIKE ANLA-MENGE,
           MEINS LIKE ANLA-MEINS,
           GSBER LIKE ANLZ-GSBER,
           KOSTL LIKE ANLZ-KOSTL,
           STORT LIKE ANLZ-STORT,
           RAUMN LIKE ANLZ-RAUMN,
           KFZKZ LIKE ANLZ-KFZKZ,
           BELNR LIKE ANEK-BELNR,
           BUDAT LIKE ANEK-BUDAT,
           XBLNR LIKE ANEK-XBLNR,
           SGTXT LIKE ANEK-SGTXT,
           KANSW LIKE ANLC-KANSW,
           KNAFA LIKE ANLC-KNAFA,
           AAFAP LIKE ANLC-AAFAP,
           GJAHR LIKE ANEK-GJAHR,
           END OF IT_FINAL.
    DATA : LINE_COLOR(4) TYPE C.
    DATA : FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR ANLA-BUKRS DEFAULT 'ML',
                    S_ANLN1 FOR ANLA-ANLN1,
                    S_ANLN2 FOR ANLA-ANLN2.
                    s_gjahr FOR anlc-gjahr.
    SELECTION-SCREEN : END OF BLOCK B_FA.
    *SELECT-OPTIONS : s_belnr FOR anek-belnr.
    SELECT BUKRS ANLN1 ANLN2 AKTIV TXT50 ZUGDT MENGE MEINS
          FROM ANLA
          INTO CORRESPONDING FIELDS OF TABLE T_ANLA
          WHERE ANLN1 IN S_ANLN1
          AND   ANLN2 IN S_ANLN2
          AND   BUKRS IN S_BUKRS.
    CHECK: NOT T_ANLA[] IS INITIAL.
    SELECT BUKRS ANLN1 ANLN2 GSBER KOSTL STORT RAUMN KFZKZ
          FROM ANLZ
          INTO CORRESPONDING FIELDS OF TABLE T_ANLZ
          FOR ALL ENTRIES IN T_ANLA
          WHERE ANLN1 = T_ANLA-ANLN1
          AND   ANLN2 = T_ANLA-ANLN2
          AND   BUKRS = T_ANLA-BUKRS.
    *IF sy-subrc EQ 0.
    SELECT BUKRS ANLN1 ANLN2 BELNR BUDAT XBLNR SGTXT GJAHR
          FROM ANEK
          INTO CORRESPONDING FIELDS OF TABLE T_ANEK
          FOR ALL ENTRIES IN T_ANLA
          WHERE ANLN1 = T_ANLA-ANLN1
          AND   ANLN2 = T_ANLA-ANLN2
          AND   BUKRS = T_ANLA-BUKRS.
          AND   gjahr = t_anek-gjahr.
    *ENDIF.
    SELECT BUKRS ANLN1 ANLN2 KANSW KNAFA AAFAP AFABE GJAHR
          FROM ANLC
          INTO CORRESPONDING FIELDS OF TABLE T_ANLC
          FOR ALL ENTRIES IN T_ANLA
          WHERE ANLN1 = T_ANLA-ANLN1
          AND   ANLN2 = T_ANLA-ANLN2
          AND   BUKRS = T_ANLA-BUKRS
          AND   GJAHR = T_ANLC-GJAHR.
          AND   afabe = '01'.
    LOOP AT T_ANLA.
      MOVE : T_ANLA-ANLN1 TO IT_FINAL-ANLN1,
             T_ANLA-ANLN2 TO IT_FINAL-ANLN2,
             T_ANLA-AKTIV TO IT_FINAL-AKTIV,
             T_ANLA-TXT50 TO IT_FINAL-TXT50,
             T_ANLA-ZUGDT TO IT_FINAL-ZUGDT,
             T_ANLA-MENGE TO IT_FINAL-MENGE,
             T_ANLA-MEINS TO IT_FINAL-MEINS.
      READ TABLE T_ANLZ WITH KEY BUKRS = T_ANLA-BUKRS
                                ANLN1 = T_ANLA-ANLN1
                                ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLZ-GSBER TO IT_FINAL-GSBER,
               T_ANLZ-KOSTL TO IT_FINAL-KOSTL,
               T_ANLZ-STORT TO IT_FINAL-STORT,
               T_ANLZ-RAUMN TO IT_FINAL-RAUMN,
               T_ANLZ-KFZKZ TO IT_FINAL-KFZKZ.
      ENDIF.
      READ TABLE T_ANLC WITH KEY BUKRS = T_ANLA-BUKRS
                                ANLN1 = T_ANLA-ANLN1
                                ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLC-KANSW TO IT_FINAL-KANSW,
               T_ANLC-KNAFA TO IT_FINAL-KNAFA,
               T_ANLC-AAFAP TO IT_FINAL-AAFAP.
      ENDIF.
    *SORT t_anla.
    *READ TABLE T_ANEK WITH KEY BUKRS = T_ANLA-BUKRS
                             ANLN1 = T_ANLA-ANLN1
                             ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
    *IF SY-SUBRC EQ 0.
    LOOP AT T_ANEK WHERE BUKRS = T_ANLA-BUKRS AND ANLN1 = T_ANLA-ANLN1 AND
    ANLN2 = T_ANLA-ANLN2.
        MOVE : T_ANEK-BELNR TO IT_FINAL-BELNR,
               T_ANEK-BUDAT TO IT_FINAL-BUDAT,
               T_ANEK-XBLNR TO IT_FINAL-XBLNR,
               T_ANEK-SGTXT TO IT_FINAL-SGTXT.
    *ENDIF.
        APPEND IT_FINAL.
      ENDLOOP.
    ENDLOOP.
    *ENDIF.
    PERFORM BUILD_FIELDCATALOG.
    PERFORM DISPLAY_ALV_REPORT.
    PERFORM BUILD_LAYOUT.
          FORM BUILD_FIELDCATALOG                                       *
    FORM BUILD_FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN1'.
      FIELDCATALOG-SELTEXT_M = 'ASSET MAIN NO'.
      FIELDCATALOG-COL_POS   = 0.
      FIELDCATALOG-OUTPUTLEN = 14.
      FIELDCATALOG-EMPHASIZE = 'X'.
      FIELDCATALOG-KEY       = 'X'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN2'.
      FIELDCATALOG-SELTEXT_M = 'SUB NO'.
      FIELDCATALOG-COL_POS   = 1.
      FIELDCATALOG-OUTPUTLEN = 7.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AKTIV'.
      FIELDCATALOG-SELTEXT_M = 'CAP.DATE'.
      FIELDCATALOG-COL_POS   = 2.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'TXT50'.
      FIELDCATALOG-SELTEXT_M = 'NAME'.
      FIELDCATALOG-COL_POS   = 3.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ZUGDT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 4.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MENGE'.
      FIELDCATALOG-SELTEXT_M = 'QTY'.
      FIELDCATALOG-COL_POS   = 5.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MEINS'.
      FIELDCATALOG-SELTEXT_M = 'UNITS'.
      FIELDCATALOG-COL_POS   = 6.
      FIELDCATALOG-OUTPUTLEN = 3.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'GSBER'.
      FIELDCATALOG-SELTEXT_M = 'BA'.
      FIELDCATALOG-COL_POS   = 7.
      FIELDCATALOG-OUTPUTLEN = 4.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KOSTL'.
      FIELDCATALOG-SELTEXT_M = 'COST CENTER'.
      FIELDCATALOG-COL_POS   = 8.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'STORT'.
      FIELDCATALOG-SELTEXT_M = 'LOCATION'.
      FIELDCATALOG-COL_POS   = 9.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'RAUMN'.
      FIELDCATALOG-SELTEXT_M = 'ROOM'.
      FIELDCATALOG-COL_POS   = 10.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KFZKZ'.
      FIELDCATALOG-SELTEXT_M = 'LICENSE PLATE NO'.
      FIELDCATALOG-COL_POS   = 11.
      FIELDCATALOG-OUTPUTLEN = 20.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BELNR'.
      FIELDCATALOG-SELTEXT_M = 'DOC NO'.
      FIELDCATALOG-COL_POS   = 12.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BUDAT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 13.
      FIELDCATALOG-OUTPUTLEN = 15.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'XBLNR'.
      FIELDCATALOG-SELTEXT_M = 'REF NO'.
      FIELDCATALOG-COL_POS   = 14.
      FIELDCATALOG-OUTPUTLEN = 25.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'SGTXT'.
      FIELDCATALOG-SELTEXT_M = 'TEXT'.
      FIELDCATALOG-COL_POS   = 15.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
    ENDFORM.                    "BUILD_FIELDCATALOG
          FORM BUILD_LAYOUT                                             *
    FORM BUILD_LAYOUT.
      GD_LAYOUT-ZEBRA = 'X'.
      GD_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    ENDFORM.                    "BUILD_LAYOUT
          FORM DISPLAY_ALV_REPORT                                       *
    FORM DISPLAY_ALV_REPORT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            I_INTERFACE_CHECK        = ' '
            I_CALLBACK_PROGRAM       = ' '
            I_CALLBACK_PF_STATUS_SET = ' '
            I_CALLBACK_USER_COMMAND  = ' '
            I_STRUCTURE_NAME         =
             IS_LAYOUT                = GD_LAYOUT
               IT_FIELDCAT              = FIELDCATALOG[]
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
            I_DEFAULT                = 'X'
            I_SAVE                   = ' '
            IS_VARIANT               = ' '
            IT_EVENTS                =
            IT_EVENT_EXIT            =
            IS_PRINT                 =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
           TABLES
                T_OUTTAB                 = IT_FINAL
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    ENDFORM.                    "DISPLAY_ALV_REPORT
    Thanks & Regards
    Eswar. B
    Tel: +65 6544 7449
    mailto: [email protected]
    From: [email protected] [mailto:[email protected]]
    Sent: Tuesday, November 28, 2006 7:36 PM
    To: Boddeti, Eswar Rao
    Subject: Re: need ur help for asset aqusition report
    Hai,
       Sorry sorry this is the right Code.
    Z_FA_ACQ  NO STANDARD PAGE HEADING
                    LINE-SIZE 400
                    LINE-COUNT 65(3).
    TYPE-POOLS : SLIS.
    TABLES : ANLA,                     "ASSET MASTER RECORD-SEGMENT
            ANLZ.                     "time dependent asset allocations
    DATA : BEGIN OF T_ANLA OCCURS 0,
          BUKRS LIKE ANLA-BUKRS,
          ANLN1 LIKE ANLA-ANLN1,
          ANLN2 LIKE ANLA-ANLN2,
          AKTIV LIKE ANLA-AKTIV,
          TXT50 LIKE ANLA-TXT50,
          ZUGDT LIKE ANLA-ZUGDT,
          MENGE LIKE ANLA-MENGE,
          MEINS LIKE ANLA-MEINS,
          END OF T_ANLA.
    DATA : BEGIN OF T_ANLZ OCCURS 0,
          BUKRS LIKE ANLZ-BUKRS,
          ANLN1 LIKE ANLZ-ANLN1,
          ANLN2 LIKE ANLZ-ANLN2,
          GSBER LIKE ANLZ-GSBER,
          KOSTL LIKE ANLZ-KOSTL,
          STORT LIKE ANLZ-STORT,
          RAUMN LIKE ANLZ-RAUMN,
          KFZKZ LIKE ANLZ-KFZKZ,
          END OF T_ANLZ.
    DATA : BEGIN OF T_ANEK OCCURS 0,
          BUKRS LIKE ANEK-BUKRS,
          ANLN1 LIKE ANEK-ANLN1,
          ANLN2 LIKE ANEK-ANLN2,
          BELNR LIKE ANEK-BELNR,
          BUDAT LIKE ANEK-BUDAT,
          XBLNR LIKE ANEK-XBLNR,
          SGTXT LIKE ANEK-SGTXT,
          END OF T_ANEK.
    DATA : BEGIN OF T_ANLC OCCURS 0,
          BUKRS LIKE ANLC-BUKRS,
          ANLN1 LIKE ANLC-ANLN1,
          ANLN2 LIKE ANLC-ANLN2,
          KANSW LIKE ANLC-KANSW,
          KNAFA LIKE ANLC-KNAFA,
          AAFAP LIKE ANLC-AAFAP,
          AFABE LIKE ANLC-AFABE,
          GJAHR LIKE ANLC-GJAHR,
          END OF T_ANLC.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
           ANLN1 LIKE ANLA-ANLN1,
           ANLN2 LIKE ANLA-ANLN2,
           AKTIV LIKE ANLA-AKTIV,
           TXT50 LIKE ANLA-TXT50,
           ZUGDT LIKE ANLA-ZUGDT,
           MENGE LIKE ANLA-MENGE,
           MEINS LIKE ANLA-MEINS,
           GSBER LIKE ANLZ-GSBER,
           KOSTL LIKE ANLZ-KOSTL,
           STORT LIKE ANLZ-STORT,
           RAUMN LIKE ANLZ-RAUMN,
           KFZKZ LIKE ANLZ-KFZKZ,
           BELNR LIKE ANEK-BELNR,
           BUDAT LIKE ANEK-BUDAT,
           XBLNR LIKE ANEK-XBLNR,
           SGTXT LIKE ANEK-SGTXT,
           KANSW LIKE ANLC-KANSW,
           KNAFA LIKE ANLC-KNAFA,
           AAFAP LIKE ANLC-AAFAP,
           GJAHR LIKE ANEK-GJAHR,
           END OF IT_FINAL.
    DATA : LINE_COLOR(4) TYPE C.
    DATA : FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR ANLA-BUKRS DEFAULT 'ML',
                    S_ANLN1 FOR ANLA-ANLN1,
                    S_ANLN2 FOR ANLA-ANLN2.
                    s_gjahr FOR anlc-gjahr.
    SELECTION-SCREEN : END OF BLOCK B_FA.
    *SELECT-OPTIONS : s_belnr FOR anek-belnr.
    SELECT BUKRS ANLN1 ANLN2 AKTIV TXT50 ZUGDT MENGE MEINS
          FROM ANLA
          INTO CORRESPONDING FIELDS OF TABLE T_ANLA
          WHERE ANLN1 IN S_ANLN1
          AND   ANLN2 IN S_ANLN2
          AND   BUKRS IN S_BUKRS.
    SELECT BUKRS ANLN1 ANLN2 GSBER KOSTL STORT RAUMN KFZKZ
          FROM ANLZ
          INTO CORRESPONDING FIELDS OF TABLE T_ANLZ
          FOR ALL ENTRIES IN T_ANLA
          WHERE ANLN1 = T_ANLA-ANLN1
          AND   ANLN2 = T_ANLA-ANLN2
          AND   BUKRS = T_ANLA-BUKRS.
    *IF sy-subrc EQ 0.
    SELECT BUKRS ANLN1 ANLN2 BELNR BUDAT XBLNR SGTXT GJAHR
          FROM ANEK
          INTO CORRESPONDING FIELDS OF TABLE T_ANEK
          FOR ALL ENTRIES IN T_ANLA
          WHERE ANLN1 = T_ANLA-ANLN1
          AND   ANLN2 = T_ANLA-ANLN2
          AND   BUKRS = T_ANLA-BUKRS.
          AND   gjahr = t_anek-gjahr.
    *ENDIF.
    SELECT BUKRS ANLN1 ANLN2 KANSW KNAFA AAFAP AFABE GJAHR
          FROM ANLC
          INTO CORRESPONDING FIELDS OF TABLE T_ANLC
          FOR ALL ENTRIES IN T_ANLA
          WHERE ANLN1 = T_ANLA-ANLN1
          AND   ANLN2 = T_ANLA-ANLN2
          AND   BUKRS = T_ANLA-BUKRS
          AND   GJAHR = T_ANLC-GJAHR.
          AND   afabe = '01'.
    LOOP AT T_ANLA.
    MOVE : T_ANLA-ANLN1 TO IT_FINAL-ANLN1,
            T_ANLA-ANLN2 TO IT_FINAL-ANLN2,
            T_ANLA-AKTIV TO IT_FINAL-AKTIV,
            T_ANLA-TXT50 TO IT_FINAL-TXT50,
            T_ANLA-ZUGDT TO IT_FINAL-ZUGDT,
            T_ANLA-MENGE TO IT_FINAL-MENGE,
            T_ANLA-MEINS TO IT_FINAL-MEINS.
    READ TABLE T_ANLZ WITH KEY BUKRS = T_ANLA-BUKRS
                              ANLN1 = T_ANLA-ANLN1
                              ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    MOVE : T_ANLZ-GSBER TO IT_FINAL-GSBER,
           T_ANLZ-KOSTL TO IT_FINAL-KOSTL,
           T_ANLZ-STORT TO IT_FINAL-STORT,
           T_ANLZ-RAUMN TO IT_FINAL-RAUMN,
           T_ANLZ-KFZKZ TO IT_FINAL-KFZKZ.
    ENDIF.
    READ TABLE T_ANLC WITH KEY BUKRS = T_ANLA-BUKRS
                              ANLN1 = T_ANLA-ANLN1
                              ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    MOVE : T_ANLC-KANSW TO IT_FINAL-KANSW,
           T_ANLC-KNAFA TO IT_FINAL-KNAFA,
           T_ANLC-AAFAP TO IT_FINAL-AAFAP.
    ENDIF.
    *SORT t_anla.
    READ TABLE T_ANEK WITH KEY BUKRS = T_ANLA-BUKRS
                              ANLN1 = T_ANLA-ANLN1
                              ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    MOVE : T_ANEK-BELNR TO IT_FINAL-BELNR,
           T_ANEK-BUDAT TO IT_FINAL-BUDAT,
           T_ANEK-XBLNR TO IT_FINAL-XBLNR,
           T_ANEK-SGTXT TO IT_FINAL-SGTXT.
    ENDIF.
    APPEND IT_FINAL.
    *ENDLOOP.
    ENDLOOP.
    *ENDIF.
    PERFORM BUILD_FIELDCATALOG.
    PERFORM DISPLAY_ALV_REPORT.
    PERFORM BUILD_LAYOUT.
          FORM BUILD_FIELDCATALOG                                       *
    FORM BUILD_FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'ANLN1'.
    FIELDCATALOG-SELTEXT_M = 'ASSET MAIN NO'.
    FIELDCATALOG-COL_POS   = 0.
    FIELDCATALOG-OUTPUTLEN = 14.
    FIELDCATALOG-EMPHASIZE = 'X'.
    FIELDCATALOG-KEY       = 'X'.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'ANLN2'.
    FIELDCATALOG-SELTEXT_M = 'SUB NO'.
    FIELDCATALOG-COL_POS   = 1.
    FIELDCATALOG-OUTPUTLEN = 7.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'AKTIV'.
    FIELDCATALOG-SELTEXT_M = 'CAP.DATE'.
    FIELDCATALOG-COL_POS   = 2.
    FIELDCATALOG-OUTPUTLEN = 10.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'TXT50'.
    FIELDCATALOG-SELTEXT_M = 'NAME'.
    FIELDCATALOG-COL_POS   = 3.
    FIELDCATALOG-OUTPUTLEN = 50.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'ZUGDT'.
    FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
    FIELDCATALOG-COL_POS   = 4.
    FIELDCATALOG-OUTPUTLEN = 10.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'MENGE'.
    FIELDCATALOG-SELTEXT_M = 'QTY'.
    FIELDCATALOG-COL_POS   = 5.
    FIELDCATALOG-OUTPUTLEN = 13.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'MEINS'.
    FIELDCATALOG-SELTEXT_M = 'UNITS'.
    FIELDCATALOG-COL_POS   = 6.
    FIELDCATALOG-OUTPUTLEN = 3.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'GSBER'.
    FIELDCATALOG-SELTEXT_M = 'BA'.
    FIELDCATALOG-COL_POS   = 7.
    FIELDCATALOG-OUTPUTLEN = 4.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'KOSTL'.
    FIELDCATALOG-SELTEXT_M = 'COST CENTER'.
    FIELDCATALOG-COL_POS   = 8.
    FIELDCATALOG-OUTPUTLEN = 13.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'STORT'.
    FIELDCATALOG-SELTEXT_M = 'LOCATION'.
    FIELDCATALOG-COL_POS   = 9.
    FIELDCATALOG-OUTPUTLEN = 10.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'RAUMN'.
    FIELDCATALOG-SELTEXT_M = 'ROOM'.
    FIELDCATALOG-COL_POS   = 10.
    FIELDCATALOG-OUTPUTLEN = 10.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'KFZKZ'.
    FIELDCATALOG-SELTEXT_M = 'LICENSE PLATE NO'.
    FIELDCATALOG-COL_POS   = 11.
    FIELDCATALOG-OUTPUTLEN = 20.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
    FIELDCATALOG-FIELDNAME = 'BELNR'.
    FIELDCATALOG-SELTEXT_M = 'DOC NO'.
    FIELDCATALOG-COL_POS   = 12.
    FIELDCATALOG-OUTPUTLEN = 13.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BUDAT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 13.
      FIELDCATALOG-OUTPUTLEN = 15.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'XBLNR'.
      FIELDCATALOG-SELTEXT_M = 'REF NO'.
      FIELDCATALOG-COL_POS   = 14.
      FIELDCATALOG-OUTPUTLEN = 25.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'SGTXT'.
      FIELDCATALOG-SELTEXT_M = 'TEXT'.
      FIELDCATALOG-COL_POS   = 15.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
    ENDFORM.
          FORM BUILD_LAYOUT                                             *
    FORM BUILD_LAYOUT.
    GD_LAYOUT-ZEBRA = 'X'.
    GD_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    ENDFORM.
          FORM DISPLAY_ALV_REPORT                                       *
    FORM DISPLAY_ALV_REPORT.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
            I_INTERFACE_CHECK        = ' '
            I_CALLBACK_PROGRAM       = ' '
            I_CALLBACK_PF_STATUS_SET = ' '
            I_CALLBACK_USER_COMMAND  = ' '
            I_STRUCTURE_NAME         =
            IS_LAYOUT                = GD_LAYOUT
              IT_FIELDCAT              = FIELDCATALOG[]
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
            I_DEFAULT                = 'X'
            I_SAVE                   = ' '
            IS_VARIANT               = ' '
            IT_EVENTS                =
            IT_EVENT_EXIT            =
            IS_PRINT                 =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
          TABLES
               T_OUTTAB                 = IT_FINAL
          EXCEPTIONS
               PROGRAM_ERROR            = 1
               OTHERS                   = 2.
    ENDFORM.
    Thanks
    manju

Maybe you are looking for

  • Steve Jobs, Please allow us MORE than 24 hours to watch!

    Steve, please allow us to watch rented moves for MORE than 24 hours! Most video rentals are good for at least 2 day, if not 3, to return rented movies.

  • Data inconsistency

    hi to all what is the meaning of data inconsistency? plz explain this one thanks@regards ravi

  • Is it possible to use an OCI connection JDBC?

    If a Java application relies on a native C library to access an Oracle database, and the native library uses the OCI, is it possible for the Java code to share an established connection

  • How to print the ActiveX DSO Control

    I Captured  the Digital storage Oscilloscope(DSO)  image in labview using ActiveX Container.But I could not able to print the image in the control.I am getting a gray window only.I tried with Graphics Format vi's Report generation tool kit and VI Pro

  • Restart run of FPCC0002

    Hi., Please let me know the process of restart run of FPCC0002. We have  executed the the FPCC0002 in 100 parallel jobs, out of whcih 10-20 jobs got cancelled. Can any one please let me know the  process of re run of the entire job again. Thanks in a