Hiding fields and subforms on interactive form for WebDynpro ABAP

Hi All:
I'm new to using interactive forms and I am creating a new form for material request.  I need to hide selected fields based on the value of other fields.  I also need to hide subforms the same way.
I have added the formcalc script to hide the field which apperas to work.  But is I remove the field value, the hidden field is not made visible.  This also applies to the hiding of the subform.  I have tried the code at different events but no luck.  If I enter 'KINC' in the plant field, the KINC_TAX_IND is visible. But if I remove or change the value, the KINC_TAX_IND is not being made visible.
Below is the code I am using:
if ( PDF_DATA.#subform[0].PLANT.value == "KINC" ) then
PDF_DATA.#subform[0].KINC_TAX_IND.presence= "visible"
else
PDF_DATA.#subform[0].KINC_TAX_IND.presence= "hidden"
endif
if ( PDF_DATA.#subform[0].PLANT.value == "" ) then
PDF_DATA.#subform[0].Subform2.presence= "hidden"
else
PDF_DATA.#subform[0].Subform2.presence= "visible"
endif
Thanks for any help.
Jim
Edited by: Jim Bates on Jan 23, 2008 3:47 AM

HI jim,
  TRY TO APPLY THE CODE ON INITIALIZATION EVENT OF THE FORM.
Madhu

Similar Messages

  • Using Interactive forms in Webdynpro Abap

    Hi all,
    I need to learn using Interactive forms in Webdynpro Abap. Can any please tell me from where to start with and what are the things that needs to be installed extra in the client system.
    Also please tell me where i can get the tutorials on it..
    Thanks,

    Hi,
    try this.
    You can download the Adobe LiveCycle Designer installer from SAP Service
    Marketplace:                                                                               
    http://service.sap.com/installations                                                                               
    Entry by Application Group                                              
    -> SAP NetWeaver                                                        
    -> SAP NETWEAVER                                                        
    -> SAP NETWEAVER 2004S                                                  
    -> Installation and Upgrade                                             
    -> <Choose any OS and DB combination.>                                  
    -> Adobe LiveCycle Designer 7.1                                                                               
    Download this file and extract it to your local hard drive.             
    Regards, Heidi
    PS: See <a href="https://service.sap.com/sap/support/notes/962763">note 962763</a>
    Message was edited by:
            Heidi von Geisau

  • Uploading data from Interactive form in Webdynpro ABAP

    Hello All,
    I am uploading data from an Offline interactive form to an ABAP WebDynpro application. Form is first downloaded, data is filled and now I am trying to upload the form to another WebDynpro application. Form DataSource is mapped to Context node with same data structure. However when I upload the form, form data does not pass automatically to specified context node.
    Do I miss any important step in between? I am on SAP NetWeaver 2004s SP10.
    Thanks,
    Nitesh Shelar.

    hi,
    the data is automatically passed to the context when the "interactive form" UI element is there in the view.
    when you just upload the pdf, just like that, it will treat it like a PDF file, not an interactive form....
    try using the same interactive form which you used to create the offline form.
    i hope this helps,
    regards,
    -ag.

  • How to call interactive form using webdynpro abap.

    Hi Sap Guru's,
    I have Created Invoice Interactive form using SFP Transaction , now my requirement is ,
    Need to Call that invoice form using webdynpro abap by passing invoice number(vbeln) from the screen.
    please suggest .
    thanks

    Hi Suresh,
    Refer <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/aa/940ee5331b4b8fa0a6cb6714dc5db4/frameset.htm">Interactive Forms in WDA.</a>, this is the best one .
    Welcome to <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms">Interactive Forms.</a>.
    Do post your queries on Interactive Forms in SAP Interactive Forms by Adobe.
    Rgds,
    - anto.

  • Dropdown List in Adobe Interactive Form Using Webdynpro ABAP

    Hi Pals,
    In my scenarion I need to list the Rating Code in the Dropdown list box of the Interactive Form.
    Form Created by using SFP transaction
    Not XML Schema interface
    Passing the values to the Form by using the default function module that which created automatically while creating the Form
    Am binding the Field and also binding for the list Item. Even though the values are not listing.
    $record.sap-vhlist.<Field name>\.DATA\.FIELD.item[*]
    I have followed the above format , but no use ...
    Field Name : rating_code
    $record.sap-vhlist.RATING_CODE\.DATA\.FIELD.item[*]
    Field Name : value
    $record.sap-vhlist.VALUE\.DATA\.FIELD.item[*]
    but it is not working for me, will appreciate if some one really help me to fix this.!!!!
    Thanks & Regards
    Andy.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

  • F4 help in Interactive forms with Webdynpro abap

    Hi All,
    How to create a f4 help in interactive adobe form by using  Webdynpro ABAP.

    Ameer,
    Check if these blogs help you:-
    /people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
    /people/community.user/blog/2007/01/16/a-simple-search-help-in-isr-form--contd
    Chintan

  • Adobe interactive forms in webdynpro abap

    hi
    what is the purpose of templatesource(form and interface)?why we need to create a form and assign it to interface .purpose of interface .what the action it is going to perform in adobe forms

    Hi ,
    The interface helps to take the data to-and-from the Adobe form.
    Thanks and Regards,
    Prabhakar.

  • ADOBE FORMS with WEBDYNPRO ABAP

    Hi Experts,
    Can Anyone give me some examples how to create Adobe interactive form using Webdynpro ABAP...
    Thanks and Regards,
    Kriss.

    Kriss,
    http://www.google.co.in/search?hl=en&source=hp&q=adobeformusingwebdynprofor+abap&meta=&aq=o&aqi=g10&aql=&oq=&gs_rfai=
    search before posting the question
    Thanks
    Bala Duvvuri

  • Adobe Interactive Forms - for Travel Expense Booking

    Hi:
    We are implementing Adobe Interactive Forms for Travel Expense Booking integrated with Portal (where user would download the form from portal locally to work offline and then upload it later when connected).
    For the form to function properly, our consultants has asked to make following changes in the Adobe Reader settings on user machine:
    1. Under Edit -> Preferences -> Internet -> Check "Display PDF in browser"
    2. Under Edit -> Preferences -> JavaScript -> Check "Enable Acrobat JavaScript"
    3. Under Edit -> Prefenences -> Security (enhanced) -> Uncheck "Enable Enhanced Security"
    All the above three changes are opposite to our current settings. And our IT group is seeing a major secutity threat to company network on making the above changes.
    I wanted to check how other companies with Adobe implementation are handling the above changes? Is there any work around to these changes?
    Any ideas?
    Thanks,
    Rahul

    you have to get really creative when trying to dynamically control the form without javascript / formcalc.
    One of my little secrets (you owe me big points here) is that I prepare my output in a series of tables when possible.
    For instance, in SAP i'll fill an internal table with
    Customer | Sales Order Number
    12345      |  80002038
    Date         | 09/15/2011
    Special Instructions | Deliver around back
    something like this... then I drop this table where I need it.  However, if there are no special instructions, I simply do not fill that info out in my internal table. This has the effect of "hiding" the field.

  • Add Subform dynamically,in Interactive form in WebDynpro

    HI,
    I an using NW2004s SP9  and have an Interactive form designed by Adobe Designer 7.1 from within the NetWeaver Developer Studio, with the following hierarchy of elements:
    -form1(root)
    --Button
    --tmpForm (subform - Repeat subform for each data entry )
    ---ST (Text)
    The Webdynpro application displays the Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
    On click of button, the following javascript is executed on client side:
    var df = _tmpForm.addInstance(1);
    df.ST.rawValue = "HI"  ;
    xfa.host.messageBox( "Instances" +  tmpForm.all.length ) ;
    On clicking the button, i get the number of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
    But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0, and open it using Adobe Acrobat PRO 8.0, it works fine.
    My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
    Or, is there something that i am missing?
    Please guide.
    Thanks.
    Regards,
    Siddhartha

    HI Dezpo,
    Thanks a lot for replying.
    I had checked the updated <b>SAP Note 834573</b> -Interactive Forms based on Adobe software: Acrobat/Reader version, which states that:
    For SAP Interactive Forms by Adobe, you require the following:
    Adobe Acrobat as of Version 7.0.9
    Adobe Reader as of Version 7.0.9
    <b>Important:</b>
    Note that you can only have limited use of Reader 8.0 for forms that, at runtime, are integrated in a WebDynpro application through the xACF technology (Active Components Framework). In this runtime environment, Reader 8.0 currently only supports static interactive forms. If you are using <b>dynamic interactive PDF forms</b>, we recommend that you use <b>Reader 7.0.9.</b> In the application, you can use parameters, or you can call methods, to determine whether you want to create a static or dynamic PDF form.
    I tried with the reader versions - 7.0.7,  7.0.9 and 8.01, but it doesn't work for either of them.
    Regards,
    Siddhartha Jain

  • Interactive Form for HCM Processes & Forms: Custom Event not firing ?

    ECC6
    EP7
    Adobe Reader: 8.1.2
    I am currently developing several Adobe interactive forms as part of an HCM Processes and Forms process. I have started to try to utilize custom form events. Following the documentation, I defined a custom event on the backend...lets say "USER_EVENT_S1". I assigned it a field group of fields and gave it the operation for "check". On the form side, I defined a pushbutton and changed it's "mousedown" FormCalc code to:
    //Set ISR_EVENT for BAdI processing in backend
    $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_S1"
    I then activated the form and went to test it. When clicking the button tied to this event, it does absolutly nothing. I have external breakpoints set on the backend to my custom service that should fire for those fields that are part of the field group. The breakpoints trigger correctly as the form itself loads and hits the "initialize" and "F4 value help" methods. However, it is not doing anything when I press the assigned button to trigger my own user event.
    Any help ?!?!? I see only one implementation from SAP in their standard content and their own user event is not even implemented in the form! (form scenario S_HRPA_DE_REHIRE_1). That's not very reassuring or helpful. haha

    I figured it out this morning. It seems I was using the wrong (older?) button control.
    The one that did NOT work had the following for the "click" event....
    //Trigger call to backend for BAdI user command processing
    app.eval("event.target.SAPSubmit();");
    However, the one that DOES work has this:
    //Trigger call to backend for BAdI user command processing
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    Both are called an "ISR_FormEventButton" however, I guess mine was from an older "library". Anyways...works great now! Back to development....
    (points to the reply for trying to help at least! Thanks!)

  • How to create interactive forms using Webdynpro for ABAP

    Hi All,
             I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
    Also Please provide me introduction as how interactive forms are related to ISR senarios.
    Thanks in Advance.
    Phani

    Hi Varun!,
    Can you please send me also the above said step by step tutorial on [email protected]
    and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
    Thank you in advance.
    regards
    Ravi

  • Interactive Forms by WebDynpro for ABAP

    Hello,
    I'd like to create Adobe Interactive Forms by "WebDynpro for ABAP".
    Our business requirements are
    - to download offline PDF forms.
    - to upload PDF forms and display Forms online.
    Please let me know how to do this and the document or blogs.
    Best regards,
    Koji

    Hi,
    Downloading a form is as simple as when u enduser opens a form online, he just saves a copy of it, fills it up and uploading is just the next step.
    If u want to upload an offline PDF form:
    Here's the link that'll give a fair idea about this:
    /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
    If still not clear ask me..
    It's just that u've created a view in webdynpro ABAP and uploading an offline form from that.
    regards
    Amita

  • Is there a list of Out of the Box Adobe Interactive forms for HCM (HR)?

    Hi,
    Is there a list of Out of the Box Adobe Interactive forms for HCM (HR)? Can you please help me?
    Venkatesh

    hi,
    there are standard ISR Adobe forms (interactive) to my knowledge, which you can customise at your convenience.
    kindly check at <a href="http://service.sap.com/adobe"></a>.
    more precisely, go here
    <a href="https://websmp110.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000478323&">Interactive Forms Delivered by SAP Solutions</a>
    Do update the forum reg your findings.
    Thanks and Regardas,
    Anto

  • Enhancing standard ESS and MSS Adobe Interactive Forms

    Hi,
    I need to enhance the existing ESS and MSS Adobe Interactive Forms ie I need to add and delete some fields on the form (text fields, drop-downs, radio buttons)
    Could you please tell me the steps to go about it in ECC 6.0
    Where do I add my code and how.
    Thanks
    Neha

    Hi,
    You can check the below links which can help you.
    http://it.toolbox.com/wiki/index.php/SAP_Interactive_Forms_by_Adobe_and_SAP_Smart_Forms_for_Human_Capital_Management_%28HCM%29
    http://www.adobe.com/manufacturing/pdfs/MSS_ESS_sap_interactiveforms_sb.pdf
    Thanks & Regards,
    Sandip Biswas.

Maybe you are looking for

  • New Infinity customer help please.

    Hey all I had infinity option 2 installed today after 2 weeks of extreme excitement waiting for it. It was installed at 12pm and everything was great with speeds of 37mbps dl and 10mbps ul, but then as it got a bit later the speeds have seriously dro

  • How to pass value to the  FM 'HR_MAINTAIN_MASTERDATA' .

    Dear Experts, How can I pass values to the FM 'HR_MAINTAIN_MASTERDATA' to create pernr? In the PROPOSED_VALUES tables I am passing the values for infotypes and subinfo types. The values are picked up for infotypes with no subtype , but for infotypes

  • Configuring local and remote server mysql

    So I am loosing my mind a bit.  I have a local testing server and a remote server.  My local MAMP database works fantastic with my website.  I have a php script under a folder 'connections' labeled "localhost.php" that is used to as the connection to

  • Continuous Labview program run with non-contin​uous DAQ connection

    I am using a wireless DAQ, NI 9191 chassis with 9205 module, to measure strain in a system. The DAQ is not being run on standard power so it will occasionally not be powered. The DAQ automatically reconnects to the computer when power is reestablishe

  • Assistance needed retrofitting a patch into chromium

    I have been maintaining the scroll-pixel patch for chromium since upstream removed it.  Thus far, I have been successfully modifying the original code to work with each new release of chromium until version 31.x.  I find myself unable to adapt the or