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

Calling a Z-Report using a Function Module.

Former Member
0 Likes
617

Hi All,

Kindly provide me help in:

How to call a Z-Report which generates a flat file in the Application server. And which I want to call using a Function Module and display all the fields which are generated in the file.

Steps I've already done:

1) I've created a Function Module

2) Created a structure which I've used in the Tables tab of the FM

3) Used:

SUBMIT ZSCOMAR

VIA SELECTION-SCREEN

USING SELECTION-SET 'Variant'

AND RETURN.

Output whichI'm receiving:

Only the no. of rows is shown but not the fields individually.

Thanks in Advance.

Regards,

Sreedhar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

you can either :

display the data from the ZPROGRAM(by editing it)

or

by reading the file again in you FM using open dataset, read dataset, close dataset. and display the content

2 REPLIES 2
Read only

Former Member
0 Likes
500

you can either :

display the data from the ZPROGRAM(by editing it)

or

by reading the file again in you FM using open dataset, read dataset, close dataset. and display the content

Read only

0 Likes
499

Thank You very Much.