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

Form printing Query

Former Member
0 Likes
434

Hi all,

I have a very small problem which i am sure can be sorted out by you all in no time.

I have a selection screen where the user has to input Vendor Number ( In Range) and Company Code.When the user executes the report it opens a smartform containing vendor details.

Now the user wants to print the complete range of vendors one by one.

i.e when the form of one vendor ends , the form of second vendor should start and so on...

I am succesfully able to do that just for one vendor but not for multiple vendors.

How can i solve this?

Help appreciated.

Hi all,

I have a very small problem which i am sure can be sorted out by you all in no time.

I have a selection screen where the user has to input Vendor Number ( In Range) and Company Code.When the user executes the report it opens a smartform containing vendor details.

Now the user wants to print the complete range of vendors one by one.

i.e when the form of one vendor ends , the form of second vendor should start and so on...

I am succesfully able to do that just for one vendor but not for multiple vendors.

How can i solve this?

Help appreciated.

1 REPLY 1
Read only

Former Member
0 Likes
412

Hi,

Declare the LIFNR field as select-options on Selection screen.

and in the code:

Sort ITAB by LIFNR.

loop at ITAB.

at new lifnr.

call function START_FORM.

endat.

call function WRITE_FORM.

at end of lifrn.

call function END_FORM.

endat.

endloop.

write the respective coding in the corresponding forms.

it will trigger the output of all the vendors.

Reward if useful.

Regards,

Anji