cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Scripts Dynamic Window

Former Member
0 Kudos

Hi,

I am customizing standard dunning form according to our requirement. I have to include bank details of the company as footer in the form. If line items are less bank details should come in 1st page or if there are more line items it has to come in second page. It should be of dynamic window. How to do this?

regards

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Declare the footer information under text element in main window.

Example:

/E : Line_items

p1 : &Line_items&

/E : Company

p1 : &Company Name&

In program use another WRITE_FORM Function module at the end.

Example:

loop at <itab>.

WRITE_FORM---For line items.

endloop.

WRITE_FORM---Footer

This will work.

thanks.

Former Member
0 Kudos

Hi,

Use protect and endprotect for the footer window like

/:protect

Footer data

/:endprotect

You wont be getting any problems in future

Regards

Kiran

Former Member
0 Kudos

Hi raj,

Include the text in the BOTTOM ..ENDBOTTOM of the window and display.

Regards,

Kalyan

Former Member
0 Kudos

Hi...

Here u need to use dynamic windows.

Just put footer window and check for page number = form pages. If yes then only print what ever u want.

Regards,

KP

Former Member
0 Kudos

Hi,

I did not get the context of dynamic window.If you are talking about the Main window the data is automatically flowed to the next page and if it is a variable window the data if more is truncated.

Now if this is a Main window With protect Endprotect we can Protect the data That is Flowing to other page.

Former Member
0 Kudos

Hi,

Please try to put all the text from the dynamic window between the following if-endif statement

/: IF &page& = &sapscript-formpages(c)& .

........

.......

......

/: ENDIF.

This way, all the bank details will only be displayed on the last page.

Regards,

George