Documente Academic
Documente Profesional
Documente Cultură
VT01N
Hi All.
I found in the internet's Depth the solution of this question.
My explain - how todo :
*--------------------------------------------------------------------*
* Change the original GUI Status to Customer ( modified )
*--------------------------------------------------------------------*
DATA: ls_ta_control LIKE LINE OF c_ta_control.
*--------------------------------------------------------------------*
FIELD-SYMBOLS <cua> LIKE LINE OF c_cua_control.
*--------------------------------------------------------------------*
* Set a custom status which includes the button required to navigate
* to the Extra data screen. This status will dynamically be called
* from the program control and is a copy of the standard status of the
* screen 1020
*--------------------------------------------------------------------*
READ TABLE c_cua_control ASSIGNING <cua>
WITH KEY progname = 'SAPMV56A'
dynpro = '1020'
trtyp = '*'.
IF sy-subrc = 0.
" Customer program , that will call F.M. with additional Data ( CID )
<cua>-statprog = 'ZPW_CID'.
" Copied from original prog of VT01 - SAPMV56A
<cua>-status = 'TRA_MAIN'.
ENDIF.
*--------------------------------------------------------------------*
* Set the form to perform when the user selects the new button using
* the custom status above. Move the appropriate settings to the
* C_TA_CONTROL table.
* Extra data screen
*--------------------------------------------------------------------*
CLEAR ls_ta_control.