Dropdown code in ABAP adobe form

Hi All,
I am trying to desing a dropdown can any one help in writing code for it.
1) I designed ABAP Adobe form with ZCI layout & display type as activeX
2) In layout editor I tried to use Standard->Drop-down list or
    WebDynpro ActiveX->Value Help->drop down list or
    WebDynpro native->Value Help->drop down list.
3) I bind drop down with context element ($record.NODE1.DATA[*].PERNR)
    contect structure is as:
---Node1
Pernr
3) Then I tried to write code in 'WDDOINIT', but it is giving error
>>>>Access via 'NULL' object reference not possible
Please guide me in completing code for dropdown value help.I want to fill itab-a into node1-pernr:
method WDDOINIT .
  DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
  DATA lo_el_node1 TYPE REF TO if_wd_context_element.
  DATA ls_node1 TYPE wd_this->element_node1.
* navigate from <CONTEXT> to <NODE1> via lead selection
  lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
* @TODO handle not set lead selection
  IF lo_nd_node1 IS INITIAL.
  ENDIF.
* get element via lead selection
  lo_el_node1 = lo_nd_node1->get_element(  ).
* @TODO handle not set lead selection
  IF lo_el_node1 IS INITIAL.
  ENDIF.
* get all declared attributes
  lo_el_node1->get_static_attributes(
    IMPORTING
      static_attributes = ls_node1 ).
DATA: BEGIN OF itab,
       a TYPE persno,
      END OF itab.
DATA: wa_itab LIKE itab.
DATA: t_itab TYPE STANDARD TABLE OF itab.
      wa_itab-a = '1'.
      APPEND wa_itab TO t_itab.
      wa_itab-a = '2'.
      APPEND wa_itab TO t_itab.
      wa_itab-a = '3'.
      APPEND wa_itab TO t_itab.
      wa_itab-a = '4'.
      APPEND wa_itab TO t_itab.
******--pernr
*****  ls_node1-pernr = '80000086'.
******--Send the values back to the node
  lo_el_node1->set_static_attributes(
   EXPORTING
    static_attributes = ls_node1 ).
endmethod.

}

Similar Messages

  • How to put water mark in web dynpro abap Adobe forms

    Hi
    Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
    actually I need to print water mark as back ground in gray color.
    Points will be rewarded of Helpful answer..!
    Regards,
    Sidram

    Hi,
    for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
    Besides, there's an Adobe forum where you might get more information for such Adobe questions.
    Regards, Heidi

  • Add Button in ABAP Adobe form/ add onSubmit CLICK event????

    Hi All,
    I designed using ABAP webdynpro.
    I added WebDynpro ActiveX or WebDynpro Native submit button.
    Then I added CLICK under onSUBMIT events of view.
    And added code under ONACTIONCLICK.
    But it is not working. I check old post's saying to use  " Utilities->Insert WebDynpro Script" in layout,
    but in my case " Utilities->Insert WebDynpro Script" in layout is coming as inactive so can not able to
    add that.
    Can any one guide me how can i use Buttons on my Adobe ABAP interactive form?
    Thanks

    method ONACTIONCLICK .
      wd_this->fire_o1_plg(
    endmethod.

  • Graphic in ABAP Adobe form from SE78

    Hi All,
    I am trying to display image(SE78) in ABAP Adobe interactive form.
    But it is not displaying  any image in run time.
    I use following code. Can any one guide what could be the problem
    method WDDOINIT .
      DATA lo_nd_adobe TYPE REF TO if_wd_context_node.
      DATA lo_el_adobe TYPE REF TO if_wd_context_element.
      DATA ls_adobe TYPE wd_this->element_adobe.
    * navigate from <CONTEXT> to <ADOBE> via lead selection
      lo_nd_adobe = wd_context->get_child_node( name = wd_this->wdctx_adobe ).
    * get element via lead selection
      lo_el_adobe = lo_nd_adobe->get_element(  ).
    * get all declared attributes
      lo_el_adobe->get_static_attributes(
        IMPORTING
          static_attributes = ls_adobe ).
    *---------Code To select LOGO & PERNR
    CONSTANTS:    c_graphics    TYPE   tdobjectgr  VALUE 'GRAPHICS',
                  c_bmap        TYPE   tdidgr      VALUE 'BMAP' ,
                  c_bcol        TYPE   tdbtype     VALUE 'BCOL'.
      DATA:       lv_logo       TYPE   tdobname.
    *--pernr
      ls_adobe-pernr = '80000086'.
    *--Get the Logo
      lv_logo = 'OURSOURCE_LOGO'.
      CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
        EXPORTING
          p_object       = c_graphics
          p_name         = lv_logo
          p_id           = c_bmap
          p_btype        = c_bcol
        RECEIVING
          p_bmp          = ls_adobe-logo
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
    *--Send the values back to the node
      lo_el_adobe->set_static_attributes(
        EXPORTING
          static_attributes = ls_adobe ).
    endmethod.

    I'm assuming you want a different logo per document? Otherwise, you could just use an image object in Adobe for your logo.
    does the code return the appropriate subrc when you grab your logo? Do you have your context bound to an image object in Adobe?
    EDIT: also, what does your Context look like?
    Edited by: robert phelan on Feb 19, 2009 10:01 PM

  • Transaction code for creating adobe forms

    hi guys,
          i was trying to learn adobe forms. can anyone tell me the t.code like where to create adobe forms.
    points will be awarded generously.

    Hi,
    t.code SFP.
    definition:
    Interactive Forms based on Adobe software is SAP's new solution for forms development. Its first release has the focus on interactive use of forms. High-volume printing is supported in principle, but - being a new solution - the performance has not yet reached the same level as Smart Forms or SAPscript, two established solutions that had years to grow. Interactive Forms is the only solution that will continue to be enhanced with new features, while SAPscript and Smart Forms will be supported without limitations.
    When (or if) to move to Interactive Forms depends on your requirements. For interactive forms usage, i.e. the new functions, you have no choice, as the existing solutions don't support it. High-volume print scenarios need to be carefully analyzed to see whether your concrete requirements can be met at this point.
    However, it is possible to move to Smart Forms and design your forms in such a way that a migration at any point in the future would be but a small step. Smart Forms offers from Web AS 6.40 a migration wizard to Interactive Forms. Technically, everything can be migrated, but we recommend against things like ABAP program nodes, for example.
    You are not forced to ever go to Interactive Forms if you don't want to. It really depends on whether your client needs any of the new features in Interactive Forms. Also, if they are currently working with JetForms, they could enquire with Adobe directly what migration path they offer to the joint solution.
    go thru this links
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm
    example
    To get an overview idea about Adobe forms ,
    Using SFP , first you need to create a interface . in interface you can declare the import and export parameters and also the declaration part, coding etc : This is nothing but similar to Function module interface.
    And now we have to create the Form which is interactive. Create the form and enter the interface name which you have created in first step, so that the parameters , declarations of fields etc : will be copied and available in the form layout. So that you can drag and drop these declared fields ( dclared fields of interface ) to the layout.
    Create the context and layout in the form.
    The layout generated can be previewed and saved as PDF output.
    Now we need to integrate the driver program and the PDF form to get the final output as per the requirement.
    On activating and executing the form you will get a function module name just similar to smartforms.
    The driver program needs to call this FM.
    Refer to the below sample code :
    DATA : is_customer TYPE scustom.
    DATA : it_bookings TYPE ty_bookings.
    DATA : iv_image_url TYPE string.
    DATA : iv_sending_country TYPE adrc-country.
    DATA : it_sums TYPE TABLE OF flprice_t.
    DATA : docparams TYPE sfpdocparams.
    DATA : formoutput TYPE fpformoutput.
    DATA : outputparams TYPE sfpoutputparams.
    PARAMETERS : pa_cusid TYPE scustom-id.
    SELECT SINGLE * FROM scustom INTO is_customer
    WHERE id = pa_cusid.
    SELECT * FROM sbook
    INTO CORRESPONDING FIELDS OF TABLE it_bookings
    WHERE customid = pa_cusid.
    outputparams-nodialog = 'X'.
    outputparams-getpdf = 'X'.
    *outputparams-adstrlevel = '02'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = outputparams
    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.
    docparams-langu = 'E'.
    docparams-country = 'US'.
    docparams-fillable = 'X'.
    CALL FUNCTION '/1BCDWB/SM00000043'
    EXPORTING
    /1bcdwb/docparams = docparams
    is_customer = is_customer
    it_bookings = it_bookings
    IV_IMAGE_URL =
    iv_sending_country = 'US'
    IT_SUMS =
    IMPORTING
    /1bcdwb/formoutput = 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'
    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.
    Reward points
    Regards
    pc

  • Webdynpro for ABAP - Adobe form ISR based

    Hi,
    We are building a custom HR application to automate various HR processes
    like New Hire, Termination, etc.. Due to certain internal issues we are
    unable to use the standard business package for MSS (and hence PCR screens
    with adobe forms). We have to create custom webdynpro abap screens for the
    whole application. Now i would like to check if there is a possibility to
    use the ISR framework with a custom webdynpro abap application.
    I checked the transaction QISRSCENARIO but i could not find any option for
    webydnpro abap in "Entry type for Web".
    Have anyone of you tried such a scenario earlier with ISR's? Is there any other way
    that we can use webdynpro ABAP applications with ISRs? Or do we have any
    work around for this.
    Please send in your valuable comments.
    Thanks in advance!
    Sudha

    Hi Phani,
    Thanks for the info.
    I am able to see if it is not interactive.
    Displaytype is native only.
    Let me explain you the issue in detail:
    Currently Client is calling ZFORM thro Java. They have some issues with JAVA so they want to use Webdynpro to call that ZFORM and the form is ABAP Dic based.
    For Templete source I gave ZFORM name, and it automatically created a 'NODE' wrt the context in the ZFORM.
    Now I have to pass data from difft  node attributes to that 'NODE'.
    Thanks in advance,
    GG

  • QR Codes using SAP Adobe forms

    Hi,
    We are printing QR code labels using SAP Adobe forms and using Zebra printers (Z4MPLUS, ZM400 ) for this. Size of the QR code that is being printed is small and we want that to be printed bigger than current size.
    Could anyone help us on how to increase the QR code size? We have tried changing the module height and width in XML Source, but no luck.

    Hi,
    Does anyone have a solution for this ?
    We have the same issue on ZM400 and GX430 Zebra labelprinters.
    The QR barcode is printed very small on the label.
    We changed ModuleHeight en ModuleWidth in de adobe xml source.
    We changed the QRCode en CodeQR to "software" support in both XDC files : zpl203.xdc and zpl300.xdc.
    However after changing the XDC file from "hardware" to "software" support, the QR barcode is not printed on the label.
    Any suggestions ?
    The QR code is displayed correctly in de Adobe LiveCycle Designer (with the correct size).
    Thanks in advance.

  • Web Dynpro for ABAP Adobe Forms

    We have created a table with fields.
    How can we create a Web Dynpro for ABAP applicaton to populate these fields into an Adobe Form?

    hi,
    Refer this: /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
    If you have created Fields or Table in Adobe form then you can populate those fields in Adobe form.
    When you give the name of Adobe form in the Template Source Property of Interactive UI then screen will pop up asking to make contexts for the fields in adobe form.
    If you click on yes, then you will have automatically created context corresponding to Fields or Table in your WD application.
    Write the suitable logic to populate the Contexts in Wd Do init or using supply funciton
    This way your Adobe form will be populated with values.
    I hope it helps.
    Thanx.
    Saurav.

  • Problem with Web Dynpro ABAP Adobe form Access via 'NULL' object reference

    Hi All!
    I'm a beginner of Adobe form.
    problem 1:
    I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]
    I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.
    I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.
    problem 2:
    I can't input any data in input box or click any button even  if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer.  Does it means that there are some thing wrong with my adobe reader?
    Hope anyone could save me,
    Thanks & Regards,
    Murloc

    >
    tomcat123 wrote:
    > Hi All!
    > I'm a beginner of Adobe form.
    > problem 1:
    > I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]
    > I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.
    > I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.
    Check that you have entries in the Table MARI. else you will get this message.
    > problem 2:
    > I can't input any data in input box or click any button even  if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer.  Does it means that there are some thing wrong with my adobe reader?
    >
    Compare the adobe live cycle version. it will work fine with 7.0/7.1
    > Hope anyone could save me,
    > Thanks & Regards,
    > Murloc

  • Dropdown list in offline Adobe forms based on Particular plant number

    Hi All,
    Actually I am working on the offline adobe forms. In one of my requirement User will enter the Plant number after that user click on Submit button then the data in Function/Area and Equipment fields will come in a drop down list based on the particular plant number(User entered plant).
    So. for this requirement I will create the one RFC function module, from that FM I create one web service and configured in SOAMANAGER and finally integrated into the adobe form.
    Now my question is user enter the plant number after that user click on Submit button then the total list in the both fields will come in a drop down list for the particular plant?
    Your help will be appreciated.
    Thanks,
    Ravi.

    Hi Lennart,
    Here are a few comments/hints:
    1. To access the data value of a form field use the rawValue attribute
    2. Not sure which event you are using, try using the change event, if you are using it your script doesn't work since the updates did not happen and you are using the wrong attribute
    3. the change event has an attribute newText that can be accessed as follows: xfa.event.newText
    Cheers
    Juergen

  • Web dynpro Abap - Adobe Form Table Dynamic

    hi Friends ,
    I created one table in ADOBE interactive form  and i kept two button for row add and row delete in table
    it is working fine in Adobe fomr Preview form
    but i deployed in Web dynpro abap this functionality is not working is there any reason
    Pls give suggestion
    Regards
    Krishnan R.

    Krishnan,
    Check if the form is Interactive and also  have you installed Adobe Reader Rights on the server. If not please check note 736902 and ask BASIS to apply them.
    Chintan

  • Populating values in dropdown fields on interactive adobe forms.

    Hi,
    In HCM Forms & Process, I have populated dropdown fields using generic service. But today I came to know we can also populate the dropdown field values using webdynpro lookup tables. First question, Is that a wrong method to populate the dropdown field values using generic service. Second question, If I populate the dropdown field values using lookup tables does the performance will increase when compared to populating from generic service. Please let me know.
    Regards,
    Nayani.

    Hi,
    In HCM Forms & Process, I have populated dropdown fields using generic service. But today I came to know we can also populate the dropdown field values using webdynpro lookup tables. First question, Is that a wrong method to populate the dropdown field values using generic service. Second question, If I populate the dropdown field values using lookup tables does the performance will increase when compared to populating from generic service. Please let me know.
    Regards,
    Nayani.

  • Adobe forms using WB ABAP?

    Hi All,
    need some documents which explains how to code and design adobe forms using WD ABAP?
    Rgds
    Faisal

    hi,
    Check out the following links for different Adobe Forms :
    PDF FORMS:
    /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
    Basics of Forms:
    http://help.sap.com/saphelp_nw04s/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
    WD Forms:
    http://help.sap.com/saphelp_nw04s/helpdata/en/aa/940ee5331b4b8fa0a6cb6714dc5db4/frameset.htm
    I hope it helps.
    Thanx.

  • How to have multi select dropdowns for web request and adobe forms

    Hi All,
    I am working on interactive forms for CRM 7.0 using web request and ZCI layout.
    When I say web request we define the fields required for the form in CRM that becomes the context for WDA and passed onto Adobe form.
    This web request is a flat structure which mean if I have a node and attributes with in that you cant have multiple values to wards this node as in WDA.
    Now My query:
      I have a field called "xyz" since web request is a flat structure i just defined it as a string.
      In WDA I made it a enumrated field and added key value pairs to it.
      In Adobe form I binded this field to a WD native enum dropdown list every thing is fine untill here.
      Now in the form I need this as a multiple select, so i changed the dropdown field to list box it works.
      The form has to be submitted as a draft version when did so, it will not execute any APIs but saves the data to the web request.
      When the same form is opened for the next time, with the data in web request it should reopen this field with the multiple seleced values high lighted.
      since the field xyz is a single filed of string, how can i maintain multiple values in that...?
      if there is a form status auto save function in Adobe form this might solve a bit but not sure when the form is opened 2nd time from web reqest view does it consider it as a new one or open the same form...?
    I have such dropdown fields and problems including ones with depenedt values on one another.
    I tried my best to explain the problem, if somebody can help me with this its much appriciated.
    Note: Since this is dependent on CRM web request I am posting the same query in that block also apologies if this mean a duplicacy.
    Thanks & Regards,
    Sai

    I got the solution and problem is solved.
    Iterating & processing a enumrated dropdown is like any other dropdown /list box in adobe forms.
    Regards,
    Sai Krishna

  • Adobe Form Section is Not Showing When Value is Selected from Dropdown List

    Hello Experts
    We have this issue where an ADOBE FORM is embedded in a WEBDYNPRO APPLICATION. 
    When selecting a value from the dropdown field in the ADOBE FORM, some particular section in the ADOBE FORM is not shown.
    Here's the ADS and NW versions that we were using.  We are running on EHP5 landscape.
    - ADS - 7.3 SPS 3
    - NW 7.3 SPS 3
    PS. The same program is working in EHP4 correctly.
    Any idea on how to resolve this issue?

    This is a custom built form, the thing is we just upgraded our system to EHP5 and we are in the test phase. The same form works in system in EHP4.
    Based on the dropdown list selection, there are some sections in the form which are hidden previously will be shown now. when you change the country in the dropdown the new sections appear. The sections will not be visible before you select the couuntry from dropdown.
    Should I upgrade my Adobe live cycle designer version to a higher one?
    Thanks

Maybe you are looking for

  • Printing to a PDF error

    I was wondering if someone could tell me how to fix my error: Invalid "Adobe PDF" Printer properties: Do not change spooler settings. Please select "Print directly to the printer" option (from Adobe PFD printer properties "Advanced" tab). What I am t

  • Travel Display Form: Error while determining the form function module

    Hi, In Travel Reqeust (ECC6/ESS) when i click the Display Form after raising the Travel Request it shows the error "Error while determining the form function module" Can anyone have idea on this? Regards, Boobalan

  • TFTP broken in PI 1.x because of iptables

    Hi All I recently upgraded our PI 1.2.1 to 1.3. It all worked fine but I had no more TFTP working. It didn't really work in the previous version, but now it didn't work at all. I could neither put nor get a file. So today I checked out some system se

  • Change reset security email address

    I want to change the email address listed under password and security so the reset email goes to a different email address. can't find how to do this anywhere. just keep unintentionally sending reset emails to my ex bf's address which is not amusing

  • Re-importing the same photos... Elements 9

    Hi Can anyone please direct me to a thread that explains how to stop reimporting the same files over and over again from my camera? My basic Canon software can detect what has already been downloaded but I can't find the setting in Elements 9 - nor c