Application Development 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: 

call a transaction code using tabstrib

former_member586174
Participant

Hi experts
I have requirement to create a program that calls the two different dynpros from two different programs, this should with the help of two TABSTRIPS.

My first Idea was to do this by calling the required program when we click on the TABSTRIPS . as this program has no selection screen and the dynpro suppos be directly called, but till now everything was in vain !!!

here how should the TABSTRIP look like when i click on it.....

selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.

selection-screen end of block b1.
selection-screen end of screen 101.

selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.

selection-screen end of block b2.
selection-screen end of screen 102.


selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen end of block one.

initialization.

  name1 = 'Tab 1'.
  name2 = 'Tab 2'.
start-of-selection.

if sy-ucomm = 'Tab 1'.
  call TRANSACTION 'Z_initial01'.
  ENDIF.

Please could some one guid me to achive this ??

Best Regards

Jenie

5 REPLIES 5

roberto_forti
Contributor
0 Kudos

Hi Jennifer,

Could you please explain why calling different programs?

Following SAP TABSTRIP documentation for you understanding how it works.

Regards,

now i have two programs that calls two reports and i want to call them by using tabstrib as every tab should have different report,,

i just need steps on how to achieve this....?

Hi Jennifer,

However, SAP has excellent documentations and certainly it will help you understanding to apply correctly as described below.

1. Browsing in ABAP Programs

2. CALL SUBSCREEN sub_area INCLUDING prog dynnr

3. SUBMIT {rep|(name)} [selscreen_options]...

Regards,

0 Kudos

Hi Jennifer, Did you get it ?

Regards

DoanManhQuynh
Active Contributor

I think this should be done using subscreen in module pool not selection screen.