Add image in sap script

what are the steps to add image on sap script dynamically?

Hi,
Adding images to SAPScript can be done in two ways:
1)You can handle it in the print program, by doing an if statement and filling a variable which the SAPscript will read.
*In your print program,
If company_code = '0010'.
imagename = 'ThisCompany'.
endif.
*In your sapscript,   
BITMAP &IMAGENAME& OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100  
2) You can have the if statements in the SAPscript itself.
*In your sapscript,
IF COMPANY_CODE = '0010'   
BITMAP THISCOMPANY OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100 
ELSEIF
BITMAP THATCOMPANY OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100
ENDIF
award points if useful
regards,
Tulasi.

Similar Messages

  • How to add barcode to SAP  Scripts

    Hi,
    Please let me know the procedure to add barcodes to  SAP  Script.
    Thanks in Advance
    Irfan Hussain

    Hi,
    You have to define a Character Format to print the barcode and in this one of the option is 'Barcode'.
    Please also check these.
    http://help.sap.com/saphelp_erp2004/helpdata/en/d9/4a917851ea11d189570000e829fbbd/frameset.htm
    Barcode in sapscript
    Cheers
    Vinod
    Message was edited by: Vinod C

  • Image in sap script

    HI experts ,
    I am doing modification to customized sap script which is done by previous abaper.
    There is a image had been attached in a window like this :
    BITMAP &Z_SIGN1& OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 150
    But when i searched in se78 i dont find Z_SIGN1.
    Do you experts why there is a image Z_SIGN1 in se78.
    But there is a similiar image but with different name DIR01.
    How to find the Z_SIGN1 in sap.
    Please guide me.
    Thank you very much.
    regards,
    s.saravannan

    HI friend,
    Just i m calling the image into the script ..
    The moment i call the image can i change the name of the image.
    is it possible.
    regards,
    mrsara27....

  • Add image in sap

    How to add imange in SAP.
    I use one T-Code smw0 then select Binery data for webRFC application.
    Then Click on Find then Click on Execute (f8)
    Then Click on create in  SAP Web repository . It ask Object name and Descreption.
    Here i type  test and Descreption also test.Then Click on Import.
    Then i select .jpg file . Then It give messege.........
    Object can only be created in SAP package????????
    How I can add image in my SAP.
    Thanks
    RAJ

    Hello Raj,
    Please find the procedure below:
    Changing the splash screen on the main menu can add some pizzazz to the otherwise boring screen. It can also be changed easily on a regular basis. For production systems a company logo and/or company mission statement might be appropriate. Here are the instructions:
    First, in transaction SMW0 (SAP Web Repository), select "Binary data for WebRFC applications. The logo must be in a .gif format. From this transaction, create a new object, then choose to IMPORT. You must then specify the path to the .gif object you have saved, and select the option to TRANSFER.
    Then, maintain table SSM_CUST via SM30. Change the field START_IMAGE to the name of the object you created in SMW0.
    u can also refer to link http://searchsap.techtarget.com/tip/0,289483,sid21_gci810811,00.html for more info.
    Hope it helps
    Rohit

  • How to upload Graphics Image in SAP script

    Hi
    I have a new porblem in SAP script can anyone help me how to upload an graphic image

    Hi Pavan,
    Give the same name and upload the graphics, u get a popup saying do u want to overite the existing one, click yes and the old logo will be replaced by the new one.
    Cheers..
    Santosh.
    P.S. Mark usefull answers

  • Water mark image in SAP SCRIPTS

    Hi All,
    I want to include a watermark image on my PO print.
    What I want is to have an Image on the page and print the line items on top of it.
    When I try, its displaying eiather the line items or the image but not both..
    Any ideas, recomendations would be appretiated.
    cheers,

    Hi!
    Try to save your file in some other BMP formats also... You can use the Windows Paint for this.
    F.e. try out the 16 color BMP also.
    As I remember good, 16BMP was working fine for me.
    Regards
    Tamá

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • Need to add special characters in sap scripts

    Hi All,
       I need to add special characters in sap script.
    I have used them as it is my script,but in the print preview i am able to see '#' instead of those special characters.Can anybody please tell me the way in which we can add special characters in the scripts.
    eg. 'Shlesha' i.e. name in inverted colons.
    Thanks

    Hi
    If # is coming means, that is the problem with the printer. I think u might have used your local printer to see the print preview.
    Don't use LOCL or LP01. Our local printer won't recognize those characters.
    Just change the printer name to client printer name. It will work.

  • How to add field on into standard address window in SAP script

    Hello Exports,
            I want to add Vendor number field in between the Vendor name and vendor address in the address window in sap script.
    Address is written in standard Address and Entendres. I need to add the vendor number in thsi Address and Endaddress.
    Please guide in this.

    goto the Vendor Name field .
    Hit enter.
    A new line is created.
    Give your Vendor Num field there.
    Bhupal

  • Need to add a new page in the SAP Script as last page

    Hello,
    I need to add a new page in the SAP Script as last page.
    Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
    FIRST page next page is NEXT
    NEXT page next page is NEXT
    LAST page next page is LAST
    END page next page is END.
    I used NEW-PAGE END in the main window but it is not working and also I trired with CONTROL_FORM this also not working.
    Thanks,
    Ravi.

    Hello,
    I need to add a new page in the SAP Script as last page.
    Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
    FIRST page next page is NEXT
    NEXT page next page is NEXT
    LAST page next page is LAST
    END page next page is END.
    Create the text element in the main wondow of your form
    /E           ENDPAGE
    /:           NEW-PAGE END
    and call the element from your print program by using write_form, where you want the END page in your print.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element = 'ENDPAGE'
        EXCEPTIONS
          element = 1
          window  = 2.
    Thanks,
    Ravi.

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • How to Add Long Text from CA10 on SAP Script

    Hi Friends,
    I got a requirement to add a long text from CA10 on to the SAP Script.
    How to do this ?
    Is it using INCLUDE ?
    Please give me some solution
    Thanks in Adv.

    Hi Bhupal,
    Could you tell me how did u add the long text from CA10.  I have the same requirement.
    Thanks in advance.
    Manisha

  • To add Cover page in SAP Script if pages are more than 10.

    Hello Experts,
    I want to print a Cover page first if and only if number of pages exceeds 10 in SAP Script.
    Cover Page should be the first page and then the remaiing pages.

    It's not possible to find the no of pages the script will generate, until it's printed. Again, you need the cover letter as the first page.
    There could be a solution to your requirement. Call the script and get OTF format without printing it to spool. You will get to know the no of pages in the main script . If it's more than 10, call the secondary script to get the OTF data of cover letter. Merge the OTF of main script to OTF of cover letter and print the OTF data to spool using FM PRINT_OTF.
    Check this link for similar code. In your case, the spool of the two sapscripts needs to be merged.
    Re: Smartform to Spool

  • Check Box With Tick Mark on Sap Script

    Hello All,
    We need to add a check box with tick mark on Sap Script.Please can anyone let me know how can we add it.
    Regards
    Amruta

    hi amruta,
    The soluti as an image into on to your problem can be to use the symbol icon as told , but this may show in preview not in print.
    I too faced the same problem.
    So what i had done is created a new window with the diemnsions of the chekc box with border thcikness 8 tw and inside that window place a checkmark symbol.
    if this checkmark symbol also does not show up in print preview/  doesshow in print preview and not in print then you can scan a chekcmark image and upload it into business document server as a BMP/ TIFF image and use this image in your checkbox window.
    Hope this solves your problem.
    Warm Regards
    Venugopal.T

  • How to add Images and PDFs in MDM iView

    Hello!
    We use SAP Portal as interfase to access SAP MDM repository tables.We use MDM Record Set and MDM Item Detail iViews to display and operate with main table content.
    There is a field in the qualified table, which is the lookup to the Images table. And the other field is the lookup to the PDFs table. Both fields are qualifiers.
    In the main table there is a field, which is the lookup to the qualified table. When we try to add values to this field using Item Detail iView, we get a window, where we can fill all values of the qualified table, except Image field and PDF field - they are disabled. So, can we add Images and PDFs to the table using Item Datail iView? Or what is the other way to add them?
    Thanks,
    Vika
    Message was edited by:
            Viktoria Demina

    Ooohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
    But they want to get paid for their hard work, the bastards!

Maybe you are looking for