cancel
Showing results for 
Search instead for 
Did you mean: 

on action submit

Former Member
0 Kudos

Gudday,

I need to integrate adobeform in my WDA.My sample adobefrom displays just pernr and first name.

Should i write select statements in on action submit function to fill the form dynamically?

Can anyone suggest me how can i do this??

Awaiting your reply.

Thanks,

Deepthi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi, i too came across the same problem as yours.. what i did was i wrote coding in wddoinit, which then calls layout from ftp transaction.. my code in wddoinit was,

data lo_nd_zfp_emp_01 type ref to if_wd_context_node.

data lo_el_zfp_emp_01 type ref to if_wd_context_element.

data ls_zfp_emp_01 type wd_this->element_zfp_emp_01.

  • navigate from <CONTEXT> to <ZFP_EMP_01> via lead selection

lo_nd_zfp_emp_01 = wd_context->get_child_node( name = wd_this->wdctx_zfp_emp_01 ).

  • get element via lead selection

lo_el_zfp_emp_01 = lo_nd_zfp_emp_01->get_element( ).

  • get all declared attributes

lo_el_zfp_emp_01->get_static_attributes(

importing

static_attributes = ls_zfp_emp_01 ).

CONSTANTS: c_graphics TYPE tdobjectgr VALUE 'GRAPHICS',

c_bmap TYPE tdidgr VALUE 'BMAP' ,

c_bcol TYPE tdbtype VALUE 'BCOL'.

DATA: lv_pernr1 TYPE tdobname.

        • Vorna and Nachn.

ls_zfp_emp_01-i_firstname = 'VIKRAM'.

ls_zfp_emp_01-i_lastname = 'SALVI'.

          • Get the Photographs.

  • lv_pernr1 = '00000028'. " Employee Number

  • CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp

  • EXPORTING

  • p_object = c_graphics

  • p_name = lv_pernr1

  • p_id = c_bmap

  • p_btype = c_bcol

  • RECEIVING

  • p_bmp = ls_zfp_emp_01-i_photo

  • EXCEPTIONS

  • not_found = 1

  • internal_error = 2

  • OTHERS = 3.

*

      • Send the values back to the node

lo_el_zfp_emp_01->set_static_attributes(

EXPORTING

static_attributes = ls_zfp_emp_01 ).

go through this code,

it will work, all u need to do is make some changes according to ur program in above,

hope u find it useful..

regards,

vikram salvi