Skip to Content
0
Former Member
Jul 20, 2005 at 12:08 PM

How to call a report thru an RFC w/o displaying the Report UI

97 Views

Hi ,

I have to pass the parameter to a report thru an RFC.

I am using submit command , but I do not want SAP gui to appear..

This is the report UI code .

PARAMETERS : werks LIKE mseg-werks OBLIGATORY.

SELECT-OPTIONS : budat FOR mkpf-budat OBLIGATORY,

material FOR mseg-matnr.

I have to pass the value to the report from my RFC by assiging values to these control in my RFC . and also I do not want display the SAP GUI for the Screen.

I have used this code to achive this.

SUBMIT ZRPT_MM_045 EXPORTING LIST TO MEMORY AND RETURN

USING SELECTION-SET 'ZZZ'.

where 'ZZZ' is my variant .

the problem here is I can not change the values dynamically in my RFC. All the values in 'zzz' variant are predefined.

HOw to achive this ...

A sample piece of code greatly appreciated

thanks

pkiran