‎2007 Jul 05 4:43 PM
how do i call a subscreen belong to a another program. say you want to call screen 100 that belongs to program prog1 from prog2
‎2007 Jul 05 4:54 PM
Hi
Generally we call the other transactions using the commands:
see the sample code
&----
*& Form LINE_SEL
&----
When double clicked on BELNR leave to transaction FB03
----
form line_sel.
data: lv_field(20),
lv_value(10),
lv_date(10),
lv_gjahr like bsad-gjahr.
get cursor field lv_field value lv_value.
if lv_field = 'IT_REPORT-BELNR'.
if not lv_value is initial.
read current line field value it_report-budat into lv_date.
lv_gjahr = lv_date+6(4).
set parameter id 'BUK' field p_bukrs.
set parameter id 'GJR' field lv_gjahr.
set parameter id 'BLN' field lv_value.
<b>call transaction 'FB03' and skip first screen.</b>
endif.
endif.
endform. " LINE_SEL
we can not call simply a subscreen of another program from the current program.
we can call by only abpove method.
Reward points for useful Answers
Regards
Anji
‎2007 Jul 05 4:55 PM
‎2007 Jul 05 4:56 PM
Hi
Generally we call the other transactions using the commands:
see the sample code
&----
*& Form LINE_SEL
&----
When double clicked on BELNR leave to transaction FB03
----
form line_sel.
data: lv_field(20),
lv_value(10),
lv_date(10),
lv_gjahr like bsad-gjahr.
get cursor field lv_field value lv_value.
if lv_field = 'IT_REPORT-BELNR'.
if not lv_value is initial.
read current line field value it_report-budat into lv_date.
lv_gjahr = lv_date+6(4).
set parameter id 'BUK' field p_bukrs.
set parameter id 'GJR' field lv_gjahr.
set parameter id 'BLN' field lv_value.
<b>call transaction 'FB03' and skip first screen.</b>
endif.
endif.
endform. " LINE_SEL
we can not call simply a subscreen of another program from the current program.
we can call by only abpove method.
Reward points for useful Answers
Regards
Anji
‎2007 Jul 05 4:57 PM
Hi
Generally we call the other transactions using the commands:
see the sample code
&----
*& Form LINE_SEL
&----
When double clicked on BELNR leave to transaction FB03
----
form line_sel.
data: lv_field(20),
lv_value(10),
lv_date(10),
lv_gjahr like bsad-gjahr.
get cursor field lv_field value lv_value.
if lv_field = 'IT_REPORT-BELNR'.
if not lv_value is initial.
read current line field value it_report-budat into lv_date.
lv_gjahr = lv_date+6(4).
set parameter id 'BUK' field p_bukrs.
set parameter id 'GJR' field lv_gjahr.
set parameter id 'BLN' field lv_value.
<b>call transaction 'FB03' and skip first screen.</b>
endif.
endif.
endform. " LINE_SEL
we can not call simply a subscreen of another program from the current program.
we can call by only abpove method.
Reward points for useful Answers
Regards
Anji
‎2007 Jul 05 5:02 PM
you need to call subscreen both PBO as well as PAI
see the example one :
here AREA1 is the subscreen name :
number1(4) TYPE n VALUE '0110', -> screen number ( Other program)
PROCESS BEFORE OUTPUT.
MODULE STATUS_100.
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1.
PROCESS AFTER INPUT.
CALL SUBSCREEN: AREA1.
MODULE USER_COMMAND_100.
for more information on subscreen,check the demo program : DEMO_DYNPRO_SUBSCREENS
Thanks
Seshu