on 08-08-2007 9:49 AM
hi friends..
i am working in sapscript. i have issue.
i am printing some records in main window. the issue is i have to create a border for the table.
if i use the BOX command to draw a line, its static one.
i have to create a line based on the records(ie) if 7 records means upto line come upto 7th record.
if 3 records means line come upto 3rd record...
HI,
Try this..
BOX FRAME 20 TW INTENSITY 20
give only this statement.this will draw a window for the whole window and as u r using this in main window it will be for the whole window irrespective of the height.
Hope this works.
Reward if helpful
Kamal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
<b>&uline(70)& and & sy-vline& &itab-matnr& &sy-vline&
&uline(70)&
in change editor</b>
Regards
Divya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is little bit tough this can only be done only if you have the driver program in your control, you can increment the dimensions in your print program basing on the number of line items getting passed to your form and finally pass these dimension variables to your form...
regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can you try this
display a syuline before the main window items get displayed
after that main window details
and at the start of each line
put a sy-vline and at the end of each of line put another sy-vline
the last sy-vline should be printed at the last
ie if the window size is 70 characters
the sy-vline should be at teh 70 th character.
and att the last give
sy-uline(70)
i think this will solve your problem
reward points if helpful,
thanks & regards,
venkatesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is the code which can help you get the dynamic box's from the script.
Here the element is TAB.
There is a loop for this element in the driver program.
Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.
/E TAB
/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '3.9' CM
/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '11.2' CM
/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '14' CM
/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '16.6' CM
/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW
P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
Hope this Solves your Problem in dynamic Table drawings.
Regards,
Sankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
I AM TRYING WITH THE SAME CODE. ITS NOT WORKING NOTING IS GETTING DISPLAYED IN THE ITEM TABLE.
WHAT MIGHT BE THE MISTAKE IN IT... PLS LET ME KNOW...
/E TAB
/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '3.9' CM
/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '11.2' CM
/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '14' CM
/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '16.6' CM
/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW
P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
I HOPE TO GET REPLY FROM YOU SOON
SHIVAKUMAR
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.