Application Development and Automation 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: 
Read only

Unicode conversion - Data Format in UPLOAD FM

ec1
Active Participant
0 Likes
1,119

Hi all,

For unicode conversion, obsolete UPLOAD FM needs to be replaced with CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG and CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD.

However, I found that UPLOAD FM shows a dialog box that allows users to choose Data Format of the file they are trying to upload.

The data format can be any of the followings

ASC

BIN

IBM

DAT

I have looked at the FILE_OPEN_DIALOG implementation but I cannot find any parameter or implementation to display data format on an upload dialog window.

Does anyone know if there is a way to display the data format in FILE_OPEN_DIALOG?

If FILE_OPEN_DIALOG cannot show the data format, does it mean that I have to code another dialog box to ask the user what the data format of the file is?

4 REPLIES 4
Read only

Former Member
0 Likes
991

Hi Stevanic

You can pass the defualt extension to this method, if you are always going for the same type or you can code another dialog box for that.

When you open the dialog box to open the file, it gives an option to select the type of the file as given above.

Hope this info helps.

Regards,

Akhil

Read only

ec1
Active Participant
0 Likes
991

Thank you for the response Akhil but it is not exactly what I am after. The following is the dialog box shown by Upload FM. The option is to specify how data in the file should be converted and uploaded into a table.

I think the conversion method has been separated from the dialog box but I am not sure if there is any component to display this in CL_GUI_FRONTEND_SERVICES.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
991

Set the  WITH_ENCODING parameters of CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG

Regards,

Raymond

Read only

ec1
Active Participant
0 Likes
991

I have seen this encoding option but I need an option to display the list of conversion method as shown below.

I guess this is not supported anymore and I have to develop a custom dialog box to display this list.