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: 

Convert ALV List to HTML to Display the List in Portal.

Former Member
0 Kudos

Hi,

I have a requirement to convert an ALV list into <HTML> format and then display a report in portal similar to that of ALV list in SAP using the HTML file. I am using the RFC: CALL FUNCTION 'WWW_DISPATCH_REQUEST' for this task. Here i am experiencing a challenge to give the Variant Name of the ALV program as Import Parameter to this RFC so that it will pick up the Variant Name automatically and process ALV list converted to <HTML>. I am not sure hoe to pass the Variant Name. If any one could help me with a sample code, that would be a great help.

Thanks for your Help in Advance.

Kannan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

are you using dynpro for the HTML pages or using normal .srvc files for the screen conversion?

3 REPLIES 3

Former Member
0 Kudos

are you using dynpro for the HTML pages or using normal .srvc files for the screen conversion?

0 Kudos

Hi Praveen,

The Portal Part I am not aware of it. My Task is to get an Internal Table with HTML tags, so that in portal they will process the HTML tag to display the list similar to that of ALV in R3.

Actually the Portal application will call an Wrapper RFC, which in turn calls the FM: WWW_DISPATCH_REQUEST. The Wrapper RFC also sets the values for the Import Parameter for the FM: WWW_DISPATCH_REQUEST. Here, the challenge is that, I do not know, how to supply the ALV Program Variant Name to the FM: WWW_DISPATCH_REQUEST so that It will automatically process the Variant and generate the HTML part of the ALV list.

Please let me have your input on processing the program variant in this requirement.

Thanks for your Help in Advance.

Kannnan.

0 Kudos

Create a RFC FM.

within that submit the ALV program exporting list to memory.

submit (report_name) and return exporting list to memory.

call function 'LIST_FROM_MEMORY'

tables

listobject = listobject.

call function 'WWW_HTML_FROM_LISTOBJECT'

exporting

report_name = report_name

tables

html = html

listobject = listobject.

now the itab html will hold the html code

Regards

Raja