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: 

script

Former Member
0 Kudos
129

HI FRIENDS

I HAVE A SCRIPT FORM IN THAT FORM I HAVE A PAGE ON THAT PAGE MAIN WINDOW I HAVE ONE BOX OF MAIN WINDOW SIZE.

I AM DISPLAYINMG ITEMS IN THAT MAIN WINDOW TOTAL ITEMS IS 4 BUT MY MAIN WINDOW IS DISPLAYING 3 AT A TIME ACCORDING TO SETTING .

NOW WHEN IT WILL GO TO SECOUND PAGE AUTOMATICALLY MY BOX IS NOT DISPLAYING.

CAN ANY BODY HELP

1 ACCEPTED SOLUTION

Former Member
0 Kudos
94

Hi

Have you created the NEXT page and

Have you copied/created the MAIN WINDOW into that page?

check

so copy this MAIN winsdow page window into Second(NEXT) page

and in first page attributes give NEXT page as NEXT.

<b>Reward points for useful Answers</b>

Regards

Anji

7 REPLIES 7

Former Member
0 Kudos
95

Hi

Have you created the NEXT page and

Have you copied/created the MAIN WINDOW into that page?

check

so copy this MAIN winsdow page window into Second(NEXT) page

and in first page attributes give NEXT page as NEXT.

<b>Reward points for useful Answers</b>

Regards

Anji

varma_narayana
Active Contributor
0 Kudos
94

Hi..

It is displaying the BOX only in the First Page.

But to Display the BOX in every page.

use the BOX command inside the TOP.. ENDTOP command.

/: TOP

/: POSITION WINDOW

/: SIZE WINDOW

/: BOX FRAME '20' TW

/: ENDTOP

<b>Reward if Helpful</b>

Former Member
0 Kudos
94

Hi Ajay,

If your page is FIRST then give<b> Next page as FIRST</b> under Standard Attributes of the FIRST page.

Thanks,

Vinay

0 Kudos
94

NO SIR

ACTUALLY PROBLEM IS THAT MY WRITE_FORM IS CALLED ONLY ONES

SO THE BOX COMMAND IS ALSO TRIGGERED ONE THIS IS NOT SOLVING BY INTRODUCING NEW PAGE ALSO.

0 Kudos
94

But to Display the BOX in every page.

use the BOX command inside the TOP.. ENDTOP command.

Step1: Create the Text elements in Main window (beginning) as below.

<b>/E ELE_TOP

/: TOP

/: POSITION WINDOW

/: SIZE WINDOW

/: BOX FRAME '20' TW

/: ENDTOP</b>

In the print program Call the WRITE_FORM for TOP inside the LOOP as below

<b>LOOP AT <YOURITAB>

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ELE_TOP'

FUNCTION = 'SET'

TYPE = 'TOP'

WINDOW = 'MAIN' .

<<<THEN CALL THE OTHER WRITE_FORM FM>>

ENDLOOP.</b>

This will work..... Let me know the status.

<b>Reward if Helpful.</b>

0 Kudos
94

NO NARAYANA IT IS NOT WORKING SEE WHAT I HAVE DONE

AS item,,material,,description,,unit of measure

/E MAIN

/: TOP

/: BOX XPOS 0 CM YPOS 0 CM WIDTH 16 CM HEIGHT 5 CM FRAME 10 TW

/: BOX XPOS 0 CM YPOS 1 CM WIDTH 16 CM HEIGHT 4 CM FRAME 10 TW

/: BOX XPOS 3 CM YPOS 0 CM WIDTH 3 CM HEIGHT 5 CM FRAME 10 TW

/: BOX XPOS 6 CM YPOS 0 CM WIDTH 4 CM HEIGHT 5 CM FRAME 10 TW

/

/

AS &IT_VBAP-POSNR& &IT_VBAP-MATNR& &IT_VBAP-MATKL&

= &IT_VBAP-MEINS&

/: IF &PAGE& GT 1

/: BOX XPOS 0 CM YPOS 0 CM WIDTH 16 CM HEIGHT 5 CM FRAME 10 TW

/: BOX XPOS 0 CM YPOS 1 CM WIDTH 16 CM HEIGHT 4 CM FRAME 10 TW

/: BOX XPOS 3 CM YPOS 0 CM WIDTH 3 CM HEIGHT 5 CM FRAME 10 TW

/: BOX XPOS 6 CM YPOS 0 CM WIDTH 4 CM HEIGHT 5 CM FRAME 10 TW

/: TOP

/: ITEM,,MATERIAL,,DESCRIPTION,,UNIT OF MEASURE

/: ENDTOP

/: ENDIF

BY THIS I AM ABLE TO GENERATE BOX BUT THAT HEADING OF BOX ITEM MATERIAL AND ALL IS NOT PRINTING ALSO THE FOURTH ITEM IS NOT COMMING APPROPRIATLY

Former Member
0 Kudos
94

Create a Second page & create the main window in it.

in the first form give the second form name as the Next Page.

Try this u wil get the main window contents automatically printed into the second page if it exceeds the first page.

Reward Points If useful.