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: 

what is the function module name to pas variables

Former Member
0 Kudos

Hi,

pls let me know what is the function module name to pass variables.

Thanks

vana

5 REPLIES 5

Former Member
0 Kudos

Fo what exact functionality you want to use FM

0 Kudos

Hi,

I want pass string parameter to Function module.Wat was that Function module.

0 Kudos

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. 

Former Member
0 Kudos

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

Former Member
0 Kudos

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