Populate Table from RFC in WD-Java Adobe Form

Hi Experts,
I have a Table in WD-Java Adbe Form. The first column is EMPLOYEE_ID and rest of the columns are EMPLOYEE_DETAILS.
I provide the EMPLOYEE_ID as input in the first column and then on clicking of the CHECK button, I want to get the remaining columns populated with Employee Details
If I enter just one employee id (Row1) then I should get the details of the first employee only.
If I enter two employee ids (Row1 and Row2) then I should get the details of both eployees in the table.
The ABAP RFC Function Modules have already been designed in such a way that a table is bein passed as Import (having EMPLOYEE_IDs) and another table is beig returned with the filled in details of the employees in the Export.
THe issue is how to use the RFC to implement this table in the form.
Thanks & Regards,
Shobhit
Message was edited by:
        Shobhit Swarup Mathur

Hi Shobhit,
You could populate the columns by writing a script at the click event of the button.
Is it a dynamic table..(asking this coz then the reference of the row will also be dynamic)
if its a static table.
on the click event, you can write the following script.
Note...i am taking the table name as Table1
var nTableLength = Table1.nodes.length;
for (var nCount = 0; nCount < nTableLength; nCount ++) {
if ((Table1.nodes.item(nCount).className == "subform") && (Table1.nodes.item.nCount).name !== "HeaderRow")) {
oRow = Table1.nodes.item(nCount);     
if (oRow.EMPL_ID.rawValue !== null ){
// populate the other value over here eg
// oRow.EMPL_NAME.rawValue = 'Shobhit';
let me know if theres any problem.
Best Regards
Mona

Similar Messages

  • Problem using RFC to call an adobe form to create pdf file........

    Hi,
       I have an RFC that calls an adobe form to display the pdf output back in a bsp page...the RFC fails at the call to the adobe form (next call after after getting the form name) ...while debugging it looks like within this call it is trying to call fpcomp_job_open and failing on the call check_job_open ...
    The code in my RFC looks like this....
    DATA:
        gs_outputparams  TYPE sfpoutputparams,
        fn_name           TYPE rs38l_fnam,
        fp_docparams      TYPE sfpdocparams,
        fp_formoutput     TYPE fpformoutput,
        frm_result        TYPE sfpjoboutput,
        lv_form           TYPE fpname.
    DATA: l_pdf_xstring  TYPE xstring,
           l_pdf_len      TYPE i.
    lv_form = 'ZHR_ASSESSMENT_FORM'.
    Start formrocessing - OPEN spool job to send to printer
      gs_outputparams-getpdf = 'X'.
      call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = gs_outputparams
        exceptions
          others          = 1.
      IF sy-subrc <> 0.
    *//    RAISE FP Open Error.
          exit.
      ENDIF.
    Get name of the generated function module for the form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = lv_form
        IMPORTING
          e_funcname = fn_name.
      IF sy-subrc <> 0.
    *//    RAISE FP Get Form Module Name Error.
            exit.
      ENDIF.
    Call the Adobe Form
      CALL FUNCTION fn_name
      EXPORTING
          /1bcdwb/docparams  = fp_docparams
          gv_appraisal_id = gv_appraisal_id
      IMPORTING
         /1bcdwb/formoutput = fp_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          others             = 4.
      IF sy-subrc <> 0.
    *//    RAISE Call Form Module Error.
            perform f_build_message using 'E'
                                      'ZEXT'
                                      012
                                changing return.
           exit.
      ENDIF.
    End from processing - Close spool job
      CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = frm_result
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
    *//    RAISE FP Close Error.
           exit.
      ENDIF.
      form = fp_formoutput-pdf.
    Thanks,
    Venkatesh

    what is the solution for this problem? I have the same problem. I get sy-subrc = 1 after CALL FUNCTION 'FPCOMP_JOB_OPEN'.
    If I look more in detail I see that "Perform check_job_open" is creating the problem:
    FORM check_job_open.
      IF fpstat-is_opened = c_true.  (--> exactly here is the problem. This condition is true so the program is terminated.)
        PERFORM reset_status.
        MESSAGE ID 'FPRUNX' TYPE 'E' NUMBER '101' RAISING usage_error.
      ENDIF.
      fpstat-is_opened  = c_true.
      fpstat-is_started = c_false.
    ENDFORM.       
    Does somebody know why my job is open and what is the solution to have the job closed at the beginning of my processing?
    Thanks in advance.

  • Is it possible to copy tables from another application or excel into forms

    I wasnt to insert tables from another application or excel into forms. currently it copies over the information from the table but doesnt keep it in a table format? Is it possible to do this?

    Dear try67
    I just forwarded him to a page (by Adobe Expert) where I had hoped this will help him.
    It could also be your side.
    I don't think that it took a comment from another. Unless it is a personal good advice. I just wanted to help and free of charge
    Sometimes we overlook a detail by quick reading. Is this never happened to you ?

  • Multiple records of table from RFC to XI in single XML file

    Hi
    My Scenario is as following -->
    <b>RFC ---> Sender RFC Adapter ---> XI -
    > Rec SOAP adapter ---> Web Service</b>
    Now we need multiple records from RFC which can be put in single XML file & XI can transport the whole XML file to Web Service. All the configuration in XI, Web Service is complete & I tested my mapping which is able to accept multiple records.
    But when ABAPer is sending the records I am not getting it in XI, I checked that in message payload from RFC.
    He put the table name in TABLE tab of RFC. But not under Import Tab, as whatever he is providing under Import parameter & exporting it through report I am getting in message payload but not the table data.
    Did anyone try such scenario, can you tell me how can we achieve this.
    Pls. provide me your mail ID in case you need an attachment of the current RFC & report code & my mapping snapshot.
    Regards
    - lalit -

    Hi
    We have created the BAPI in which we are just describing the structure of the payload & which I am importing in Integration Repository.
    And we are calling this BAPI from another program using " Call function ... " command & also provinding the data in that program.
    Actually ethically ABAPers are against the idea of provinding the data into program they would like to provide it in BAPI but that won't work, you have to provide data in program which in turn populate the fields of BAPI.
    Let me know with your mail ID in case you need snapshot of function & programs.
    Regards
    - Lalit -

  • Invoking a workflow using GP and WD Java Adobe Forms

    Hi,
    I have a scenario where I want to be able to submit an Adobe Form for approval, if its approved I get info from a BAPI which populates the form, if not I just get a message saying, Not approved. So in steps i'd like to be able to:
    1) User fills in a form with input parameters,
    2) Submit form,
    3) Approver receives form for approval,
    4) Approver approves and a BAPI is invoked with the input parameters in the form, the form is populated with what the BAPI returns.
    5) Form is sent back to user.
    6) If form not approved then message sent to user.
    I want to create the Adobe form in Web Dynpro Java. I need advice as to if I should do the whole process in GP, or can I use them both together? What are the steps involved? Can this be achieved? Do we use Portal email services to send communication between the user and the approver? Any advice/help/suggestions very welcome.
    Thanks
    TM

    Hi Lisha
      For storing the data from form to workflow and from workflow to trancation it better to maintain custom table to get the details later. You can use the std FM to insert the data from the form to table in this case you need not create custom table. Tell me which module you are working on. MSS or for ESS like leave, travel, actions like seperations, transfer which one you are using.
    Regards
    vijay

  • Direct  RFC And webservice in Adobe Forms

    Dear All,
                Does adobe Lifecycle designer intregate RFC as a webservice ?
    Or we need to write a Java/Adap Dynpro and call the adobe Form?
    Regards,
    Anirban.

    Hello,
    You can call a web service directly from an interactive form. To access RFCs, you need an application (typically webdynpro Java or ABAP).
    Keep in mind that your form is interactive (meaning data storage and exchange capable) only if it has been generated by the ADS.
    Regards,
    Francois

  • How to handle tables data in XML schema based adobe form

    Hi all,
    I am working on the CRM business partner creation by using Interactive adobe form with following steps:
    1) Uploaded the offline Interactive adobe form  to online interactive adobe form via WebDynpro ABAP;
    2) Capture XML data into corresponding BAPI structures;
    3) Save all the changes to database via BAPI.
    The adobe form contains customer information as well as several table views which are bind with the context created in WebDynpro: Node NEW_BP_NODE cardinality 1:1 with single attributes and table type attributes (1:n): COLOUR_COMP, MEN_COMP etc.
    While converting the xml format data to SAP context format, It is fine to use following routine to find the single attribute and map to the BAPI structure to do the database update.
    NODE = DOCUMENT->FIND_FROM_NAME( NAME = 'XYZu2019).
    XYZ = NODE->GET_VALUE( ).
    Question: how to convert the xml table data to SAP context format in WebDynpro ABAP?
    The XML table data looks like below.
    <?xml version="1.0" encoding="UTF-8" ?>
    <NEW_BP_NODE>
    <COLOUR_COMP>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX>000</ZZTFLDRZ2AQX>
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX>000</ZZTFLDTC2DQX>
    <ZZTFLDOR2UQX />
    </DATA>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX />
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX />
    <ZZTFLDOR2UQX />
    </DATA>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX />
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX />
    <ZZTFLDOR2UQX />
    </DATA>
    </COLOUR_COMP>
    <MEN_COMP>
    <DATA>
    <ZZTFLD4V2V7V />
    <ZZTFLDYD2N7W>000</ZZTFLDYD2N7W>
    <ZZTFLDX32I7W />
    <ZZTFLD2D2W7W />
    <ZZTFLDGD2A7W />
    </DATA>
    <DATA>
    <ZZTFLD4V2V7V />
    <ZZTFLDYD2N7W>000</ZZTFLDYD2N7W>
    <ZZTFLDX32I7W />
    <ZZTFLD2D2W7W />
    <ZZTFLDGD2A7W />
    </DATA>
    </MEN_COMP>
    Thanks in advance for your help.
    Michelle

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • Trigger workflow from ABAP webdynpro (having an adobe form)

    Hello All,
    I have developed an Webdynpro (for ABAP) component that has an Adobe Form integrated within it. Now I have been given a requirment that the form (once filled out on the portal) needs to be routed to 2-3 persons for approval and then submitted (or processed in SAP). The approving personnel will look at their UWL on the portal and approve/dissapprove.
    I do not have much hands on experience on such a Workflow scenario as above. I have already completed the adobe form part and the webdynpro section.
    I will really appreciate it if anyone can advise as to how I need to proceed here.
    Thanks in advance, Liz

    Hi Liz,
    You can use the FM SAP_WAPI_START_WORKFLOW. In webdynpro you have the button like "Submit" right? All the process has done, the user can click the submit button to get the approval. Under the button you can call this FM.
    Create one workflow based on your scenario, and pass the workflow number to this FM. So once the submit button is clicked then in back end workflow will getting triggered.
    For more Informations, please have a look at following links.
    SAP_WAPI_START_WORKFLOW doesn't start workflow...
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_START_WORKFLOW help
    Thanks.

  • How to populate table in RFC

    How do I populate an abstractlist that is an input to an RFC?  I read the post by Bertram Ganz, but my generated classes look different.  I imported the RFC and the system generated the following:
    -zbapi_appraisal_create
      -zbapi_appraisal_create_input
        -appraisees (bapiappraisee)
          -bapiappraisee
            -fields...
        -output (zbapi_appraisal_create_output)
          -same as output node below
        -appraiser_id
        -rest of input parameters...
      -zbapi_appraisal_create_output
    ...etc.
    I have no problem setting the regular input parms, but how do I set the table?  I tried the following, but I get a ClassCastException on the call to setAppraisees().
    Zbapi_Appraisal_Create_Input input = new Zbapi_Appraisal_Create_Input();
    wdContext.nodeZbapi_Appraisal_Create().bind(input);
    input.setAppraisal_Model_Id(appraisalModelId);
    input.setStart_Date(startDate);
    input.setText(description);
    input.setCreation_Date(appraisalDate);
    input.setAppraiser_Id(appraiserId);
    //static values
    input.setPlan_Version("01");
    input.setAnonymous(true);
    input.setAppraiser_Type("P");
    input.setAppraiser_Plan_Version("01");
    //create appraisee
    <b>Bapiappraisee obj = new Bapiappraisee();
    obj.setPlan_Version("01");
    obj.setType("P");
    obj.setId(appraiseeId);
    obj.setName(appraiseeName);          
    List myList = input.getAppraisees();
    if (myList == null) myList = new ArrayList();
    myList.add(obj);
    input.setAppraisees((AbstractList)myList);</b>
    wdContext.currentZbapi_Appraisal_CreateElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    Any input is greatly appreciated!!
    John<b></b>

    Please read a good manual prepared by Arun Bhat -
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2">Adaptive RFC Troubleshooting Guide</a>
    WDDynamicRFCException most likely comes in the following cases:
    a) JCo is not setup properly
    b) Your function module does not exist in R/3 system referred by your JCo
    c) Your function module is not RFC enabled
    d) DD_DOMA_GET is not RFC enabled
    Also make sure you have got your cardinality settings for your model node in context controller proper.
    If you have used a template approach, just check your wdDoInit method of your custom/component controller for code similar to the following:
    wdContext.nodeBAPI_Input().bind(new BAPI_Input());
    If you have the above code and the code that you have just  pasted , just comment this code and try executing your application again.
    Regards,
    Subramanian V.
    Message was edited by: Subramanian Venkateswaran

  • How to populate table from forms

    I'm working with forms 4.5 and have created a form that is based on table A. I need to be populate another table B which has the same fields as table A from this form. How do I do that?

    that's right but this way needs some more attention actually: make sure that insert block allows inserts and use only that table (not for instance view), then you have to call the form and browse throw all the records to fire the process and perform final commit.
    So the better way is to create procedure inside the form doing that automatically. You can use the block fields to assign values (:blockA.field1 := :blockB.field1). It seems to be easier to build and run.

  • How to transfer large transactional tables from RFC to background ABAP?

    Which is preferrable to use ABAP memory, SHARED MEMORY/BUFFER or SHARED ABAP OBJECTS in my scenario:  I have an external application sending two tables to an RFC.  The tables are made up of transaction data and can approach 1 GB in size.
    The RFC times out, since it is a dialogue process. Therefore, I programmed the RFC to SUBMIT a background job VIA JOB.
    QUESTION: How to import internal table into a program that was submitted via JOB?
    Do I have to use SHARED MEMORY/SHARED BUFFER, or can I still use ABAP memory?
    Can I send a table in a parameter in SUBMIT WITH construct?
    An issue I have encountered is that the result of the IMPORT FROM SHARED BUFFER constructu  is not consistent in consecutive executions. Why would the result of the  IMPORT be inconsistent if the code is exactly the same and the data is exactly the same?
    FYI I am building the memory ID dynamically and then sending in SUBMIT WITH parmeter?
    Please don't post links to SAP HELP documentation.. I have read it, re-read it and read it again.
    I really need expert experience, not generic documentation.
    Thanks in advance.

    Hi here is an example for the submit command use,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    codeREPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.[/code]
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
    Hope this helps.
    regards,
    venkat

  • SAP Workflow - WD Java - Adobe forms

    Hi experts.
    I had a question regarding on workflow.
    We have an adobe interactive form inside a webdynpro java application, once the form is submitted its passed on as an attachment to an SAP business workflow. Inside the workflow we need to extract the data from this form and pass this data to an SAP transaction.
    Any standard way to do this?. Please suggest any pointers.
    Thanks
    Lisha

    Hi Lisha
      For storing the data from form to workflow and from workflow to trancation it better to maintain custom table to get the details later. You can use the std FM to insert the data from the form to table in this case you need not create custom table. Tell me which module you are working on. MSS or for ESS like leave, travel, actions like seperations, transfer which one you are using.
    Regards
    vijay

  • Using Table returned by Web service in Adobe Form

    Hi Experts,
    I am working on a scenario wherein i am supposed to have a table as a response parameter in a RFC based webservice.
    When this web service is stand alone executed it gives back the records in the table.
    Now this web service is required to be integrated into the Adobe Interactive Form, On execution of this webservice from the Form, it does not return any result in the table.
    Am i missing something?? or is it related to some tricky binding or something??
    Please help!!
    Any help would be appreciated.
    Thanks
    Amita

    hi ,
    i have this problem .
    how can i solve this problem.
    Web Services Return table only see first row.
    Thanks.

  • We want to share a staff eval form between six different schools, but we only want the school principals to see their own evals, not the evals from other schools.  When Adobe Forms had the Teams subscription option this was possible.  Any help would be gr

    We worked with another school district that used the Teams Subscription features, but that is no longer avaiable.  Is it possible to do the same now?  We have an Adobe Pro Subscription.  Thank you for any help.  Chris

    Well, I have an update.
    As of 8.45 this evening, nearly four hours after posting the above, the original purchaser of the software in question received the following email (clearly I've removed sensitive info)
    "With this response, we believe your issue is resolved and have therefore closed your case xxxxxxxxxxx.  If your support case has not been completed to your satisfaction or you should you need to contact us on this issue again, please reference your case number. You can reopen your case up to 14 days after it has been closed.
    Hello xxxxx,
    Thank you for contacting Adobe and we apologize for not being able to answer your request in a timely manner. We appreciate your patience in this regard.
    This email is regarding your request to transfer the license for the software Adobe Design Premium CS 5.5.
    Xxxxx, we have transferred the serial number xxxxxxxxxxxxxxxxxxxxxxxxx from your Adobe account the account associated with the email address xxxxxxxxxxxxxxxxxxxxxxxxx as per your request hence closed this case."
    ...and I have checked my Adobe account and can confirm that indeed the licence has finally been transferred. :O
    The system does work ...eventually.
    I clearly needed to write that shirty forum post above months ago. Adobe Support may well have actually done what they should have done months ago, but it still doesn't stop them being useless and needlessly protracting a fairly simple process and wasting both my time and the original purchasers time.
    I also can't help but wonder if Tweeting the forum support page URL directly to Adobe and Adobe Support helped them extract a digit from their collective rectum, I guess we'll never know?
    Adobe, sort your support out, it aint rocket surgery!

  • Prob. exec. print job from RFC which im calling Web Dynpro java in Portal

    Hi,
    Ive got a problem executing a print job from an RFC which im calling in Java web Dynpro Application in Portal. Im using an Acess Method G: for Front End Printing but Order gets stuck with the Status "Waiting" "Front end unavailable".
    Any help would be greatly appreciated.
    Thanks in advance!!!

    HI,
    I dont think you would be able to do this. Instead, you need to get the content from RFC into WD java and print from the browser.
    Regards
    Srini
    Edited by: Sinivasan Rajamani on Jun 14, 2010 4:25 AM

Maybe you are looking for

  • Trying to replicate a gray processing operation called "black flood"

    I am trying to replicate a gray processing function call "black flood". This is found in Leica image analysis software. The documentation reads, "Fills in black detail without affecting the boundaries.  This is done by closing by the selected number

  • Fuzzy video + fishbowl stablization in iMovie09:will FCE4 do better?

    I got some strange pixelated like funky video and the fishbowl in imovie 09. I heard imported full HD size video in iMovie is the same quality in FCE4, but will the fishbowl effect when stabilizing video in iMovie09 be present in FCE4? if you see in

  • SPA2100 lights are blinking in row - How to recover it ?

    Hi, My SPA-2100 lights are blinking in a row. Actually i was trying to upgrade it but i suddenly lost access during upgrade. Since then the lights are blinking a row and I can not access it via IVR or LAn or WAN I have downloaded recovery tool from s

  • Xmanager acces from remote causes Xerrors dtlogin received signal 11

    I am running Solaris 2.8 on a Ultra 10 ( 512MB) Xwindows /CDE on the console is running fine, when attempting to log on to the system from an external x-windows ( pc) via dtlogin the login screen does not appear. /var/dt/Xerrors containts: dtlogin: r

  • Java thread sleeps forever

    i am using the following code the problem i am facing is that the thread does not return from sleep only in one condition.can any one guide me regarding this. can i know in what condition the java thread does not return after sleep. while(ivIsActive)