Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use fm c13z_upload_dialog

Former Member
0 Kudos

Hi all,

How to use fm c13z_upload_dialog?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

You can check the import and export parameters in SE37 transaction.

This function module calls 2 methods:

CALL METHOD cl_gui_frontend_services=>file_open_dialog (pick the file from dialog) and then

CALL METHOD cl_gui_frontend_services=>gui_upload (uplaod picked file)

You have to use somehow like this:


CALL FUNCTION 'c13z_upload_dialog'
  IMPORTING
    filemask = '*.txt' 
  EXPORTING
    cancel = gv_cancel
  TABLES
    data_tab = gt_main.   "gt_main is your internal table

Regards

Tamá

1 REPLY 1

Former Member
0 Kudos

Hi!

You can check the import and export parameters in SE37 transaction.

This function module calls 2 methods:

CALL METHOD cl_gui_frontend_services=>file_open_dialog (pick the file from dialog) and then

CALL METHOD cl_gui_frontend_services=>gui_upload (uplaod picked file)

You have to use somehow like this:


CALL FUNCTION 'c13z_upload_dialog'
  IMPORTING
    filemask = '*.txt' 
  EXPORTING
    cancel = gv_cancel
  TABLES
    data_tab = gt_main.   "gt_main is your internal table

Regards

Tamá