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.

Similar Messages

  • Creating adobe form using SFP

    hi experts,
    I am trying to create Adobe form using transaction SFP ,  the form creation goes on smoothly but when I try to save or activate it or press any button it displays Error message  "Error when transforming object data". Please tell me what could be the reason of this error  and how can I rectify it.
    Points will be rewarded.
    Many thanks,
    Sushant

    Hello,
    Check <a href="https://service.sap.com/sap/support/notes/962763">the SAP note 962763</a>.
    Rgds,
    Francois

  • Adobe Forms(Using SFP)

    Hi Gurus
    I am trying to create custome Adobe Form . I did create Interface and its pulling the data . My problem is i can able to see 1 page but not  the  other pages even in print preview also . how can i see the other pages and how can i create no of pages . i got a table more than 300 fields so i did drap and drop . please help me.
    Thanks in Advance
    Moderator message: wrong forum, please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Feb 18, 2011 3:15 PM

    I solved this issue by applying SAP Notes 1035630.

  • Interactive Adobe Forms using WebDynpro ABAP

    Hi,
    I could able to design and execute my interactive adobe form using webdynpro ABAP. Here what i am doing is i am creating context with my structures and table types  and pdfobject of type xstring  and passing the proper inputs in interactive form properties, in template sources i am provinding the interface and form name of my own choice and it is getting created automatically by the system, every thing works fine here and i could able to execute my form from web dynpro application.
    Here my requirement is i have already created structures and table types after that i went to transaction SFP and created an interace and by using that interface i have created form and i have designed the layout. Now what i want to do is i want to integrate this form in my webdynpro appliction and i want to execute it from webdynpro applicaton. When i try to do i am getting short dump, is my approach feasible or not . kindly suggest. If we can achieve this what is the way to achieve.
    Please do send your suggestions.
    Regards,
    Venkat

    Hi
    When u click on button..u will have to get the data from node which is existing on the Intereactive form and pass it to other view via writing logic in button event handler.
    The data can be displayed in other view as result.
    I hope u got it.
    Provide REWARD points..:-)

  • 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

  • Doubt regarding Adobe forms used for PCR

    Hey all,
    I have a doubt regarding Adobe forms used for PCR.If i goto tc
    <b>SFP->form name (ISR_FORM_SPPM)->Layout->XML SOURCE-->
    <base><server name><port>/sap/bc/fp/form/layout/</base></b>
    But in tc SICF,i do not have anything beyond FP.It goes like this :<b> sicf-> default_host->sap->bc->fp</b> .
    Could this be the possible cause of error why i am not able to view the forms in PDF format?
    Can anyone , who has doen this before, please help me out with this issue?
    Thanks,
    Aditi

    Hi Aditi,
    Are you getting an error when you are trying to access the PDF form ?
    Is ADS installed and configured properly ? Also let me know the operating system you are using, it's version, J2EE and Portal version.
    Regards,
    Sunil

  • Create Adobe Form using Design Time for Processes and Forms

    Hi all,
    I am trying to create a form that have 3 fields:
    1. pernr
    2. ename
    3. effective_date
    I done all the necessary setup of BADI ,class, interface and form.
    I need the step to step guide where you create the adobe form using the Design Time for Processes and Forms. Anyone have any idea?
    Edited by: Siong Chao on Jan 3, 2011 4:54 AM
    Edited by: Siong Chao on Jan 3, 2011 5:00 AM

    Hi,
    I couldn't get to your query..
    What do you mean by step by step procedure for a design time & process for forms.
    if you are a beginner and looking for basic examples to implement adobe forms there are lot of them in SDN, please search them.
    let me know if your query was a very specific one.
    Cheers,
    Sai

  • ADOBE FORMS using Webservice

    Hi Experts,
    I have a problem with Adobe Forms Using webservice.  I created  RFC where it saves data from Adobe Forms to a customized table and exposed it as webservice.  From the SOA manager, I copied the generated link pasted in the dataconnection in Adobe Lifecycle designer, but whenever I generate the form I keep receiving this error:
    "http:// erpwrk1.corp.com:8000/sap/bc/srt/wsdl/bndg_DFA46DE60CFOD33F19F21005056C00008/wsdl11/allinone/ws_policy/document?sap-client=001".  Check that the path is correct and that the file is a valid wsdl file.
    I already activated services from SICF in relation SOAP runtime.   What could be the cause of the problem and how to fix the problem?
    Thanks A Lot!
    Mae

    Hi Ma. Angelica A. Estacio,
    From the SOA manager, I copied the generated link pasted in the dataconnection in Adobe Lifecycle designer, but whenever I generate the form I keep receiving this error:  Check that the path is correct and that the file is a valid wsdl file and hence i cannot finish the data connection wizard.
    From the above posts, it looks like you have resolved the issue. But can you please let me know how did you resolve it ?
    Did you check any SAP transaction to find the above mentioned checkbox?
    Please revert as this has become critical now.
    You can mail me your response on [email protected]
    Regards,
    Rohit Gugale

  • Adobe Form used by more than one user simultaneously

    Friends,
    I am working on an online interactive Adobe form using Web Dynpro ABAP.
    once the user enters the data and clicks the submit button, the data is sent to ztables.
    the scenario is that more than one user can possibly use the same form simultaneously. in that case, how can i maintain synchronization ie how to avoid multiple users from using the form at the same time, when the form is already being filled by one user already.
    I am guessing i have to do something with ADS for this.
    Any thoughts or ideas would be greatly appreciated.
    Thanks and Regards.

    Hi Bertrand,
    The purpose of allowing only one user is to ensure data consistency as you have guessed.
    Is there a program name or transaction code where i can look up the lock entries and see if i can apply them to my web dynpro application or the adobe form.
    I would greatly appreciate your help.
    Thanks and Regards.

  • Making selective fields editable in adobe form [using web dynpro]

    Hi,
    I have displayed an adobe form using web dynpro application. But I have to make certain fields (not all fields) on this adobe form editable. I dont want to make this adobe form interactive because I dont have to save any data in database. The data entered in the editable fields will be saved as a pdf.
    What I did so far:
    1) The fields which I want as editable,  I have given there type as "User entered/ optional" & for rest of the fields I have given type as "Read only".
    2) In web dynpro, I have enabled the adobe
    3) This is not making the fields editable.
    4) If I write the following code in my webdynpro method WDDOMODIFYVIEW, then my data coming from adobe is not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    Any inputs regarding this??
    Thanks & Regards.

    Hi,
    Like I had mentioned using the following code in my webdynpro method WDDOMODIFYVIEW, my data coming from adobe form was not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    So I kept this code & I also kept the Interface type "ABAP Dictionary based".
    Additionally in Webdynpro, I used adobe form generated FM to get the adobe content & passed it to the "content" parameter of my adobe component in webdynpro.
    Thanks & Regards.

  • Drop Downs in adobe forms using Web dynpro ABAP

    Hi all,
    Im new to this adobe forms using webdynpro abap.
    In my requirement i have two drop downs on the form.
    by selecting value in one drop down i have to fill corresponding values in the other drop down.
    Using only WDA i know how to do this but with adobe i dnt know how and where i have
    to catch the drop down value and write my code. please let me know how i can achieve this.
    one more thing whatever action or events we are performing on the form where we have to place our code for this?
    Thanks,
    santosh

    hope this helps -
    [Thread: Populating one Drop-Down list from the selection of another Drop-down list |Populating one Drop-Down list from the selection of another Drop-down list;

  • Generating adobe form using WDABAP

    Hi,
    We have a requirement to show employee data in Adobe form for both Managers and Administrators.
    Managers can login to portal and access the Adobe form, and Administrators can see the form only in R/3.
    My query is if I develop a adobe form in WD ABAP, Managers can see it in portal....will I be able to access the same adobe form with in R/3 using a report a progarm?
    or Do i need to create a new Report program for Adobe and populate the data etc...
    I want to minimize the coding effort by developing the form in WDAbap and showing it for both Managers(portal) and Admin(R/3)
    If this is possible let me know how to proceed...
    Regards
    Srikanth KV

    Hi,
    I hope i'm not clear with my question.
    I want to access the same Adobe form using Portal and R/3 report program.
    Is this possible using WDABAP ?
    Regards
    Srikanth KV

  • Eed link to the tutorial for creating a Interactive Adobe forms using WDA

    Hi Friends,
      I need link to the tutorial for creating a Interactive Adobe forms using WD ABAP

    Hi,
    Before posting search once in sdn for Blogs or articles.You will get information.Any how please look at this video demonstartion.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20029530-54ef-2910-1b93-c41608ae0c90
    and check these blogs
    https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/24b9e126-0b01-0010-e098-f46384fad9f3

  • ADOBE Form Using Table with dynamic number of rows

    Hi All
    First some information about our infrastructure:
    - AdobeDesigner 7.1 in the Developerstudio
    - SAP-Portal 7.0 SP15
    I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
    To fill the tablecontext I use the following Code:
    IPrivateAnlegenBANFView.IPositionenElement position = null;
    IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
    int NUM_5_TIMES = 5;
    for (int i = 0; i < NUM_5_TIMES; i) {
    IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
    +posElement.setMaterial("" + i);+
    +posElement.setKurztext("Test" + i);+
    +posElement.setWarengruppe("Warengr" + i);+
    posNode.addElement(posElement);
    If i put this code in the wdDoInit method it  works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
    Can someone tell me what im doing wrong?
    Thanks for a answer and kind regards
    Pascal

    Hi All
    finally i found the solution for the problem.
    When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
    Add the following source to the viewCotroller
    Global Part of the Source:
    private static IWDInteractiveForm form = null;
    Method wdDoModify:
    if (firstTime) {
      form = (IWDInteractiveForm) view.getElement("InteractiveForm");
    When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
    Action:
    public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
      //@@begin onActionFillTab(ServerEvent)
         * Code to fill the Node for AdobeForm Table
        form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
      //@@end
    If you want to clear your table and show it directly use in the action the following code:
    wdContext.nodeTabelle().invalidate();
    form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
    Kind regards
    pascal

  • Offline adobe forms using webservices-how to print table data

    HI,
    i have created offline adobe form using webservices which call rfc to pull the data ...to get inspection lot details ...
    iam getting header data....but iam not able to get multiple line items of the table data ..here in scenario there are 4 line items but only 1 line item is getting displayed in the form...
    is there any need to handle seperately to display  tables data in offline adobe forms if we call from webservices
    Tousif
    Moderator message: please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Jan 18, 2011 3:08 PM
    << Moderator message - New question asked, so this is locked >>
    Edited by: Rob Burbank on Jan 18, 2011 10:19 AM

    This is oofline adobe form which is created throgh webservices
    Edited by: tousif_ig on Jan 18, 2011 3:19 PM

Maybe you are looking for