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

ABAP Error-VA41

Former Member
0 Likes
1,329
capture.png

Hello All,

Please note that I am getting the error as defined in the screenshot attached.

I am new to ABAP can someone please help me regarding this error.

Soliciting your kind response in this regard.

5 REPLIES 5
Read only

satyapriyanka_vana
Active Participant
0 Likes
1,208

Hi,

Did you define ZCFORM_CUST globally? if not, define it in the subroutine USEREXIT_READ_DOCUMENT locally.

Regards,

Priyanka.

Read only

0 Likes
1,208

Hello,

Thanks for your prompt reply.

Please can you let me know how to do the same.

Should I declare an itab.

Read only

0 Likes
1,208

What is the data type of ZCFORM_CUST?

If you are not aware of that,go to the function module ZCUST_FORM_READ. In export parameters find the data type of ZCFORM_CUST. Declare it using DATA: ZCFORM_CUST type 'data type'.

Read only

former_member235395
Contributor
0 Likes
1,208

Hi Saurav,

Like said Priyanka, first define ZCFORM_CUST either globally or manually, and when do that be sure to use same Associate Type has defined in "ZCUST_FORM_READ" FM for ZCFORM_CUST parameter. If not do that, you will get a DUMP.

Regards,

Read only

anand_sagarsethi
Contributor
0 Likes
1,208

tcode: se37 and open FM: ZCUST_FORM_READ

go to export tab and copy the associated type defined against zcform_cust.

go to se38 and open me45afzz

go to line no 224

and write:

data: zcform_cust type "associated type you copied". then you are good.

Anand