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

Dynamic header data in Sapscript

Former Member
0 Likes
903

Hi everybody,

How can i print header data dynamically? for eg: Window PERMIT

_____________________________________________________________

|                    |                                                       |         Permit           |

|                    |                    ORDER                       |             No 1          |

|    LOGO       |                 1000000120                     |             No 2          |

|                    |                                                      |         No ...           |

|___________ |_______________________________|_________________|

|                                                                                                          |

|                                                                                                        |
|                                                                                                         |
|                                                                                                        |
|                                            MAIN                                                    |
|                                                                                                        |
|                                                                                                        |
|                                                                                                        |

For your information : I have a loop with internal table of permits in driver program, and i call WRITE_FORM inside loop.

Problem : Only the last row is printed.

Please help me to solve this problem.

Best regards,

Younes

5 REPLIES 5
Read only

former_member201275
Active Contributor
0 Likes
702

Not sure I understand, can't you just use a variable and fill that at runtime?

Read only

0 Likes
702

No, there may be one or more permits for the same order. And I need to edit all permits and manage the height of the window.
My question is how to display all permits and how to manage the height of the window according to the number of permits displayed.

I know that is possible in the MAIN window. But what about header window of the form?

Read only

0 Likes
702

Hi,

You can't change the size of the windows at runtime, and the windows of type other than MAIN do not trigger a page break (in case the contents of your header would exceed the size of page). In this case you have to reconsider placing the list of permits in page header window.

cheers

Janis

Read only

0 Likes
702

Hi

Read only

Former Member
0 Likes
702

Thanks all of you. Finally i'll use the MAIN window.