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

subroutin

Former Member
0 Likes
1,017

Hi,

I am declaring the subroutin as follows:

FORM entry_ch USING return_code us_screen TYPE C

But it's saying "HAVE TYPE DECLARATIONS FOR PARAMETERS PASSED IN SUBROUTINES"

can you please tell what is this???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
992

well you forgot to give a type for return code. one type for 2 variables doesnt work.

Hi,

I am declaring the subroutin as follows:

FORM entry_ch USING return_code us_screen TYPE C

But it's saying "HAVE TYPE DECLARATIONS FOR PARAMETERS PASSED IN SUBROUTINES"

can you please tell what is this???

7 REPLIES 7
Read only

Former Member
0 Likes
993

well you forgot to give a type for return code. one type for 2 variables doesnt work.

Read only

0 Likes
992

Hey Florian Kemmer

yeh i had done stupidity...any ways thanks for the reply

Read only

Former Member
0 Likes
992

Hi GInger,

Try:

FORM entry_ch USING return_code TYPE sysubrc

us_screen TYPE C

Regards,

John.

Read only

Former Member
0 Likes
992

Hi

your code should be as below

FORM entry_ch USING return_code type sy-subrc

us_screen TYPE C

Read only

Former Member
0 Likes
992

hi,

form entry_ch using return_code us_screen.

endform.

this ll do bcoz type c is default type.........

Read only

0 Likes
992

LOL and type C is WRONG for return code it needs i.

Read only

Former Member
0 Likes
992

Hi,

use

FORM entry_ch USING return_code type sy-subrc

us_screen TYPE C

or else you can use in this way also.

FORM entry_ch USING return_code type any

us_screen TYPE any.

before doing above please enure that you are passing the variables properly.