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

Parameters

Former Member
0 Likes
1,012

HI All,

I am working on Open dataset.I am giving My Application server file in parameter as a default value with the mixed letters.

When i am pressing execute the filepath is converting into UPPERCASE.When iam try to open the file using Open dataset the file path is incorrect so it sis giving Sy-Subrc 8.

How can i solve this pblm.Can anybody help me out plz.Parameter value shold not convert to UPPERCASE or LOWERCASE.

Thanks,

Swapna.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
984

declare the parameter like this........

PARAMETERS : P_FILE LIKE RLGRAP-FILENAME.

Regards,

Rajasekhar Reddy.

8 REPLIES 8
Read only

Former Member
0 Likes
984

Hello ,

SY-subrc 8: means The number of specified fields is incorrect.

do check ur fields number that ur passing to the dataset.

Read only

Former Member
0 Likes
984

are you concatenating the Path to the front of the file name?

Are you sure the file is on the Application Server and not on your Presentation Server (Your PC)?

Read only

Former Member
0 Likes
984

declare your file name as rlgrap-filename

parameters : p_file like rlgrap-filename. and not as

parameters : p_file(128).

Read only

Former Member
0 Likes
984

Declare your parameter as below:

Parameters p_file type rlgrap-filename lower case default 'your path'.

Read only

Former Member
0 Likes
985

declare the parameter like this........

PARAMETERS : P_FILE LIKE RLGRAP-FILENAME.

Regards,

Rajasekhar Reddy.

Read only

Former Member
0 Likes
984

Hi Swapna,

Declare the Parameter with LOWER CASE addition.

Eg:

PARAMETERS:
  a TYPE i LOWER CASE.

Regards,

Nikunj.

Read only

Former Member
0 Likes
984

Swapna,

To avoid auro translate when u execute, u can use TRANSLATE command to keep it as u enter in screen.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jul 9, 2008 12:00 PM

Read only

Former Member
0 Likes
984

Hi Swapna,

There should not be a problem with Uppercase or lowercase.

sy-subrc = 8 implies The file could not be opened .

Make sure that filepath is correct or the file exists.

Hope this helps you.

Regards,

Chandra Sekhar