‎2006 May 31 5:57 PM
I have an user exit and i got the error GETWA_NOT_ASSIGNED the user exit is for Purchase Orders and in the code i have copied some standard that manage some data for each position. The user exit is executed many times per position, in some execution the assignment execute
ASSIGN (W_PROG3) TO <FS_T3>.
and the variable in W_PROG3 doesn't exists and there's a dump.....
What i can do in that case......
Regards
‎2006 May 31 5:59 PM
hi before you assign to field symbol <fs_t3>
check w_prog3 is not initial.
if w_prog3 is not inital then assign to field symbol
‎2006 May 31 6:04 PM
Hi,
Basically, it means the field symbol assignment couldn't be done. Need to look at your code.
Your code is tring to dynamically assign a variable, which is inside another variable (W_PROG3) to the field-symbol <FS_T3>.
And also, as you said, check the varible W_PROG3, create it if missing and also check what variables/table fields are being paased to the varible W_PROG3.
Regards,
‎2006 May 31 6:09 PM
(W_PROG3) never is initial it has "(SAPLRWCL)T_ACCIT[]" and the problem in that THIS variable T_ACCIT[] doesn´t exists in some execution of the user exit, al this is for he user exit EXIT_SAPLKEDRCOPA_001
‎2006 May 31 6:10 PM
Hi Oscar..
Pls verify that the W_Prog3 is getting populated correctly...
also after the assign statement...check the sy-subrc value and make sure it is 0.....if it is not zero then the assign was unsuccessful and if you try to operate on the field sysmbol...you will get a short-dump...
Thanks,
Renjith
‎2006 May 31 6:11 PM
Since you are assigning the reference and if the reference is null its dumping. Check for the value that (W_PROG3) refers to and if its not initial process your logic, if not do the exception handling or skip the logic.
Lets say:
DATA: field(30) VALUE '(SAPLV56U)I_XVTTK[]'.
ASSIGN (field) TO <fs1>.
if sy-subrc eq 0.
Normal program flow.
else.
Exception Handling/Exit Logic
endif.
Hope it helps.
Sunil Achyut
‎2006 May 31 6:26 PM
Variable W_PROG3 is text variable like your suggestion and tha code gives me a dump
Message was edited by: Oscar Diaz