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

Smartform Requirement

Former Member
0 Kudos
1,158

Hi friends,


The requirement is to print 3 pages for each customer i.e., 2 pages for purchase order forms and 3rd page is terms and conditions page. Likewise can I print 100 pages at once? How to print continuous pages in smartforms?


Please help me...


thank you,


with regards,

Kumar.

11 REPLIES 11
Read only

Former Member
0 Kudos
1,079

Hi kumar,

now you r executing the program for one customer it  is displaying the 3 pages rights

and u  r requirement is if u r executing the some no.f customers it will display all customers data right

and also u r using the report program to call this smart form  right

plz clarify me these  two things.

Regards ,

pramodh.

Read only

0 Kudos
1,079

Hi Pramodh,


For one company code we will be having so many customer. Suppose lets say I have 100 customers, so for each customer I need to print 3 pages and it should be continuous till 100th customer.


yes I'm using a report program.

thank you,

with regards,

Kumar.

Read only

JJosh
Active Participant
0 Kudos
1,079

Hi,

I believe cust details ll differ for every printout rt ?? In that case, In the driver prog, loop the itab which has customer details. Inside this loop, call the SSF Func Mod.

Or Inside SF, create a loop node and try printing (Not sure abt this method, need to  try).

BR/Josh

Read only

nabheetscn
SAP Champion
SAP Champion
0 Kudos
1,079

What exactly are you trying to achieve?

Nabhete

Read only

0 Kudos
1,079

Hi Nabheet Madan,


For one company code we will be having so many customer. Suppose lets say I have 100 customers, so for each customer I need to print 3 pages and it should be continuous till 100th customer.


Thank you,


with regards,

Kumar.

Read only

0 Kudos
1,079

Hi Kumar

You can call smartform for each customer in a loop or pass all the data once in smartform and lets smartform handle.

I would have gone with first option to keep things simple. for each custom it will print 3 pages in a loop

Nabheet

Read only

shadab_maldar
Active Participant
0 Kudos
1,079

Hi,

Do you want to print 100 pages for the same customer or multiple customers print at a time.

Read only

Former Member
0 Kudos
1,079

hi kumar ,

TO get this functionality u call this smartform  with in loop by using control parameters for each customer .

Regards ,

pramodh.

Read only

VijayaKrishnaG
Active Contributor
0 Kudos
1,079

Hi Kumar,

You just loop the internal table which is having Custer data and then fill the internal table and all the required variables passing to the smartform in the loop itself and call the Smartform in same loop. So that the 3 Pages print will be called for multiple customers.

Thanks & Regards,

-Vijay

Read only

former_member187748
Active Contributor
0 Kudos
1,079

Hi Kumar,

just do one thing within your smartforms, write this line, in place of it_ekko write the name of the internal table having records of 100 customers, it will automatically print for all the 100 customers data. You will get what you wants.

Craete a program line in main window in smartforms, and do as shown in screenshot.

()

DESCRIBE TABLE IT_EKKO LINES LCOUNT.

COUNTER = COUNTER + 1

and after your data ends in smartforms create a command node, and within that

make condition that

COUNTER <= LCOUNT.

Read only

jhj
Discoverer
0 Kudos
967

Hi Kumar, as am new learner of SAP ABAP platform I found really interested with your requirement. Can you please provide me the code part . It really helps me in learning real time scenarios by doing hands-on. 

Thank you