Application Development 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: 

SAPScript - Include text - Box - the text is outside

FredericGirod
Active Contributor
0 Kudos

Hi,

I really don't like SapScript and I have to made a modification. Insert a logo inside the Main window.

When I just call the logo, the logo goes in the left position ..  not realy what I expected.

So, I have the idea to create a box, and insert the logo into this box, but I'm not abble to put something in my box.

The situation is :

Main window --> Call include text -->

/:     BOX XPOS '12' CM WIDTH '2' CM HEIGHT '2' CM FRAME '10' TW

*     toto

/:     BOX XPOS '14' CM WIDTH '2' CM HEIGHT '2' CM FRAME '10' TW

that give me :

Regards

Fred

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Fred,

I'm also glad to say it's some years since I got my hands dirty with SAPscript, but from my recollection you may find some use for the POSITION command as a way to influence where the logo is anchored.

Regards,

Nick

19 REPLIES 19

Former Member
0 Kudos

Hi

You need to put the log in a secondary window placed into your box....so you're carefull to thecoordinates of the window and of the box

Max

0 Kudos

Hi Max,

I have see the solution of another window for the logo, but .. I didn't know the exact position of the logo  : it's a signature, and it must be put just after the work "Signature :"

It's why I have the idea of a table like in Smartforms, but SAPScript is definitively not Smartforms

regards

Fred

0 Kudos

Hi Fred,

It's been quite a while since i worked in Scripts, but as far as i remember you can enclose your log in a seperate window and palce that window wherever you want in the Main Page.

But seeing your earlier posts it seems that the Logo, You want to put is someone's signature.

Try Icluding this Signature word also in your window so that it is properly Aligned..

In case you want to move the Word TOTO to the right, you can  create a new paragraph format

In this New paragraph format, maintain the TABs parameter to your specification,

And then when you  type " ' ' TOTO ".(' ' indicates TAB space of the paragraph format)

The TOTO will move to the right based on the tab spacing that you have set.

Hope it helps.

Please PM in case i can be of more help to you.

Regards,

Vamsi

0 Kudos

Hi

It's not possible to set the coordinates of the logo, It's usually placed at top corner of the left, so the space used by the logo depends on its size.....you can only do some tests in order to find out the right position

Max

0 Kudos

Hi Max,

I beleive You can place the LOGO inside a window and then place it wherever required in the Page.

Please Correct me if I am wrong.

Regards,

Vamsi

0 Kudos

Hi

Yes....of course but you can't know how the logo is placed in window, I mean you can't decide how to place the logo in the windows.

Just only it can know the logo should be a rectangle so the corner at left top of the logo and of the windows should be overlaped.

Max

0 Kudos

Agreed!

0 Kudos

So,

does it means without a dedicate window for a logo, you can't specify the exact location ?

and my idea of the table it's not a good idea ?

regards

Fred

0 Kudos

HI,

Its possible to keep logo without dedicated WINDOW.

0 Kudos

I think your Idea is:

1. Create LOGO (Table/ Grid)  in the text format.(Using a Program RSTXLDMC)

2. Call the LOGO TEXT using the INCLUDE Statement

EG:

/: INCLUDE <TEXT Name> OBJECT TEXT ID ST LANGUAGE <TEXT Uploaded Language>

3. Down to the include,specify your values.

Best Regards,

Rajesh

0 Kudos

Hi

Yes you need to place the logo in a window in order to place it in a particular position of the page

You need to consider the SAPscript doesn't support the table, it's only possible to manage a grid

Max

0 Kudos

Hi Rajesh,

I know this method, and I didn't like it. But thanks for the idea !!

regards

Fred

0 Kudos

Yes, maybe, but I really don't like grid/table/box in sapscript mode, I have found a better solution

thanks for your help

regards

Fred

0 Kudos

Hello Fred,

Thank you for your rewards!

Could you please explain the how you resolved it?

Thanks in advance!

Regards,

Rajesh

0 Kudos

Hi Rajesh,

I have put the solution in reply of Nick

Note 307414 - Documentation on SAPscript command BITMAP

Regards

Fred

former_member203305
Active Contributor
0 Kudos

Hi.

An easy solution is to add a frame to the logo, no need to create a box in the sapscript for that.

Regards

Miguel

Former Member
0 Kudos

Hi Fred,

I'm also glad to say it's some years since I got my hands dirty with SAPscript, but from my recollection you may find some use for the POSITION command as a way to influence where the logo is anchored.

Regards,

Nick

0 Kudos

Yes !!!

you give me the way to find the solution :

Note 307414 - Documentation on SAPscript command BITMAP

  1. Within a text/text element you can use the BITMAP command with the following syntax: BITMAP <name> OBJECT <obj> ID  TYPE <typ> [XPOS <xpos>] [DPI <dpi>]You must set the <name>, <obj>

XPOS '10' cm ...

thank you for your help Nick !

Regards

Fred

0 Kudos

well....good job

Max