02-18-2009 6:42 AM
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
02-18-2009 6:46 AM
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
02-18-2009 6:51 AM
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
02-18-2009 6:54 AM
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
02-18-2009 6:56 AM
Try to insert logo in a variable window not in constant window, but it will not much difference
02-18-2009 7:00 AM
hi,
try to create a new window in the middle of the main window then define the bitmap/logo inside the new window
thanks
02-18-2009 7:02 AM
02-18-2009 7:38 AM
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
12-02-2009 1:58 AM