Skip to Content
avatar image
Former Member

SAp Script Issue

Hello,

I am developing a SapScript by copying a std layout to a 'Z*' layout. I am not modifying the print program, but am writing a separate routine for new fields.

In the main window, there are many frames (boxes).

I have to modify some of them as well as add new ones.

E.g. Initially there was 1 frame that had just 1 field, now this frame is to be divided into two frames representing 2 different fields. Both these fields are dynamic. My problem is to draw the vertical line that would divide the frame into 2, because as I said the fields are dynamic and so i cannot set the line length using "/: Box Xpos '4' cm YPOS ......".

This statement will only help in determining the exact X-position, but it cannot exactly determine the length of the line as the fields are dynamic.

Please provide some suggestions.

Thanks & Regards,

Tejas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Mar 13, 2007 at 01:19 PM

    Hi instead of making box. my advise to write a paragraph format for that row, in that fix tab leangths so that u can fix that V-line exactly dynamically too...

    >>>>>>award if helpfull.

    Regards,

    -Anil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 14, 2007 at 12:12 PM

    u can also set the XPOS lenght and YPOS in the run time ..

    u need to pass these values from u r program itself ...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 14, 2007 at 12:14 PM

    instead of dividing the box into two, its advisable to create a new window with another box and have that dynamic variable printed on that. this will help even when u r debugging. just be carefull when giving the left, upper, width and height of the new window. make the two windows side by side so that they look to be a single box with a division.

    hope this works...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2007 at 08:07 AM

    Hi Savla,

    As per your requirement this answer would help you .

    go to SE71 type your form name and go to change mode you can window button in formating tool bar in that you can find your main window. you can double click your main window then press Text elements button in formatting tool bar. you can find your fields in that textelements you can make hard code your fields as per your allignment. if you want to move or align your windows you can also follow another way that is

    In SE71 form type your form name and it enters into form then Go to SETTINGS in menu bar . In SETTINGS you can find FORMPAINTER in that you can find Graphical form painter Radio button you can mark that radio button you can press enter . than it will show page it contains existing windows , in that page you can allign your windows . after allign that windows you have to go settings and formpainter and unmark that radiobutton and save execute your layout .

    This would be some what helpfull to you . if you give your exact requirement than i can give better solution for that . Thank you !

    Thanks & Regards

    Add comment
    10|10000 characters needed characters exceeded