cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Submit Button on the ADOBE form called from Web Dynpro

Former Member
0 Kudos

Hi,

I have placed a Button on the ADOBE Form. How to Handle the event on this button. When i click this button, i want to save the details of the form into a Custom table.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189058
Active Contributor
0 Kudos

Hi Manjunath,

Pl update/close the thread.

Regards,

Reema.

former_member189058
Active Contributor
0 Kudos

Hi Majunath.

Create an event say, SUB_EVTin the view in WD where you have the Interactive Form UI element.

Bind this event to the onSubmit of the Form.

Now check the display type of the form. It will be either ActiveX or Native.

Now go to the form designer and open Library palette. Navigate to Webdynpro ActiveX or Native Library(Depending on the form display Type in WD).

Drag and Drop Submit button.

On click of the button, the event handler in WD view namely, onActionsub_evt will be invoked. You can write your code in this handler.

Now in order to read data from the form. Go to the form and go to Properties tab. Check the form layout type. If it is not ZCI, run transaction SFP_ZCI_UPDATE and convert the form to ZCI type.

Now back to the event handler.

as an example... I will use the following context node definitions

PDF_DATA 1..1

ACTUAL_DATA 0..n

ATTRIB01

ATTRIB02

Assume the the node PDF_DATA is bound to the data source of your form.

Now in the event handler write the foll code


data: lo_node type ref to if_wd_context_node,
        lt_data   type wd_this->elements_actual_data.

lo_node = wd_context->get_child_node( name = wd_this-.wdctx_pdf_data ).

lo_node = lo_node->get_child_node( name = wd_this-.wdctx_actual_data ).

lo_node->get_static_attributes_table(
  importing
    table = lt_data ).

This will get all the form data in the internal table lt_data.

Now you can process the data the way you want and save it in your custom tables.

Regards,

Reema .

Edited by: Reema Shahbazkar on Sep 16, 2008 11:39 PM

Hope this helps!!