05-17-2011 8:15 AM
i am setting parameter in fiels exit and using its value in user exit but its fist time set value is comming all the times in user exit
irrespective of changes in parameter in field exit .
code in field exit
free memory id 'FXIT'.
IF input IS INITIAL AND st1 IS INITIAL AND st2 IS INITIAL.
flg = ' Y'.
SET PARAMETER ID 'FXIT' FIELD flg.
"export flag to memory id flag_txt.
" message 'ENTER VAT Registration Number OR Tax Code OR Tax No. 2 ' type ''.
ENDIF.
code in user exit
data flg_N(2) type c.
clear flg_N.
"IMPORT FLG FROM MEMORY ID 'FLAG'.
get parameter id 'FXIT' field flg_N.
if flg_N eq 'Y '.
free memory id 'FXIT'.
message 'ENTER VAT Registration Number OR Tax Code OR Tax No. 2 ' type 'E'.
endif.
05-17-2011 8:40 AM
[FREE MEMORY ID |http://help.sap.com/abapdocu_70/en/ABAPFREE_MEMORY.htm]'FXIT' wont reset the SET PARAMETER ID, Use a [SET PARAMETER ID|http://help.sap.com/abapdocu_70/en/ABAPSET_PARAMETER.htm] 'FXIT' FIELD space.
Regards,
Raymond
05-17-2011 8:40 AM
[FREE MEMORY ID |http://help.sap.com/abapdocu_70/en/ABAPFREE_MEMORY.htm]'FXIT' wont reset the SET PARAMETER ID, Use a [SET PARAMETER ID|http://help.sap.com/abapdocu_70/en/ABAPSET_PARAMETER.htm] 'FXIT' FIELD space.
Regards,
Raymond
05-17-2011 9:49 AM
SET PARAMETER ID 'FXIT' FIELD space.
FXIT is always contain Y wether it is reset in field exit
05-17-2011 9:58 AM