Application Development 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: 

multiple records selected to get them printed using smartforms

Former Member
0 Kudos

I have created a report using alv grid display then selecting multiple records, what I want to do is that:

        after designing a page on smartforms i want it to print all the selected records.

for example selected 3 records for 3 employees and when i print it prints for me 3 pages with the same format.

If there is recommendations or solutions would be appreciated.

thank you in advance

3 REPLIES 3

former_member188005
Contributor
0 Kudos

Hi,

There are 2 ways:

1) You have to get the selected records of employee in a seprate table and then trigger the smartform FM for each employee...

2) You can control the same by triggering the smartform FM once and then write a loop in smartform where for every record (employee) a new page is triggered.

Regards.

vladimir_erakovic
Contributor
0 Kudos

Hi Mohed,

You can declare internal table that you fill with data you need and display it in table in smartform.

Check this picture:

Hope it helps.

Best regards,

Vladimir

former_member339717
Active Participant
0 Kudos

Dear Mohed Alsabri,

Follow these steps.

instead of v_ebeln use v_pernr in your case.

  • Declare two variables in the global definition.
  • Now go to main area of the table or loop and put a command line.
  • now dbl click on the command line and select the next page in the properties tab.
  • now goto condition tab and give the following variables.
  • Now goto main area first cell and declare the programelines.(%code3) .
  • and write the following code metioned below
  • now go to the last cell and write down the following variables and code.(%code2).
  • write the following code.
  • You will get your desire result.