Hi gurus,
My program is a copy of the standard one RQDSES20 for printing sample drawing instruction. Based on the setting in the control key of the inspection plan, I would like to automatically print or not print sample drawing instruction @ MIGO. The standard program does not check operation control key and SAP does not want to write a correction instruction as they did in oss note 441035 for the printing program of inspection instructions. They gave me some advice, but I'm unable to let it work:
IMPORT prlst_tmp
lsproben TO g_lsproben
qamvtab TO g_qamvtab
qapotab TO g_qapotab
qasvtab TO g_qasvtab
qmhutab TO g_qmhutab
qpmltab TO g_qpmltab
i_qals TO qals
i_first_print TO g_first_print
i_print_message TO g_print_message FROM MEMORY ID 'QM_PRT01'.
move g_qapotab-vorsteus to l_vorsteus.
CALL FUNCTION 'T430_READ'
EXPORTING
spras = 'EN'
steus = l_vorsteus
MSGTY = 'S'
IMPORTING
struct = l_t430
TEXT =
EXCEPTIONS
no_entry = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
......
IF l_t430-vrgd IS INITIAL.
prlst_tmp-copys = 0.
ENDIF.
During debugging ( in the globals tab) I can see g_qapotab getting filled, also the field g_qapotab-vorsteus gets his value 'ZQM5', but when I want to use this value l_vorsteus stays empty.
Can any one help?
Thanks,
Suzy