Application Development 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: 

Hi gurus Pls give me coding for Replace to resolve my confusion

Former Member
0 Kudos

HI,

Pls Give me coding for this query

Replace ‘*’ in the path P_PATH by the system ID (sy-sysid)

P_PATH IS PARAMETER WITH PATH TO APPLICATION SERVER FILE(AL11)

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use the REPLACE keyword : REPLACE <str1> WITH <str2> INTO <c>

REPLACE '*' WITH SY-SYSID INTO P_PATH.

This might help you.

Regards,

Hemant.

Former Member
0 Kudos

Try this...

REPLACE ALL OCCURRENCES OF '*' IN P_PATH WITH sy-sysid.

Faaiez
Advisor
Advisor
0 Kudos

Hi

The code is:

Replace '*' with sy-sysid in p_path in character mode.

Rgards

Clemenss
Active Contributor
0 Kudos

Hi,

REPLACE ‘*’ IN P_PATH WITH sy-sysid.

see also <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db997b35c111d1829f0000e829fbfe/content.htm">Replacements in Character Strings</a>

and

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb33cc358411d1829f0000e829fbfe/content.htm">Obsolete Statements for Character Strings</a>

Regards,

Clemens