Application Development 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: 

Sap script: Printing the values got from work area in a row

Former Member
0 Kudos
169

Hi ,

I need to print the values which I m getting from a work area like

A1 A2

A3 A4

and so on

but I m getting it as

A1

A2

A3

A4.

Any solutions to this will be highly appreciated.

Regards,

Vivek

6 REPLIES 6

former_member223537
Active Contributor
0 Kudos
62

Hi,

It seems after each value, you have provided a line feed. Remove the line feed & pass extended line.

If this doesnt work, then concatenate the values and pass.

Best regards,

Prashant

Former Member
0 Kudos
62

Dear vivek,

how is your work are structure - is it only with single field ?

In your script after the each value give an extended line comman "=" which will take first and second values for print and after the second value give "line feed" or "carriage return" command.

Hope this solves your problem

Thanks

venugopal

Reward accordingly

0 Kudos
62

Hi,

These values are all coming from same work area.

In the script I have written just one line &wa_xyz-field&.

The values coming from loop are printing one after other.

i need that I can print two of those in one line.

Concetanion seems to be one solution. Can you eleborate on that.

Regards,

Vivek

former_member223537
Active Contributor
0 Kudos
62

&wa_xyz-field0(2)& &wa_xyz-field2(2)&.

&wa_xyz-field4(2)& &wa_xyz-field6(2)&.

0 Kudos
62

I think this functionality is for printing the specific words of a string.

How it can be used here.

Regards

Vivek

Former Member
0 Kudos
62

Hi,

I solved the problem by concatenating the values fetched from work area upto specific length and saving it into another string.

Regards,

Vivek