cancel
Showing results for 
Search instead for 
Did you mean: 

FITV_VC_TRIP_DOCUMENTS Limit the size of a document

jdp61073
Explorer
0 Kudos

Hi.

I´m trying to restrict the size of a document that can be uploaded trough the web dynpro FITV_VC_TRIP_DOCUMENTS. There is a view named V_ATTA wich have a method named ONACTIONUPLOAD. In this method, the webdynpro control some features but when trying to use a new line wiht "lv_filewidth = lv_file_upload->get_width( ).", this property returns no value.

Any help, please for limit the size of a document a user can upload with a message?

Thanks in advance, best regards.

View Entire Topic
siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

can you check here CL_FITV_GOS ?

jdp61073
Explorer
0 Kudos

Thanks a lot !!!!!

iI've checked the class CL_FITV_GOS, and find that in method save there is a line like this:

size = xstrlen( iv_content_hex )

So I put the same line in the method ONACTIONUPLOAD as told you and it works !!!! now i have the size and can send a message if the size is grater than a limit.

Hope this could be a reference for any other that have the same problem.

Thank you very much,

best regards