‎2012 Oct 30 4:33 AM
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?
‎2012 Oct 30 7:29 AM
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
‎2012 Oct 30 10:06 PM
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.
‎2012 Oct 30 7:55 AM
‎2012 Oct 30 10:13 PM
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.