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

Re. get output using LOOP in horizontal format in Smartform

Former Member
0 Likes
942

Hi Friends,

I have one problem.... I want to print number of dates in horizontal format using loop. Right now i m geting date in vertical format.... I need to display no. of date in horizontal format....

Like

I need

01.01.2010 02..02.2010 03.02.2010........................................10.02.2010

Pl help me.

Regards,

Swapnika

Edited by: Swapnika Panse on Feb 20, 2010 7:51 AM

Hi Friends,

I have one problem.... I want to print number of dates in horizontal format using loop. Right now i m geting date in vertical format.... I need to display no. of date in horizontal format....

Like

I need

01.01.2010 02..02.2010 03.02.2010........................................10.02.2010

Pl help me.

Regards,

Swapnika

Edited by: Swapnika Panse on Feb 20, 2010 7:51 AM

5 REPLIES 5
Read only

amit_khare
Active Contributor
0 Likes
687

If Date is the only field in the table then while printing in the TEXT NODE use APPEND DIRECTLY for START value.

Otherwise, concatenate all the vales in one STRING type field and display that on the form.

Read only

Former Member
0 Likes
687

Hi Swapnika,

I think before you populate the data to smartform, convert your internal table in horzontal format from vertical format

and I think by this you will able to print the output in vertical format,

I do agree with what amit said, but I am sure that it is not only the date field you want to print as horzontal one, as for each date some data must be associate that should also able to print in the down of the date filed, ed. daily despaches in qty

Date - 01 02 03 ................... 29 30

Qty Despach- 50 30 70 .....................90 110

Hope this will solve your problem

Rani

Read only

0 Likes
687

Thanks Rani.....

U exactly got my issue.....can u tell me how to convert my internal table vertical into horizontal format....

Pl give me a example for my better understanding...if u can....

Thanks and Regards,

Swapnika

Read only

Former Member
0 Likes
687

Hi,

If you can able to paster ur internal table declaration, I can able to give you the logic to convert your vertical internal table into horizontal format,

But simply i can tell you that you declare one more internal table like,

Data: begin of itab_hori occurs 0,

Matnr like mara-matnr,

date1(2) type c,

date2(2) type c,

..

..

..

Date31(2) type c,

End of itab_hori.

Then with the key filed you can convert your vertical format to horizontal format.

Hope this will solve your problem

Rani

Read only

Former Member
0 Likes
687

thanks Rani