get dyanamic page change in smartforms
DESCRIBE TABLE gt_vbak_vbap LINES lv_lines.
CLEAR gs_vbak_vbap.
LOOP AT gt_vbak_vbap INTO gs_vbak_vbap.
lv_tabix = sy-tabix.
IF s_vbeln-high IS NOT INITIAL .
CASE lv_tabix.
WHEN 1.
control-no_open = space.
control-no_close = 'X'.
WHEN lv_lines.
control-no_open = 'X'.
control-no_close = space.
WHEN OTHERS.
control-no_open = 'X'.
control-no_close = 'X'.
ENDCASE.
ENDIF.
CLEAR gs_vbak_vbap.
LOOP AT gt_vbak_vbap INTO gs_vbak_vbap.
lv_tabix = sy-tabix.
IF s_vbeln-high IS NOT INITIAL .
CASE lv_tabix.
WHEN 1.
control-no_open = space.
control-no_close = 'X'.
WHEN lv_lines.
control-no_open = 'X'.
control-no_close = space.
WHEN OTHERS.
control-no_open = 'X'.
control-no_close = 'X'.
ENDCASE.
ENDIF.
Comments
Post a Comment