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 subscreen

Former Member
0 Likes
645

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

5 REPLIES 5
Read only

Former Member
0 Likes
614

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

Read only

former_member194669
Active Contributor
0 Likes
614

Hi,


CALL SUBSCREEN b INCLUDING prog dynnr .

aRs

Read only

Former Member
0 Likes
614

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

Read only

Former Member
0 Likes
614

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

Read only

Former Member
0 Likes
614

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