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

parameter

Former Member
0 Likes
1,395

Hi,

I have to give only one parameter in program ,please can you give me an example

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,372

hi ali,

u can give it this way.

parameters : cust like kna1-kunnr.

for radio button u can declare this way.

parameters : a1 radiobutton group g1.

Regards....

Arun.

Reward points if useful.

14 REPLIES 14
Read only

Former Member
0 Likes
1,372

parameter p_matnr type mara-matnr.

Read only

0 Likes
1,372

For radio button i have to give parameter,

Help me in this

Read only

0 Likes
1,372

HI ali,

<b>

Just copy and paste..........this.....</b>

parameters :

p_radio1 RADIOBUTTON GROUP r1,

p_radio2 RADIOBUTTON GROUP r1.

<b>

Reward all helpful answers.</b>

Regards,

V.Raghavender

Read only

0 Likes
1,372

I need radio button for single parameter, please help me.

Read only

0 Likes
1,372

Hi Ali,

PARAMETERS : p_backgd RADIOBUTTON GROUP rad1

USER-COMMAND radio DEFAULT 'X'.

PARAMETERS : p_sumrep RADIOBUTTON GROUP rad1 .

Regards,

Priyanka.

Read only

0 Likes
1,372

Hi,

PARAMETERS: P_ATTRB RADIOBUTTON GROUP XXXX DEFAULT 'X'.

PARAMETERS: P_DETAIL RADIOBUTTON GROUP XXXX.

If you are using only one parameter, then whats the need for radiobutton group.

You can process with one parameter alone.Only fi you want to do this or that then you can use radiobutton group.See the above for example.

Thanks,

Ponraj.s.

Read only

0 Likes
1,372

Hi ali,

<b>IT IS NOT POSSIBLE......</b>

bcz the defination of RADIOBUTTON is violated......

Even I tested this in my SAP system too....

Try defining to define only one RADIO button......IT through an error saying that......" Only one RADIO button is here."

Ali read the following snippet.......it is very clear....

To define the input field of a parameter as a radio button, you use the following syntax:

PARAMETERS p ...... RADIOBUTTON GROUP <radi>......

Parameter p is created with type C and length 1, and is assigned to group radio. The maximum length of string radio is 4. You can use additions TYPE and LIKE, but you must refer to a field of type C with length 1. <b>You must assign at least two parameters to each <b>radio group</b>.</b> Only one parameter per group can have a default value assigned using the DEFAULT addition. The default value must be 'X'. If you do not use the DEFAULT addition, the first parameter of each group ist set to 'X'.

When the user clicks a radio button on the selection screen, the respective parameter is assigned the value 'X', while all other parameters of the same group are assigned the value ' '.

Example:

REPORT DEMO.

PARAMETERS: R1 RADIOBUTTON GROUP RAD1,

R2 RADIOBUTTON GROUP RAD1 DEFAULT 'X',

R3 RADIOBUTTON GROUP RAD1,

S1 RADIOBUTTON GROUP RAD2,

S2 RADIOBUTTON GROUP RAD2,

S3 RADIOBUTTON GROUP RAD2 DEFAULT 'X'.

****************************************

<b> Reward all helpful answers.</b>

Regards,

V.Raghavender.

Read only

0 Likes
1,372

if you only want one are you sure you don't want a checkbox?

Read only

0 Likes
1,372

Hi ,

PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',

R2 RADIOBUTTON GROUP RAD1,

R3 RADIOBUTTON GROUP RAD1.

Check this and reward points.

Thanks,

Rohan

Read only

Former Member
0 Likes
1,373

hi ali,

u can give it this way.

parameters : cust like kna1-kunnr.

for radio button u can declare this way.

parameters : a1 radiobutton group g1.

Regards....

Arun.

Reward points if useful.

Read only

Former Member
0 Likes
1,372

Hi

If you want to have parameter field without any selction screen block then use :

Parameter p_field like <data dictionary field>.

Thanks

sandeep

Reward if helpful

Read only

Former Member
0 Likes
1,372

Hi,

declare it as follows.

PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio.

regards,

kiran kumar k

Read only

Former Member
0 Likes
1,372

you can hide one , but whats the use of that

chk this

REPORT ychatest LINE-COUNT 30.

PARAMETERS : r1 RADIOBUTTON GROUP rad,
             r2 RADIOBUTTON GROUP rad.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name EQ 'R2'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Read only

Former Member
0 Likes
1,372

ali,

In se38 enter programe name as DEMO and press F4 you will get demo programs.

OR

goto tcode ABAPDOCU you will get all examples.

Don't forget to reward if useful.