Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GETWA_NOT_ASSIGNED Error

Former Member
0 Likes
969

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

6 REPLIES 6
Read only

Former Member
0 Likes
824

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

Read only

Former Member
0 Likes
824

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,

Read only

Former Member
0 Likes
824

(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

Read only

Former Member
0 Likes
824

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

Read only

Former Member
0 Likes
824

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

Read only

Former Member
0 Likes
824

Variable W_PROG3 is text variable like your suggestion and tha code gives me a dump

Message was edited by: Oscar Diaz