‎2007 Aug 07 6:33 AM
Hi,
Can any one give me the Alternative for STRING_CENTER function module.
it is there in 4.7 when i am using the same in ecc 6.0 it is giving as absolute statement .
Please give the solution for this.
‎2007 Aug 07 6:45 AM
Hi,
C147_STRING_SPLIT_AT_POSITION
STRING_SPLIT
STRING_SPLIT_AT_POSITION
check this sample code
DATA: text(10) TYPE c VALUE '0123456789',
text1(6) TYPE c,
text2(6) TYPE c.
PARAMETERS position TYPE i.
CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
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.
Regards