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

String replacement in variant

kamesh_g
Contributor
0 Likes
660

hi gurus

i have requirement here .

on selection screen i have file parameter which is like below

EG: /interface//tmp

now my requirement is when i click on variant symbol on selection screen the should be replaced by <SYSID>.

reuired path : /interface/<SYSID(SAP SYSID)>/tmp.

can anyone help on this if anybody worked on this .

<removed_by_moderator>

Edited by: Julius Bussche on Apr 9, 2009 2:09 PM

6 REPLIES 6
Read only

Former Member
0 Likes
632

Hi,

you can modify the parameter value in the at selection-screen event.

Regards,

Leo

Read only

0 Likes
632

please work on this and if u got good solution let me know plz becuase i have tried with at selction sceen event

Read only

0 Likes
632

Hi,

use the event At selection-screen output.

check SY-SLSET <> space.

p_par = <the value required>.

Regards,

Leo.

Edited by: Ierardi Leo on Apr 9, 2009 12:26 PM

Read only

0 Likes
632

hi

i have checked with this not working

Read only

Former Member
0 Likes
632

Hi,

For this requirement you can check in debugging mode sy-ucomm value when you press the variant button.

And you can use concatenate statement to fetch the file path and then assign the file path to I/O field on selection screen.

Hope it resolve the issue.

Regards,

Nitin

Read only

Former Member
0 Likes
632

Create a Logical File path using transaction FILE and assign the physical path as /interface/<SYSID>>/tmp/<FILENAME>. Now call FILE_GET_NAME_USING_PATH in your AT Selection-screen Event to convert the logical file path to physical one and pass it to your parameter.

Regards,

R