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

Alternative for STRING_CENTER function module

Former Member
0 Likes
403

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.

1 REPLY 1
Read only

Former Member
0 Likes
331

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