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

Multiple headers and corresponding items in smartform

mohammadaamir_khan
Participant
0 Likes
3,251

Hi,

I can't change the calling program so can't use 'SSF_OPEN' FM.

Inside the smartform I am generating 2-3 headers and for each header, there are few item details.

I need to print pages with data from header in the header section ( repeating on each page) and items in the form of a table.

I need to start with a new page for new header data.

How to achieve this.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

anujawani242683
Active Participant
3,033

Hi,

You can use Command. Insert command after table and select go to new page and corresponding page name.

6 REPLIES 6
Read only

venkateswaran_k
Active Contributor
0 Likes
3,032

Hi

I believe you are referring to the table data printing.

You have an option to print the header line each page as below:

In below example, the header sectionof table %table1 - you have two check boxes. You can use it as per your requirement.

Regards,

Venkat

Read only

0 Likes
3,032

Hi Venkat,

I need to display 3 different delivery data. So I have likp with 3 entries and lips with 9 entries ( assuming 3 lines for each delivery).

I need to show some headers ( no table header) like delivery number, date, customer and few more fields then a table with material number quantity UOM and few more fields.

Each delivery needs to start at new page and line items can go to next page depending on number of lines.

Thanks

Read only

anujawani242683
Active Participant
3,034

Hi,

You can use Command. Insert command after table and select go to new page and corresponding page name.

Read only

0 Likes
3,032

Hi Anuja,

I am able to achieve this using your method but facing 1 issue. In table in footer, i set condition 'At End of Table' and in footer, i added a command to go to next page.

It is working fine except, it is printing 1 extra page at the end.

Is there any better way to set command condition ?

Thanks

Read only

0 Likes
3,032

Hi

You can add something like this.

IF SFSY-PAGE = SFSY-FORMPAGES.
lv_last_page_flag = 'X'.
ENDIF.

.

Regards,

Venkat

Read only

0 Likes
3,032

Hi mohammadaamir.khan

Please add command by right clicking on table not footer.