Printing graphics in Adobe forms

Hi,
I have a requirement in adobe forms where I need to print graphics stored as standard text (SO10) or on document server (SE78) by calling them inside a long text.
The client was doing this in legacy with SAP script and it was working fine but adobe form does not support this feature (as far as I know)
Is there any way we can print graphics by calling them inside long text?
Any inputs will be appreciated.
Regards.

Hi,
To print the graphic from SE78 in Adobe form you need to do the following steps.
1. Convert the graphic into graphic_content(XSTRING) using
call method cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
2. Create Graphic node in Context in Adobe form with the properties
Grphic type as graphic content
Field as graphic_content(XSTRING)
MIME type as 'BMP'
3. In layout create an image field and bind it to graphic node created in context.
Regards,
Raju.

Similar Messages

  • How to upload Graphic in ADobe forms

    Hi Guru,
    I have a requirment to upload the Graphic to Adobe forms .
    How to I use the logo(Graphics)  which is stored in the application server 
    I have 2 sales organizations which has different "LOGOs" used. Same Adobe form is used to print Invoices for both sales organizations. When I print Invoice for a particular sales organization, I need to print its "LOGO" and when same adobe form prints the invoice for another sales organization it should print its logo. 
    How can i control the above situation dynamically ?
    Please help.
    thanks ,
    Raju s

    Hi Raju,
    Images in a Adobe form can be embeded in 2 different ways.
    Approach1: This is static approach form would have only one image at all times which is refered by the file name (alter natively if you can manage to place different images with the same file name at runtime then this can be dynamic)
    1) have the image located in the application server path.
    2) Have the Emage lement in Adobe form pass the file location path to the element source.
    3) At run time it will fetch the file from the location.
    Approach2: (I am not a core abaper so not sure how its done but we have done it for a mobile application)
    1) using your abap code read the image from the location (find out how to pick the org specific's image).
    2) convert the image into byte stream.
    3) pass on this byte stream to the form via a string field.
    4) in the form have the image field.
    5) this time here instead of selecting the path, bind it to this particular field from the data source.
    i think there are coup[le of blogs here @ this, please search it ..
    Cheers,
    Sai

  • Standard print program for Adobe Forms

    Hi all -
    Does anyone know if there was a standard print program delivered for the predelivered Adobe form F110_AVIS_INT?  And if there is - what is it?  Is there any document anywhere to determine predelivered print programs for Adobe forms?
    Your help is much appreciated!
    Thanks
    Abby

    Hi
    In SAP you can check for the Print Programs in Tcode <b>OB96</b>
    which gives assignment of programs to script layouts
    see the links related to Adobe forms
    look at the Adobe page here in SDN:
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
    Check these links on Adobe forms
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
    It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
    Reward points for useful Answers
    Regards
    Anji

  • Can not get print preview of Adobe forms

    Hi Gurus,
    I am not able to see the print preview of adobe forms, and when i click on print preview, i get this error code..
    Exception       SYSTEM_ERROR
    Message ID:          FPRUNX                     Message number:           001
    I don't see any logs from SM21, and so I don't think this some code error... I configured ADS as per the document, and all the configuration tests are passed except this print preview...
    Any suggestions?
    Regards,
    Nrisimhanadh

    Hi
    Please check this parameter
    OUTPUT_OPTIONS-TDNOPREV
    hope this helps
    Regards
    Aakash

  • Inserting a Graphic in adobe form using SFP

    Hi all,
           by using Form & Interface in SFP Transaction
           i want to display a logo(image) not by using url(not images from hard disk), i want to use the image which is present in the sap (ie., i want to use the images in se78).  How can i achieve this????
    I used the following procedure, even though i couldnt achieve:
    1.      Select an existing node in the context, under which you want to create a graphic node.
           2.      In the context menu of the node, choose Create ® Graphic.
           3.      The system creates a graphic node under the selected node. Enter the required data about the graphic in the Properties window under the form context.
    You can choose from the following graphic types:
    ○       Graphic Reference
    Choose this option if you want to insert a graphic from its address (URL). The URL can point to a Web server or to a file system. You must be able to access the graphic at the specified URL. This means that you may have to configure appropriate access rights for Adobe Document Services (ADS). Graphics stored in MIME Repository cannot be accessed through a URL. To use these graphics, choose Graphic Content.
    ○       Graphic Content
    Choose this option if you want to specify graphic content using a field. This field contains all image information at runtime. The graphics must be in MIME Repository.
           4.      The entries you need to make depend on whether you chose Graphic Reference or Graphic Content in the last step.
    ○       If you have chosen Graphic Reference as your graphic type, enter the URL of the graphic.
    Note
    In Adobe LiveCycle Designer, you can choose whether the system gets the graphic at runtime, or whether the graphic is embedded in the form. For more information, see the online help in Adobe Designer.
    ○       If you have specified Graphic Content as your graphic type, you must do the following:
    ■       In Field, enter a field name from the interface.  The field must have the type STRING (graphical data is Base64-coded) or XSTRING (for binary-coded graphical data).
    ■       Enter a valid MIME type, such as u2019image/bmpu2019.
           5.      Under Conditions, enter the prerequisites that need to be met before the graphic node is processed at runtime and displayed in the form.
    I cant get the image....................................
    Please provide the step by step details.....
    Thanks,
    Vichu

    The correct code is as follows,
    REPORT  ZTEST_GRAPHIC_MIME.
              Data Declaration           ***
    DATA: fm_name TYPE funcname,                              " Captures the Generated Function Module name
          w_sfpoutputparams TYPE sfpoutputparams,             " Print and Spool Dialog settings
          w_docparams TYPE sfpdocparams.                      " Print and Spool Dialog settings
    DATA: w_binary TYPE xstring,                              " Contains converted logo
          w_base64 TYPE string,                               " Contains image type
          v_name type STXBITMAPS-TDNAME.                      " Contains logo name which is in se78
              Function Modules            ***
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'                   " Will contain the name of generated Function Module Name...
      EXPORTING
        I_NAME                     = 'ZTEST_GRAPHIC'
    IMPORTING
        E_FUNCNAME                 = fm_name
      E_INTERFACE_TYPE           =
    CALL FUNCTION 'FP_JOB_OPEN'                               " To Open the Form for Printing...
      CHANGING
        IE_OUTPUTPARAMS       = w_sfpoutputparams
    EXCEPTIONS
       CANCEL                = 1
       USAGE_ERROR           = 2
       SYSTEM_ERROR          = 3
       INTERNAL_ERROR        = 4
       OTHERS                = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    v_name = 'ENJOY'.                                         " Name of the logo as in se78
    w_base64 = 'image/bmp'.                                   " Image Type
    CALL METHOD CL_SSF_XSF_UTILITIES=>GET_BDS_GRAPHIC_AS_BMP  " Get a BDS Graphic in BMP Format (Using a Cache)
      EXPORTING
        P_OBJECT       = 'GRAPHICS'
        P_NAME         = v_name                               " Name of the logo as in se78
        P_ID           = 'BMAP'
        P_BTYPE        = 'BCOL'                               " BCOL'( whether the image is in color or black and white )
      RECEIVING
        P_BMP          = w_binary
      EXCEPTIONS
        NOT_FOUND      = 1
        INTERNAL_ERROR = 2
        others         = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION fm_name                                     " Generated Adobe Form Function Module(/1BCDWB/SM00000173)...
      EXPORTING
        /1BCDWB/DOCPARAMS        = w_docparams
        GRAPHIC_BINARY           = w_binary
        GRAPHIC_BASE64           = w_base64
    IMPORTING
      /1BCDWB/FORMOUTPUT       =
    EXCEPTIONS
       USAGE_ERROR              = 1
       SYSTEM_ERROR             = 2
       INTERNAL_ERROR           = 3
       OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'FP_JOB_CLOSE'                              " To Close The Form For Printing
    IMPORTING
      E_RESULT             =
    EXCEPTIONS
       USAGE_ERROR          = 1
       SYSTEM_ERROR         = 2
       INTERNAL_ERROR       = 3
       OTHERS               = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Dynamicaly Photo Print Problem in Adobe Form

    Hello Expert,
    I want to display Employee Photo on Performance Apprisal form Dynamicaly on Adobe Form(SFP).
    for which, i trieed two  method -
    1)-    
    DATA : lv_pernr1 TYPE tdobname.
    CONSTANTS: c_graphics TYPE tdobjectgr VALUE 'GRAPHICS',
    c_bmap TYPE tdidgr VALUE 'BMAP' ,
    c_bcol TYPE tdbtype VALUE 'BCOL'.
    DATA : ls_z_if_test_cv TYPE xstring.
      lv_pernr1 =  '11000003'.       " Employee Number
         CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
           EXPORTING
              p_object        = c_graphics
              p_name         = lv_pernr1
              p_id               = c_bmap
              p_btype         = c_bcol
            RECEIVING
             p_bmp          = ls_z_if_test_cv         
            EXCEPTIONS
              not_found      = 1
              internal_error = 2
              OTHERS         = 3.
          break jp_deepaks.
          IF sy-subrc = 0.
            lv_filename = ls_z_if_test_cv.
         ENDIF.
    2)-
    Find Photo URL of Employee
    DATA : uri TYPE toauri-uri.
    DATA: lv_filename1 TYPE toauri-uri.
          CALL FUNCTION 'HRWPC_RFC_EP_READ_PHOTO_URI'
            EXPORTING
              pernr            = '11000003'
              datum            = sy-datum
              tclas            = 'A'
            IMPORTING
              uri              = uri
            EXCEPTIONS
              not_supported    = 1
              nothing_found    = 2
              no_authorization = 3
              internal_error   = 4
              OTHERS           = 5.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          lv_filename1 = uri.
          CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
           EXPORTING
              codepage_to      = '8500'
              unicode_string   =   lv_filename1
            IMPORTING
             xstring_stream   = ls_z_if_test_cv
            EXCEPTIONS
             invalid_codepage = 1
              invalid_string   = 2
            OTHERS           = 3.
         IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
    But both methods are not working properly. How can i do this??
    Thanks in Advance,
    Regards,
    Shri

    Hi,
    I fetch the detail from table toahr with passing parameter
    sap_object = 'PREL', reserve = 'JPG'  and ar_object  = 'HRICOLFOTO'.
    i got the ARC_DOC_ID form table toahr. now how can i print this emp photo on Adobe form.
    is this hexadecimal value or string ?
    please explain the whole process for printing employee photograph on Adobe Form?
    Thanks,
    Shree

  • How to print watermark in adobe forms

    Hi Experts,
    I have one requirement where i need to print watermark on PDF invoice outputs. I am using adobe forms to print invoice.
    I am not sure whether logo needs to be used for printing watermark or text.? And please let me kow the procedure to use this in adobeforms.
    Thanks in advance.
    Regards,
    Dileep.
    Moderator Message: Search before you post.
    Edited by: kishan P on Jan 13, 2012 11:12 AM

    Hii,
    Try to add one more field for  text field for each line item and make sure use a flag .
    if the flag is true then make it visible use the below JavaScript code to hide a particular field.
    his script will hide the field in runtime if it is initial.
    hidden or presence make sure use the conditions as per the require to hide the text or to make it visible
    Enter the below JavaScript in the editor & Select the language as JavaScript. 
    if(this.rawValue == null)
      this.presence = "hidden";
    Edited by: Rajan.Dexter9 on Jan 20, 2012 12:17 PM

  • How to print barcodes in Adobe forms

    Hi All,
    I am new to Adobe forms, Please help me how to print barcodes in ABAP using Adobe forms.
    Thanks in advance.
    Regards,
    Satya.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Aug 26, 2011 4:17 PM

    Hi Vanessa,
    maybe this blog helps for the tables:
    [Adobe Forms Using: Nested Table, Text Module & providing the functionality of Page Total & Grand Total|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID0583594050DB11063248235171113529End?blog=/pub/wlg/11236]
    and for the barcodes I found this:
    [Introduction to barcodes in SAP Interactive Forms by Adobe|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID0583594050DB11063248235171113529End?blog=/pub/wlg/13061]
    I hope this provides some help for you.
    If you are not able to fulfill your task, it is a good idea to check the blogs, wikis and download areas here in SAP Community Network - usually the quality is some quantum leaps better than current  ABAP, General.
    Regards,
    Clemens

  • Issue While printing / Previewing a Adobe form in Web Dynpro ABAP application

    Dear All,
    We have designed 4 different adobe forms using SFP transaction for 4 different countries in SAP system.
    Every country have different terms and conditions and therefore we have placed static texts (Hardcoded text) with text in different styles. Some text is in bold, some in different font (Bold, Italic). Font and Paragraph settings of the text was done as per expected. All the forms have same font and paragraph settings.
    When we Launch Web Dynpro ABAP application to open the form in Print preview or to take print, form is not getting displayed / printed as it is designed in SFP. But if you open the form in SFP, everything looks fine.
    It is working fine for 3 different forms but problem with only 1 form.
    Kindly guide what is the reason for this strange issue when previewed or taken print. It is very urgent.
    Thanks,
    Bharath.K

    Dear All,
    Thanks for your responses.
    We had identified the reason.
    Customer has provided terms and conditions for all 4 countries in PDF document. Along with PDF, for 3 out of 4 countries customer has shared pre-prepared word document with pre aligned and justified terms and conditions as per expected outcome. We copied this text from word to Adobe form layout. It worked fine. For 1 country, customer have not shared terms and conditions in word document. Therefore we had copied text directly from adobe PDF document in to Form layout. Then this issue happened.
    Solution for this issue is to, prepared a word document with expected alignment and justification of terms and conditions text . Then copied from word to adobe livecycle designer form layout. It worked fine.
    Thanks,
    Bharath.

  • How to find standard print programs for ADOBE forms

    Hi All,
    My question is how to find the standard SAP print program for a SAP provided ADOBE form. For example - how to find what is the satndard SAP provided print program for the ADOBE form for payment advice 'F110_AVIS_INT'.
    As by default in the transaction F110 (where the payment advice form configuration is done), a SAP Script form is attached and the print program assigned is an SAP Script (as it contains call to function module like open_form, write_form... ) program and not an ADOBE print program.

    Hi Renu,
    I have gone through the link provided by you but it only shows a list of standard PDF forms.
    My question was how to find the standard SAP provided print program (or driver program which contains the data fetch logic and passing of the data to the interface of the ADOBE form) for these SAP provided ADOBE form.
    If SAP has provided standard ADOBE form then definitely they would also have provided the standard print program too ?
    @Srihari,
    The path system --> Status --> program SAPLFPUIFB is the standard program for the SFP transaction and not for the payment advice form F110_AVIS_INT.
    It will be same for all the ADOBE forms if we check in System --> Status --> Program.

  • How to Printe Graphics in Smart-Forms

    Guys,
    Need your help…
    Is it possible to print graph in smart form???
    If yes, if you have any document, please pass it to me…
    Dhiraj

    Hi Ram,
    Go through this hope u can understand.
    How to Upload graphics (IMAGE) to your Sapscript?
    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 
    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 (third button from left) 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. 
    /:   INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
    Reward points if help ful.
    http://www.sap-img.com/ts001.htm
    Sorry i think for Scripts ..
    better to go for above post . it definetly works
    Thanks
    Naveen khan
    Message was edited by:
            Pattan Naveen

  • Business Graphics in Adobe Form

    Hi Gurus,
    One of our client has requirement of showing business graphics like Graphs, pie charts on the Adobe form. Is it possible in Adobe forms to show these graphics. If yes, then can anyone please send me some links, documents.
    With Regards,
    Amit

    Amit,
      I don't think Adobe forms has the capability to display the Business graphics. I don't see any control for displaying the business graphics in library palette.
    Thanks!
    Surya.

  • Print PDF in Adobe form

    Hi EXpert...
    I have  a documen in PDF format.. I want to print this in classical adobe form  as a photo.. is this possible???
    thanks,
    Shri

    Hi Shri,
    As per my understanding you want to do the reverse scenario.You need to create Adobeform through an existing PDF file.
    If you want to do this...I don`t think it is possible because we create layouts in Adobeform like SMARTFORMS  & SCRIPTS and you are trying to create layout through your existing output.
    Please let me know also if it is possible.
    Regards,
    Ankur

  • Printing ADDRESS in Adobe form in capitals only

    Hi
    I am using Address Node in Adobe form by passing ADRNR ( Address Number) and country to it to print Address .
    It is coming in small letters. I need only in CAPITALS. Please guide.

    Î fear you then need to print the adress manually.
    As far as i know there is a parameter you can set which will result in printing the COUNTRY in dapitaly letters, but thats all. so if you need all in capitals, you need to code it line by line yourself.

  • Print Program for Adobe Form QM_8D_Report

    Hello,
    I want to use the given Adobe form "QM_8D_REPORT" but I can not find a basic print program in SE38 for it.
    Do I need to write the whole print programm from beginning or is there a default print programm delivered by SAP which I can use?
    Thank you for help!
    Best regards.

    Hi,
    Go to the package of the form, its QM_PDF.
    Check the reports there. There is only one report RQPRPP10_PDF. I hope its the report you are looking for.
    The include program where the form is being called is RQPRPP10F01_PDF.
    Regards,
    Vaibhav

Maybe you are looking for

  • 'UNCAUGHT_EXCEPTION', while executing archiving in production mode

    Dear Sirs When executing the Archiving process for object MM_EINA, the job is cancelled with run  time error as following: What happened?     The exception 'CX_RAISING_ARCHIV' was raised, but it was not caught anywhere      along     the call hierarc

  • Restricting forms data specific to Operating Unit

    Hello Team, I have an important requirement of showing the Organization specific data in all my custom forms. Is there any way that i can do it through Custom.pll or Forms personalizations or any other way. Please help me and thanks in advance Thank

  • Dynamic update of column with values derived by formula on other table.

    i have 3 tables; table A,B and C table A has two columns (id and Quantity), based on the id value, the quantity value is computed using a formula on two rows (one from table B and the other from C). the formula is different for each id value. but aft

  • Install cd to macbook air

    i need to install a cd on to macbook air, can i install it on a mac desktop and transfer it?

  • CC not updating to newest PS CC

    Using both the Creative Cloud menu and the adobe applications manager, both say my version of photoshop is up to date, but it is not.  I would like to install the new update announced a day or 2 ago (14.2), currently i have 14.1.2. Worked fine for th