03-23-2009 3:20 PM
Hello Friends,
Using BDT , I have added the push buttons on one of the sub-screens.
The dialog I am using has the subscreens sequentially.
When I scroll down , This screen elements sticks on the same position and does not move.
It appears as if those screen elements belong to all subscreen.
Is there anyway to assign subscreen with specific subscreen.
Can you give any guidance on solving this issue
Thanks
Santhosh
03-24-2009 10:27 AM
03-24-2009 10:24 AM
FORM compute_scrolling_in_tc USING p_tc_name
p_ok.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA l_tc_new_top_line TYPE i.
DATA l_tc_name LIKE feld-name.
DATA l_tc_lines_name LIKE feld-name.
DATA l_tc_field_name LIKE feld-name.
FIELD-SYMBOLS <tc> TYPE cxtab_control.
FIELD-SYMBOLS <lines> TYPE i.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (p_tc_name) TO <tc>.
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' p_tc_name '_LINES' INTO l_tc_lines_name.
ASSIGN (l_tc_lines_name) TO <lines>.
*&SPWIZARD: is no line filled? *
IF <tc>-lines = 0.
*&SPWIZARD: yes, ... *
l_tc_new_top_line = 1.
ELSE.
*&SPWIZARD: no, ... *
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
entry_act = <tc>-top_line
entry_from = 1
entry_to = <tc>-lines
last_page_full = c_x
loops = <lines>
ok_code = p_ok
overlapping = c_x
IMPORTING
entry_new = l_tc_new_top_line
EXCEPTIONS
NO_ENTRY_OR_PAGE_ACT = 01
NO_ENTRY_TO = 02
NO_OK_CODE_OR_PAGE_GO = 03
OTHERS = 0.
ENDIF.
*&SPWIZARD: get actual tc and column *
GET CURSOR FIELD l_tc_field_name
AREA l_tc_name.
IF syst-subrc = 0.
IF l_tc_name = p_tc_name.
*&SPWIZARD: et actual column *
SET CURSOR FIELD l_tc_field_name LINE 1.
ENDIF.
ENDIF.
*&SPWIZARD: set the new top line *
<tc>-top_line = l_tc_new_top_line.
ENDFORM. " COMPUTE_SCROLLING_IN_TC
03-24-2009 10:27 AM
03-27-2009 6:52 PM
Hello Jani,
Thanks for the information given. I think ,I think I did not explain my issue well.
Let me try to explain it.
This is BDT screen having many subscreens , for example , screen x, screen y,screen z
I have a include a text field in screen y , It works fine.
When I scroll down and up , the BDT screen , This element is fixed in same position in SAP screen.
I guess , it may be GUI problem.
If u get any idea , Pls let me know
Thanks
Santhosh