Sapscripts dynamic logo

hi all,
Requirement: i need to create a logo depending upon the company code.
I have created a function module and stored logo in a variable called v_logo in my driver program.
the problem is that i am unable to include the variable  v_logo in sapscript
/: BITMAP V_LOGO OBJECT GRAPHICS ID BMAP TYPE BCOL.
do i need to create a graphic window nor  a normal window to include the above command.
i have tried using a graphic window but it does not allow me to use the above command.
so let me know how to insert the above command in sapscripts?
whether to include in a graphic window nor in a normal window?
thanxs in advance

Hi Hari,
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
or
In 4.6x :-
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be.
Please note that in 4.6c onwards, you can also used Windows Bitmap file ( .BMP).
<b>Based on the company code</b> you can send the logo name into a Variable from your Driver program and you can just use it here in the following statement.
/: BITMAP V_LOGO OBJECT GRAPHICS ID BMAP TYPE BCOL
make an if-statement for burks. You have to insert
the logos as stadart-text.
do this in script
IF &BUKRS& = '0001'
INCLUDE Z00001 OBJECT TEXT ID ST
ENDIF
IF &BUKRS& = '0002'
INCLUDE Z00002 OBJECT TEXT ID ST
ENDIF
Refer this thread:
How to change SAP SCRIPT logos at runtime
Reward points if this Helps.
Manish
Message was edited by:
        Manish Kumar

Similar Messages

  • Dynamic logo in sapscripts

    hi all,
    How do i create dynamic logo in sapscripts. i need to change the logo depending upon the company code. and there are 10 company codes. i have done my logic but how do i keep my variable.
    my varaible: complogo.
    thanxs in advance.

    Hi hari,
    make an if-statement for burks. You have to insert
    the logos as stadart-text.
    do this in script
    IF &BUKRS& = '0001'
    INCLUDE Z00001 OBJECT TEXT ID ST
    ENDIF
    IF &BUKRS& = '0002'
    INCLUDE Z00002 OBJECT TEXT ID ST
    ENDIF
    regards, Dieter

  • Dynamic Logo file names in PO XSL-FO stylesheet

    We have different company logo files for different operating units. Hence , we require to use a dynamic logo file name in XSL-FO template.
    When I use the below for a single file it works.
         <fo:inline>
    <fo:external-graphic content-width="50pt" content-height="50pt" src="url({'${OA_MEDIA}/Logo_medium_COMCEL.jpg'})" />
    </fo:inline>
    However, I would need to make the filename dynamic.
    When a tried usng an xsl variable tos tore fielname, it didnt work.
    Any pointers as to how we can achieve that would be helpful

    Thanks for your quick reply Dave, I appreciate your time.
    But I couldn't test the new template as I was neither able to create a new PO nor was able to run the PO Output for communication Report. When I tried to create a PO the Purchase Order form did not open saying I am not setup as an employee, even the PO Output for communication did not give any LOV for the PO's.
    I tried to define employee name in the employee's login
    information (System administrator/Security/User/Define) for my user, but some how my name doesn't appear in LOV. Any help is appreciated.
    Thanks,
    Sharmila

  • Dynamic logo's

    I am having problems to show dynamic logo's. It seems that XMLP doesn't pick up the value of my fieldname.
    If i use the the following syntax. It works fine.....
    url:{contact ('${OA_MEDIA}','/','LOGO_243.gif')}
    However when i use :
    url:{contact ('${OA_MEDIA}','/',DOC_LOGO_NAME)}
    In my xml-file i have a field named DOC_LOGO_NAME:
    <?xml version="1.0"?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <PO_V22>
    <LIST_G_C_COMPANY>
    <G_C_COMPANY>
    <ORG_ID2>243</ORG_ID2>
    <DOC_LOGO_NAME>LOGO_243.gif</DOC_LOGO_NAME>
    However then no logo appeared on my pdf.
    I looked at several forums about this topic, however the right answer doesn't seem to be there...:-(
    Can anyone help me on this.
    Cheers,
    Sal

    Hi Tim,
    Sorry for this late replay, but i had some days off:-)
    Thnks, for you reaction. The first option i already tried, but didn't work for me. I now also tried to mention the full path. But this doesn't work either.
    Can it be a version problem? do i need to upgrade? I am using the logic in a header(footer) in my template. Can this cause the problem?
    Hope you have any more suggestions. If i need to sent you some sources just tell me.
    Thanks,
    Sal

  • Get infotype data in e-mail/sapscript - Dynamic action-

    Hello,
    we developed a dynamic action sending a mail if an employee leave the company.
    We can catch data in infotype 0000 and 0001 in the sapscript used in the mail, but we would like also fetch data from other infotypes.
    We tried to generate an ABAP code from an ad hoc query, but it was impossible to get the return tables in the sapscript.
    Are there other solutions to get infotype data in saps scripts?
    Kr,

    Hi ,
    you can follow the below solution .
    1. Create a custom report for the leaving/terminated employees by using the action in infotype 0000 with field massn, massg.
    2. you will get all the employees from table pa0000 who are laving between a date interval .
    3. by using the personnel numbers from pa0000 get other infotypes information.
    4. create a smartform/script for your requirement.
    5. using the program you can send the data to the employees.
    another way .
    if you know the name of the script you can create some variables for the other fields from other infotypes in that script and you can populate the variable values using perform in program command using a custom program in that script.

  • Dynamic Logo in PDF - Is it possible?

    Hi
    I have earlier generated text field values in a PDF using a FDF file.
    The FDF file is generated using PHP on the server side.
    Now I need to do the same but I also need to be able to set a LOGO (image file) in the PDF dynamically (programatically).
    Is there a way to accomplish this using Acrobat XI PRO to make a PDF with the form fields needed?
    Perhaps using a hidden textfield value as the basis for the logo image. Then perhaps set the hidden textfield value same way the visible text fields get their value from the FDF file?
    It is important that this is working without the PDF viewer (person) not having to do anything to make the logo appear.
    It would be great if possible to do this using an FDF file. If not possible then I would like to hear if I can combine FDF with some other solutions.
    Any suggestions on how to make this work?

    I'm using PHP to generate the FDF file and to present the visitor with the correct PDF/FDF combination.
    The source of the logo will/can be an image (.jpg) file (from same server as the PDF is on). Was hoping to be able to use an URL pointing to the image to be used.
    I came across this document:
    How to load dynamic images in a PDF file using Adobe Reader/Acrobat 8+
    http://blogs.adobe.com/dmcmahon/2009/01/06/how-to-load-dynamic-images-in-a-pdf-file-using- readeracrobat-8/
    Some down in that document we can read:
    Solution 2: Upload the images as attachments.
    Do one of the following to upload the images as attachments:Use the attachment panel in Acrobat (View > Navigation Panels > Attachments > Add).
    Upload the images through Javascript (see the “Adding Attachments” section in the Javascript scripting guide).
    Update the value of the image field using script at runtime to point to the attachment. (See the “Opening and saving attachments” section in the Javascript scripting guide)
    - Upload image through Javascript, by adding attachment (ref. Javascript for Acrobat).
    - Update the value of the image field using script at runtime to point to the attachment.
    Looking at the Javascript scripting guide as pointed to by the URL above, did not exactly show any good examples on how to do the above tasks.
    But it looks like it is doable.
    For this to work in my case I need to be able to make the javascript code load the correct image file.
    Which image file to load depends on which person is requesting the PDF and corresponding FDF file.
    Maybe it is possible to make the Javascript use a value transferred from the FDF file to the PDF file, or using another technique.
    Can someone here please explain to me how I do accomplish what is described above?

  • Dynamic Logos in Smart forms

    We have a business case to choose different logos based on a condition. This invloves significatn effort from Change mangement point of view.
    Is there any solution by which I don't need to change any thing in smart forms but able to derive the graphic dynamically.  
    any help in this regard is appreciated.
    regards,
    Sadam

    Hi Harpit,
    I did as follow in my requirement... i have to print logo based the company code.. for this
    i have created 1 graphic window, then given the name as<b> &V_LOGO& then press the Button right arrow (looks like ">").</b> so that system will understand the name will comes form vareiable V_LOGO(is type char20. rest is same.
    but some how we need to pass the logo name for this i have written code in GOBALDIFINATION-->INITIALIZATION tab...
    if xxx-BUKRS = 1008.
    V_LOGO = 'xxxxxxxx'.
    elseif xxx-BUKRS = 1011.
    V_LOGO = 'yyyyyy'.
    elseif xxx-BUKRS = 1152.
    V_LOGO = 'zzzzzzzz'.
    endif.
    Please Close this thread.. when u r problem is solved
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards
    Naresh Reddy K
    Edited by: Alvaro Tejada Galindo on Oct 1, 2008 3:25 PM

  • SAPscript - Dynamic box position and height.

    Greetings...
    How to print dynamic box according to the Element. I have an element with looping condition when i used box the line only printed on the first loop, but and no line printed on the next looping even though its is  different element.. Below is the sneak peak of my code.
    /E 101
    /:   BOX WIDTH 0 MM HEIGHT '2' MM FRAME 20 TW
    /:   POSITION YORIGIN '+2' MM
    W2   <B>&text&</><B>,,&zvalue&</>
    Thank you

    Hi
    it is very hard to print a dynamic box with sapscript.
    It is more easy to develop a new-smartform then to develop a dynamic box.
    i know only 1 sapscript which is using dynamic boxes. I do not know the sapscript only the fucntional name we use. That is shopfloor papers (for a production order). It has a good combination of printprogram and sapscript which both has to be working together to get it done. Try to find it and study it. Then you will find out how it works.
      There is no way to get it done with only changes in your sapscript.
    an alternative is to use tab's and '|' and ulines to make something that look a bit like boxes.
    Hope this will help you out.
    Gr., Frank

  • Dynamic logo ,text in smartforms

    hi there!
    as per my requirement they got 4 types of logos.
    they wanted to display those dynamically. plz gyide me.
    if possible also update me regarding dynamic texts too.
    thx in adv

    Hi
    You can upload those 4 different logos into SAP through trxn <b>SE78</b>.
    And based on your conditions, you can select the required logo to print.
    Regards,
    Raj

  • SapScript and Logo

    after uploading the logo in scripts, if i release the script then logo will logo along with scripts or we have to do any processes for logo
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    Logo's should be transported/created first in the Target client first
    then only if you send the script that logo will be printed
    see the steps to upload the logo
                   SAP SCRIPT
    To create a logo in SAP printouts just do the following
    1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.
    2. Run  program RSTXLDMC and enter the following parameters
       Enter file name                     C:\COMPLOGO.TIF
       UOM                           CM
        Line width for text                132
        Text name                     ZHEX-MACRO-COMPLOGO
        Text ID                          ST
        Text language = E
        Number of Tiff gray levels (2,4,9) 2
    3.  Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally in the text element, mention
            /: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
    Please note that if object name is not indicated as 'ZHEX...’ the logo may not be printed!
    You will not be able to see the logo in a test print. The same will be printed in actual printout.
                          SMARTFORM
    1)     In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and   position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use  TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server
    Regards
    Anji

  • Dynamic logo loading

    I am working on an HTMLDB application where each client connects to check status of his jobs etc. I'd like tolet the client see his specific logo at the time of login. Is it possible in HTMLDB to have different logos based on who is currently looged in? Can the log be dynamically channged based on a session info?
    is there any substition variable that I can set to a file name for each specific customer?
    Thank you for your help
    my version is 1.6
    gha

    Are the logos relevant to the status of jobs OR who the client is? Or is it both?
    Either way, I'd create a set of columns in a table that associate the status (or the client) with the appropriate logo (actually, and most likely, a path to a logo file). Then when you retrieve the status of the job you can get the logo file location along with it and display different logos based on which records you're presenting.
    You can also store image files in the database as a BLOB column, and there are lots of posts about that here on the forum. Same concept applies. Slightly different handling though.
    Earl

  • Dynamic Logo.

    Hi,
    I have a requirement where the logo should dynamically change depending upon the customer in Packing Slip report.
    Would appreciate if any one can share there experience.
    Thanks.

    2 options,
    First :
    store them in the DB,based on the condition you wanted to display the image and fetch that particular record in the xml as BLOB,
    and it can be rendered asthe header logo
    Second:
    You have to store in them all in a filesystem.
    In the template based on the condition , you got to refer their name them dynamically.

  • SAPScript dynamic window position by command

    Hello Abapers,
    I am trying to move up/down a window that contains a graphic by commands because the position needs to be dynamically adjusted.
    I tried these commands -
    /:POSITION XORIGIN '5' CM YORIGIN '5'CM
    But it doesnt work..  Can anyone help? Appreciate it,
    Vince

    Hi
    This is syntax for positon:
    Position <xorigin> <yorigin> <window> <page>
    example:   /: POSITION 5 5 MAIN FIRST
    Please note: in the above example <window> = MAIN and <page> = FIRST
    Reward points if helpful

  • Dynamic logo doesn't appear for multiple outbound payments in IBY

    Product: BI Publisher 10.1.2.3
    Oracle Payments (IBY) 12.1.3
    Logo for each organization on check printing appears correctly for single outbound payment but for multiple outbound payments, it doesn't appear. Any help would be greatly appearciated.
    Thanks,
    Amjad

    Product: BI Publisher 10.1.2.3
    Oracle Payments (IBY) 12.1.3
    Logo for each organization on check printing appears correctly for single outbound payment but for multiple outbound payments, it doesn't appear. Any help would be greatly appearciated.
    Thanks,
    Amjad

  • Crystal Report VS 2010 Beta - Dynamic Logo Image

    I am creating a report for an application in which the logo needs to change. I have inserted a picture in the report. I have created a parameter called LogoFile. Using FormatObject and then GraphicLocation, I have set the value to the parameter. I pass a simple string with the file path. In order to be certain that the parameter was set, I display the string as text in my report.
    The parameter is set without problem. The image does not change to the path specified by the parameter. Do I need to do something else to trigger the change?
    Thanks!

    The graphic formula feature works for me using a .NET Windows form viewer control. What type of project and viewer are you using? Do you have the appropriate user permissions to access the image file?
    Try using Process Monitor to watch your app run. Check to see if your app is trying to open/read your image file you've set using the parameter prompt. It should give you a hint about what is occuring.

Maybe you are looking for

  • Can't send mail after uploading iTUNES update

    This is the error that comes up in the mail connection doctor window; details. 1bd95300 +OK WROTE Jan 06 22:35:05.359 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:pop3.live.com -- port:995 -- socket:0x1bdd37b0 -- thread:0x1bd95300 QUIT READ J

  • Do you know how to sort all except one column?

    I implement the Comparator interface tosort the rows in my table. The last row is a totals row which i want to keep at the bottom always. Do you know how to do that? Thanks, Zeke

  • Need to lock text changes...

    but still edit the paragraph spacing and letter and word spacing. Basicly I page and format books from authors before it gets to press and it would be nice not to have to worry about a stray keystroke adding a typo to preaproved text. is there anyway

  • Desktop can't see laptop after Leopard upgrade

    Hi, I have a G5 desktop, a MacBook Pro laptop and a PC on our work network. My laptop can connect to the G5, the G5 can connect to the PC, but the G5 can't even see the laptop since I upgraded the laptop to Leopard. Whassup with that? Anyone have ide

  • How to add VM guest in VM pool from OV Server .

    In case of non availability of OVM-Manager I have created virtual server using virt-install command. Now the problem is how do i add the guest in a particular virtual pool. Is there any specific command for adding a vm in virtual pool using ovm serve