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

Swap fields in a workarea.

Former Member
0 Likes
934

Hi all...

I have a workarea of type pa0008.

in this work area I have valuea for lgart and betrg as

1 x, 2 y, space sapce, 3 z, space sapce, 4 p.

how can i reduce the spaces and fill them with the next lgart and betrg values??

Regards,

Veeranji Reddy P.

Hi all...

I have a workarea of type pa0008.

in this work area I have valuea for lgart and betrg as

1 x, 2 y, space sapce, 3 z, space sapce, 4 p.

how can i reduce the spaces and fill them with the next lgart and betrg values??

Regards,

Veeranji Reddy P.

6 REPLIES 6
Read only

Former Member
0 Likes
894

Hi,

try, with CONDENSE statement.

hope it works

Regards,

Pavan

Read only

0 Likes
894

I am not clear of ur idear..

Please explain...

Regards,

Veeranji Reddy P.

Read only

Former Member
0 Likes
894

Sorry, wrong post!

Edited by: Manoj Kumar on Jan 16, 2009 5:58 AM

Read only

Former Member
0 Likes
894

Hi,

The following example will help u.

DATA: BEGIN OF sentence,

word1 TYPE c LENGTH 30 VALUE 'Hi',

word2 TYPE c LENGTH 30 VALUE 'How',

word3 TYPE c LENGTH 30 VALUE 'are',

word4 TYPE c LENGTH 30 VALUE 'you',

word5 TYPE c LENGTH 30 VALUE 'im',

word6 TYPE c LENGTH 30 VALUE 'fine',

END OF sentence,

text TYPE string.

text = sentence.

CONDENSE text NO-GAPS.

WRITE:/ text.

Thanks.

Read only

Former Member
0 Likes
894

This message was moderated.

Read only

Former Member
0 Likes
894

Thanku