Moderate layout in classical report.

Hello,
I have a classical report.
The coloums in this report i want to change in rows and the rows in this report i want to change in coloumns.
Means i want to moderate vertical part in horizontal and vice-versa.
if you have any suggestion regarding this plz help me.
It very urgent.
Thanks & Regards,
Ajay.

Hi Shanthi
It can be done but will take more time.
For example.
just check this.
data: tcode(10) type c.
START-OF-SELECTION.
FORMAT COLOR COL_HEADING.
ULINE.
WRITE:/ '***********************The following are the transaction'.
WRITE:'codes in BPS ************************'.
FORMAT COLOR COL_HEADING OFF.
ULINE.
SKIP .
FORMAT COLOR COL_HEADING.
ULINE.
WRITE:/ 'Please select the report/program by double clicking on the'.
WRITE:'line'.
ULINE.
FORMAT COLOR COL_HEADING OFF.
SKIP.
FORMAT COLOR COL_POSITIVE.
ULINE.
tcode = 'ZCUS1'.
WRITE:/ '1.Version Utility program - ZCUS1 .', 75 tcode.
HIDE tcode.
ULINE.

Similar Messages

  • LAYOUT option in classical report

    HI all,
    Is it possible to provide SORT options, LAYOUT options (CHANGE layout, SAVE layout) in classical report as similar to those options in ALV? If so, how to display those icons at the top of the report as similar to ALV?
    Regards,
    Shanthi

    Hi Shanthi
    It can be done but will take more time.
    For example.
    just check this.
    data: tcode(10) type c.
    START-OF-SELECTION.
    FORMAT COLOR COL_HEADING.
    ULINE.
    WRITE:/ '***********************The following are the transaction'.
    WRITE:'codes in BPS ************************'.
    FORMAT COLOR COL_HEADING OFF.
    ULINE.
    SKIP .
    FORMAT COLOR COL_HEADING.
    ULINE.
    WRITE:/ 'Please select the report/program by double clicking on the'.
    WRITE:'line'.
    ULINE.
    FORMAT COLOR COL_HEADING OFF.
    SKIP.
    FORMAT COLOR COL_POSITIVE.
    ULINE.
    tcode = 'ZCUS1'.
    WRITE:/ '1.Version Utility program - ZCUS1 .', 75 tcode.
    HIDE tcode.
    ULINE.

  • To Freeze a field in Classical Report layout

    Is there a way by which i can Freeze a field on the output list of a classical report layout, so that when i scroll towards right that field would not be moved.

    hi
    good
    go through the  following links
    http://www.r3.duke.edu/stepbystep/AdvReporting/AdvReporting.pdf
    this will give you the brief idea about the freezing of the columns.
    thanks
    mrutyun

  • Classical Report on clicking button on ALV Report

    I have a requirement where I have to display a classical report based on the user-click on a "custom button" on my ALV. I am unable to display the classical report. Please help with code example..

    Hi,
    See the example.Change the code according to your requirement.
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      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'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           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.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    Pls. reward if useful...

  • Classic Report with a two-line row, the second one as a drop down?

    Hi,
    Using APEX 4.0 is it possible to make a classic report layout that has row items sorted in 2 rows? The first row for each SQL record set row looks like the classic report 'normal' row, while the second one contains just one single column value. This second row is supposed to be hidden and should be displayable by clicking a small '+' sign at the beginning of the row.
    I remember having seen this done, but I simply seem not to be able to formulate my query correctly to let Google display me the expected result. Although I am not sure if was APEX+jQuery or ExtJs. I hope though it is not ExtJS, since I do not plan to use that one.
    Thank you in advance.
    Tamas

    Is this for Verizon landline internet? If so, you should ask your question in the Verizon Residential forums. http://forums.verizon.com

  • How to print watermark in classical reports?

    How to display the watermark in classical reports?

    hi
    go to se78 graphics -> enter
    BMAP(BITMAP IMAGES)
    Name MYBMP
    select radio button
    color ->import
    filename: c:\pictures\123.bmp.
    name : mybmp
    description : BMP ->continur ->save.(activate it)
    now go to se71->choose the prog -> layout ->right click ->create graphics.
    utilities -> printing test -> output device -> LP01.
    Hope this helps
    if it helped, you can acknowledge the same by rewarding
    regards
    dinesh

  • How to convert Classical Report into PDF format..........

    Hi Experts,
    I have written a classical report with write statements and when i am downloading in excel the format is mismatching and now i want to convert into PDF format.
    How to convert into PDF format from Classical report ?
    Yusuf

    Hi yusuf,
    please find the below report,,
    please make two include programs before executing it,
    there codes are pasted below,
    INCLUDE zimpr_data_declaration.
    INCLUDE zimpr_performs_wrap.
    REPORT  zimpr_word_wrap NO STANDARD PAGE HEADING LINE-SIZE 115..
                INCLUDE for DATA DECLARATION                               *
    INCLUDE zimpr_data_declaration.
                INCLUDE for all performs.                                  *
    INCLUDE zimpr_performs_wrap.
    TOP-OF-PAGE--
    TOP-OF-PAGE.
      PERFORM f_top_page.                     "TOP OF THE REPORT PAGE,I.E. HEADER.
    START-OF-SELECTION.
      SET PF-STATUS 'SEL_SCREEN'.             "PF-STATUS OF THE SELECTION SCREEN.
      PERFORM f_data_retrieval.               "PERFORM FOR ALL SELECT STATEMENTS.
      PERFORM f_report_display.               "REPORT DISPLAY,WRITE STATEMENTS.
    --Define the actions to be performed for pf-status-----
    AT USER-COMMAND.
      wf_ok_code = sy-ucomm.
      wf_save_ok = wf_ok_code.
      CLEAR wf_ok_code.
      CASE wf_save_ok.
        WHEN 'PDF'.          "WHEN PDF ICON IS CLICKED,REPORT WILL CONVERT INTO PDF.
          loc_repid  = sy-repid.   "PROGRAM NAME
    --THIS FM SETS  THE PARAMETERS FOR LAYOUT OF PDF OUTPUT--
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              layout                 = loc_paart             "LANDSCAPE LAYOUT
              line_size              = loc_linsz                  "CHARACTER WIDTH OF REPORT
              no_dialog              = 'X'
              user                   = sy-uname              "USERNAME
            IMPORTING
              out_parameters         = loc_print_parms        "OUTPUT PARAMETERS WILL BE COLLECTED HERE.
              valid                  = loc_valid
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
    --FOR GENERATING THE SPOOL NUMBER--
          NEW-PAGE PRINT ON NO DIALOG PARAMETERS loc_print_parms.                        " This allocates the spool no
          "to the screen without the dialog screen.
          PERFORM f_top_page.
          PERFORM f_report_display.
          NEW-PAGE PRINT OFF.                                                      "This marks the end of the screen for which the spool no was generated.
          wf_id = sy-spono.                                                      " This assign the spool no of the screen to the variable.
    --PERFORM FOR GETTING THE PDF OUTPUT--
          PERFORM f_pdf_display.
    --PERFORM FOR DOWLOADING FILE TO A LOCAL DISK--
          PERFORM f_download_local.
        WHEN 'BACK'.
          LEAVE PROGRAM.
      ENDCASE.
    include data declaration----
    *&  Include           ZIMPR_DATA_DECLARATION
    TYPE-POOLS : shlp.
    DATA : wf_ordert TYPE aufk-auart.                      "ORDER TYPE
    DATA : wf_order TYPE aufk-aufnr.                       "ORDER NUMBER
    DATA : wf_bdate TYPE afko-gstrp.                       "BASIC START DATE
    DATA : wf_status(4) TYPE c ."rihea-i_astatin.                 "STATUS
    DATA : wf_objnr TYPE jest-objnr VALUE 'OR%'.           "Object number
    DATA : wf_aufnr TYPE aufk-aufnr.
    DATA : wf_name TYPE thead-tdname.                      "NAME TO PASS IN FM READ_TEXT
    DATA : wf_date1(12) TYPE c.                            "DATE
    DATA : wf_i1(3) TYPE n,wc_i1(3) TYPE n VALUE '1'.      "COUNTERS FOR REPORT DISPLAY
    DATA : wf_i2(3) TYPE n,wc_i2(3) TYPE n VALUE '1'.
    DATA : wf_kopf TYPE tdid VALUE 'KOPF',wf_aufk TYPE tdobject VALUE 'AUFK'.
    DATA : wf_save_ok TYPE sy-ucomm ,wf_ok_code TYPE sy-ucomm.
    DATA: wf_id TYPE tsp01-rqident ,                         " For storing Spool request number
          wf_bytes TYPE i .                                  " For storing the bytes of data to be converted to PDF.
    DATA : wf_langu(2) TYPE c VALUE 'EN'.
    DATA: wf_pripar TYPE pri_params,                         " Structure for Passing Print Parameters
          wf_rcpar TYPE arc_params.                          " ImageLink structure
    DATA : wf_statu TYPE dfies-fieldname VALUE 'STATUS',
           wf_field TYPE help_info-dynprofld VALUE 'S_STATUS'.
    &--SELECTION SCREEN--
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-000.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS:  s_ordert FOR wf_ordert .                  "ORDER TYPE
    SELECT-OPTIONS:  s_order FOR wf_order OBLIGATORY.          "ORDER NUMBER
    SELECT-OPTIONS:  s_bdate FOR wf_bdate.                      "BASIC START DATE
    SELECT-OPTIONS:  s_status FOR wf_status matchcode object zei_sys .  "SYSTEM STATUS
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN END OF BLOCK b_1.
    *--INTERNAL TABLES--
    TYPES : BEGIN OF ty_aufk,
          aufnr TYPE aufk-aufnr,              "OREDR NUMBER
          auart TYPE aufk-auart,              "ORDER TYPE
          objnr TYPE aufk-objnr,              "OBJECT NUMBER
          ktext type aufk-ktext,              "SHORT TEXT
          gstrp TYPE afko-gstrp,              "BASIC START DATE
          END OF ty_aufk.
    TYPES : BEGIN OF ty_tj02t,
          objnr TYPE aufk-objnr,              "OBJECT NUMBER
          txt04 TYPE tj02t-txt04,             "STATUS
          istat TYPE tj02t-istat,             "Object status
          spras TYPE tj02t-spras,             "LANGUAGE KEY
          END OF ty_tj02t.
    TYPES : BEGIN OF ty_temp,
          objnr TYPE aufk-objnr,
          status(300) TYPE c,
           END OF ty_temp.
    TYPES : BEGIN OF ty_wrap,
           line(54) TYPE c,                     "LONG TEXT
           END OF ty_wrap.
    TYPES : BEGIN OF ty_wrap2,
           line(25) TYPE c,                     "STATUS
           END OF ty_wrap2.
    TYPES : BEGIN OF ty_f4,
            txt04 TYPE tj02t-txt04,
            txt30 TYPE tj02t-txt30,
            END OF ty_f4.
    types :  begin of ty_sta,
            istat type tj02t-istat,
            objnr type jest-objnr,
            end of ty_sta.
    data : int_sta type table of ty_sta with header line.
    DATA : int_f4 TYPE TABLE OF ty_f4 WITH HEADER LINE.
    DATA: int_pdf TYPE TABLE OF tline WITH HEADER LINE.            "TABLE FOR PDF CONVERSION
    DATA: int_wrap TYPE TABLE OF ty_wrap WITH HEADER LINE.         "TABLE FOR LONGTEXT
    DATA: int_wrap2 TYPE TABLE OF ty_wrap2 WITH HEADER LINE.       "TABLE FOR STATUS
    DATA: int_temp TYPE TABLE OF ty_temp WITH HEADER LINE.         "Table for concatenation of system status.
    DATA: int_aufk TYPE TABLE OF ty_aufk WITH HEADER LINE.
    DATA: int_tj02t TYPE TABLE OF ty_tj02t WITH HEADER LINE.
    DATA: int_tline TYPE STANDARD TABLE OF tline WITH HEADER LINE. "TABLE FOR READ_TEXT.
    DATA : int_fld TYPE TABLE OF dfies ,wa_fld LIKE LINE OF int_fld.                     " Field Type for FM for F4 help
    DATA :int_return   TYPE TABLE OF ddshretval WITH HEADER LINE .
    DATA:
      loc_print_parms LIKE pri_params,          "PRINT PARAMETERS
      loc_valid(1)      TYPE c,
      loc_file type SDOK_CHTRD,
      loc_bytecount     TYPE i,                 "NUMBER OF BYTES TRANSFERRED
      loc_length        TYPE i,                 "LINE-LENGTH
      loc_rqident       LIKE tsp01-rqident,     "SPOOL NUMBER
      loc_rq2name(12)   TYPE c.
    DATA: loc_filename LIKE rlgrap-filename.     "FILENAME
    DATA:loc_repid LIKE sy-repid,                    " Report to execute
         loc_linsz LIKE sy-linsz VALUE 115,          " Line size
         loc_paart LIKE sy-paart VALUE 'X_65_132'.   " Paper Format
    Include           ZIMPR_PERFORMS_WRAP----
    *&  Include           ZIMPR_PERFORMS_WRAP
    *&      Form  f_top_page
         top-of the page
    -->  p1        text
    <--  p2        text
    FORM f_top_page .
    *--HEADER--
      FORMAT COLOR 1 .
      WRITE : text-010.
      FORMAT COLOR 1 OFF.
      WRITE : / text-011,sy-datum NO-GAP.
      WRITE : / text-012,sy-uzeit NO-GAP,90 text-013,101 sy-uname.
      ULINE .
      FORMAT COLOR 1 INTENSIFIED OFF .
      WRITE : 1 sy-vline,                "HEADINGS
      2 text-014 NO-GAP,
      7 sy-vline,
      8 text-015 NO-GAP,
      20 sy-vline,
      21 text-016 NO-GAP,
      76 sy-vline,
      77 text-017 NO-GAP,
      88 sy-vline,
       89 text-018  NO-GAP,
      115 sy-vline.
      WRITE : /1 sy-vline,
        2 text-019 NO-GAP,7 sy-vline,
        20 sy-vline,76 sy-vline,77 text-020 NO-GAP,88 sy-vline,115 sy-vline.
      ULINE.
      FORMAT COLOR 1 OFF.
    ENDFORM.                    " f_top_page
    *&      Form  f_data_retrieval
         select statements
    -->  p1        text
    <--  p2        text
    FORM f_data_retrieval .
    SELECTING ORDER TYPE,ORDER NO.,OBJECT NO. AND BASIC START DATE
      SELECT  p~aufnr
               p~auart
               p~objnr
               p~ktext
               r~gstrp
               FROM  ( aufk AS p INNER JOIN afko AS r ON raufnr = paufnr )
               INTO TABLE int_aufk
               WHERE p~aufnr IN s_order AND
                     p~auart IN s_ordert AND
                     r~gstrp IN  s_bdate AND
                     p~objnr LIKE wf_objnr.
      IF sy-subrc <> 0.
        MESSAGE s101(zipm).                "no values found for selection criteria.
        STOP.
      ENDIF.
      SORT int_aufk BY aufnr.
      DELETE ADJACENT DUPLICATES FROM int_aufk.
      SELECT q~istat
           p~objnr
           FROM ( jest AS p INNER JOIN tj02t AS q ON pstat = qistat )
           INTO TABLE int_sta
           FOR ALL ENTRIES IN int_aufk
           WHERE p~objnr = int_aufk-objnr
                 AND q~txt04 IN s_status and
                 q~spras = wf_langu and
                 p~inact = ''.
      IF sy-subrc <> 0.
        MESSAGE s101(zipm).                "no values found for selection criteria.
        STOP.
      ENDIF.
      SORT int_sta BY objnr.
      DELETE ADJACENT DUPLICATES FROM int_sta.
    *--SELECTING OBJECT NO.,STATUS AND LANGUAGE--
      IF int_sta[] IS NOT INITIAL.
        SELECT p~objnr
               q~txt04
               q~istat
               q~spras
               FROM ( jest AS p INNER JOIN tj02t AS q ON pstat = qistat )
               INTO TABLE int_tj02t
               FOR ALL ENTRIES IN int_sta
               WHERE p~inact = '' AND
                     p~objnr = int_sta-objnr AND
                     q~spras = wf_langu AND
                    q~txt04 IN s_status AND
                     p~objnr LIKE wf_objnr.
        IF sy-subrc <> 0.
          MESSAGE s101(zipm).               "no values found for selection criteria.
          STOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " f_data_retrieval
    *&      Form  f_report_display
          report display
    -->  p1        text
    <--  p2        text
    FORM f_report_display .
      LOOP AT int_tj02t.              "concatenating the status into a internal table
        AT NEW objnr.
          CLEAR int_temp-status.
        ENDAT.
        CONCATENATE int_temp-status int_tj02t-txt04 INTO int_temp-status SEPARATED BY space.
        AT END OF objnr.
          int_temp-objnr = int_tj02t-objnr.       "key field.
          APPEND int_temp.
          CLEAR int_temp.
        ENDAT.
        CLEAR int_tj02t.
      ENDLOOP.
      LOOP AT int_aufk.
        CONCATENATE sy-mandt int_aufk-aufnr INTO wf_name .    "concatenating client number and order number
    *--THIS FM CAPTURES THE LONG TEXT AND STORES IT IN INTERNAL TABLE--
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            id                      = wf_kopf         "TEXT ID
            language                = sy-langu       "LANGUAGE
            name                    = wf_name        "TEXT NAME
            object                  = wf_aufk         "TEXT OBJECT
          TABLES
            lines                   = int_tline      "LINES OF LONG TEXT.
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
        IF sy-subrc <> 0.
          int_tline-tdline = int_aufk-ktext.
          APPEND int_tline.
          CLEAR :int_tline.
        ENDIF.
        LOOP AT int_tline.
    *--THIS FM WRAPS THE LONG TEXT INTO 54 CHARACTERS EACH--
          CALL FUNCTION 'RKD_WORD_WRAP'
            EXPORTING
              textline            = int_tline-tdline          "LONG TEXT LINE
              outputlen           = 54                        "OUTPUT LENGTH
            TABLES
              out_lines           = int_wrap                  "INTERNAL TABLE
            EXCEPTIONS
              outputlen_too_large = 1
              OTHERS              = 2.
          IF sy-subrc <> 0.
            CLEAR :int_tline.
          ENDIF.
        ENDLOOP.
    *-- THIS FM WRAPS THE STATUS INTO 25 CHARACTERS EACH--
        READ TABLE int_temp WITH KEY objnr = int_aufk-objnr.
        CALL FUNCTION 'RKD_WORD_WRAP'
          EXPORTING
            textline            = int_temp-status
            outputlen           = 25
          TABLES
            out_lines           = int_wrap2
          EXCEPTIONS
            outputlen_too_large = 1
            OTHERS              = 2.
        IF sy-subrc <> 0.
         CONTINUE.
        ENDIF.
        IF NOT int_wrap2[] IS INITIAL.
          ULINE AT (115).
        ENDIF.
        DESCRIBE TABLE int_wrap LINES wf_i2.         "COUNTING THE NO. OF LINES FOR TABLE INT_WRAP
        DESCRIBE TABLE int_wrap2 LINES wf_i1.        "COUNTING THE NO. OF LINES FOR TABLE INT_WRAP2
        WHILE ( wc_i1 LE wf_i1 OR wc_i2 LE wf_i2 ).
          IF ( wc_i2 LE wf_i2 ).
            READ TABLE int_wrap INDEX wc_i2 .        "READING THE INTERNAL TABLE INT_WRAP WITH INDEX
            wc_i2 = wc_i2 + 1.
          ENDIF.
          IF ( wc_i1 LE wf_i1 ).
            READ TABLE int_wrap2 INDEX wc_i1 .       "READING THE INTERNAL TABLE INT_WRAP2 WITH INDEX
            wc_i1 = wc_i1 + 1.
          ENDIF.
    *--THIS FM CONVERTS THE DATE FROM SYSTEM FORMAT TO OUTPUT FORMAT--
          CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
            EXPORTING
              input  = int_aufk-gstrp
            IMPORTING
              output = wf_date1.
          IF NOT int_wrap2[] IS INITIAL .
    *--REPORT DISPLAY--
            WRITE : /1 sy-vline, 2 int_aufk-auart COLOR = 4 INTENSIFIED OFF NO-GAP ,
                    7 sy-vline ,8 int_aufk-aufnr COLOR = 4 INTENSIFIED OFF NO-GAP,
                    20 sy-vline,21 int_wrap-line,
                    76 sy-vline ,77  wf_date1 ,
                    88 sy-vline ,89 int_wrap2-line,
                    115 sy-vline.
    *--CLEARING THE VARIABLES--
            wf_date1 = ''.
            CLEAR: int_aufk,int_temp,int_wrap2-line,int_wrap-line.
          ENDIF.
        ENDWHILE.
        wc_i1 = 1.
        wc_i2 = 1.
        CLEAR :int_wrap,int_wrap2.
        REFRESH : int_wrap,int_wrap2,int_tline.
      ENDLOOP.
      ULINE AT (115).
    ENDFORM.                    " f_report_display
    *&      Form  F_PDF_DISPLAY
         pdf conversion
    -->  p1        text
    <--  p2        text
    FORM f_pdf_display .
    *--THIS FM CONVERTS THE SPOOL REQUEST INTO PDF REPORT--
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = wf_id                 "SPOOL NUMBER
          no_dialog                = space
          pdf_destination          = 'X'
        IMPORTING
          pdf_bytecount            = loc_bytecount        "NUMBER OF BYTES TRANSFERRED
        TABLES
          pdf                      = int_pdf                                  "TABLE FOR PDF REPORT
        EXCEPTIONS
          err_no_abap_spooljob     = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_destdevice       = 5
          user_cancelled           = 6
          err_spoolerror           = 7
          err_temseerror           = 8
          err_btcjob_open_failed   = 9
          err_btcjob_submit_failed = 10
          err_btcjob_close_failed  = 11
          OTHERS                   = 12.
    ENDFORM.                    " F_PDF_DISPLAY
    *&      Form  f_download_local
         download to local system
    -->  p1        text
    <--  p2        text
    FORM f_download_local .
    ---------------------THIS FM DOWNLOADS THE PDF REPORT INTO LOCAL MACHINE
    data  loc_ret TYPE iwerrormsg.
      CALL FUNCTION 'IW_C_GET_SAPWORKDIR'
       IMPORTING
         SAPWORKDIR       = loc_file
        ERROR_MSG        =  loc_ret
      loc_filename = loc_file.
      if loc_ret is initial.
      concatenate loc_filename '\work order header long text_  ' sy-timlo '.pdf' into loc_filename.
      endif.
      CALL FUNCTION 'DOWNLOAD'
        EXPORTING
          bin_filesize = loc_bytecount      "NO. OF BYTES
          filename     = loc_filename       "DEFAULT FILE NAME
          filetype     = 'BIN'
        IMPORTING
          act_filename = loc_filename
        TABLES
          data_tab     = int_pdf.
    ENDFORM.                    " f_download_local
    if you have any doubts,,
    please revert
    Regards,
    Talwinder

  • Group above and left classic reports

    how can i group above and left in an existing classic reports? is there any document around here please share it to me.

    >
    Please update your forum profile with a real handle instead of "user13653962".
    how can i group above and left in an existing classic reports? What does "group above and left" mean? A demonstration layout on apex.oracle.com or here (using tags<tt>\...\</tt> tags to preserve formatting) would be helpful.
    The options for break formatting on classic reports are:
    <li>The basic built-in control break features.
    <li>Simple DIY break layout on any number of columns using analytics in the source query: +{message:id=10679160}+
    <li>Complex report layout with multi-level headings using analytics in the source query and a custom named column report template with conditional row templates: +{message:id=9816577}+
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • POP LOV in classic Report not in a interactive Report

    My oracle version Oracle Express Aplication 11g
    Dear Forum
    We need a CLASSIC report where i can define what information my report will show.
    For example:
    My Report contain
    ID NAME DATE
    In Drag and Drop layout I create two data pickers cause I need to choose information between Date_picker_1 and Datepicker_2. both of them correspond to DATE
    In my region source in classic report I write something like this:
    Select id, name where DATE between :Date_picker_1 and :Datepicker_2 then Ichoose the months but nothing happen.
    I know that in the report interactive you can do that, but my boss doesnt' like interactive report (I dont know why) so my problem is in the Classic report.
    Danny Lima
    Ecuador
    PD: I'm not speak english very well

    >
    Please update your forum profile with a real handle instead of "897381".
    Also the subject of this thread&mdash;POP LOV in classic Report not in a interactive Report&mdash;doesn't appear to be relevant the question asked. There's no mention of a Pop-up LOV here?
    My oracle version Oracle Express Aplication 11gAlways state full version numbers, and include
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    as well.
    We need a CLASSIC report where i can define what information my report will show.
    For example:
    My Report contain
    ID NAME DATE
    In Drag and Drop layout I create two data pickers cause I need to choose information between Date_picker_1 and Datepicker_2. both of them correspond to DATE
    In my region source in classic report I write something like this:
    Select id, name where DATE between :Date_picker_1 and :Datepicker_2then Ichoose the months but nothing happen.Always post code wrapped in <tt>\...\</tt> tags. And always post the actual code or a realistic reduced test case: that query is not valid SQL.
    I know that in the report interactive you can do that, but my boss doesnt' like interactive report (I dont know why) so my problem is in the Classic report.Nothing to do with the report type. It's because all APEX items are actually VARCHAR2s. For proper comparison semantics with NUMBERs or DATEs in SQL explicit conversion is required:
    select id, name
    from foo
    where bar between to_date(:date_picker_1, 'DD/MM/YYYY') and to_date(:date_picker_1, 'DD/MM/YYYY')Where 'DD/MM/YYYY' is the format mask used in the datepicker items.

  • Creating classic reports

    Hi,
    I found that when creating classic report through the create application wizard (add new report page and choose report type as classic), the report is slightly different from the ones created through the normal create page wizard.
    The difference is report created with the creating application wizard contain filters (which searches and highlight all columns containing the keywords), a select list which allows user to select how many rows should be displayed and pagination.
    But once you create the application and wanted to add a new report, it doesn't seem to have the above functions.
    I was just wondering if it is possible to create a report page with all these functionalities through a normal report wizard? or is it something that we have to do manually once the application is created?
    Any help would be appreciated.
    Thanks,
    Candy

    Candy,
    While creating the report, all you have to do is enable report search. After entering sql query, next screen is Report Attribute. Select "Yes" in Enable Search and you can see the rows selector and search text box before your report region. Also if you want to add similar functionality to an existing report , all you have to do is add a static select list with values like 10,20,50,100.. and edit the report attribute-->Layout and Pagination-->Number of Rows (Item) --> enter the above select list name. .
    If you want to include the search functionality , you can create a text box and modify report query something like
    instr(upper(report_column),upper(nvl(:Page_item,report_column))) > 0
    The best way to approach this is to create a dummy page and Add a report region with simple query and enable the report search and see the items and report attributes generated by wizard. If you closely look at them you can add similar functionality to any existing report without any issue.
    Hope these helps. Thanks.
    Regards,
    Manish

  • Classical report into ALV

    Hi guys I have created the following small classical report, can you please help me how can I change this report of mine into ALV format.
    Thanks,
    Rajeev

    Hi,
    This is ur code which u want.
    TYPE-POOLS SLIS.
    Data: begin of it_mara occurs 0,
    matnr like mara-matnr,
    mtart like mara-matkl ,
    end of it_mara.
    Data: begin of it_marc occurs 0,
    matnr like marc-matnr,
    mmsta like marc-mmsta,
    werks like marc-werks,
    end of it_marc.
    select matnr matkl into table it_mara
    from mara
    where matkl eq '001'.
    loop at it_mara.
    select werks mmsta into table it_marc
    from marc
    where matnr eq it_mara-matnr.
    clear it_mara.
    endloop.
    DATA:  LAYOUT TYPE SLIS_LAYOUT_ALV,
    FLDCAT1 TYPE SLIS_T_FIELDCAT_ALV.
    LAYOUT-ZEBRA = 'X'.
    LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = SY-REPID
       I_INTERNAL_TABNAME           = 'IT_MARC'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
       I_INCLNAME                   = SY-REPID
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
      CHANGING
        CT_FIELDCAT                  = FLDCAT1
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
       IS_LAYOUT                      = LAYOUT
       IT_FIELDCAT                    = FLDCAT1
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
       I_SAVE                         = 'A'
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = IT_MARC
    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.
    Reward points,if it is helpful.
    Thank you,
    chandu

  • Classical Report display

    Hi,
    I need to display classical report with following layout
    Material     Jan         Feb        march        april -
    Total
    ABC
           SD     10         20             30                               60
           SE     10         20                                               30
    In my internal table I have month wise data.
    How to display it in one line under respective months.
    For e.g. in internal table I have two rows of SD with quantity is two different months. Now I need to display this in above format
    Please help.

    Hi Vanita,
    Check the following code, this is similar to your requirement...
    Row wise output:
         1.000     100.001
         1.000     100.002
         1.000     100.003
         1.000     100.003
         1.000     100.004
    Column wise output:
         1.000       1.000       1.000       1.000       1.000
       100.001     100.002     100.003     100.003     100.004
    TYPES: BEGIN OF ty_tab,
           a TYPE i,
           b TYPE i,
           END OF ty_tab.
    TYPES: BEGIN OF ty_fields,
           field TYPE c,
           END OF ty_fields.
    DATA: it_tab TYPE STANDARD TABLE OF ty_tab WITH HEADER LINE,
          it_fields TYPE STANDARD TABLE OF ty_fields, "Table which stores the field names
          wa_fields TYPE ty_fields,
          wa_tab TYPE ty_tab.
    DATA: w_value TYPE ty_fields-field.
    FIELD-SYMBOLS: <fs> TYPE ANY.
    wa_tab-a = 1000.
    wa_tab-b = 100001.
    APPEND wa_tab TO it_tab.
    wa_tab-a = 1000.
    wa_tab-b = 100002.
    APPEND wa_tab TO it_tab.
    wa_tab-a = 1000.
    wa_tab-b = 100003.
    APPEND wa_tab TO it_tab.
    wa_tab-a = 1000.
    wa_tab-b = 100003.
    APPEND wa_tab TO it_tab.
    wa_tab-a = 1000.
    wa_tab-b = 100004.
    APPEND wa_tab TO it_tab.
    wa_fields-field = 'A'. "In this example columns are A and B
    APPEND wa_fields TO it_fields.
    wa_fields-field = 'B'.
    APPEND wa_fields TO it_fields.
    WRITE:/ 'Row wise output:'.
    LOOP AT it_tab.
      WRITE: / it_tab-a,
               it_tab-b.
    ENDLOOP.
    WRITE:/,/, 'Column wise output:',/.
    LOOP AT it_fields INTO wa_fields. "Dispalying columnwise o/p
      w_value = wa_fields-field.
      LOOP AT it_tab INTO wa_tab.
        ASSIGN COMPONENT w_value OF STRUCTURE wa_tab TO <fs>.
        WRITE: <fs>.
        UNASSIGN <fs>.
      ENDLOOP.
      WRITE: /.
    ENDLOOP.
    Modify this example to ur requirement.
    Revert incase of any issues.
    Regards,
    Manoj Kumar P

  • ALV classical report

    hi,
    can any one of you send me the simple classical report using ALV functionality.
    and if you can send me also an interactive report on ALV functionality plsssssss.
    advance thanks and also i will give points .
    yours,
    sara.

    Hi,
    For <b>Classical Report</b> Example refer to link,
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
    For <b>Interactive Report</b> check the following Example,
    Check this sample code which provides exact info.
    REPORT YMS_ALVINTER1.
    TABLE DECLARATION
    TABLES: vbak , "Sales Document: Header Data
    vbap , "Sales Document: Item Data
    makt , "Material Descriptions
    lips . "SD document: Delivery: Item data
    DECLARATION OF TYPE-POOL
    *THIS TYPE-POOL CONTAINS THE EVENTS,
    TYPE-POOLS : slis.
    DECLARATION OF EVENTS
    DATA: i_event TYPE slis_t_event.
    DATA: t_event TYPE slis_alv_event.
    DECLARATION OF LIST HEADER
    DATA: i_listheader TYPE slis_t_listheader.
    DECLARATION OF FIELD CATALOG FOR SCREEN 1
    DATA: i_fldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DECLARATION OF FIELD CATALOG FOR SCREEN 2
    DATA: i_fldcat2 TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DECLARATION OF FIELD LAYOUT
    DATA: i_layout TYPE slis_layout_alv.
    SORTING OF OUTPUT
    DATA: i_sort TYPE slis_t_sortinfo_alv.
    *DATA DECLARATION
    DATA: v_auart TYPE tvak-auart,
    v_vkorg TYPE tvko-vkorg,
    v_kunnr TYPE kna1-kunnr,
    v_matnr TYPE mara-matnr ,
    v_spart TYPE tvta-spart .
    TYPES: BEGIN OF it_so ,
    vbeln TYPE vbeln_va , "SALES ORDER NO.
    auart TYPE auart , "SALES DOC. TYPE
    vkorg TYPE vkorg , "SALES ORG.
    spart TYPE spart , "DIVISION
    kunnr TYPE kunag , "SOLD TO PARTY
    posnr TYPE posnr_va , "SALES DOC. ITEM
    matnr TYPE matnr , "MATERIAL NO
    maktx TYPE maktx , "DESCRIPTION
    kwmeng TYPE kwmeng , "QUANTITY
    vrkme TYPE vrkme , "SALES UNIT
    line_color(4) TYPE c ,
    END OF it_so .
    TYPES: BEGIN OF it_del ,
    vbeln TYPE vbeln_vl , "SALES ORDER NO.
    posnr TYPE posnr_vl , "SALES DOC. ITEM
    matnr TYPE matnr , "MATERIAL NO
    werks TYPE werks_d , "PLANT
    lgort TYPE lgort_d , "STORAGE LOCATION
    charg TYPE charg_d , "BATCH NO.
    lfimg TYPE lfimg , "ACTUAL DELIVERY QTY.
    vrkme TYPE vrkme , "SALES UNIT
    END OF it_del .
    TYPES: BEGIN OF type_vbfa ,
    vbelv TYPE vbeln_von , "Preceding sales and distribution document
    posnv TYPE posnr_von , "Preceding item of an SD document
    vbeln TYPE vbeln_nach, "Subsequent sales and distribution document
    posnn TYPE posnr_nach, "Document category of subsequent document
    vbtyp_n TYPE vbtyp_n ,
    END OF type_vbfa .
    DATA: it_so1 TYPE STANDARD TABLE OF it_so ,
    it_del1 TYPE STANDARD TABLE OF it_del ,
    it_vbfa TYPE STANDARD TABLE OF type_vbfa,
    it_del_ful TYPE STANDARD TABLE OF it_del.
    DATA: wa_so TYPE it_so ,
    wa_del TYPE it_del ,
    wa_vbfa TYPE type_vbfa,
    wa_it_del_ful TYPE it_del.
    DATA: i_title_vbfa TYPE lvc_title VALUE 'SALES ORDER LIST DISPLAYED'.
    DATA: i_title_vbpa TYPE lvc_title VALUE
    'DELIVERY DETAILS DISPLAYED AGAINST GIVEN SALES ORDER'.
    *SELECTION SCREEN *
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-004 .
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln ,
    s_auart FOR v_auart ,
    s_vkorg FOR v_vkorg ,
    s_spart FOR v_spart ,
    s_kunnr FOR v_kunnr ,
    s_matnr FOR v_matnr .
    SELECTION-SCREEN END OF BLOCK blk1 .
    *AT SELECTION SCREEN *
    AT SELECTION-SCREEN.
    SELECT SINGLE vbeln
    FROM vbak INTO vbak-vbeln
    WHERE vbeln IN s_vbeln.
    IF sy-subrc <> 0.
    MESSAGE e202.
    ENDIF.
    *START OF SELECTION *
    START-OF-SELECTION .
    PERFORM data_select.
    PERFORM t_sort USING i_sort .
    PERFORM event_cat USING i_event .
    PERFORM fld_cat USING i_fldcat[] .
    PERFORM t_layout USING i_layout .
    PERFORM fld_cat2 USING i_fldcat2[] .
    PERFORM call_alv.
    DATA SELECT *
    *& Form DATA_SELECT
    text
    --> p1 text
    <-- p2 text
    FORM data_select .
    REFRESH: it_vbfa, it_so1, it_del_ful ,it_del1 .
    BREAK-POINT.
    SELECT
    a~vbeln
    a~auart
    a~vkorg
    a~spart
    a~kunnr
    b~posnr
    b~matnr
    c~maktx
    b~kwmeng
    b~vrkme
    INTO TABLE it_so1 FROM vbak AS a
    JOIN vbap AS b ON bvbeln = avbeln
    JOIN makt AS c ON cmatnr = bmatnr
    AND c~spras = sy-langu
    WHERE a~vbeln IN s_vbeln .
    COLURING DISPLAY *
    DATA: ld_color(1) TYPE c .
    LOOP AT it_so1 INTO wa_so.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_so-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_so1 FROM wa_so.
    ENDLOOP .
    IF sy-subrc = 0.
    SELECT vbelv
    posnv
    vbeln
    posnn
    vbtyp_n
    INTO TABLE it_vbfa
    FROM vbfa
    FOR ALL ENTRIES IN it_so1
    WHERE vbelv = it_so1-vbeln
    AND posnn = it_so1-posnr
    AND vbtyp_n ='J' .
    IF sy-subrc = 0.
    SELECT vbeln
    posnr
    matnr
    werks
    lgort
    charg
    lfimg
    vrkme
    FROM lips INTO TABLE it_del_ful
    FOR ALL ENTRIES IN it_vbfa
    WHERE vbeln = it_vbfa-vbeln
    AND posnr = it_vbfa-posnn.
    ENDIF.
    ENDIF.
    ENDFORM. " DATA_SELECT
    EVENT CATALOG ****************************************
    *& Form EVENT_CAT
    text
    -->P_I_EVENT text
    FORM event_cat USING p_i_event TYPE slis_t_event .
    REFRESH p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    et_events = p_i_event
    EXCEPTIONS
    LIST_TYPE_WRONG = 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.
    READ TABLE p_i_event WITH KEY name = slis_ev_top_of_page INTO t_event.
    IF sy-subrc = 0.
    MOVE 'TOP_OF_PAGE' TO t_event-form.
    MODIFY p_i_event FROM t_event INDEX sy-tabix TRANSPORTING form.
    ENDIF.
    CLEAR t_event .
    ENDFORM. " EVENT_CAT
    *********FORM FOR EVENT TOP_OF_PAGE*********************************
    FORM top_of_page .
    REFRESH i_listheader.
    DATA: t_header TYPE slis_listheader.
    DATA: v_text(50).
    WRITE sy-datum TO v_text.
    CLEAR t_header.
    t_header-typ = 'S'.
    t_header-key = 'Date'.
    t_header-info = v_text.
    APPEND t_header TO i_listheader.
    CLEAR t_header.
    CLEAR v_text.
    WRITE: 'SALES ORDER REPORT ' TO v_text .
    t_header-typ = 'S'.
    t_header-key = 'TITLE'.
    t_header-info = v_text.
    APPEND t_header TO i_listheader.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_listheader
    I_LOGO = 'ENJOYSAP_LOGO' .
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    FIRST ALV GRID DISPLAY ***************************************
    *& Form CALL_ALV
    text
    --> p1 text
    <-- p2 text
    FORM call_alv .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND1'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbfa
    is_layout = i_layout
    it_fieldcat = i_fldcat[]
    it_sort = i_sort
    it_events = i_event
    TABLES
    t_outtab = it_so1
    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. " CALL_ALV
    FIRST FIELDCATALOG *************************************
    *& Form FLD_CAT
    text
    -->P_I_FLDCAT[] text
    FORM fld_cat USING p_i_fldcat TYPE slis_t_fieldcat_alv.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'VBELN'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'."TABLE NAME
    i_fldcat-seltext_m = 'SALES ORDER NO.'.
    i_fldcat-col_pos = 1. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'AUART'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'."TABLE NAME
    i_fldcat-seltext_m = 'SALES DOC. TYPE'.
    i_fldcat-col_pos = 2. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'VKORG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SALES ORG.'.
    i_fldcat-col_pos = 3. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 12. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'SPART'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'DIVISION'.
    i_fldcat-col_pos = 4. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 10. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'KUNNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SOLD TO PARTY'.
    i_fldcat-col_pos = 5. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'POSNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SALES DOC. ITEM'.
    i_fldcat-col_pos = 6. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 17. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'MATNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'MATERIAL NO.'.
    i_fldcat-col_pos = 7. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'MAKTX'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'DESCRIPTION'.
    i_fldcat-col_pos = 8. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'KWMENG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'QUANTITY'.
    i_fldcat-col_pos = 9. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-do_sum = 'X'. " For doing "SUM"
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'VRKME'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SALES UNIT'.
    i_fldcat-col_pos = 10. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 10. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    ENDFORM. " FLD_CAT
    ALV SORTING ***************************************
    *& Form SORT
    text
    -->P_I_SORT text
    FORM t_sort USING p_i_sort TYPE slis_t_sortinfo_alv .
    DATA: i_sort TYPE slis_sortinfo_alv .
    REFRESH p_i_sort .
    CLEAR i_sort.
    i_sort-spos = 1.
    i_sort-tabname = 'IT_SO1'.
    i_sort-fieldname = 'VBELN'.
    i_sort-up = 'X'.
    i_sort-subtot = 'X'.
    i_sort-group = '*'.
    APPEND i_sort TO p_i_sort.
    ENDFORM. " SORT
    *FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'.
    *ENDFORM. "Set_pf_status
    **********FORM FOR EVENT USER_COMMAND1*******************************
    FORM user_command1 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    *CASE R_UCOMM .
    WHEN '&IC1' .
    IF rs_selfield-FIELDNAME = 'VBELN' .
    ENDIF .
    WHEN OTHERS .
    ENDCASE .
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF sy-subrc = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_so-vbeln
    AND posnv = wa_so-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = wa_vbfa-vbelv
    posnr = wa_vbfa-posnn.
    IF sy-subrc = 0.
    CLEAR wa_del.
    MOVE wa_it_del_ful TO wa_del.
    APPEND wa_del TO it_del1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.
    SECOND ALV GRID DISPLAY ***********************************
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND2'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbpa
    it_fieldcat = i_fldcat2[]
    it_sort = i_sort
    TABLES
    t_outtab = it_del_ful
    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 . "USER_COMMAND1
    FORM FOR EVENT USER_COMMAND 2 ******************************
    FORM user_command2 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF SY-SUBRC = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = WA_SO-vbeln
    AND posnv = WA_SO-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = rs_selfield-value
    posnr = wa_vbfa-posnn.
    IF rs_selfield-fieldname = 'VBELN'.
    SET PARAMETER ID 'VL' FIELD wa_vbfa-vbeln .
    CALL TRANSACTION 'VL03' AND SKIP FIRST SCREEN.
    ENDIF .
    ENDLOOP.
    ENDIF.
    ENDIF.
    ENDFORM . "USER_COMMAND2
    SECOND FIELDCATALOG ******************************************
    *& Form FLD_CAT2
    text
    -->P_I_FLDCAT2[] text
    FORM fld_cat2 USING p_i_fldcat2 TYPE slis_t_fieldcat_alv .
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'VBELN'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-tabname = 'IT_DEL_FUL'."TABLE NAME
    i_fldcat2-seltext_m = 'DELIVERY NO.'.
    i_fldcat2-col_pos = 1. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-hotspot = 'X'.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'POSNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'DELIVERY ITEM'.
    i_fldcat2-col_pos = 2. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'MATNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'MATERIAL NO.'.
    i_fldcat2-col_pos = 3. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'WERKS'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'PLANT.'.
    i_fldcat2-col_pos = 4. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'LGORT'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'ST. LOCATION'.
    i_fldcat2-col_pos = 5. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'CHARG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'BATCH NO.'.
    i_fldcat2-col_pos = 6. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'LFIMG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'ACT. DEL. QTY.'.
    i_fldcat2-col_pos = 7. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'VRKME'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'SALES UNIT.'.
    i_fldcat2-col_pos = 8. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    ENDFORM. " FLD_CAT2
    ALV LAYOUT *******************************************
    *& Form LAYOUT
    text
    -->P_I_LAYOUT text
    FORM t_layout USING p_i_layout TYPE slis_layout_alv .
    p_i_layout-zebra = 'X'.
    p_i_layout-totals_text = 'GRAND TOTAL ='.
    p_i_layout-CONFIRMATION_PROMPT = 'X'.
    p_i_layout-DEF_STATUS = ' '.
    p_i_layout-info_fieldname = 'LINE_COLOR'.
    ENDFORM. " LAYOUT
    Regards,
    Padmam.

  • Classic report - Condition evaluated for every row

    APEX 4.2.2
    I am seeing something strange in a classic report region. A report started to fail at run-time with a strange error about bad syntax. When I run the page in debug mode, I see the following
    print column headings
    rows loop: 30 row(s)
    ...Execute Statement: begin wwv_flow.g_boolean := '' is not null;
    end;
    ......Result = false
    ...Execute Statement: begin wwv_flow.g_boolean := '' is not null;
    end;
    ......Result = false
    ...Execute Statement: begin wwv_flow.g_boolean := 'string with a embedded ' single quote' is not null;
    end;
    ......Result = true
    Looks like the APEX engine is evaluating a boolean expression after rendering and each and every row in the report. And for some strange reason, it is using a piece of data from my query's resultset and failing because of the bad syntax introduced due to the single-quote in the string.
    I have never seen this before. Any idea what is going on?
    Thanks

    Howdy Paul, sorry should have provided all the details. No, this is a standard generic column template. Ah, you are right, drat I should have looked closer. The template has use a condition to show either a highlighted row or normal one. Sorry for the false alarm, I can take it from here. Enjoy your flight :-)

  • How to Print a text in bold format in a classic report ??

    How to Print a text in bold format in a classic report ??

    hi
    u can use
    <b>FORMAT  INTENSIFIED ON.</b>
    regards
    ravish
    reward if useful

Maybe you are looking for

  • Why are my thumbnails and folders changing???

    For some reason my image thumbnails and folders are misbehaving. Thumbnails The thumbnail images will just disappear on SOME images in a folder but not all. Folders The folder sizes will max out in some folders but not in others. And, I am not sure t

  • Fatal Error on compile - HTML

    Recently I upgraded from RH version 6 to 7. I am now trying to compile for the first time on v7 a merged html project that was created and successfully compiled with version 6. The compile runs through the updating process then fails everytime with t

  • Connecting MBP to DV Cassette Recorder and External HD

    Before getting my MBP, I had a G4 eMac, which had two 6PF firewire outlets. The firewire cables from my external HDs had the matching plugs, and I got a 4PF-6PM adapter for the firewire cable on my DV deck. The firewire port on the new MBP looks diff

  • Micro or mini?

    I have the latest 2.26 13" macbook pro before i purchase, can i confirm that i need the micro NOT mini dvi to VGA? I want to connect to a VGA monitor, everything read says micro is for the Mac Air. I'm sure the new macbook pro's use micro, but I want

  • Using Database Control in JPDs - Best Practice

    Hi, I would like to know the best way of using DB control in a JPD like.. which one is better. a) Using a Control Send node in workshop and configuring it from the workshop design view as a separate node. or b) In a perform node call the method on th