‎2009 May 27 9:06 PM
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
‎2009 May 27 9:13 PM
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
‎2009 May 27 9:13 PM
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