‎2009 Nov 09 6:29 AM
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.
‎2009 Nov 09 6:42 AM
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
‎2009 Nov 09 6:32 AM
where are you displaying your RESULT.
In label,Text box etc.
Just try marking the check box outputfield
‎2009 Nov 09 6:42 AM
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.
‎2009 Nov 09 6:41 AM
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.
‎2009 Nov 09 6:42 AM
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
‎2009 Nov 09 6:51 AM
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.
‎2009 Nov 09 6:52 AM