‎2007 Apr 20 9:54 AM
Hi,
I have to give only one parameter in program ,please can you give me an example
Thanks
‎2007 Apr 20 9:56 AM
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.
‎2007 Apr 20 9:55 AM
‎2007 Apr 20 9:56 AM
‎2007 Apr 20 9:57 AM
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
‎2007 Apr 20 9:58 AM
‎2007 Apr 20 9:58 AM
Hi Ali,
PARAMETERS : p_backgd RADIOBUTTON GROUP rad1
USER-COMMAND radio DEFAULT 'X'.
PARAMETERS : p_sumrep RADIOBUTTON GROUP rad1 .
Regards,
Priyanka.
‎2007 Apr 20 9:59 AM
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.
‎2007 Apr 20 10:01 AM
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.
‎2007 Apr 20 10:12 AM
if you only want one are you sure you don't want a checkbox?
‎2007 Apr 20 10:14 AM
Hi ,
PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1,
R3 RADIOBUTTON GROUP RAD1.
Check this and reward points.
Thanks,
Rohan
‎2007 Apr 20 9:56 AM
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.
‎2007 Apr 20 9:57 AM
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
‎2007 Apr 20 9:58 AM
Hi,
declare it as follows.
PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio.
regards,
kiran kumar k
‎2007 Apr 20 9:58 AM
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.
‎2007 Apr 20 9:59 AM
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.