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

syntax error in form parameters

Former Member
0 Likes
495

HI,

In ECC 6.0, LIKE is obsolete , so I want to change it to TYPE. I replaced all LIKE to TYPE. In my code I call a form subroutine and in the changing parameter i have two internal tables passed. Earlier the statement was

PERFORM zz_routine USING I_VBAK

CHANGING T_VBUK[]

T_VBAP[].

where I_VBAK TYPE VBAK and

T_VBUK TYPE STANDARD TABLE OF VBUKVB.

T_VBAP TYPE STANDARD TABLE OF VBAPVB.

Now in the recieving paramters how do I mention these using TYPE

I did as follows

Form zz_routine USING value(ss_vbak) TYPE VBAK

CHANGING xt_vbuk TYPE STAnDARD TABLE OF VBUKVB

xt_vbap TYPE STAnDARD TABLE OF VBAPVB

Now, I get the syntax error

"OF" has already been declared.

What does that mean ? what is the correct way to say that I need to receive a table type data in the form ?

thnks

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
439

Declare a Table Type which you can use to reference in your Form Parameters.

Like:


types: ty_t_vbap type standard table of VBAPVB.
data: t_vbap type ty_t_vbap.

PERFORM zz_routine using ia_vbak 
changing t_vbap.

Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbap type ty_t_vbap.

ENDFORM.

Regards,

Naimesh Patel

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
440

Declare a Table Type which you can use to reference in your Form Parameters.

Like:


types: ty_t_vbap type standard table of VBAPVB.
data: t_vbap type ty_t_vbap.

PERFORM zz_routine using ia_vbak 
changing t_vbap.

Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbap type ty_t_vbap.

ENDFORM.

Regards,

Naimesh Patel