2007 Apr 13 9:04 AM
Hi,
pls let me know what is the function module name to pass variables.
Thanks
vana
Hi,
pls let me know what is the function module name to pass variables.
Thanks
vana
2007 Apr 13 9:09 AM
2007 Apr 13 10:12 AM
Hi,
I want pass string parameter to Function module.Wat was that Function module.
2007 Apr 13 10:17 AM
hi,
Assuming that you want to reverse a string ... do this way ..
CALL FUNCTION 'STRING_REVERSE'
EXPORTING
string = v_string
lang = sy-langu
IMPORTING
rstring = new_string.
2007 Apr 13 10:16 AM
but whats ur exact requirement by passing the string to the FM,
chk these FMs if it suits ur requirement
STRING_CENTER (Obsolete) Centered a string
STRING_CONCATENATE Concatenates (links) two strings without multibyte handling
STRING_LENGTH (Onsolete) Calculate the length of a string
STRING_MOVE_RIGHT (Obsolete) Shift a string to the right
STRING_REVERSE Returns a string in reverse order
STRING_SPLIT (Obsolete) Split a string in accordance with a delimiter.
STRING_SPLIT_AT_POSITION Split a string with a proper position into two parts
2007 Apr 13 10:19 AM
hi vanamalai,
<b>do u want this FM to paas ur string?</b>
DATA: text(10) TYPE c VALUE '0123456789',
text1(6) TYPE c,
text2(6) TYPE c.
PARAMETERS position TYPE i.
CALL FUNCTION <b>'STRING_SPLIT_AT_POSITION'</b>
EXPORTING
string = text
pos = position
IMPORTING
string1 = text1
string2 = text2
EXCEPTIONS
string1_too_small = 1
string2_too_small = 2
pos_not_valid = 3
OTHERS = 4.
or u can also use this FM <b>RKD_WORD_WRAP</b>
HOPE THIS IS USEFUL,
reward points if helpful
Thank,
Ginni
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |