Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on Print Signature at Footer

0 Kudos

Hi, I used the HTML_END_OF_LIST to print the signature (eg, checked by, verified by, approved by and etc) at footer,

It able to display in ALV screen

but not able display in Print Preview Screen

Is there any way to display in both screen ?

Regards,

Jesamine

7 REPLIES 7

yogendra_bhaskar
Contributor
0 Kudos

Hi Lim ,

go through the sample report BCALV_TEST_FULLSCREEN_HTML

it will help you out

Regards

Yogendra Bhaskar

0 Kudos

Hi Yogendra,

I went through the sample report and executed it. The result is same with mine, display in ALV screen but not display in print preview 

1. Goto SE38 to run the sample report

2. The information will be shown in Footer

  

3. But when click 'Print Preview', the information does not display 

  

Other than HTML_END_OF_LIST event,  Is there any other way to display in both ?

Regards,

Jesamine Lim

0 Kudos

HI Lim ,

If you select event end_of_list and execute the report , it will display footer in alv screen and print preview also.

Regards

Yogendra Bhaskar

0 Kudos

Hi Yogendra,

Yes, it will be displayed in alv screen and print preview, could I display all signature as the horizon like below sample. I have tried but can't

Is there any way ?

Regards,

Jesamine Lim

0 Kudos

Hi lim ,

There is limit on characters for header and footer of 60 chars only.

If you keep it under 60 characters then its good and can be done.

otherwise you have to use split container for it......

Regards

Yogendra Bhaskar

0 Kudos

Hi Yogendra,

I think I have to use split container for footer, could you please provide me the steps to create split container for footer ?

Regards,

Jesamine Lim

0 Kudos

Hi Lim ,

prepare you end of list similar to the code as below :

FORM end_of_list_html USING end TYPE REF TO CL_DD_DOCUMENT

  DATA: ls_text TYPE sdydo_text_element,

        l_grid     TYPE REF TO cl_gui_alv_grid,

        f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.

  ls_text = 'Footer title'.

  • adds and icon (red triangle)

  CALL METHOD end->add_icon    EXPORTING      sap_icon = 'IL'.

  • adds test (via variable)

  CALL METHOD end->add_text    EXPORTING      text         = ls_text      sap_emphasis = 'strong'.

  • adds new line (start new line)

  CALL METHOD end->new_line.

  • display text(bold)

  CALL METHOD end->add_text    EXPORTING      text         = 'Bold text'      sap_emphasis = 'strong'.

  • adds new line (start new line)

  CALL METHOD end->new_line.

  • display text(normal)

  CALL METHOD end->add_text    EXPORTING      text         = 'Nor'.

  • adds new line (start new line)

  CALL METHOD end->new_line.

  • display text(bold)

  CALL METHOD end->add_text    EXPORTING      text         = 'Yellow '      sap_emphasis = 'str'.

  • adds and icon (yellow triangle)

  CALL METHOD end->add_icon    EXPORTING      sap_icon = 'IC''.

  • display text(normal)

  CALL METHOD end->add_text

    EXPORTING

      text         = 'Mor'.

*set height of this section

  CALL FUNCTION GET_GLOBALS_FROM_SLVC_FULLSCR

    IMPORTING

      e_grid = l_grid.

  CALL METHOD l_grid->parent->parent->(f)

    EXPORTING

      id     = 3

      height = 14.

ENDFORM. "end_of_list_html.

Regards

Yogendra Bhaskar