cancel
Showing results for 
Search instead for 
Did you mean: 

Blocks in SAP Script

Former Member
0 Kudos

Hi Experts,

Please help me out with this....I need to have boxes for all the records..Like if I have 10 records then i need to have the boxes which have been printed fr the first record should get printed for the other 10 records...

But this is nt happening...I am getting all the records on the basis of the range I enter in the selection criteria but not the boxes which i am getting only for the first record.

Also I need to have chechboxes in the headr of the report which will be checked by the user. Please let me know how to create checkboxes in the SAP Script.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

you try with this box size,

BOX WIDTH '18' CM HEIGHT '17' CM FRAME 10 TW

Regards,

Joan

former_member585060
Active Contributor
0 Kudos

Hi,

Create a Main Window with 2 line height

Enter the field variables in it,

Use BOX command to print for whole window.

Use multiple main windows on a page.

MAIN    00 Main window                    7,00 CH  30,00 LN  70,87 CH   2,00 LN
MAIN    01 Main window                    7,00 CH  32,00 LN  70,87 CH   2,00 LN
MAIN    02 Main window                    7,00 CH  34,00 LN  70,87 CH   2,00 LN
MAIN    03 Main window                    7,00 CH  36,00 LN  70,87 CH   2,00 LN
MAIN    04 Main window                    7,00 CH  38,00 LN  70,87 CH   2,00 LN
MAIN    05 Main window                    7,00 CH  40,00 LN  70,87 CH   2,00 LN
MAIN    06 Main window                    7,00 CH  42,00 LN  70,87 CH   2,00 LN
MAIN    07 Main window                    7,00 CH  44,00 LN  70,87 CH   2,00 LN


"In any Main window code like this

BOX FRAME 10 TW
BOX XPOS 16 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW " used for vertical line
                  
" Add as many you need changing CH value

Regards

Bala Krishna

Former Member
0 Kudos

hi!

create a variable window and write this code there

/: POSITION XORIGIN '2' CM YORIGIN '10' CM

/: SIZE WIDTH '18.05' CM HEIGHT '18' CM

/: BOX FRAME 10 TW

/: POSITION XORIGIN '2.05' CM YORIGIN '10.05' CM

/: BOX WIDTH '18' CM HEIGHT '1' CM INTENSITY 15

/: POSITION XORIGIN '3.5' CM YORIGIN '10' CM

/: BOX FRAME 10 TW WIDTH '0' TW HEIGHT '18' CM

/: POSITION XORIGIN '9.2' CM YORIGIN '10' CM

/: BOX FRAME 10 TW WIDTH '0' TW HEIGHT '18' CM

/: POSITION XORIGIN '11.5' CM YORIGIN '10' CM

/: BOX FRAME 10 TW WIDTH '0' TW HEIGHT '18' CM

then create a main window with same height and width as that of the varaible window (overlapping the variable window on to it).

now on looping in the main table and displaying the data 10 records in the one page and then 10 records on the other page the boxes will come it self....

here the main window dimensions are

MAIN 00 Main Window 2,00 CM 10,00 CM 18,00 CM 18,00 CM

[then with the help of data element call the box

/: BOX WIDTH '18' CM HEIGHT '1' CM FRAME 10 TW

in loop where write_form is called....]

u will get the box with the data printed in the form......

keeping same for the variable window....

and try it....

this will be done....

Edited by: Richa Tripathi on Feb 18, 2009 8:11 AM

Former Member
0 Kudos

Hi,

BOX WIDTH '17.5' CM HEIGHT '17.5' CM FRAME 10 TW

adjust the width and height as per ur window and for checkboxes check out this link

REgards,

jaya

Former Member
0 Kudos

Hi,

I think u r giving the box height very small.

consider,

BOX WIDTH '17.5' CM HEIGHT '17.5' CM FRAME 10 TW

This will draw a box of height 17.5 cm .Keep inside a text element.

Call This text element before the Loop Statement.

If problem is not solved give the code.

Thanks,

Nithya.

Former Member
0 Kudos

hi,

Create a window with same dimensions as in main window and write box commands

in window same as in main.