cancel
Showing results for 
Search instead for 
Did you mean: 

calling report(se38) in webdynpro abap

Former Member
0 Kudos

Hi,

I want to call the abap report in a webdynpro abap component controller methods which is already developed in se38.Is this posible?? if posible how to pass the input and how can i get the output.

Could anybody please help me regarding this issue.

Thanks

revati

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Revathi,

It is quite easy.The web dynpro methods are just ABAP codes, right?

So just call the executable programs like you call them in normal ABAP codes with SUBMIT.

SUBMIT zreport with p_param1 = 'value'

with p_param2 = 'value' and return.

If your report outputs a list and you want the output in an internal table, then export that list in memory.

SUBMIT zreport EXPORTING LIST TO MEMORY.

Use the FM to retrieve from memory.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = itab_list

EXCEPTIONS

not_found = 4

OTHERS = 8.

Then you can bind this to a table or show in ALV.

Hope this helps.

Regards,

Arpan

Former Member
0 Kudos

Solved.

Thanks

revati

Former Member
0 Kudos

HI

Actually I have two report programs:

1. To extract the xml files and store the data in to data base, program name is zprogram_application.

When i click "EXTRACTION" button the web dynpro application automatically run the this program "zprogram_application".

I want run the report program and get message extraction successfully.

These two programs when execute every time i have to go se38 report program and run I don't want to go every time that's why i am creating web application and run the two program in web application.

Thank you

V.VENKATESH

Former Member
0 Kudos

Hi Raju,

I am new to WebDynpro,Can u share me the idea/process how u achieved it(calling a report and showing the output in a text view by passing some parameters from WebDynpro is my requirement)?

Thanks In Advance.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gurus,

Now I need to call SAP Script through Webdynpro.

What can i do...!

Thanks.

Pradeep

Former Member
0 Kudos

Hi Revathi,

its not possible i think so , you can develop your requirement in FM , and easily consume in webdynpro abap by service call .

regards

chinnaiya P