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

SAP Script - Text in BOX.

Former Member
0 Likes
1,528

Hi all,

This is the following code I have written.

/: POSITION MAIN /* name of the window */

/: BOX XPOS '0' CM YPOS '0' CM FRAME 10 TW

/: BOTTOM

/: BOX XPOS '2' CM YPOS '23.3' CM WIDTH '17' CM HEIGHT '1' CM FRAME 5 TW

p1 Conditions apply /p1 is paragraph format*/

/: ENDBOTTOM

I have a main window and I have a box at the bottom of the main window. Now I want to write the text "Conditions apply" in that box.

Can anyone please help me with this.

Regards,

Varun.

Hi all,

This is the following code I have written.

/: POSITION MAIN /* name of the window */

/: BOX XPOS '0' CM YPOS '0' CM FRAME 10 TW

/: BOTTOM

/: BOX XPOS '2' CM YPOS '23.3' CM WIDTH '17' CM HEIGHT '1' CM FRAME 5 TW

p1 Conditions apply /p1 is paragraph format*/

/: ENDBOTTOM

I have a main window and I have a box at the bottom of the main window. Now I want to write the text "Conditions apply" in that box.

Can anyone please help me with this.

Regards,

Varun.

11 REPLIES 11
Read only

Former Member
0 Likes
1,287

Hi Varun,

Please do the following at "p1 Conditions apply /p1 is paragraph format*/":

For Normal text

/* IF Condition

/:If &EKPO-WERKS& EQ '101' '.

/* Write your text

/: &TEXT& "--Write your text

/:ENDIF.

For Include TEXT (Text maintained as Standard text):

/* --IF condition

/:If &Varible& EQ 'X'.

/* Write include text ZTEXT--Replace with ur Standard text

/: INCLUDE ZTEXT OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH ST

/:ENDIF.

Hope this may help you.

Lanka

Read only

Former Member
0 Likes
1,287

Hi Varun,

Try this:

/: POSITION WINDOW

/: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN

/: SIZE WIDTH '+0.4' CH HEIGHT +1 LN

/: BOX HEIGHT '19.5' LN FRAME 10 TW

/: BOX HEIGHT '1.5' LN INTENSITY 20

IA

IA ...your text...

Hope this helps...

Gabriel P.

Read only

0 Likes
1,287

HI,

The above two options by lanka murthy and Gabriel do not work.

Regards,

Varun.

Read only

0 Likes
1,287

hi Varun,

Can you pastes your code here.

Lanka

Read only

0 Likes
1,287

Hi Murthy,

I do not have any conditions or any variables to printed.

All I need is the text *Conditions Apply in the box defined in the bottom and endbottom command.Is there anyway to do that?

Regards,

Varun.

Read only

0 Likes
1,287

Hi Varun,

I think you want to add plain text as " *Conditions Apply".

Then :

P1 '*Conditions Apply'.

P1 --Paragraph --replace with your paragraph.

Lanka

Please assign the reward points to those answers helped you.

Read only

0 Likes
1,287

HI,

It isn't working. You can check the code given in my query. Its already done but it isn't working.

Regards,

Vijay.

Read only

0 Likes
1,287

Have you defined paragraph "P1".

You have to write between ' and '

P1 ' *Conditions Apply '

If paragraph not defined then use default paragraph '*'

  • ' *Conditions Apply '

Lanka

Read only

0 Likes
1,287

Hi,

It still doesn't work.

Regards,

Vijay.

Read only

0 Likes
1,287

Hi Varun,

Please look at ur box coordinates CM * 23.3CM this may be over flowing your page. Please reduce them.

Try with this

/: BOX XPOS '5' CH YPOS '0' LN WIDTH '50' CH HEIGHT '4' LN FRAME 5 TW

P1 ' *conditions----'

If it is printing then change the box and text accordingly.

Lanka

Read only

0 Likes
1,287

Hi Varun,

Write some lines & see what is happening & from where the text is starting to write then you will know the problem,check your Ypos also,it seems to be going beyond the window width.

Message was edited by: Phani Kiran Nudurupati