Skip to Content
author's profile photo
Former Member

New page every 7 item, dynamic form

I got a form with a header page with one item in it and another page with only items (lets call it the item page).

The header page should always display and be populated.

The item page should only display if we have more than one item.

Iif we have more than 8 items in total (1 on header page, 7 on item page), we need to create another item page.

I made the page layout but I have no idea how to make it possible that it will be dynamic and generating pages depending on number of items I have.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 24, 2009 at 03:28 PM

    Can you provide the description of the current form behaviour? What you can see when the form is generated and next what you need to change? Maybe you can provide a form template name if it is SAP-standard. I have very little to build on, I donĀ“t know anything about your expertize and nothing about your form. Maybe you can try to write me a private mail to speed this up. Otto

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 24, 2009 at 08:01 AM

    Hello,

    you can achieve this in multiple ways. Pick one:))

    1) In ABAP coding use DESCRIBE TABLE and save to a new variable how many rows (your items) do you have.

    If you know you need one for a header and X (7?) for a item page, you know how many pages you will populate using this table rows/ items. In your form you can test this variable and using script change the number of anything you want.

    This option is better when the way you count the items is not super-simple.

    2) You can count the rows in the script and make a decision based on this count in the script too.

    You if you just count your items/ table rows.

    Hope this helps, Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Otto Gold

      It kind of started out this way since the layout was reused from existig form.

      The item body lines are in seperate tables.

      Since my layout is dependent on the rules set I got, with 1 item on the first page, 7 on the next page, 7 on the third page etc I think its better deciding how many pages it should create depending ono my global variabel.

      How should I do the pagination? on my ITEM on hierarchy?