cancel
Showing results for 
Search instead for 
Did you mean: 

adobe!

Former Member
0 Kudos

hi SDNers,

i have created an application using interactive form[PDF] in web dynpro for ABAP.

when i am testing it, no values are shown but only the empty fields appear.

i have written coding in methods WDDOINIT.

when i debug, it shows the values in the internal table.

need ur help.

if u r not understanding my requirement i will explain you in another way.

reward sure for helpful answers.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Senthil,

try this steps.

Adobe to webdynpro procedure

1) Create a webdynpro component, together with a window and a view.

2) Create a context node; then two context attributes (e.g. of type string) under it. (later, the contenxt node will be bound to adobe form interface)

3) Put to the view a new UI element of type InteractiveForm, and specify necessary attributes in property table:

displayType - activeX

enabled - checked

templateSource - (any name)

4) Click ENTER key or double-click the property templateSource, you will be prompted with creation of new adobe form: specify a name for adobe form interface and then click context button to associate it with context node, which was created in step #2.

5) In the layout designer for new adobe form, drag-and-drop two fields from Data View (menu Palettes->Data View) to the layout, then you will have two input fields. For simplicity, do not change anything.

6) In the layout designer for new adobe form, drag-and-drop a submit button to the layout. Also, do not do any change!

7) At the Properties tab for adobe form designer, specify 'S' for the field "Layouttyp".

😎 Return to webdynpro view, create two input fields and bind separately the TEXT property to two context attributes, which were created in step #2.

9) Activate all objects (incl. webdynpro & adobe form) and create a webdynpro application for the component.

Mary

Former Member
0 Kudos

Hi,

I have faced same problem before.

Solution:

1.Go to transaction SFP create interface and form ,design layout by dragging DATA on form.Save and activate.

2.Go to ABAP Webdynpro.Add interactive form in view say ADOBE_view,give templateSource,it will ask you for creation of datasource.Click on yes.

3. Provide supply function to provide data to node created in previous step. OR write code for populating data of node in WDDOINIT of ADOBE_view.

Regards,

Nikita.

Former Member
0 Kudos

Hi Senthil,,

do the following

in do init method

method WDDOINIT .

wd_Comp_Controller->Displaypdf( ).

endmethod.

after the write the implenentation in the method as

method displaypdf .

data : l_x(1) value 'X'.

data: lv_text type char3,

lv_syucomm type char1,

ls_pdf type xstring,

lv_fm_name type rs38l_fnam,

lv_control_parameters type ssfctrlop,

lv_output_options type ssfcompop,

lv_ssf_output type ssfcrescl,

lt_otfdata type table of itcoo.

data:

node_input1 type ref to if_wd_context_node,

elem_input1 type ref to

if_wd_context_element,

stru_input1 type

ig_componentcontroller=>element_zinput.

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

node_input1 = wd_context->get_child_node( name

ig_componentcontroller=>wdctx_zinput ).

  • get element via lead selection

elem_input1 = node_input1->get_element( ).

  • get all declared attributes

elem_input1->get_static_attributes(

importing

static_attributes = stru_input1 ).

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZFFG_TRAVEL_COVERSHEET'

importing

fm_name = lv_fm_name

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

  • Error MESSAGE

endif.

  • Set relevant control parameters

lv_control_parameters-getotf = l_x. "OTF output

lv_control_parameters-no_dialog = l_x. "No print dialog

lv_control_parameters-preview = space. "No preview

  • Set relevant output options

lv_output_options-tdnewid = l_x. "Print parameters,

lv_output_options-tddelete = space. "Print parameters,

call function lv_fm_name

exporting

  • ARCHIVE_INDEX * ARCHIVE_INDEX_TAB *

ARCHIVE_PARAMETERS control_parameters = lv_control_parameters

  • MAIL_APPL_OBJ * MAIL_RECIPIENT * MAIL_SENDER

output_options = lv_output_options

user_settings = space

pernr = stru_input1-zpernr

reinr = stru_input1-zreinr

pdvrs = stru_input1-zpdvrs

importing

  • DOCUMENT_OUTPUT_INFO job_output_info = lv_ssf_output

  • JOB_OUTPUT_OPTIONS exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 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.

refresh lt_otfdata.

lt_otfdata[] = lv_ssf_output-otfdata[].

call function 'SSFCOMP_PDF_PREVIEW'

exporting

i_otf = lt_otfdata

exceptions

convert_otf_to_pdf_error = 1

cntl_error = 2

others = 3.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

data: l_dummy type standard table of tline,

pdf_data type xstring,

pdf_size type i.

clear: pdf_data, pdf_size.

  • convert otf to pdf

call function 'CONVERT_OTF'

exporting

format = 'PDF'

importing

bin_filesize = pdf_size

bin_file = pdf_data

tables

otf = lt_otfdata[]

lines = l_dummy

exceptions

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 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.

data:

node_pdf type ref to if_wd_context_node,

elem_pdf type ref to

if_wd_context_element,

stru_pdf type

if_componentcontroller=>element_pdf ,

item_source like stru_pdf-source.

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

node_pdf = wd_context->get_child_node( name if_componentcontroller=>wdctx_pdf ).

  • get element via lead selection

elem_pdf = node_pdf->get_element( ).

  • set single attribute

elem_pdf->set_attribute(

exporting

name = `SOURCE`

value = pdf_data ).

endmethod.

Hope this will work out..

Cheers

Mary

Former Member
0 Kudos

hi mary,

i cant get ur coding exactly.

could you help me how it will trigger.

may i know why r u using ssf functional module name and all.

Former Member
0 Kudos

hi SDNers,

i need all ur help.

its urgent.

Former Member
0 Kudos

hi mary,

i cant get ur coding exactly.

could you help me how it will trigger.

may i know why r u using ssf functional module name and all.

Former Member
0 Kudos
Former Member
0 Kudos

hi siva,

Already i had gone through these materials.

here is my coding part in WDDOINIT.

Data: it_scarr type standard table of scarr,

context_node type ref to if_wd_context_node.

select * from scarr into table it_scarr.

if sy-subrc eq 0.

context_node = wd_context->get_child_node( name = 'CARRIERS').

  • Note: CARRIERS' is the name you gave you new node

context_node->bind_table( it_scarr ).

endif.

i hope whatever i have done is right.

only output does not shows any value.

help me.

Former Member
0 Kudos

Hi Sentil,

you need to bind values to node

context-node->bind_elements( Internal table name).

i think this will helps you.

Thanks

Siva Arikatla

Edited by: siva arikatla on May 10, 2008 12:44 AM

Edited by: siva arikatla on May 10, 2008 12:44 AM