cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading a PDF File on a CRM WEB UI screen

harikrishna_malladi
Active Participant
0 Kudos

Hi All,

  Please help by providing some documents for Uploading a PDF file in an CRM WEB UI Screen .

Thanks and Regars,


Harikrishna M

Accepted Solutions (0)

Answers (3)

Answers (3)

harikrishna_malladi
Active Participant
0 Kudos

Hi All,

Thanks for the reply.......

I already gone through the links which you guys provide me... But my actual requirement is upload a PDF document by clicking the upload button. This button should allow the processor to explore folders and files on the personal computer.

Please provide me some documents or links on this.....

Thanks,

Harikrishna.M

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

You can call component GS_FILE_UPLOAD component in on click event of the button and on close you can process the document after that.

Regards,

Deepika.

harikrishna_malladi
Active Participant
0 Kudos

Hi Deepika,

Thanks for the reply


How can i call this component? Can you please explain




Thanks,

Harikrishna.

deepika_chandrasekar
Active Contributor
0 Kudos

Hi Hari,

You have to create compoent usage CUBTPOPUP for the component GD_FILE_UPLOAD in run time repository of your compoent and then in on click event call that component as POPUP

This is the code you have to follow i on click event

file_popup = comp_controller->window_manager->create_popup(

                         iv_interface_view_name = 'MainWindow'

                         iv_usage_name = 'CUBTPOPUP'

                         iv_title = lv_title ).

file_popup->set_on_close_event( iv_view = me iv_event_name = 'UPLOAD_CLOSED' ).

  file_popup->open( ).

Regards,

Deepika

harikrishna_malladi
Active Participant
0 Kudos

Hi Deepika

I tried that code, it shows some errors like file_popup  and lv_title unknown 


how can declare that please help me



Thanks,

Harikrishna M

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

Data declaration you have to do. Please check the coding you should atleast know these things that declaration is missing.

file_popup type ref to if_bsp_wd_popup,

lv_title type string.

Regards,

Deepika.

harikrishna_malladi
Active Participant
0 Kudos

Hi Deepika,

Thanks for your quick response......

I am selecting  PDF file from desktop, when i click on upload button then that file should be placed into application server...

Note:Without using this component GS_FILE_UPLOAD, i am taking the directory of the file through the html code in the view.

For more details :

<%@page language="abap" %>

<%@extension name="thtmlb" prefix="thtmlb" %>

<%@extension name="chtmlb" prefix="chtmlb" %>

<%@extension name="bsp" prefix="bsp" %>

<chtmlb:config mode = "RUNTIME"

               xml  = "<%= controller->configuration_descr->get_config_data( ) %>" />

               <thtmlb:fileUpload id       = "FILEUPLOAD"

                   size          = "60"

                                   onUpload   = "FILE_ATTACH"/>

Please guide me how can i proceed to my requirement.

Thanks,

Harikrishna M.

dhruv_mehta
Active Contributor
0 Kudos

u have to code seprately.

use open dataset coding for the same to store the data in application server but before that u have to read the content for the file from desktop.

hope it helps.

Regards,

Dhruvin

deepika_chandrasekar
Active Contributor
0 Kudos

Then you have to create event method FILE_ATTACH and you have to code what you want to do. refer upload method in GS_FILE_UPLOAD view.

Regards,

Deepika.

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

Check this thread

Regards,

Deepika.

sumeet_gehlot
Contributor
0 Kudos

Hi hari,

you can go through this document.

Regards,

Sumeet