cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Script...Tables.

Former Member
0 Kudos

Hi...all.

I have jus joined this network and felt that this is the right place to share knoweldge and learn a lot.

I hav a scenario where i wanted to design a bargain slip being used in my company.

It has table type format. How can i draw a table inside the main window....? Can aneone help me regarding same....as i m new to ABAP development.

i tried drawing a small box using below command..but cud not do that and cud not see that in print preview.

BOX XPOS '0.2' CH YPOS '0.1' LN WIDTH '39' CH HEIGHT '4.9' LN FRAME 10 TW.

Thanks

Abhay.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi..all.

Thanks for all d replies....each one adding value to my knowledge base.

I hav got my query answered.

Thanks.

Abhay..

Former Member
0 Kudos

Hi,

First u have to draw a box and then specify the x positions...

Eg:

/: BOX WIDTH '17.5' CM HEIGHT 13 CM FRAME 10 TW INTENSITY 15

/: BOX XPOS '2' CM WIDTH 0 TW HEIGHT '13' CM FRAME 10 TW

/: BOX XPOS '5' CM WIDTH 0 TW HEIGHT '13' CM FRAME 10 TW

/: BOX XPOS '12' CM WIDTH 0 TW HEIGHT '13' CM FRAME 10 TW

like this..u have tp specify

Just excute the above code u will get an table format.

Regards

Kiran

Edited by: Kiran Saka on Feb 9, 2009 7:25 AM

Former Member
0 Kudos

Hi,

Try this .

/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW ( draws frame )

/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15 ( for coloring )

/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

( draws vertical line upto 13.5 cm at 10 cms position )

/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

( draws vertical line upto 13.5 cm at 13.5 cms position )

thanks

Former Member
0 Kudos

hi,

yes the thing what u was doing is right, in script it is difficault to draw tables than smartforms. it is simple to use smartforms if u can(i mean if ur version supports).

to see the layout in steeting -


>formpainter -


>sapscript------> &check graphical form painter. it will show layout if dont need layout un check it.

regds:

rajesh.k

Former Member
0 Kudos

Hi,

Check this link..[ How to draw dynamic table in SAP Script |]

Former Member
0 Kudos

Thanks for your reply....It helped me better understand and cleared my doubts.

Former Member
0 Kudos

Hi,

U HAVE TO GIVE /: IN THE COMMAND BOX.

EXAMPLE.

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

WILL DRAW A BOX WITH 17.5 HEIGHT AND WIDTH.

THANKS,

NITHYA.