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

Convert itab data into PDF & Grouping data in PDF

Former Member
0 Likes
882

1. How to convert data in internal table into PDF

2. I need to group this data in pdf as below.

Assume, i have storage location & ebeln in my itab. So my pdf should haves recs as:

001 1000000000

1000000001

1000000002

1000000003

002 1000000004

1000000005

......

.........

...........

so on.... i.e. i should not repeat the value of LGORT in all the recs, if it is same.

Thanks

Kiran

Edited by: kiran dasari on Jun 13, 2009 11:07 AM

1. How to convert data in internal table into PDF

2. I need to group this data in pdf as below.

Assume, i have storage location & ebeln in my itab. So my pdf should haves recs as:

001 1000000000

1000000001

1000000002

1000000003

002 1000000004

1000000005

......

.........

...........

so on.... i.e. i should not repeat the value of LGORT in all the recs, if it is same.

Thanks

Kiran

Edited by: kiran dasari on Jun 13, 2009 11:07 AM

4 REPLIES 4
Read only

former_member229729
Active Participant
0 Likes
841

HI,

Please read this URL:

http://www.sapfans.com/forums/viewtopic.php?f=13&t=326228

Rgds,

Ramani N

Read only

0 Likes
841

Thanks ramani.

After conversion to PDF, i also want to group my data as indicated. Can you please tell me what need to be done for that.

Thanks

Kiran

Edited by: kiran dasari on Jun 17, 2009 7:59 AM

Read only

0 Likes
841

While writing the data to spool, using FM "RSPO_WRITE_SPOOLREQUEST"; clear the storage location..

Sort itab by lgort ebeln.

loop at itab into wa_itab.

wa_itab1 = wa_itab.

clear wa_itab1-lgort.

at new lgort.

wa_itab1-lgort = wa_itab-lgort.

endat.

call FM "RSPO_WRITE_SPOOLREQUEST" using WA_ITAB1.

endif.

Hope this will help.

Read only

0 Likes
841

Hi Richa,

Thanks for your reply.

Can you check your coding once please. You are moving data into new work area and clearing that immediately.

did u mean to:

for every new lgort, keep the lgort and clear lgort for all recs as long as its same lgort?

Thanks

Kiran

Edited by: kiran dasari on Jun 19, 2009 7:41 AM