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: 

logo uploading in script

former_member497886
Participant
0 Kudos

Hi,

I have uploaded the logo using standard program RSXTLDMC. But the requirement is -

the logo should get adjusted on the page according to the content.

for eg- above the logo there is a table. The table can contain 1 or more line. So accordingly the logo should move up or down on the page.

Regards,

Mohammadi

8 REPLIES 8

Former Member
0 Kudos
Command in your Sapscript
 
/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
 
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
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window

0 Kudos

thanks dear,

I have done all u have said.

But i want my logo to automatically adjust on the page based on the table content.

regards,

Mohammadi

Former Member
0 Kudos

hi,

if your requirement is to print the logo at the end of the table contents

then try this code.

LOOP AT T_FLIGHT INTO FS_FLIGHT.
CALL FUNCTION 'WRITE_FORM'
 EXPORTING
   element                        = 'TEST' " text element for table contents
   window                         = 'MAIN'.
IF sy-subrc <> 0.
ENDIF.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
 EXPORTING
   element                        = 'TEST1' " text element for logo
   window                         = 'MAIN'.
IF sy-subrc <> 0.
ENDIF.

code in SE71.

/e: test
*   &fs_flight-carrid&
/e: TEST1
/: BITMAP 'MYSAPCOM' OBJECT GRAPHICS ID BMAP TYPE BCOL

assign another text element to the logo and call it in the driver program after the table text element

this will definitly work.

if you want the logo to be at the end of every page.

try using

/:bottom

/: endbottom

regards

sarves

former_member585060
Active Contributor
0 Kudos

Try to insert logo in a variable window not in constant window, but it will not much difference

Former Member
0 Kudos

hi,

try to create a new window in the middle of the main window then define the bitmap/logo inside the new window

thanks

Former Member
0 Kudos

Hi ,

this link may help....

Regards,

Mdi.Deeba

Former Member
0 Kudos

Hi,

choose below navigations

1.Go to transaction SE78 (Administration of Form Graphics).

2.Double-click on u201CGRAPHICSu201D node and click on u201CImport (F5)u201D to import the image.

3.Select the file name by using the F4 functionality available. Name your graphic and enter a short description. If you have color image, select the radio button u201CColor Bitmap imageu201D. Click on tick mark to proceed.

4.The graphic is imported and is stored in u201CBusiness Document Serveru201D.

5.Now go toscript.

6.To display an image, right click on Main Window --> Create --> Graphic

7.Use F4 help to fill the fields.

8.Test run the smart form, to check the appearance of the graphic.

as per my knowledge log is not adjusted in partucular window ,we can change the resolutions only.

Regards,

Madhu

former_member497886
Participant
0 Kudos

solved