‎2006 Mar 27 4:52 AM
Hi all,
I am modifying the sapscript for Goods return delivery slip. I have put 2 boxes according to our format. One box
(left side) consists of the address of the plant. In the other box, I shud display the grn no and other details. How can i fix the grn no ,date fields in a particular position. Because,rite now, i am not getting the right alignment. Based on the length of the plant address fields, the right box contents are moving... how will i fix the fields in my right box at one place?
TIA,
sinthu
‎2006 Mar 27 5:44 AM
In that case, i shud create totally 4 windows according to our requirment. but where will i call these 4 windows? right now, since they hve already provided a window RUKOPF for the header, i thought that would be easy.. my only problem is alignment of the right fields.
‎2006 Mar 27 4:59 AM
hi Sinthu,
you can Use the POSITION Command to set the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command...
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]like..
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
regards
satesh
‎2006 Mar 27 5:08 AM
Hi,
This is the code i've written.
BOX XPOS '0' CM YPOS '0.5' CM WIDTH '9.2' CM HEIGHT '3.5' CM FRAME 8 TW - (for the left box)
BOX XPOS '10' CM YPOS '0.5' CM WIDTH '10' CM HEIGHT '3.5' CM FRAME 8 TW - (for the right box)
<BB>From :</> &NAME1&,,,,,,GR Note No :,, &MKPF-MBLNR&
the From : and &name1& should be printed inside the left box and GR Note No :,, &MKPF-MBLNR& should be printed inside the right box.
Based on the lenght of &nam1&, the position of GR note no followd by &mkpf-mblnr& is changing....
‎2006 Mar 27 5:24 AM
Hi Sinthu,
It would be better to create window in your page.
Create a window and add the fields that you want to display.
&itab-field&
Then draw a box around the window.
BOX xpos CM ypos CM ..
‎2006 Mar 27 5:27 AM
Hi..
In one window(RUKOPF) , i have 2 boxes. That is all done.but my field postions inside the 2'nd box keeps changing.
Any solution for this ??
Rgds,
sinthu
‎2006 Mar 27 5:28 AM
Hi
In u have to define paragraph and in that paragraph
set <b>Alignment</b> as <b>right</b>
and use above paragraph to print the content of that variable.
regards
vinod
‎2006 Mar 27 5:30 AM
Hi Sinthu,
Create seperate windows instead of having one.
In the first window,
Display the first box and items.
In the second window, display the next items.
This would avoid mispositions.
Regards,
Wenceslaus.
‎2006 Mar 27 5:33 AM
HI Sinthu,
did you try using the position commaand to fix the origin for the coordinate system XPOS and YPOS of the BOX command .. given in the previous post..
regards
satesh
‎2006 Mar 27 5:29 AM
Hi,
Problem solved. I created a new paragraph format,
and Set the tab positions in the paragraph format.
thanks for the info.
Regards,
sinthu
‎2006 Mar 27 5:44 AM
In that case, i shud create totally 4 windows according to our requirment. but where will i call these 4 windows? right now, since they hve already provided a window RUKOPF for the header, i thought that would be easy.. my only problem is alignment of the right fields.
‎2006 Mar 27 5:45 AM
Hi sinthu,
Create a new paragraph format,
Set the tab positions in the paragraph format.
Set it to the maximum length of the fields so that they would not interfere with each other.
Otherwise, you can call the windows in your driver program.
Regards,
Wenceslaus.