Events Definition in Adobe Interactive Form

Hi,
I have a requirement to define a Button and handle the appropiate action in my BADI.
I found out the appropiate BADI's method(SCENARIO_PROCESS_USER_COMMAND).I can include my coding here based on the USER COMMAND value.
Now, I would like the define the Function code Value(User Command Value) for my button in my Adobe Interactive Form.
Can anyone let us know how this can be done?
Regards,
Raja Sekhar

Hello Peterson,
Well, would be great if you had opened a new thread instead of continuing my closed thread.
Anyways, If you want a dropdown from backend in ISR/PCR Adobe Forms, you require to implement QISR1 BADI - SCENARIO_SET_ADDITIONAL_VALUES method where we require to populate LS_ADDITIONAL_DATA Internal table as shown below.
Get the list of Employee Groups for Dropdown
  SELECT * FROM T501T INTO CORRESPONDING FIELDS OF TABLE EG_TAB
                      WHERE SPRSL = 'EN'.
  CLEAR INDEX.
  LOOP AT EG_TAB INTO WA_EG_TAB.
    ADD 1 TO INDEX.
    CLEAR LS_ADDITIONAL_DATA.
    LS_ADDITIONAL_DATA-FIELDINDEX = INDEX.
    LS_ADDITIONAL_DATA-FIELDNAME = 'EG_NEW_KEY'.
    LS_ADDITIONAL_DATA-FIELDVALUE = WA_EG_TAB-PERSG.
    APPEND LS_ADDITIONAL_DATA TO ADDITIONAL_DATA.
    CLEAR LS_ADDITIONAL_DATA.
    LS_ADDITIONAL_DATA-FIELDINDEX = INDEX.
    LS_ADDITIONAL_DATA-FIELDNAME = 'EG_NEW_LABEL'.
    CONCATENATE WA_EG_TAB-PTEXT '(' WA_EG_TAB-PERSG ')'
      INTO LS_ADDITIONAL_DATA-FIELDVALUE.
    APPEND LS_ADDITIONAL_DATA TO ADDITIONAL_DATA.
  ENDLOOP.
I hope this code will help you.
Regards,
<i><b>Raja Sekhar</b></i>

Similar Messages

  • Control not going from Adobe Interactive form to ABAP WD Event handler

    Hi
    I am facing an issue with adobe interactive forms and WD ABAP integration.
    The buttons in adobe interactive form when clicked is going round and round and the control is not going to the ABAP code(WD ABAP event handler code whatsoever). I have also set the debugger but the control is not moving to the ABAP code from the adobe interactive form.
    Can anyone help me what can be the issue here and how can I resolve the same?
    Thanks.
    Sid

    Hi Babi,
    In the adobe form layout library Use the Submit(which internally means submit to SAP) button from the Webdynpro Native category.
    Only this button action can connect adobe to web dynpro.
    Whenever we click on this particular button the event will be trigger in the ONsubmit event of interactive form UI element in the webdynpro.There we can write our abap code.Hope this will help you.
    Regards,
    Simi A  M
    Edited by: amsimi on Mar 22, 2011 11:37 AM

  • WebUI Print Preview (Action Definition - Print) for Adobe Interactive Forms

    Hi All,
    As mentioned in subject, how to define an CRM Action Definition (with or without Action Condition) to Print an Adobe Interactive Forms. We know how to define a setting for Print Preview function in CRM WebUI via Action Definition - Smartforms Print. Now we want to print preview from CRM WebUI document on Form designed in Adobe Interactive Forms (tx SFP).
    We have tested using Action Definition - External Communication, we can set the AIF form here. We tested in GUI (tx crmd_order) and it works. But when testing preview on CRM WebUi it shows "Error in Smartforms".
    Somehow it still detect as Smartforms instead of Adobe Interactive Forms.
    We prefer if this preview can be done via Action, because it is straight forward function for printing.
    Should we use Action - Method Call instead ? How is the approach to do it in Action - Method Call ?
    Any one try this before? Appreciate your sharing here.
    Thx & Rgds,
    Gun.

    Hi Gunawan,
    if I got you right, what you want is: Call your AIF when someone clicks on the "print preview" button in CRM WebClient. This should all work using a print action like with normal SmartForms.
    I faced this problem some months ago on CRM 6. The problem here was quite simple: The SmartForm interface and the one of AIF are not compatible. Thus the service used for calling the print action from WebClient failed.
    For handling this problem I enhanced the print service to call AIF correctly.
    In customizing I used print actions that call a method.
    As mentioned this lays back some months already. Maybe SAP came up with a better solution by now. I saw AIF to have multilple interface types. One is an interface compatible with SmartForms. Probably you can use this one and the print service will work without any enhancements or modifications.
    cheers Carsten

  • Error message while clicking PDF Preview of a ADOBE interactive form

    Hi -
    I am creating an ADOBE interactive form having Tables, few text fields and E-mail submit button. The scripting language used is FormCalc.
    Whenever I am clicking on PDF Preview to see the form layout and to check other functionality, I am getting an error message:
    Error message -
    Error: syntax error near token '|' on line 1, column 14.
    Script failed (language is formcalc; context is xfa[0].form[0].data[0].Mainpage[0].Subform3[0].Table2[0].Row1[0].RATING[0])
    script=this.isnull || (this.rawvalue >= -32768 && this.rawvalue <= 32767
    I checked my scripts and there is no syntax error in that. My form is also working absolutely fine except getting this error message pop up whenever I try previewing my form.
    Can you please tell me, what can be the possible reason.

    I tried everything, but couldn't figure out the reason for error. I wrote the script again, but the error is still coming.
    Here is a part of my script. I have written this script on Email submit button in preSubmit event, to check if the RATING field value is less than or equal to 3. depending upon this condition, I am making the COMMENT field as mandatory. The same script is repeated for all the RATING & COMMENT fields.
    if (data.GyanMainBodyPage.Subform2.Table1.Row1.RATING1 <= 3)
    then
                  data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatory = "error"
                  data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatoryMessage = "Please fill corresponding comment"
    else
                  data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatory = "disabled" 
    endif

  • Migrating PCR frontend-JSP forms to Adobe interactive forms-WD Abap Comp

    Hi All,
    We are currently on Netweaver 7.0 & ECC 6.0 and ESS - MSS Business Package 50.4. We are using JSP Forms on portal front for Personnel Change Requests (PCR's ) where in all the scenarios in the backend are heavily customized with good amount of usage of Javascripts. For certain scenarios, where in a huge amount of information is fetched from ECC 6.0 backend system, JSP are performing really bad and the total time taken to display the form is actually causing a lot of irritation to the end user.
    We are planning to propose an upgrade to SAP adobe interactive forms. The prerequisite is that the business wants to reuse all the customized scenarios without any changes and just want to move towards better front end forms.
    My questions are:
    1. Please list benefits of SAP Adobe interactive forms - ABAP component over JSP forms (performance wise)
    2. Issues with SAP Adobe Interactive forms?
    3. Since Javascripts do not work in Webdynpro ABAP. How can we implement those front end checks and validations.
    3. Any other options available for UI that can be suggested?
    All suggestions are welcome. Quick response is appreciated.
    Thanks a lot for your time and help.
    Best Regards,
    Anupama

    Is your performance issue with the Javascript with JSP pages?  or the Java script you are using within the Adobe form in your WDJ custom application using Adobe form? I have worked on PCR's using ISR framework old school it used to call as PCR and now HCM Processes and form, Developed PCR's using WDJ also integrated workflow with the WDJ PCR for approval(we never had any performance issue) infact ISR frame work was kind of slow compare to custom WDJ solution and less flexible for a developer to develop.
    I have also worked created WDA custom application for PCR's , WDA is definitely better when you compare it with WDJ but I have not seen much performance issue with WDJ atleast on custom PCR solutions.
    I don't have any case study to share with you, can you please tell what kind of PCR's your client is using and what kind of performance issue you are experiencing and where and why you guys are using Javascript.

  • Calling BRF in Adobe interactive form/Webdynpro application

    Dear Friends,
    I have a requirement that  I need to call BRF in Adobe interactive form.
    I would be great if you coud help me how to call  BRF Event in Adobe interactive form?
    Is it happening through webdynpro application?
    Please share your ideas.
    Thanks.
    Regrds,
    Preethi.

    Hi,
    Can anybody provide document link for BRF/Webdynpro and adobe combination ?
    Thanks.
    Regards,
    Preethi

  • Calling webservice in Adobe interactive form

    Hi,
    I have a webservice created for a function module which in turn calls the BAPI_PR_CREATE (purchase requisition creation) BAPI. I am trying to call this webservice from an Adobe interactive form I've created. Basically the user will enter all necessary data inside the form and when he presses a button the webservice should be called and the purchase requisition should be created.
    My question is what type of "Control type" should I use for the button "Regular", "Execute" or "Submit" and how should the javascript code look like?
    I have tried a lot of solutions that I've found on the internet but nothing worked.
    The ADS service is not yet installed, I know that this is a big issue but could this affect the functionality or could this be the cause why nothing seem to work?
    Thank you and Best Regards,
    Mihai

    Hi Florian,
    thank you for the given information.
    Unfortunatelly I was waiting for a long time from the BASIS team to install the ADS. Yesterday they've told me it's finally done.
    Consequently I started to retest the solutions I've found but with no result so far.
    I've tried to make the button an "Execute" control type and added the Connection inside the Execute tab.
    I've also tried with the following javascript inside the xml file (inside the click event of the button) and all of the button control types:
    var tempsoapAddress = xfa.connectionSet.DataConnection.getElement("soapAddress").value;
    var tempwsdladdress = xfa.connectionSet.DataConnection.getElement("wsdlAddress").value;
    var ServerPath = body.systemConfig.system.rawValue;
    var client = <Get Client from a data attribute>
    var Soap_PreServerPort =  "http://";
    var Soap_PostServerPort =  "/sap/bc/soap/rfc?sap-client=";
    var SoapAddress = Soap_PreServerPort + ServerPath + Soap_PostServerPort + client ;
    var Wsdl_PreServerPort =  "http://";
    var Wsdl_PostServerPort1 =  "/sap/bc/soap/wsdl11?services=ZBAPI_PO_CREATE2&amp;sap-client=";
    var wsdlAddress =  Wsdl_PreServerPort + ServerPath + Wsdl_PostServerPort1 + client ;
    xfa.connectionSet.DataConnection.getElement("soapAddress").value = SoapAddress;
    xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = wsdlAddress;
    xfa.connectionSet.DataConnection.execute(0);
    xfa.connectionSet.DataConnection.getElement("soapAddress").value = tempsoapAddress;
    xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = tempwsdladdress;
    xfa.connectionSet.DataConnection = null;
    I've also found that maybe I should have attached the following roles and authorization objects to my user:
    Authorization objects: S_USER_PRO, S_SERVICE and S_ICF_ADMIN, S_SRT_ADM
    Roles:
    a) SAP_BC_WEBSERVICE_ADMIN
    b) SAP_BC_WEBSERVICE_ADMIN_BIZ
    c) SAP_BC_WEBSERVICE_ADMIN_TEC
    d) SAP_BC_WEBSERVICE_CONSUMER
    e) SAP_BC_WEBSERVICE_DEBUGGER
    f) SAP_BC_WEBSERVICE_OBSERVER
    g) SAP_BC_WEBSERVICE_SERVICE_USER
    Do you have ideea what could be the issue? Can you give me another solution?
    Thank you and Best Regards,
    Mihai

  • Calling RFC from Adobe Interactive Form

    Hello,
       After creating and calling Adobe Interactive form from ABAP web dynpro, within the form designer is it possible to call RFC or Business Object method from the form script to get the data back from SAP for specific Click events?

    Yes,
    this is possible, but not through pure RFC, but using webservices and webservice enabled function modules within SAP.
    Technically it is quite simple. Create a functionmodule, and create a webserve from that (all SE37 or SE80 but from WAS 6.40). Generate a WSDL (with the Java tool) and import that into the form that you are designing. From there you can bind the data from the dataset (as defined in the WSDL) to screenfields or treat the data any other way Javascript can.
    BTW. I only managed this so far by using anonymous logins, so with a password and username bound to the webservice (in SICF).
    Hope this helps, regards, Hans Gmelig Meyling

  • SUBMIT(to SAP) Button in Adobe Interactive Forms (Web Dynpro Java)

    Hi ,
    I m using Adobe Interactive Forms with Web Dynpro Java
    But submit to SAP button is not working
    i m using NWDS 7.2 with adobe lifecycledesigner 6.0
    with adobe reader 9.0
    when i click submit to SAP button in interactive form nothing happens and
    data is not transfered into web dynpro Context
    Can anybody help me out................

    Hi Adi,
    The evniorment and versions you posted seems to be quite scattered, make sure all are of compatible and to the lates.
    Anyways this was not the reason for your problem.
    Can you tace if the button click event is triggered ....?
    1) when the PDF is published can you see any of the fields editable...? reason behind is generally when you create a form in ADLC it comes up in static PDF format if its so you need to make it dynamic.
    I dont know if adding the webdynpro script to your form might fix.
    Regards,
    Sai

  • Need help with Adobe Interactive Form Saving

    Hi Gurus,
    I need your help with Adobe Interactive form saving.
    I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
    Regards,
    Srini

    see the link: http://forms.stefcameron.com/2008/04/
    it says:
    preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
    regards,
    BJagdishwar.

  • How to store adobe Interactive form PDF in archive link?

    Hi everybody,
    I had create a WebDybpro Abap that contain an Adobe Interactive Form, now I must store this Interactive Form into Archive Link like a PDF document.
    I succeeded to save the PDF document on the archive link but after this operation, when I open this document saved, it doesn't show me the data but only the Interactive Form structure. The only data that file PDF saves are those I passed to Interactive Form during at the event initialization, but it lose all others datas that I inserted on the Interactive Form before to save.
    There is one mode to save also these datas or I can store only data that I load at the initialization event?
    I hope in your fast help.
    Regards.
    Davide.
    To follow the code that I use for Archive my Interactive form like PDF document.
    Salvataggio nell'ArchLink ********************************************
    Ricavo il PDF Source
      DATA: elem_context    TYPE REF TO if_wd_context_element,
            stru_context    TYPE        wd_this->element_context ,
            item_pdf_source LIKE        stru_context-pdf_source.
    get element via lead selection
      elem_context = wd_context->get_element(  ).
    get single attribute
      elem_context->get_attribute(
        EXPORTING
          name =  `PDF_SOURCE`
        IMPORTING
          value = item_pdf_source ).
      DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_zcentral_person( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA: l_ref_interfacecontroller TYPE REF TO
                                      ziwci__wdr_ess_central_person.
      l_ref_interfacecontroller = wd_this->wd_cpifc_zcentral_person( ).
      l_ref_interfacecontroller->store_adobe_document(
        ar_object    =  'ZHRDETRAZ'        " Toaom-ar_Object
        doc_type    =  'PDF'                    " Toadv-doc_Type
        object_id    =   objid                    " Sapb-sapobjid
        pdf_source =   item_pdf_source    " Xstring
        sap_object =   'PREL'                  " Toaom-sap_Object  ).
    METHOD store_adobe_document.   ***********************************************
    Converto la XSTRING del PDF in tabella binaria
      DATA: l_tab  TYPE TABLE OF tbl1024,
            lenght TYPE i.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer        = pdf_source
        IMPORTING
          output_length = lenght
        TABLES
          binary_tab    = l_tab.
    Calcolo la dimensione del documento
      DATA: doc_id TYPE saeardoid,
            size   TYPE i,
            lineno TYPE i,
            length TYPE i.
      DESCRIBE TABLE l_tab LINES lineno.
      size = lineno * 1024.
      DATA toaom_fkt  TYPE TABLE OF toaom.
      CALL FUNCTION 'ARCHIV_METAINFO_GET'
        EXPORTING
          ar_object  = ar_object
          sap_object = sap_object
        TABLES
          toaom_fkt  = toaom_fkt.
      CALL FUNCTION 'SCMS_AO_TABLE_CREATE'
        EXPORTING
          arc_id   = 'ZP'
          doc_type = doc_type
          length   = size
        IMPORTING
          doc_id   = doc_id
        TABLES
          data     = l_tab.
    Create link to business object
      CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
        EXPORTING
          archiv_id             = 'ZP'
          arc_doc_id            = doc_id
          ar_object             = ar_object
          mandant               = sy-mandt
          object_id             = object_id
          sap_object            = sap_object
          doc_type              = doc_type
        EXCEPTIONS
          error_connectiontable = 1
          OTHERS                = 2.
    ENDMETHOD.  ********************************************************************

    Hi Davide,
    I have a requirement where I just need to SAP HCM Archive Adobe form in External repository.
    Since you are using the archiveLink functionality.
    Can you please help me how you did?? What configurations need to be maintained for this?
    I am new to this. I did some Rnd on it and found that it can be achieved using HRFORM_HRF02 Business Add-In in the SET_ARCHIVE_INDEX method.
    But I have no clue how to do it?
    Can you please help me?

  • Date format convert error in XML interface based Adobe interactive forms

    Hi experts,
    I am using XML interface based Adobe interactive form in Web Dynpro ABAP. The form just contains some date fields and numeric fields.
    When I test the WD Application, the date fields appear like 0000-00-00 at the first time. And then I set the form input disable, and get the XML from the form, at the same time I get the warning message, 'date format convert error'. By the way, I have set the edit pattern, display pattern and data pattern  of the date field to YYYYMMDD, but there seems no effect.
    Could you tell me how to set the default date format in date field Or clear the 0000-00-00?
    And another question, all of the numeric fields in the form appear like 0.0, how can I set it to empty when the form initialize?
    Best Regards,
    Guo Guo Qing

    Hi Chintan,
    Thank you for your reply.
    I have tried every possible changes on the Date field, locale, pattern. But still no effect. When the PDF come up in the WDA program, the date field is still '0000-00-00', and then I export the XML date of the form, there is also '0000-00-00' in the interface field.
    I can't clear the '0000-00-00' in initializiation event using javascript because if I need to open the form again, if I do this, the value user input could be cleared.
    I also try using Javascrip like this
    if this.rawValue == "0000-00-00"
    { this.rawValue = ""; }
    The code above can't clear the initializiation zeros too.
    Have you used the XML interface based online Adobe Forms? I have used XML PDF forms for output before, that's perfect. But the input forms seems so strange.
    Best Regards,
    Guo Guo Qing

  • Bubble help on Adobe Interactive Form?

    Hello
    I am developing a Adobe INTERACTIVE form, and am looking to get bubble help on inputs field, ps. let me know how can i do it with a best practice
    Thank you

    You can achieve this by creating a Input Field on the form, you can control the visibility of this input field on the mouseEnter and mouseExit events of the field where you want to provide the help.
    Second option is ToolTip. Select the field on which you want to give Bubble help. Go to Accessibility pallette and there in Tooltip section write the text you want to display.
    Hope this helps,
    Amit Rai

  • Adobe Interactive Form and Web Dynpro

    Hi experts,
    I'm working with an standard Adobe Interactive Form (ISR_MSSRCF_SRQ3) which has a button (selectPosition) that is used to call a Web Dynpro (HRRCF_C_POSITION). This Web Dynpro is used to fill some forms fields (org. unit and position) as a search help. I don't know the way the Web Dynpro fills these fields, I don't find a context binding or so. Could you help to find the way these fields are linked to the Wed Dynpro? How does the Wed Dynpro fill these fields?
    For this button, events in script command window are:
    =>Mouse down.
    //Set ISR_EVENT for BAdI processing in backend
    $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_POPUP"
    $record.HRASR_FORM_WINDOW.DATA[*].FIELD.value = "HRRCF_C_POSITION"
    =>Click.
    //Trigger call to backend for BAdI user command processing
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    =>Ready.
    //Toggle visibility to be visible during edit operations, ínvisible otherwise
    if($record.CONTROL_PARAM.ISR_MODE == "DISPLAY" |
         $record.CONTROL_PARAM.ISR_FORM_VIEW =="ISR_APPROVE" )
    then
         this.presence = "invisible"
    else
         this.presence = "visible"
    endif
    Any idea???
    Thanks in advance.

    Hi
    In se80 - select the WD application HRRCF_C_POSITION.
    COMPONENTCONTROLLER -> method CALL_POPUP . Put a degug point and analyze.
    Kind Regards
    Mukesh

  • Webservice giving error "couldn't post data to " in adobe interactive form

    Hi Gurus
                     My requirment in to place a submit button in adobe interactive form , when the user clicks on it the data in the form has to update the table. For this purpose i have configured webservice in my crm 2007 server. Now webservice is working and i m getting the response. but when i create a data connection in the adobe form and when i execute the webservice i getting " Couldn't post data to ". "
    error . Plz help me out to resolve this issue
    Thanks in advance
    Regards
    Johny

    Hi Jhonny,
    Make the Submit button a regular one instead of execute and place the following code in the click event(JavaScript).
    var cURL = "Provide the Soap Address url which is present in WSDL";
    var service = SOAP.connect(cURL);    
    xfa.connectionSet.DataConnection.execute(0);
    Regards,
    Mathan

Maybe you are looking for