cancel
Showing results for 
Search instead for 
Did you mean: 

sap script

Former Member
0 Kudos

how to create table in sap script

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

there is no concept of table in SAPScript, where as you can create tables in Smartforms...

To have a look and feel of table you can print the line items and place boxes...

Regards,

SaiRam

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

check this link.

http://sap-img.com/sapscripts.htm

Rewards if it will helpful,

thanks,

Prashant.

Former Member
0 Kudos

hi,

I hav created table using box command. how to pass table header and item details to that.i hav put them in text elements.printed separately.now i want to print those details in table,how to do it?

Thanks in advance.

Former Member
0 Kudos

Hi,

Check this example code,

BOX WIDTH '196' MM HEIGHT '140' MM FRAME 10 TW

SIZE HEIGHT '0' MM WIDTH '196' MM

BOX FRAME 10 TW XPOS '0.21' MM YPOS '5' MM

SIZE HEIGHT '140' MM WIDTH '0' CM

BOX FRAME 10 TW XPOS '16' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '60' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '115' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '149' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '167' MM YPOS '0' MM

Write this code for creating a box in your script layout.

Your can vary the measures further,

Regards,

PRitha.

Reward if helpful

Former Member
0 Kudos

Hi,

I think you need to go through sap script help first,

Check this link

http://wiki.ittoolbox.com/index.php/Sap_script

YOu can put the header and detail data in the sap script form

Here's an example,

........1........2........3........4........5........6....+....7..

*COLOUMN HEADINGS

ITEM MATERIAL,,,,,,DESCRIPTION,,,,QUANTITY,,,,UOM AMOUNT

*DETAILS

&v_posnr& &v_MATNR&,,,,,,&v_arktx&,,&v_ZMENG&

,,&v_MEINS& &v_MWSBP&

,,<c1>&v_MATNR&<c1>

BOX WIDTH '196' MM HEIGHT '140' MM FRAME 10 TW

SIZE HEIGHT '0' MM WIDTH '196' MM

BOX FRAME 10 TW XPOS '0.21' MM YPOS '5' MM

SIZE HEIGHT '140' MM WIDTH '0' CM

BOX FRAME 10 TW XPOS '16' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '60' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '115' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '149' MM YPOS '0' MM

BOX FRAME 10 TW XPOS '167' MM YPOS '0' MM

regards,

Pritha,

Reward points if helpful.

Former Member
0 Kudos

Hi Kavitha ,

You will have to use the BOX command to do it , please see the help on box command for more info.

Regards

Arun