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

tabstrips

Former Member
0 Likes
687

hi masters of sap,

i have a requirment on TABSTRIPS to be honest i have never worked on it. coming to the requirment i have 3 tabs in 1st TAB I have two values take for ex 3 + 3 and in other tab the result. which is = 6

but when i look into the second tab i dont get the result when trigger the second tab.

i really dont no where i went wrong. how can i create the link and this is my code.

CASE OK_CODE.

WHEN 'TAB1'.

TABSTRIP-ACTIVETAB = 'TAB1'.

WHEN 'TAB2'.

TABSTRIP-ACTIVETAB = 'TAB2'.

RESULT = NUMBER1 + NUMBER2.

endcase.

in TAB2

RESULT = NUMBER1 + NUMBER2.

When i debug i can see the result but it is not displayed on the output screen.

can you please anyone help me on the tabstrip.

thanks in advance

pasala.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

HI

In *TOP Include* declare NUM1, NUM2, RESULT.

CASE OK_CODE.
WHEN 'TAB1'.
TABSTRIP-ACTIVETAB = 'TAB1'.
DYNNR = 'SCREEN_NUMBER' "--> This point is mentioned beloew
RESULT = NUMBER1 + NUMBER2.  "---Add here
WHEN 'TAB2'.
TABSTRIP-ACTIVETAB = 'TAB2'.
*RESULT = NUMBER1 + NUMBER2.  "---> Comment This
endcase.


* Make sure your Screen Field names also NUM1, NUM2, RESULT.
* This ensures automatic Data Transfer from Screen to program and vice-versa.

* And most importantly while call these Subscreens from the PBO of Main Screen you need to use
CALL SUBSCREEN SUB INCLUDE SY-REPID DYNNR.
* in TOP Include you need to declare the DYNNR and in above CASE block you need pass correct screen number to DYNNR.

Cheers

Ram

6 REPLIES 6
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
659

where are you displaying your RESULT.

In label,Text box etc.

Just try marking the check box outputfield

Read only

0 Likes
659

Hi Keshu Thekkillam ,

thank you for the reply,

its been marked.

i have 2tabs on 1st TAB I have 2 input screens and on 2 of the i set the values as 2 + 2 so on other 2nd TAB i have result input screen on that i have to get the value 2 + 2 = 4.

but am not getting the value. when i debug i can see the value 4 but not on the output.

what could be the worng please let me know.

regards,

pasala.

Read only

Former Member
0 Likes
659

Hi,

Where did you write this


result = number1 + number2

You should have created a subscreen area on every tab.

Lets say you are calling screen 0111 on this subscreen area. You gotto write this code in this screen's PBO.

Read only

Former Member
0 Likes
660

HI

In *TOP Include* declare NUM1, NUM2, RESULT.

CASE OK_CODE.
WHEN 'TAB1'.
TABSTRIP-ACTIVETAB = 'TAB1'.
DYNNR = 'SCREEN_NUMBER' "--> This point is mentioned beloew
RESULT = NUMBER1 + NUMBER2.  "---Add here
WHEN 'TAB2'.
TABSTRIP-ACTIVETAB = 'TAB2'.
*RESULT = NUMBER1 + NUMBER2.  "---> Comment This
endcase.


* Make sure your Screen Field names also NUM1, NUM2, RESULT.
* This ensures automatic Data Transfer from Screen to program and vice-versa.

* And most importantly while call these Subscreens from the PBO of Main Screen you need to use
CALL SUBSCREEN SUB INCLUDE SY-REPID DYNNR.
* in TOP Include you need to declare the DYNNR and in above CASE block you need pass correct screen number to DYNNR.

Cheers

Ram

Read only

0 Likes
659

thanks ramachader,

sorted by my self... but ur answer was exactly the same

it was name which is different. thats the reason i was not able to get it.

thanks for that.

Read only

Former Member
0 Likes
659

answered