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

Text wrap issue on orders

former_member242255
Active Contributor
0 Likes
1,098

Hi,

we have an issue where the Text(EDI header text) at the header level which is displayed is wrapped text but we need to make it unwrapped.

current display:

Internal Vendor Number=5690 Reference Qual=JC, Value=CUSTOM CLUB ORDER Routing Note=ROUTING GUIDE EDI Ship To Location = '000' KRISTIAN GUSMER Messages=PO Notes Messages=MENSHAND: RCLUB: 46 IRON LIE: +1 UPRIGHTSHAFT: TRUE TEMPER - Messages=DYNALITE GOLD SLFLEX: S300LENGTH: +0.5GRIP: GOLF PRIDE - NEW Messages=DECADE MULTICOMPOUND WHT/BLK CORD .600 RNDGRIP SIZE:

required display

Internal Vendor Number=5690 Reference Qual=JC, Value=CUSTOM CLUB ORDER Routing Note=ROUTING GUIDE EDI Ship To Location = '000' KRISTIAN GUSMER

Messages=PO Notes

Messages=MENSHAND: RCLUB: 46 IRON LIE: +1 UPRIGHTSHAFT: TRUE TEMPER -

Messages=DYNALITE GOLD SLFLEX: S300LENGTH: +0.5GRIP: GOLF PRIDE - NEW

Messages=DECADE MULTICOMPOUND WHT/BLK CORD .600 RNDGRIP SIZE:

how to handle to make the text as unwrapped.

The text is coming through EDI.

1 ACCEPTED SOLUTION
Read only

former_member777515
Participant
0 Likes
1,017

the keyword for wrapping is 'Messages', what i can think of is:

1) Process each word in the Text (use SPLIT with space as delimiter and '=')

2) Keep concatenating each word to the string field (or long char field)

3) Upon encountering the word 'Messages', append the last concatenated string field to the internal table

4) Begin concatenation on new string.

5 REPLIES 5
Read only

former_member777515
Participant
0 Likes
1,018

the keyword for wrapping is 'Messages', what i can think of is:

1) Process each word in the Text (use SPLIT with space as delimiter and '=')

2) Keep concatenating each word to the string field (or long char field)

3) Upon encountering the word 'Messages', append the last concatenated string field to the internal table

4) Begin concatenation on new string.

Read only

0 Likes
1,017

No it is not like that..we do not have any key delimiter..

and also the code is standard and there is no customisation done..

Read only

0 Likes
1,017

From your given example, what I understand is that the beginning of new line starts from 'Messages'

If this is not the case, you have to let us know what's the criteria(s) to recognise a beginning of a new line?

Also you mention 'code is standard and there is no customisation done', so do you want to achieve text wrapping thru some ABAP customisation or you are enquiring on something else?

Read only

0 Likes
1,017

E1EDKT1 Z002E EN

E1EDKT2 RETAIL DIV. ORDER TYPE =Z5, Z005AT ONCE CALL OFF

E1EDKT2 REFERENCE QUAL=OT, VALUE=Z005

E1EDKT2 REFERENCE QUAL=CO, VALUE=237381

E1EDKT2 REFERENCE QUAL=NR, VALUE=032

E1EDKT2

E1EDKT2

E1EDKT2 EDI SHIP TO LOCATION = '00952'

The Idoc is having the segments as above, the text once it is saved on the order which is created is concatentaed.

I checked in the SAVE_TEXT fm where the above 7 records(segments of type E1EDKT2) are passed but unable to find where exaclty they are getting concatentaed.

Read only

former_member242255
Active Contributor
0 Likes
1,017

There was a paramter to pass the formatting option through whcih the issue was resolved.