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

SAP Script issue

Former Member
0 Likes
955

Hi Friends,

How to divide one line(value) into 2 lines.

For EG: For one field I have value like ABCDEFGHIJKLMNOPQRSTUVWXY, that value is crossing next cell line. Actually the field itself contains length 30 char. If we give 30 char space for that field other fields wil not have sufficent space. So i need to break that value at 20 char. That modifications should be done in se71 transaction only.

I hope u understand my scenario. please respond quickly.

Thank You,

Rani.

10 REPLIES 10
Read only

Former Member
0 Likes
928

Us the FM WORD_WRAP.

Regards,

Prakash

Read only

0 Likes
928

HI,

THANKS FOR FAST RESPONSE. CAN I USE THESE SUGGESTIONS IN SE71. I HAVE TO DO IN SE71 ONLY.

THANK yOU,

RANI

Read only

0 Likes
928

Yes Rani the below statment can be achieved in SE71

&var1+0(15)&

&var1+15(15)&

Read only

0 Likes
928

HI SANTHOSH,

I AM NOT GETTING LIKE THAT.

IF U GIVE UR MAIL ID I'LL SEND U THE SCREEN SHOT & CODE.

THANK yOU,

RANI

Read only

0 Likes
928

You can check for values after 20 characters.

If they are blank, do not worry.

If they have characters, split the line.

/: IF &VAR3+20(10)& = &SPACE&
*  ,,&VAR1&,,&VAR2&,,&VAR3+0(20)&,,&VAR4&
/: ELSE
*  ,,&VAR1&,,&VAR2&,,&VAR3+0(20)&,,&VAR4&
/  ,,,,,,&VAR3+20(10)&
/: ENDIF

Read only

0 Likes
928

My reply got duplicated. Sorry.

Message was edited by: Norman Salter

Read only

Former Member
0 Likes
928

I'm not sure that you can do this in the form (my system is down), but have you tried using offsets? i.e.:

&variable+0(15)&

&variable+15(15)&

Read only

Former Member
0 Likes
928

Hi Rani,

Use Split statement in your driver program to achieve that ... else make use of offset ...

Regards,

Santosh

Read only

Former Member
0 Likes
928

&V_CHAR+0(15)&

&V_CHAR+15(30)&

Read only

Former Member
0 Likes
928

FM name RKD_WORD_WRAP

TEXTLINE - ABCDEFGHIJKLMNOPQRSTUVWXY

DELIMITER

OUTPUTLEN - 20

Get the value in the table OUT_LINES[].

Regards,

Prakash.