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

TIF files as text elements in scripts/smartforms

Former Member
0 Likes
854

Hi!

I have converted a TIF file (company logo) to a text element by using program RSTXLDMC. I know it is possible to add this to a script, but when I try to use the same text element in a smartform, only rows of numbers and letters are displayed.

Is it even possible to use this kind of text element in a smartform? And if so, what has to be done to make this work?

All helpful answers will be rewarded!

- Mari Virik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
670

hi

good

go through this link, hope this ll help you to solve your problem

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf

thanks

mrutyun^

5 REPLIES 5
Read only

Former Member
0 Likes
671

hi

good

go through this link, hope this ll help you to solve your problem

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf

thanks

mrutyun^

Read only

Former Member
0 Likes
670

Hi,

Printing Graphics

Use

You use the graphic node to display graphics, such as a company logo, on the form. For

performance reasons, make sure that the graphics are held in the printer memory. SAP Smart

Forms support this method, provided that:

The printer can be controlled accordingly.

There is enough memory space on the printer.

You activated this property in transaction SE78 (see below).

In this case, the system sends the graphics to the printer only once during one print job.

To include background graphics, use the Background graphic tab of a page node.

Prerequisites

You use the SAPscript Graphic Administration (transaction SE78) to import graphics into the

SAP-System:

1. Double-click on a graphic format in the tree structure in the forder Document server

GRAPHICS General graphics.

2. Choose Graphic import.

The transaction imports the graphic and stores it on the Business Document Server (BDS). Now

you can display it on a form.

Procedure

1. To create a graphic node, call the context menu for that node in the tree structure that you

want to contain the graphic and choose Create Graphic.

Create the graphic node as direct successor of the page node or use the context

menu in the layout of the Form Painter. You can then position the graphic anywhere

on the page.

In the Form Painter the system displays a small box for the newly created node.

2. Enter a unique name for the node and a description (for example, company logo).

3. On the General Attributes tab determine whether you want to include a colored graphic or a

graphic in black and white.

4. Use the fields Object, ID, and Name to identify the graphic. Use F4 help of the Name field to

copy the values of these fields. If you copy them with ENTER, the system displays the graphic

in the Form Painter.

The box for the graphic in the Form Painter also contains the name of the graphic

node, which in part overlays the graphic.

5. In the Technical Attributes box determine the graphic resolution according to what the printer

supprts. Small resolutions increase the size of the graphic on the form, higher resolutions

reduce the size.

6. For graphic nodes that are displayed in a window, there is a box Horizontal position in

addition to the general output options. The parameters Reference point and

Alignment determine the horizontal position in the window, while the vertical position is

determined by the previous output in the window.

At present, you cannot overlay graphics with text. However, if you use a template

node, you can display graphics and text side by side.

Result

The system displays the node with name and description in the tree structure. If you insert a

graphic as direct successor of a page or if you used the Form Painter, the system displays the

graphic. Graphics in windows are inserted only when the form is processed. You can therefore

not see them in the Form Builder. In addition, the system automatically dispalys the graphic on

the next page if there is not enough space left on the current page.

Regards,

Bhaskar

Read only

Former Member
0 Likes
670

Hi,

I've tried to use BMP files. The logo is an JPG file, and when I use Paint and save it as a 256 color BMP file, the quality of the image decreases. When I use Adobe Photoshop and save the JPG as a 24 bit BMP, the background of the logo (which is white) turns grey.

So that's why I was wondering if it was possible to use the TIF/text element in the smartform as it can be used in scripts. If not - is there any way of uploading TIFs in SE78? I've tried to upload the TIF here, under the BMAP folder, but this image also turns grey (as described above).

Does anyone know how to solve this?

- Mari Virik

Read only

0 Likes
670

Hi,

These are the steps to be followed for uploading graphics in R/3 system

1. First save the file as BMP

2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and

make it Zoom as 100% and save as *.TIFF

3. Open SE38 and execute program RSTXLDMC

4. Give your TIFF file path name

5. Select Bcol (for Color)

6. TEXT ID will be ZHEX-MACRO-*.

7. Inplace of * write your own logo name (ZCOMPANYLOGO)

8. Execute the program

Read only

Former Member
0 Likes
670

Yes, I have already executed RSTXLDMC and created a text element.

The question is, can I use this in a <b>smartform</b> as an include text element? As described in the posts above I've had trouble using BMP/TIF in SE78 (poor image resolution and grey backgrounds).

- Mari Virik