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 Functions in Sapscript.

Former Member
0 Likes
1,839

Hi,

Can we use strlen functions like concatenate and strlen function in sapscript.

Thanks,

Sunitha

Hi!

In the Sapscript itself you can't use it, but you can use it in the printer program.

Regards

Tamá

7 REPLIES 7
Read only

Former Member
0 Likes
1,155

Sunitha,

i dont think script have such options.

you can use perform statements for same.

Amit.

Read only

Former Member
0 Likes
1,155

Hi Sunitha,

I think we cant use STRLEN in SAPScriopts.

we have different commands in SAPScripts.

Please check this link

SAPscript Control Commands

http://help.sap.com/saphelp_40b/helpdata/en/d1/80318f454211d189710000e8322d00/content.htm

Best regards,

raam

Read only

Former Member
0 Likes
1,155

Hi!

In the Sapscript itself you can't use it, but you can use it in the printer program.

Regards

Tamá

Read only

Clemenss
Active Contributor
0 Likes
1,155

Hi sunitha,

if you can't prepare what you need in the print program, you can use external PERFORM in sapscript.

Regards,

Clemens

Read only

Former Member
0 Likes
1,155

we can use strlen() function in sap scripts.

Use the strlen( ) function to restrict the DO loop to the relevant part of the field, e.g. when determinating a check-sum.

check this link for more commands

http://abaplovers.blogspot.com/2008/02/abap-tricks-and-tips.html

Read only

0 Likes
1,155

Hi sravya reddy,

Sorry I have to disagree.

Your hint and link are useful but not in context of SAPSCRIPT. Although SAPSCRIPT infrastructure is implemented using ABAP language; SAPSCRIPT itself is a symbolic page description language that has more in common with HTML than with ABAP.

You can not use the strlen( ) function in SAPSCRIPT

Regards,

Clemens

Read only

Former Member
0 Likes
1,155

Hi,

No we cannot use STRING fucntions in SCRIPTS...

Regards

Narin Nandivada