on 04-23-2008 10:53 AM
Hi,
I have to print customer PO numbers in the o/p of a smartform.When I checked in the print preview of the smartform,some numbers are getting truncated.This is because it is printing only upto 255 characters.The rest of the values getting truncated.
So I want to find the string length of the variable into which these values are getting populated.If the length is less than 255 characters,I want to include one type of logic or if the length is greater than 255 characters i want to include other type of logic.
Can anyone tell me how to find the string length of a variable?
Regards,
Hema
Hi,
PARAMETERS: P_STR(30) TYPE C.
DATA: W_LEN TYPE I.
W_LEN = STRLEN( P_STR ). " Space after ( and before )
Regards,
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
data : w_len type i.
w_len = strlen( w_field ).
to have the lenght of the content of w_field.
Regards,
Raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hema
Declare a variable length type i in Global Defination
length = strlen(u r Variable )
Length field will calculate the string length.
with Regards,
Kiran.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.