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

replacing a string in variant

kamesh_g
Contributor
0 Likes
702

hi gurus

i have requirement here .

on selection screen i have file parameter which is like below

EG: /interface/<S>/tmp

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

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

can anyone help on this if anybody worked on this .

Thanks for quick reply .

5 REPLIES 5
Read only

former_member537489
Participant
0 Likes
646

Hi,

why is the lines deleted? is it by mistake?

Read only

0 Likes
646

its by mistake .. i dont know.... y posted like thta

Read only

Former Member
0 Likes
646

can you cleary mention your problem. i could not understand anything..

if only just replacement of the variant with system id means, apply the following logic:

At selection-screen on <fileparametername>.

replace string 'tmp' with 'interface/sy-sysid/tmp' in the string <fileparametername>.

the above statement is not exact, check the F1, but procedure is the same.

Read only

0 Likes
646

hi

my problem wont solve with At selection screen events . i have checked with all . when we click on variant symbol on selection then the string should replace.

Read only

0 Likes
646

Hello,

Do you mean that you ae trying to select a variant from your program, and it doesnot work?

Roxani