‎2009 Jul 13 8:25 AM
Hi All,
I am selecting a file from local PC for processing. Using POV in module pool
After getting the file, when click on continue button i get an error message "Invalid Field format(screen error)".
Code i used here is
How can i avoid this error to process further.
DATA: l_stepl LIKE sy-stepl,
l_indx LIKE sy-stepl.
DATA: dynpfields LIKE dynpread OCCURS 5 WITH HEADER LINE.
l_indx = 1.
"tc_ekpotable should already have been declared
f1 = fullpath.
REFRESH dynpfields.
CLEAR dynpfields.
dynpfields-fieldname = 'FILE_PATH'.
dynpfields-fieldvalue = f1. "File name
dynpfields-stepl = 0.
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-cprog "Program name
dynumb = '0300' "Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 0.
‎2009 Jul 13 8:48 AM
Praveen,
Just remove the below one and try.
dynpfields-stepl = 0.Thanks
Venkat.O
‎2009 Jul 13 8:51 AM
‎2009 Jul 13 9:29 AM
Hi,
I think the error is mostly concerned with the Screen Painter(Layout). Check the names of your screen fields and check of you have referred the fields to your dictionary wherever necessary or you should be extremely careful about the data types.
Another problem that I could think of is....Check the data type of the screen field that you are using to get the path of the file. See, if the data type can hold longer file paths (like C:\Documents and Settings\ Users\ ABCDE\....)
‎2009 Jul 13 11:42 AM
Hi,
Praveen Kumar
Use this field in screen for getting the filename.
RLGRAP-FILENAME
Assign POV to this field.