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

LAYOUT commands

Former Member
0 Likes
493

see i am ok with the subroutine end.

But how can i call it from the layout? what should i define there in parameter option.

I am doing this coding

DEFINE &SPELL-WORD& = '&mysymbol&'

PERFORM AMT_WORDS IN PROGRAM ZSUBROUTINE1

USING &REGUD-SWNES&

USING &SPELL-WORD&

ENDPERFORM

&mysymbol&

i am not getting the required result

2 REPLIES 2
Read only

Former Member
0 Likes
340

see i am ok with the subroutine end.

But how can i call it from the layout? what should i define there in parameter option.

I am doing this coding

DEFINE '&mysymbol&' = &SPELL-WORD&

PERFORM AMT_WORDS IN PROGRAM ZSUBROUTINE1

USING &REGUD-SWNES&

USING &mysymbol&

ENDPERFORM

&mysymbol&

i am not getting the required result

Read only

0 Likes
340

It seems you have to rewrite the DEFINE statment as follows

DEFINE &mysymbol& = &SPELL-WORD& (with out quotes)

For more information please read

http://help.sap.com/saphelp_46c/helpdata/en/d1/803279454211d189710000e8322d00/content.htm - PERFORM

http://help.sap.com/saphelp_46c/helpdata/en/d1/8031d0454211d189710000e8322d00/content.htm - DEFINE

Thanks

Vinod