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

Your input required

Former Member
0 Likes
538

hi all ,

in my program i am using function module READ_STDTEXT because of this function module i am getting standard text in the table tlines.

the text is as follows....

*

* ****************************************************************

*

* This notification is being sent to indicate that a transaction

* has been processed. The items listed may not require download.

*

* "If the item(s) include production software, the software is now"

* available for download from Synopsys.

*

* "If you are retrieving a Technology Subscription License (""TSL""),"

* the term of your TSL is as noted in the product summary of the License

Key certificate. The License Keys will be active for a

* "shorter term and must be retrieved annually, until the end of"

* the expiration date of TSL.

*

* ****************************************************************

* Please note that SCL (Synopsys Common Licensing) version 10.9.1 (or

later) is now mandatory to run all Synopsys products. For more

"information, please visit http://www.synopsys.com/keys.";

* ****************************************************************

*

* PRODUCT OR LICENSE MATERIAL DESCRIPTION AND FTP PATH

* For more ftp path and product information go to

  • " ""http://www.synopsys.com/support/rev_vault_guide.htm""" -> needs to be change

*

* Itm Matrl No..Product...................Material Description

* --- -


-


-


in this text if you we have a URL i.e.

http://www.synopsys.com/support/rev_vault_guide.htm

in this URL i have to make some changes like as foloows

http://www.synopsys.com/support/est/rev_vault_guide.html

anybody can send me the code how to fix this problem. i think i have to use search command i dont know exactly here.

thanks,

maheedhar.t

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
502

Hi,

You can use Replace statement.

loop at your internal table that contains the std text.

move header into a string

if string = ' your url'.

(The ABAP STATEMENT itself is REPLACE)

Replace "/support/" by "/supposrt/est/"

modify the internal table

endif.

endloop.

                  • NOTE *********

Syntax of Replace :

1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]

pattern (/support/)

IN [section_of] dobj WITH new (/support/est/)

[IN {BYTE|CHARACTER} MODE]

[{RESPECTING|IGNORING} CASE]

[REPLACEMENT COUNT rcnt]

{ {[REPLACEMENT OFFSET roff]

[REPLACEMENT LENGTH rlen]}

| [RESULTS result_tab|result_wa] }.

Kindly be generous with points if you find it useful.

Regards,

Gaurav

3 REPLIES 3
Read only

Former Member
0 Likes
502

anybody can sene me the sample code for this.

thanks,

maheedhar.t

Read only

Former Member
0 Likes
503

Hi,

You can use Replace statement.

loop at your internal table that contains the std text.

move header into a string

if string = ' your url'.

(The ABAP STATEMENT itself is REPLACE)

Replace "/support/" by "/supposrt/est/"

modify the internal table

endif.

endloop.

                  • NOTE *********

Syntax of Replace :

1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]

pattern (/support/)

IN [section_of] dobj WITH new (/support/est/)

[IN {BYTE|CHARACTER} MODE]

[{RESPECTING|IGNORING} CASE]

[REPLACEMENT COUNT rcnt]

{ {[REPLACEMENT OFFSET roff]

[REPLACEMENT LENGTH rlen]}

| [RESULTS result_tab|result_wa] }.

Kindly be generous with points if you find it useful.

Regards,

Gaurav

Read only

0 Likes
502

Hey ,

I forgot to mention this in my previous reply

😛

There is another Statement :

REPLACE IN TABLE itab

Syntax

REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] pattern

IN TABLE itab [table_range] WITH new

[IN {BYTE|CHARACTER} MODE]

[{RESPECTING|IGNORING} CASE]

[REPLACEMENT COUNT rcnt]

{ {[REPLACEMENT LINE rlin]

[REPLACEMENT OFFSET roff]

[REPLACEMENT LENGTH rlen]}

| [RESULTS result_tab|result_wa] }.

Hope you find it useful

Regards,

Gaurav