‎2007 Sep 21 7:50 AM
hi to all,
Is it possible to call subscreen dynamically means we are calling subscreen like
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN SUB INCLUDING 'YSU_SUBSCREEN' '0120'.
MODULE STATUS_0100.
suppose we r coding like calls subscreen at the initially whenever display main screen but my requirement is
i have edesigned 3 or 4 sub screens for vendor,material ..etc for up dation
i place the button regarding vendor whenver i press the button vendor that subscreen will display in that i designed insert delete update operations of vendor data like that all the screens
for this operation can't use tabstrip control
please provide solution
thanks and regards,
surya.
‎2007 Sep 21 8:18 AM
use field symbol and assign screen numbers dynamicaaly
call subscreen sub including 'ysu_subscreen' <fs_sub>.
assign values of screen numbers to the <fs_sub> as per ur conditions.
reward points if useful.......
‎2007 Sep 21 8:26 AM
Surya Narayana,
Its simple.
1) Have a variable to hold the screen numbers (V_SCR TYPE N )
2) Based on the OK_CODE captured when u click on the vendor/material/... buttons, use
<CASE OK_CODE
WHEN 'VNDR'
V_SCR = '100'.
.... ENDCASE>
3) Now call your screens by using V_SCR.
Hope u r clear...
reward if helpful
‎2007 Sep 21 10:08 AM
hai karthik,
thanks for ur reply
just Little bit confusing in ur reply please provide solution in detail
thanks and regards,
surya.
‎2007 Sep 21 10:37 AM
Hello Surya,
Based on a particular function code or click of a button it is possible to bring different subscreens into the normal screen's area reserved for calling subscreen
........so in the subscreen we need to give fields and structures required to be displayed on clicking a particular button or recieving a condition
Please check the following
declare a variable : loc_dynnr type sy-dynnr,
loc_repid type sy-repid .
assign a default value:
loc_dynnr = 120. "First subscreen being called
loc_repid = sy-repid. "report id 'YSU_SUBSCREEN'
we will be using the statement
"CALL SUBSCREEN SUB INCLUDING 'YSU_SUBSCREEN' '0120'.
CALL SUBSCREEN: SUB INCLUDING loc_repid loc_dynnr.
so on clicking the button we will have different function codes captured
case sy-ucomm.
when 'Button1'.
loc_dynnr = 120. "required subscreen to be called
loc_repid = sy-repid. "report id 'YSU_SUBSCREEN'
when 'Button2'.
loc_dynnr = 130. "required subscreen to be called
loc_repid = sy-repid. "report id 'YSU_SUBSCREEN'
when 'Button3'.
loc_dynnr = 140. "required subscreen to be called
loc_repid = sy-repid. "report id 'YSU_SUBSCREEN'
endcase.
and in the calling code use...
CALL SUBSCREEN: SUB INCLUDING loc_repid loc_dynnr.
please remember to put default values for loc_repid ,loc_dynnr..otherwise it may dump
Pls check and revert..rewards if helpful
also check the following link
Regards
Byju