‎2009 May 28 1:56 PM
Hi,
how to give the text (label) to a radio button in selection screen.
by defualt it is button before the name but i want buton after the label.
‎2009 May 28 1:58 PM
ELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE text-b02.
PARAMETERS: P_PRINT RADIOBUTTON GROUP G1,
P_SPSH RADIOBUTTON GROUP G1.
PARAMETERS: P_FILENM LIKE IBIPPARMS-PATH
DEFAULT 'C:\CVA_Report.xls',
P_MAILID LIKE PFRFCCLI-DEST DEFAULT SY-UNAME.
SELECTION-SCREEN END OF BLOCK b02.
shower if helpful..
REgds,
Manas
‎2009 May 28 1:59 PM
Dear Raj,
Use a line for that in selection screen.
E.g.
Selection-screen : Begin of line.
Parameter : r1 radiobutton group grp.
Parameter : r2 radiobutton grup grp.
Selection-screen : end of line .
Regards,
vijay
‎2009 May 28 2:00 PM
You should give the heading in the Selection text, for that particular Radiobutton.
Follow this:
Click GOTO->TEXT ELEMENTS->SELECTION TEXTS.
there you can find your radio button name, give the text description.
regards,
Padma
‎2009 May 28 2:04 PM
selection-SCREEN begin of line.
SELECTION-SCREEN comment 1(20) text-001.
PARAMETERS: p1 RADIOBUTTON GROUP r1.
selection-SCREEN end of line.
parameters: p2 RADIOBUTTON GROUP r1..in text-001 u give the text u need.
this 100% solves ur need... hope this helps
Edited by: soumya prakash mishra on May 28, 2009 3:04 PM
‎2009 May 28 2:09 PM
Hi,
Even after writing text nad activating the text is not appearing.
‎2009 May 28 2:01 PM
Hi Raj,
by creating a text-symbol u can give label.
sample code is as follows.
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETER: r1 RADIOBUTTON GROUP rg USER-COMMAND r DEFAULT 'X'.
SELECTION-SCREEN: COMMENT 4(15) text-001.
SELECT-OPTIONS: s_matnr FOR mara-matnr
SELECTION-SCREEN: END OF LINE.
Regards,
Ravi
‎2009 May 28 2:03 PM
Hi,
Try this out
SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
selection-screen begin of line.
parameters: p_type radiobutton group grp1.
selection-screen comment 4(15) text-010 for field p_type.
selection-screen position pos_low.
parameters: p_tinput like p2001-awart.
selection-screen end of line.
selection-screen begin of line.
parameters: p_reason radiobutton group grp1.
selection-screen comment 4(17) text-010 for field p_reason.
selection-screen position pos_low.
parameters: p_rinput like p2001-umsch.
selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.
Regards
Ramesh Sundaram
‎2009 May 28 2:09 PM
Hi Raj ,
Inside the SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN END OF LINE.
you need to specify the radiobutton as well as you need to use the COMMENT .
Check the code --
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(10) text-003 FOR FIELD rd1 . "create text-element text-003
PARAMETERS : rd1 RADIOBUTTON GROUP rgb USER-COMMAND usd .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 2(10) text-002 FOR FIELD rd2 . " Create text element text-002
PARAMETERS : rd2 RADIOBUTTON GROUP rgb DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.Here you need to create the text elements text-002 , text-002 .
You can do that double clicking (Forward navigation) in the text-003.
Check the lik - -
[https://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtopositionthetextof+radiobuttons
]
Regards
Pinaki
‎2009 May 28 2:27 PM
what ever i am writing on selection texts or text symbols is not reflecting in the program. Is there any problem with language of the texts?. i see the texts are maintained german
‎2009 May 28 2:32 PM
>
> what ever i am writing on selection texts or text symbols is not reflecting in the program. Is there any problem with language of the texts?. i see the texts are maintained german
what you mean by text maintained in German? Are you not givivng your text description?
was that already there in german?
Text should be in English if your login langauge is ENGLISH.
‎2009 May 28 2:34 PM
Hi Raj ,
I think I is the Activation problem .
Please check the text elements are activated or not and if not activate those
and check the code again.
Regards
Pinaki
‎2009 May 28 3:02 PM
Hi
Please find the code below
Selection-screen Begin of line.
selection-screen comment 4(15) text-013 for field P_dspf .
PARAMETERS: P_DSPF Radiobutton Group R1 USER-COMMAND Action.
selection-screen comment 4(15) text-013 for field P_dspf .
PARAMETERS: P_Edspf Radiobutton Group R1 .
selection-screen comment 24(15) text-014 for field P_EDSPF .
PARAMETERS: T_Run Radiobutton Group R1 .
selection-screen comment 41(25) text-012 for field T_run .
SELECTION-screen end of line.
Also make sure that there should be no overlapping between the text and radio button so make calculation according to that
This could be a problem.
thanks,
Deepanker Dwivedi