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

Routine In Program giving syntax error

Former Member
0 Likes
841

Hi All,

I am calling below FORM from Script in 4.6C Version.

/: PERFORM GET_YY42V_ACTID

IN PROGRAM Y42S_FORM_POOL

/: USING &VBELN&

/: USING &POSNR&

/: CHANGING &ACTID&

Y42S_FORM_POOL is a function pool.

FORM GET_YY42V_ACTID USING TABLES in_par

structure itcsy

out_par structure itcsy .

read table in_par with key 'VBELN' .

ENDFORM. " GET_YY42V_ACTID

When I do syntax check getting below message:

in_par is not defined as tables nor as Internal Table.

Why i am getting this error?????

2. i then left the routine without any code and activated.

And this time while in Debugging checked that from Print Program control went to SAP code:

perform (co_perform-form) in program (co_perform-program)

tables co_sym_using

co_set_symbols

if found.

co_perform-form & co_perform-program contains correct

script name and Routine Pool names.

But after pressing F%its going for Dump ...

No Clues on that ?????????

getting message:

Runtime errors PERFORM_TOO_MANY_PARAMETERS

Exception CX_SY_DYN_CALL_PARAM_NOT_FOUND

Occurred on 2008/08/29 at 09:14:38

Too many parameters specified with PERFORM.

Any idea about this problem.

Thanks in advance.

Praveen

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
653

1) FORM GET_YY42V_ACTID TABLES in_par

structure itcsy

out_par structure itcsy .

The USING parameter is wrong. Check again the syntax of FORM. This leads to the second problem as with what you had, it considers TABLE, in_par structure itcsy out_par structure itcsy to all be parameters.

matt

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
654

1) FORM GET_YY42V_ACTID TABLES in_par

structure itcsy

out_par structure itcsy .

The USING parameter is wrong. Check again the syntax of FORM. This leads to the second problem as with what you had, it considers TABLE, in_par structure itcsy out_par structure itcsy to all be parameters.

matt

Read only

Former Member
0 Likes
653

Sorry that was my typing error.

USING is not written in the Code.

Praveen

Read only

Former Member
0 Likes
653

Hi,

Is your Problem solved?

If not Plz check whether you have written ENDPERFORM when calling the subroutine.

Also Remove USING in

FORM GET_YY42V_ACTID USING TABLES in_par

Regards

Manasa