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

Perform Test in program ZTEST.(USERXXIT)

Former Member
0 Likes
528

Hi,

I am calling form/endform Test from program ZTEST in to userexit

FORM USEREXIT_MOVE_FIELD_TO_VBAK.

Perform Test in program ZTEST.

UPDATE TAVRVC SET NAME = V_MNO.

ENDFORM.

but while testing/creating(VA01) it leads to shortdump/syntax error.

the syntax errors r varialbels, which i declared V_MNO as variableV_NO type C in in ZTEST program.

HOW TO AVOID this syntax error, and how to declare variables in ZTEST prog.

Thanks.

Rao.

Hi,

I am calling form/endform Test from program ZTEST in to userexit

FORM USEREXIT_MOVE_FIELD_TO_VBAK.

Perform Test in program ZTEST.

UPDATE TAVRVC SET NAME = V_MNO.

ENDFORM.

but while testing/creating(VA01) it leads to shortdump/syntax error.

the syntax errors r varialbels, which i declared V_MNO as variableV_NO type C in in ZTEST program.

HOW TO AVOID this syntax error, and how to declare variables in ZTEST prog.

Thanks.

Rao.

1 REPLY 1
Read only

Former Member
0 Likes
427

It seem the variable V_MNO is declared in ZTEST program. So its scope is within that program only. If you want the value to be conveyed back to the user exit body, from which you are calling the program, use parameters for the FORM TEST with CHANGING clause. Also you would need to declare V_MNO in the user exit with the same type as that is declared in ZTEST.

I hope this is clear.