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

problem in displaying the value in the sapscript

Former Member
0 Likes
1,869

Hi,

i am working on a sap script ni whic i am trying to display the value in a single row i.e.:-

C Si

2.3 4.5

byt it is displaying like this:-

C

2.3

Si

4.5

How should i show this type in the sap script form?

&I_FINAL_kurztext(25)&

&I_FINAL_orignal_input(8)&

These are the variables throught which values are being displayed.

Plz provide me guidelines how to solve this problem.

Hi,

i am working on a sap script ni whic i am trying to display the value in a single row i.e.:-

C Si

2.3 4.5

byt it is displaying like this:-

C

2.3

Si

4.5

How should i show this type in the sap script form?

&I_FINAL_kurztext(25)&

&I_FINAL_orignal_input(8)&

These are the variables throught which values are being displayed.

Plz provide me guidelines how to solve this problem.

12 REPLIES 12
Read only

Former Member
0 Likes
1,608

Hi,

I don't really understand what you mean. If I understood somewhat correctly, you have two variables and you want them displayed on the same line.Well, the very simple solution would just be to write them on the same line of text. For example,

P &I_FINAL_kurztext(25)& &I_FINAL_orignal_input(8)&

where P is the paragraph you use.

Please explain the issue a bit in more detail if I did not understand it correctly.

Regards,

George

Read only

0 Likes
1,608

Hi,

see there are 2 variables :-

Kurztext -> C,Si and orignal_input-> 2.3,1.5

Currently the script shows the data as:-

C

2.3

Si

1.5

which is displaying the data column wise and i want to show the data in a row like this:-

C Si

2.3 1.5

I hope this clear to all what i am trying to do in script.Plzz provide me guidelines to solve this problem.

Edited by: ricx .s on Mar 13, 2009 11:28 AM

Read only

0 Likes
1,608

hi,

may be i am suggesting the crude logic but it will work...as i dont see better solution than this in scripts...

move two fields into two different internal tables.

loop at kurxtext tablee ,

call write_form

textelement = Kurxtext..

same way for original_input and in the script editor use two different text elements ( one for kurxtext and another for Original_input)..

/E Kurxtext

/: &KURXTEXT&

/E Original_input

/: & Oridignal&..

Hope this should work..

Rgds.,

subash

Read only

0 Likes
1,608

Hi,

is there any other way in which we can change this presenatation of data

Read only

Former Member
0 Likes
1,608

&FINAL_kurztext(25)&,,I_FINAL_orignal_input(8)&

if it comes to next line give equalto(=) symbol in the tag column it will work

Read only

Former Member
0 Likes
1,608

hi

Use the format = Extended Text , to print in one line

&I_FINAL_kurztext(25)&

&I_FINAL_orignal_input(8)&

Ex : Say u have used Paragraph P1

P1 &I_FINAL_kurztext(25)&

= &I_FINAL_orignal_input(8)&

U can display in one line .

Hope this will help u .

Read only

Former Member
0 Likes
1,608

Hi,

As in script data is printed on row basis so afetr printing one record,control cannot go back on 1st line for the 2nd record.

but if you have only limited reoreds as 2 in the examle given by you then you can concatenate them in two different variables and then print them one below the other.

regards,

neha

Read only

0 Likes
1,608

hi,

no actually there are many record say around 10 - 20. and it will get change according to the item id's.

That why i am bit worried that is it possible to display the data like that.

Read only

0 Likes
1,608

hi,

I dont think that is possible if the number of records is not fixed and also if the records in hundreds..

Rgds.,

subash

Read only

0 Likes
1,608

Hi,

if number is not fixed then i don't think we can achieve this,if it was limited and fixed we could have manipulated somehow.....but in this case,i think no.

Regards,

neha

Read only

0 Likes
1,608

hi,

So the final conclusion is if there say 50 or 100 records then it is not possible to display the data in a row of sap script.It will require to modify or add the windows in it which is possible for the 2 or 3 variables but not for more than that.

Read only

Former Member
0 Likes
1,608

Hi

We can achieve it by usinmg paragraph format<p1> .

In form you write the values in the paragraph format and extend the line(/E).

We can also try with declaring two windows side by side to display both C(2.3) and Si(.4.5)

Adjust two windows according to your requirement.

Hope this helps you.

Regards,

Rajani