Application Development and Automation 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: 
Read only

BOX Command in Smartforms

Former Member
0 Likes
1,762

Guyz,

My situation is i have main window which is having 2 columns ...

1st - invoice line item text

2nd - invoice line item value

requriement is i'll have to print a vertical line after the 1st column (inv line itemtext) which should draw through out the main window.

Firstly - I tried with BOX Command (BOX XPOS 3.00 CM WIDTH 5.00 CM FRAME 10 TW) inside the MAIN Widnow and inside a text element which is not working to my surprise. MAIN WINDOW height = 11,80 cm width = 18,16 cm ...SO I'M SURE ABOVE BOX COMMAND SHOULD FIT INTO THIS WINDOW DIMENSIONS but nothing is being printed ?

Secondly -- As i'm using internal table for priting whole MAIN Window i tried using patterns (framed pattern having one line after first column)... initial look at this pattern made me happier but to my disappointment it didn't work i.e., though it's pritning vertical line it's not printing through out the main window. Say if we have just one row to print vertical line just spans the first row but I WANT VERTICAL LINE TO BE PRINTED THROUGH OUT THE MAIN WINDOW.

Any suggestions pls ?

Thanks in advance

SK

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,448

Sreedhar,

In the output options you have the BOX with shading option, you just will have check that.

Especially with table, In the first tab, there will be a button when clicked will show the different patterns that you can select.

You cannot write any BOX command.

Regards,

Ravi

Note : Please mark the helpful answers

9 REPLIES 9
Read only

Former Member
0 Likes
1,448

HI

WHy r u using BOX commands, think there is an option to select the box command in the interface itself.

There is no need to write BOX commands explicitly

VJ

Read only

0 Likes
1,448

cud u guide me where exactly you meant we can box command pls ?

Read only

0 Likes
1,448

Goto Main window click on the Output Options tab and select the BOX and Shading section where you can define the BOX attributes.

Hope this helps

Cheers

VJ

Read only

Former Member
0 Likes
1,449

Sreedhar,

In the output options you have the BOX with shading option, you just will have check that.

Especially with table, In the first tab, there will be a button when clicked will show the different patterns that you can select.

You cannot write any BOX command.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

0 Likes
1,448

VJ -- I already have 'Box and shading' option ON for MAIN WINDOW due to which i'm able to print border for the whole MAIN window

Ravi -- As mentioned in my initial query, I did select the required pattern due to which i'm getting vertical line only till the rows of table but not through the complete MAIN Window.

My requirement is --- I HAVE TO HAVE A VERTICAL LINE AFTER FIRST COLUMN THROUGH OUT THE WHOLE MAIN WINDOW.

Any suggestions pls ?

Read only

0 Likes
1,448

Hi Sreedhar,

I think one our consultant faced the same issue and if i can recollect what was done was they created one more dummy window and overlayed it wlong with the main window and the dummy window the vertical lines were defined all through. Since its a non main window the vertical lines show up always. If the main window lines end up early then the dummy window lines show up as if it was coming from the main window.

Some time got to be smarter to fool around SAP

Try this option i hope it works for you.

All the best

Regards

VJ

Read only

0 Likes
1,448

Sreedhar,

In SMART Forms you cannot have a line / box unless there is a element.

What you can do is CREATE a TEMPLATE object and select the pattern. But with template and TABLE inside that formatting of the data will be difficult.

This link might be useful for you.

http://www.sapgenie.com/abap/smartforms.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm

See the demo programs and smartforms SF_EXAMPLE_*

Regards,

Ravi

Note : PLease mark the helpful answers

Read only

0 Likes
1,448

Sreedhar,

In SMART Forms you cannot have a line / box unless there is a element.

What you can do is CREATE a TEMPLATE object and select the pattern. But with template and TABLE inside that formatting of the data will be difficult.

This link might be useful for you.

http://www.sapgenie.com/abap/smartforms.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm

See the demo programs and smartforms SF_EXAMPLE_*

Regards,

Ravi

Note : PLease mark the helpful answers

Read only

0 Likes
1,448

Hey VJ,

That's a smart trick

it's shame to know that smartforms doesn't have some functionality which we had in sapscripts. Wonder why it is SMART though!?

anyways it solved my problem...thanks a ton...i'll reward ur points...

Thanks