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

Parameters and select options

Former Member
0 Likes
959

Hi all,

Im new to abap.

I need your advice.

Is it the only way to control the text to be displayed on screen for Parameters and Select-Options code is to maintain it in Text Elements-> Selectiong Texts?

Any others alternative to do this?

Im modifying ABAP standard report by added new selection options using enhancement point. The selection screen displaying variable name as i used for selection options.

And I do not want to modify the standard report Text Elements-> Selectiong Texts object.

Any comments/suggestions will be greatly appreciated!

Thanks.

Best regards,

Xiang Li Heah

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
872

hi,

you can use INITIALIZATION event

thanks

Hi all,

Im new to abap.

I need your advice.

Is it the only way to control the text to be displayed on screen for Parameters and Select-Options code is to maintain it in Text Elements-> Selectiong Texts?

Any others alternative to do this?

Im modifying ABAP standard report by added new selection options using enhancement point. The selection screen displaying variable name as i used for selection options.

And I do not want to modify the standard report Text Elements-> Selectiong Texts object.

Any comments/suggestions will be greatly appreciated!

Thanks.

Best regards,

Xiang Li Heah

5 REPLIES 5
Read only

Former Member
0 Likes
873

hi,

you can use INITIALIZATION event

thanks

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
872

Hi,

Refer the below code to add a comment:


SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text-001. "radiobutton 1 text
PARAMETERS : p_rb1 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN COMMENT 25(15) text-002. "radiobutton 2 text
PARAMETERS : p_rb2 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN COMMENT 50(15) text-003. "radiobutton 3 text
PARAMETERS : p_rb3 RADIOBUTTON GROUP gp1.
SELECTION-SCREEN END OF LINE.

Hope this helps you.

Regards,

Tarun

Read only

faisalatsap
Active Contributor
0 Likes
872

Hi,

Test the Code Bellow.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 2(20) para.
PARAMETERS: pa TYPE string.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 2(20) sele.
SELECT-OPTIONS: so for sy-datum.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
para = 'Parameters'.
sele = 'Select-Option'.

Best Regards,

Faisal

Read only

Former Member
0 Likes
872

hi,

refere the code below......

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS : S_SDDATE FOR VBAK-AUDAT , " Sales Document Date

S_VBELN FOR VBAK-VBELN , " Sales Document

S_KUNNR FOR VBAK-KUNNR , " Sold To Party

S_ORSN FOR VBAK-AUGRU . " Order Reason

SELECTION-SCREEN END OF BLOCK b2.

Read only

Former Member
0 Likes
872

Hi,

You cannot change ABAP Standard Program which is provided by SAP until and unless u have access key.

To Change parameters/select-options texts, you have to go to text elements as u said.

if you wanna get default values in parameters/select-options, use INITIALIZATION.

orelse go thorugh ABAP Dictionary, you will find few examples on parameters to write different kind of syntaxes.

Regards

Rama Krishna G