cancel
Showing results for 
Search instead for 
Did you mean: 

getting PdfSource property of a generated PDF --- null

Former Member
0 Kudos

Hi All,

I have generated an interactive PDF form. I want to uplaod it in KM and also send it through e-mail. I suppose the PdfSource property should contain the binary data of the form through which I can upload it in KM.

But at runtime I am getting PdfSource value as null.

Further I also need to email it.

Please help.

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

solved

Former Member
0 Kudos

Hi Anubha,

You could explain your solution, please ?

Thank

Regards,

Tony

Former Member
0 Kudos

Anubhav,

Try this..

Make sure pdfsourcce is type XSTRING.

You have checked enabled on Interactive form .

display type: native

DATA lo_el_context TYPE REF TO if_wd_context_element.

DATA ls_context TYPE wd_this->element_context.

DATA lv_pdfsource LIKE ls_context-pdfsource.

  • get element via lead selection

lo_el_context = wd_context->get_element( ).

  • get single attribute

lo_el_context->get_attribute(

EXPORTING

name = `PDFSOURCE`

IMPORTING

value = lv_pdfsource ).

Now use FM 'SCMS_XSTRING_TO_BINARY' to change it to binary

and finally save this in KM.

cheers

Vara

Former Member
0 Kudos

Hi,

Sorry for not mentioning earlier, my query is regarding web dynpro for Java.

I have defined the context variable PdfSource of type 'binary' and bounded it to PdfSource property. But the value for this variable is null at run time.

Please help.

Thanks !

Former Member
0 Kudos

Hi Anubha,

Please check whether the attribute is under any Value Node and the cardinality of the node is Okay??? Otherwise try creating the attribute as a value attribute alone without any value node over it and then give the property as binary and bind it to the dataSource property then...I believe that should work..

In case both doesn't works simply recreate... I don't think anything else could be wrong then..

Hope it helps

Regards,

Gaurav

Former Member
0 Kudos

Hi Anubha,

You may get some pointers through this:

Hope this helps..!!

Thanks,

Amita