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

hadcoding selection screen text not in text elements

Former Member
0 Likes
1,373

Hi

Is there any ways to hardcode the selection text into the selection rather then including it in a text element.

Thanks

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
832

No. Why would you want to, anyway?

well, theoretically you could by doing your own screen design, but what would be the point - it'd be painful and you wouldn't achieve much. If you're concerned about the appearance when logging in on another language, it's easy enough to write a program that will copy English texts, for example, to the other language in the text pool, if no such text already exists.

matt

Read only

Former Member
0 Likes
832

Hi Matt

So can u please help me about copying texts to english...

Thanks

Read only

andrea_olivieri
Contributor
832

Hi,

it's possible to fill the selection texts dinamically in the INITIALIZATION event of you report.

The statement to fill the selection text:


%_<NAME OF PARAMETER/SELECT OPTIONS>_%_app_%-text = 'Text from INITIALIZATION'.

Hereafter an example:


SELECT-OPTIONS: strkorr  FOR w_aux_strkorr ,  "Request
                spgmid   FOR w_aux_pgmid,     "Program ID
                sobject  FOR w_aux_object,    "Object Type
                sobjname FOR w_aux_obj_name.  "Object Name
SELECTION-SCREEN SKIP 1.
PARAMETERS: rfcdes TYPE  rfcdes-rfcdest OBLIGATORY . "Remote Destination

INITIALIZATION.

* Fill Dynamic texts
  %_strkorr_%_app_%-text  = 'Request'.
  %_spgmid_%_app_%-text   = 'Program ID'.
  %_sobject_%_app_%-text  = 'Object Type'.
  %_sobjname_%_app_%-text = 'Object Name'.
  %_rfcdes_%_app_%-text   = 'Remote Dest.'.

Kind Regards.

Andrea

Edited by: Andrea Olivieri on Jul 1, 2009 5:39 PM