Application Development and Automation 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: 
Read only

Simple ABAP/HTML exercise

Former Member
0 Likes
884

Hi there, sometimes when I want to emphasize some header in my ABAP programm, the standard functionalities are not enough (input field, grid's title ...) So maybe I could use a HTML in order to create some kind of 'header', so for example ...

HEADER IN HTML CONTAINER

content ...

content ...

content ...

content ...

do You know some clear demo programm which I could follow, or some essential tutorial which could help me to create a simple HTML cpntainer and add some simple text (for example bold or italic ...) inside?

I'd be thankful for help. Greetings. P.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
839

Can you please check this program, 'BCALV_TEST_FULLSCREEN_HTML'.

6 REPLIES 6
Read only

Former Member
0 Likes
840

Can you please check this program, 'BCALV_TEST_FULLSCREEN_HTML'.

Read only

0 Likes
839

Muthukumar Ram

BCALV_TEST_FULLSCREEN_HTML calls a REUSE_ALV_GRID_DISPLAY function with a parameter

i_callback_top_of_page = l_callback_top_of_page where text is set,

but I'd like to create a container in the screen, and then put HTML content into it

Read only

0 Likes
839

Try this:

DATA : gref_document TYPE REF TO cl_dd_document.

CALL METHOD gref_document->add_text

EXPORTING

text = text-001"'Header Information'

sap_fontsize = 'MEDIUM'

sap_emphasis = 'STRONG'.

CALL METHOD gref_document->display_document

EXPORTING

parent = gref_header_container

EXCEPTIONS

html_display_error = 1

OTHERS = 2

Read only

Former Member
0 Likes
839

Hi,

Check this demo program BCALV_TEST_HTML_HEADER

Check the method add_text and its parameters

Regards

Read only

0 Likes
839

Rajvansh Ravi

I039643

Unfortunately there is no BCALV_TEST_HTML_HEADER in our SAP 4.6c

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
839

Check this report BCALV_TEST_HTML_HEADER