2007 Mar 14 5:40 AM
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.
2007 Mar 14 5:44 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |