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

Error in POV module.

Former Member
0 Likes
669

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.

4 REPLIES 4
Read only

venkat_o
Active Contributor
0 Likes
623

Praveen,

Just remove the below one and try.

dynpfields-stepl = 0.

Thanks

Venkat.O

Read only

Former Member
0 Likes
623

I tried the same.

Still I get the same error.

Read only

Former Member
0 Likes
623

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\....)

Read only

Former Member
0 Likes
623

Hi,

Praveen Kumar

Use this field in screen for getting the filename.

RLGRAP-FILENAME

Assign POV to this field.