To pass data to smart forms

i want to print a form which is developed in webdynpro fo rjava,here adobe is not working.So what iam trying is to use smart forms ,But  is it  possible to display that smartforms in portal...?
or is there any other way to print the details which are in the webdynpro application.
This is very urgent for me pls reply to me.
Surely i'll give points,,,,,
Warm regards
shanto aloor

Hi ,
U can display a Smart form in portal.
In RFC Export add a field of type Binary and populate smart form into that binary field.
In Webdynpro view after Executing the RFC
byte[] pdfContent =
wdContext.current<output_node>.get<BinaryExport>();
IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);
          try
         /* PdfUrl is of type String */          wdContext.currentContextElement.setPdfUrl(pdfResource.getURL());
          catch(Exception e)
               wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);     
Thanks,
Sunitha

Similar Messages

  • Passing data to smart forms...

    Hi,
    I am learning smartforms and so far have done the following.
    1. Using transaction smartforms, created a Ztestsmartform with one page named "coverpage". the page contains two window elements named, vendorname and faxnum. saved and activated the form.
    2. wrote a zprogram to retrieve data from tables and pass on to the form. I have created an internal table to hold the data. i am  not clear on how to pass that data to my form ?? should i loop the itab and call the function "SSF_FUNCTION_MODULE_NAME" ?? how to pass my itab data then ??
    please explain !!
    whats the purpose of calling function FM_NAME ??
    i took the function module code from a sample available on the net.
    thanks
    REPORT  ZPROGFORSMARTFORMS.
    TABLES: LFA1, LFB1.
    DATA: BEGIN OF VENDOR_DATA OCCURS 0,
          VENDORNAME LIKE LFB1-LIFNR,
          FAXNUM LIKE LFA1-TELFX,
          END OF VENDOR_DATA.
    DATA: VENDOR_LIST LIKE VENDOR_DATA OCCURS 0 WITH HEADER LINE.
    SELECT ALIFNR BTELFX INTO TABLE VENDOR_LIST FROM LFB1 AS A INNER JOIN LFA1 AS B ON ALIFNR = BLIFNR.
    LOOP AT VENDOR_LIST.
    ENDLOOP.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZTESTSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3.
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        GS_MKPF                    = INT_MKPF
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 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.

    Hi Sha,
    1) As client dependency is one of the drawback in the scripts, we use smart forms.
    2) When you run a Smartform it gives you a function module, using tha you can run the smart form from your driver program by calling it in the same.
    3) You give the smartform name and the function module name in the SSF_FUNCTION_MODULE_NAME.
    4) While calling the function module in the driver program, first run the smart form and call it using PATTERN, then you change the Call function name as the below example.
    5) You can pass the tables to the table parameters which will come from the function module.
    Please see the below Driver program of a smartform.
    report  zsree_temp_smart                        .
    data: it_sree type standard table of zsree_marc.
    data: x_sree1 type zsree_temp.
    parameters: p_matnr type mara-matnr.
    start-of-selection.
      perform select_data.
    end-of-selection.
      perform smart_form.
    *&      Form  SELECT_DATA
          text
    form select_data .
      select single
             matnr
             ersda
             ernam
             mtart
       from  mara
       into  x_sree1 where matnr = p_matnr.
      if x_sree1 is not initial.
        select matnr
               werks
               pstat
               lvorm
         from  marc
         into  table it_sree
         where matnr = x_sree1-matnr.
      endif.
    endform.                    " SELECT_DATA
    *&      Form  SMART_FORM
          text
    form smart_form .
      data: l_p_form type tdsfname.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = 'ZSREE_TEMP'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        importing
          fm_name                  = l_p_form
       exceptions
         no_form                  = 1
         no_function_module       = 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 l_p_form
        exporting
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          x_sree                     = x_sree1
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        tables
          it_zsree                   = it_sree
    exceptions
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 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.
    endform.                    " SMART_FORM
    Please do not forget to give rewards if it can help you better.
    Thanks,
    Sreekanth

  • How can I pass data from a form guide to another form in a business process

    How do we pass data from a form guide to another form(not necessarily a guide) without having to open the form. For example we have a small form guide to capture the contract id so we can then get data from contracts table to present to the user in a form. We want the user to open the guide (either Flex guide or form guide) to enter the contract id. Upon submission we want the process to get the contract data and put it into the form that will be opened at the next step by the user without having a user interact with the form to get the data into it. In other words we need the process to get the data and populate a different form than the form guide the contract id was entered in and this new form needs to be opened in the next step by the user.

    Firstly, I'm assuming that you have a Forms ES Server if you are rendering a Guide.  This could be either version ES1, ES2/2.5 or ES3/ADEP
    If you submit the form back to the server, you can populate a second (PDF/XDP) form with the data bound to the same schema/Data Model using Forms ES. 
    You referred to the next user in the chain - If you are using Process Management, this is very easy, as you define what form is used to render the data in the "Presentation & Data" section of the Assign Task activity

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you
    Suhasini

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • Pass data between InfoPath forms in SharePoint

    Hello!
    Maybe someone has ideas about the next issue: how to make pass data between InfoPath forms in SharePoint, like it is shown in a video: https://www.youtube.com/watch?v=-nGl-Se2cOQ
    I've read similar topics, but still can't find solution.
    Thank you.

    When you go to modify the submit connection, you can specify whether or not to overwrite, as well as a default title value. If you use the now() function in the title, it should never have the same name.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to pass data from offline form to webdynpro java

    Hi,
    Please suggest me how to pass data from offline from to webdynpro java node?
    i am using the below code to pass data from offline form(after entering values in the form) to node . i am using form upload ui element to upload offline form and after that i am providng a button to update data.But still i am not able to see data in the node.Any suggestions on this.below code is wriiten on action of the button.
    wdContext.currentContextElement().setPDFSource(null);
           try
                if(null!=wdContext.currentContextElement().getAttributePointer("Resource"))
           IWDResource fileResource = wdContext.currentContextElement().getResource();
         if("PDF".equalsIgnoreCase(fileResource.getResourceType().getFileExtension()))
           byte[] b = new byte[wdContext.currentContextElement().getResource().read(false).available()];
           wdContext.currentContextElement().getResource().read(false).read(b)                     wdContext.currentContextElement().setPDFSource(b);
           WDInteractiveFormHelper.transferPDFDataIntoContext                 (wdContext.currentContextElement().getPDFSource(), wdContext.nodeVn_TestData());                                                               
                     else
                          wdComponentAPI.getMessageManager().reportException("Please enter correct file");
                else
                     wdComponentAPI.getMessageManager().reportException("Error while uploading file"); 
           catch (Exception e) {
                wdComponentAPI.getMessageManager().reportException
                ("Error in uploading the Adobe Form :"+e.getLocalizedMessage(),false);
    Regards,
    Pavani

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • Item data in Smart Form

    What is Item data in Smart Form?
    In which table Item data of Smart form are stored?

    Hi,
    What did u mean by item data in Smartform?
    Please Clarify.

  • Passing date parameter from forms to report

    Hi,
    I'm using forms and reports 6i.
    I want to pass one date parameter from forms to reports.
    Using
    Add_Parameter(pl_id,'P_FROM_DATE',TEXT_PARAMETER,:FROM_DT);
    giving me error REP-0091- Invalid value for parameter 'P_FROM_DATE'
    This i think is because report expects date and here it is converted as varchar.
    Please help

    Hi Divya,
    Even I use this kind of statement
    Add_Parameter(pl_id,'P_FROM_DATE',TEXT_PARAMETER,:FROM_DT);and works fine for me.
    This i think is because report expects date and here it is converted as varchar
    Correct.
    Open the report in the builder and under Data Model -> User Parameters, Go to the Property Inspector of P_FROM_DATE. Under Parameter, set Datatype as Character instead of Date.
    Hope this should work. and tell me if it works(coz it wokred for me).

  • Passing structure to smart forms

    Hi experts,
    Can we pass more than one structure  to smart form .  If it is possible pls let me know the procedure...
    Thanks.

    you can pass any number of structure in smartform defined as importing parameter in function module.
    But you have to define that struture of similar type  in se11.
    then write in form interface like:;
    itab1 like ziitab1.
    where zitab1 structure which is similar type to itab1 defined using se11.

  • To display data in smart form

    hi experts ,
    I want to know how to display the data from a database table into a smart form .
    thanks in advance .

    Hi,
    Have a lok at the below link, you will get all the details about the smart forms
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://www.erpgenie.com/abap/smartforms.htm
    http://www.erpgenie.com/abap/smartforms_detail.htm
    Regards
    Sudheer

  • Printing data in Smart form side by side.

    Hi Abap Guru's,
                          I have data in internal table. i dont know how many records are there in it. I need to print the data, side by side in smart form.
    For example:
    Mr James was a member of the above-mentioned plan. you and <b>your children, Tom , jane , Harry and Michael,</b> are entitled to receive pension.
    > children must be printed side by side in smart form.
    Thank you in advance,
    -Anil

    Hi anil,
    In case you are having problems in finding the no of records in the internal table use the following command.
    DESCRIBE TABLE itab LINES w_lines.
    w_lines gives u the no of records.
    For further help u need to tell the structure of the internal table.
    Hope it is helpfull to u.

  • Is it possible to CREATE an XML data with Smart Forms??

    Hello at all,
    i have an Smart Form Formular, which contains all information about a customer.
    My question is, if i want to send this Formular to another System, can I send this as a XML File or something else???
    I have no idea, how i can send my smart forms formular to another System.
    With kind regards.
    ETN

    I guess you want to send "spools" in XML format, not the definition of smart forms. So, the XML for Smart Forms is called XSF: read [SDN article - SAP SMART FORMS XSF - XML OUTPUT FOR SMART FORMS|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b6bc290-0201-0010-5b87-a0e7c7eb55d0] and [sap library - smart forms - output in XSF format|http://help.sap.com/saphelp_nw70/helpdata/EN/a5/28d3b6d26211d4b646006094192fe3/frameset.htm]

  • Can we get the item data in smart form

    i have a header table with 3 records and item with 10 records.. i am passing both of them to the function module ( fm_name) and then in the smartform i have to get 3 pages output. but right now i am getting only one page..
    to display the header data i am using secondary windows and for displaying the item data i am using tables node in the main window ( in the data tab of the tables node i am giving it as loop it_item1 into wa_item1 ). before the header row of that table node i have created a table node and in that i am prearing the item table it_item..as
    describe table i_hdr line h_lines.
    if h_idx LE h_lines.
    READ TABLE i_hdr into wa_hdr index h_idx.
    if sy-subrc eq o.
    loop at it_item into wa_item where belnr = wa_item-belnr.
    move wa_item to wa_item1.
    append wa_item1 to i_item1.
    clear wa_item1.
    endloop.
    endif.
    this is what i am doing it right now.. and at the last row in the footer of table node i have created a command node and in that i have selected the option go to page : first page.
    please correct me if my approach is wrong
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 29, 2009 12:03 PM

    Hi,
    You try ur logic in
    do                      ---endo.
    after describing the table .
    Do the loop for the number of records available.
    i.e. as per your logic.
    describe table i_hdr line h_lines.
    do h_lines times.
    put your above code and enddo.
    Hope this will work.

  • How to pass data from one Form to another Form

    I am writing a Login form to allow user to access MySQL but the Authentication is taking place in another form that actually does the work
    how do I pass the username and password form the Login form to the worker form.

    1. don't do these stuffs on the UI classes, let them only be responsible for displaying UI.
    As for the passing information back and forth from separate objects (forms are classes and form instances are objects) you can read up on the various appropriate design patterns, especially those implemented in MVC models.

  • HCM Process and Forms Pass data's from forms to workflow

    Experts,
    In my HCM forms and process, I have some fields. So at runtime Approver will enter some inputs on it. Example [Dependent details - Spouse, child names].
    It will stored temporary in the workflow, and finally will update in the system.
    Now my question is where the data's strored in the workflow. I need the data's entered by the Approver, to check some validations.
    So how to get the data's entered in the Form to the workflow.
    Please help me on this,
    Helps will be highly appreciated.

    Hi,
    Idont have much idea about HCM forms.
    but if u can able to read the forms    u can store it in workflow container and the necessary validations and subsequently u can save it in  database.

Maybe you are looking for