‎2006 Jun 27 12:25 PM
when we call subscreen from different program, how do we transfer the data from other program. Hope it is possible with Function group. Please explain with example.
‎2006 Jun 27 12:31 PM
Hai Sreedhar
The syntax is as follows
CALL SUBSCREEN <AREA> INCLUDING <PROGRAM NAME> <SCREEN NO>.
Example:
Call subscreen SC1 including 'ZReport' '200'.
Thanks & regards
Sreenivasulu P
‎2006 Jun 27 12:33 PM
Thank you very much. I am aware of the syntax,However, I am module program ABC and I am calling a subscreen 100 of Module program XYZ. Then how the data of XYZ program visible to ABC.
‎2006 Jun 27 12:34 PM
Declare your data in TOP include of the function module group and this will be availabe to called program.
or share a include program between these two programs.
OR use
'EXPORT', 'IMPORT' to get data in different programs.
Regards,
Wasim Ahmed
‎2006 Jun 27 12:40 PM
Hi Sreedhar,
I worked on one of the problem like that.
what i actually did to transfer the data from calling program to the called program is to use SET/GET parameters.
since i had just one parameter to pass.
Eg:
calling program:
DATA REPID like sy-repid VALUE 'RSPFPAR'.
SET PARAMETER ID 'RID' FIELD REPID.
call subscreen <subscreen> including <progname>
<scrname>.
called program:
since only the PBO of the subscreen will be called so i write the GET parameter code here
DATA : REPID LIKE SY-REPID.
GET PARAMETER ID 'RID' FIELD REPID.
and finally use the parameter for use in the subscreen called.
I hope this will help you.
Regards,
Kinshuk
‎2006 Jun 27 12:42 PM
If I use the function group, I should have both programs with in the same function group. However, customer is NOT willing to use same Function group.
‎2006 Jun 27 12:44 PM
Using SET & GET parameters, I can't pass more data like
internal tables.