Application Development 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: 

radio button missery

Former Member
0 Kudos

Im just giving a name to one of the items of my radio button. one of the item was named STRAWBERRY. I compiled the program and got this error:

The parameter name ("STRAWBERRY" here) can be up to 8 characters long.

Does this mean ABAP cant allow more than 8 character on an item name of a radio button? Doesnt sound good and logical for me. im just a newbie. how to solution this? What if i need a name longer than 8 characters or what if I need 3 words on that name?

thanks for the help.

1 ACCEPTED SOLUTION

former_member588853
Active Contributor
0 Kudos

HI,

Eg:

go to se38..

parameters: p_mypar TYPE C LENGTH 15,

rd1 TYPE flag RADIOBUTTON group g1," default 'X' MODIF ID ID1 ,

rd2 TYPE flag RADIOBUTTON group g1 MODIF ID ID2 ,

rd3 TYPE flag RADIOBUTTON group g1 MODIF ID ID3.

Save it.

<i>In the program Parameters allows you only 8 character lenth. instaed you can go to text elements and give your text..</i>

Now on top <b>GOTO --> TEXT ELEMENTS -- > selection text</b>

and write <b>strawberry</b> in RD1.

and activate it and also the program.

It allows yyou 30 character length.

you will get the text for radio butoon.

rewards if useful,

regards,

nazeer

9 REPLIES 9

former_member188827
Active Contributor
0 Kudos

wen u use parameters statement regardless of whether u r using 'as radiobutton ' addtion or not, it allows only names with eight characters,,same holds true for select-options as we..

former_member588853
Active Contributor
0 Kudos

HI,

Eg:

go to se38..

parameters: p_mypar TYPE C LENGTH 15,

rd1 TYPE flag RADIOBUTTON group g1," default 'X' MODIF ID ID1 ,

rd2 TYPE flag RADIOBUTTON group g1 MODIF ID ID2 ,

rd3 TYPE flag RADIOBUTTON group g1 MODIF ID ID3.

Save it.

<i>In the program Parameters allows you only 8 character lenth. instaed you can go to text elements and give your text..</i>

Now on top <b>GOTO --> TEXT ELEMENTS -- > selection text</b>

and write <b>strawberry</b> in RD1.

and activate it and also the program.

It allows yyou 30 character length.

you will get the text for radio butoon.

rewards if useful,

regards,

nazeer

Former Member
0 Kudos

<b>thanks NAZEER!</b>

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

HI,

Sounds strange but that is a fact , you can not specify more than 8 char for any selection parameters..

Work-around : You can write a comment for that radio-button.

*hope this helps.

Former Member
0 Kudos

In the program, on the top

Goto->text elements->selection text

there you can write whatever you want in the text field which corresponds to each parameter.

Please reward the helpful entries.

Regards,

Raman.

Former Member
0 Kudos

Hi,

As per Abap naming space the length of parameter should not be more than 8 characters.

You can create with 4 to 5 characters and you cnange in selection text more than 8 charcters.

Hope this info will help you.

Rewards points if helpful

With Regards,

K K V

Former Member
0 Kudos

hi,

You name your radio button inside the program as r_1 or whatever you want but length within 8.To display the name you wanted for example strawberry,follow this process.

In abap editor ,Goto->text elements->selection texts.Enter the text you wanted next to the radio button

Former Member
0 Kudos

hi,

in abap the name for parameter should be upto 8 characters only. it doesn't mean that u can have have only 8 characters. i.e for declaring it takes maximum as 8 characters and so u declare within of 8 characters but when displaying the selection screen for u can give ur own length and name for that declared parameter as

after u code ur program -> click on goto -> text elements -> select selection texts -> give ur name of wished length -> save n activate -> back -> activate ur program.

in o/p screen that name is displayed for u.

for ex:

parameters: strawber type radiobutton group g1 ///// name of radiobutton is strawber in ur program

after u did above navigation n can change that radio button name from strawber to strawberryyyyyyyyyyyyyy in that o/p selection screen.

if helpful reward some points.

with regards,

Suresh Aluri.

Former Member
0 Kudos

<b>it is done. thanks to all.</b>