Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3229

Re: Not Able To Upload PDF To DMS Using ODATA And SAPUI5

$
0
0

Hi Tarun,

 

I am redefining create_stream method but i am getting this error.

 

DATA: ls_key_tab   TYPE   /iwbep/s_mgw_name_value_pair,

           lt_key_tab    TYPE   /iwbep/t_mgw_name_value_pair,

           "ls_photo     TYPE   zsa_photos,

           lv_file_path  TYPE   zfilepath_de,

           lv_mime      TYPE   string,

           lv_slug        TYPE   string,

           lv_content   TYPE   string,

           lv_doknr      TYPE   doknr.

 

     CASE iv_entity_name.

 

       WHEN 'GCUpload'.

 

         READ TABLE it_key_tab WITH KEY name = 'path' INTO ls_key_tab.

 

         lv_file_path  ls_key_tab-value.

         lv_mime      is_media_resource-mime_type.

         lv_slug        iv_slug.

         lv_content   is_media_resource-value.

 

         CALL FUNCTION 'ZDMS_ATTACH'

           EXPORTING

             file_path = lv_file_path

             file_data = lv_content

           IMPORTING

             ev_doknr  = lv_doknr.

 

         gcuploadset_get_entity(

           EXPORTING

             iv_entity_name     = iv_entity_name

             iv_entity_set_name = iv_entity_set_name

             iv_source_name     = iv_source_name

             it_key_tab         = it_key_tab

             it_navigation_path = it_navigation_path

           IMPORTING

             er_entity          = lv_content ).

 

         copy_data_to_ref( EXPORTING is_data = lv_content

                           CHANGING  cr_data = er_entity ).

     ENDCASE.

err.PNG


Viewing all articles
Browse latest Browse all 3229

Trending Articles