Skip to Content
author's profile photo Former Member
Former Member

Doubt in SAPSCRIPT very urgent

I want to increase the box height depends on internal table records. I tried like this

BOX HEIGHT &NOOFLINES& CM WIDTH '18.5' CM FRAME 10 TW

data for &NOOFLINES& is from print program. But i could not get the box. No boxes displayed in the output.

Help me

Very urgent

Thanks in advancee.

-Siddharth

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 04:20 AM

    Hi,

    I got this from a link,

    Eg:

    Instead of:

    /: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

    You can write:

    /: POSITION XORIGIN '11.21' YORIGIN '5.31' MM

    /: SIZE HEIGHT '2' MM WIDTH '76' MM

    /: BOX FRAME 10 TW INTENSITY 10

    This can be usefull if you gave several boxes that share the same parameters.

    HOPE IT HELPS U.

    Thanks&Regards,

    Ruthra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 06:03 AM

    Hi Siddharth ,

    BOX command has to have the data in literals. It cannot take variable values in text elemnts like &NOOFLINES& .

    You can use Function CONTROL_FORM from your print program to pass a BOX command to sapscript. In you program you can manipulate and pass the correct BOX command . ( This has a limitation of MAIN WINDOW only ).

    Cheers.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.