Skip to Content
avatar image
Former Member

Headers in cl_gui_frontend_services=>gui_download.

Hello,

I am having a problem in getting headers by using cl_gui_frontend_services=>gui_download. I am getting headers as F1 F2 F3 F4.......and so on for headers. Can anybody provide me the code as to how to display the headers.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 05, 2015 at 10:20 AM

    Hi Parita,

    Hope you are passing the Header Value, while calling the Method.

    Provide the code sample for better understanding your problem.

    regards.

    Praveer.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Parita,

      Found the solution.

      Pass the Value in itab1 as below, it will give your the proper format of header.

      1 Column

           gw_tab1-line = text-004.

           append gw_tab1 to itab1.

      2 Column

           gw_tab1-line = text-005.

           append gw_tab1 to itab1.

      ...Like that you append your columns name into the itab1 table and then pass the same to FM.

      You will get the Correct Header in file.

      Regards.

      Praveer.


  • avatar image
    Former Member
    Jan 05, 2015 at 10:54 AM

    you can call the same method twice, first call the internal table will have one record with the headers and the 2nd call will have values.

    In the 2nd call pass the import parameter of the method append as 'X' .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 05:46 AM

    You need to fill the Import parameter FIELDNAMES ( which is of Table type ) of method GUI_DOWNLOAD with Header names.

    Refer

    In this code Function Module GUI_DOWNLOAD is used to display Headers.

    This same FM is called inside the same method of class CL_GUI_FRONTEND_SERVICES.

    Add comment
    10|10000 characters needed characters exceeded