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 while submitting to a report using Parameter of type string

Former Member
0 Likes
1,512

Requirement: Selection screen has a parameter so as to input the file. under that a checkbox is provided. If this checkbox is checked the program should read the file from desktop and based on that data the report should execute in background mode.

For this i have done in the following way. by comparing the checkbox and sy-batch i read the file contents placed in AL11 and then submitted the report by setting the path in the parameter. Accordingly when sy-batch eq X i read the file from AL11 from the path specified in the parameter.

This is working fine in Dev & Prd. But in Quality system i am facing the error like Wrong type passing parameters P_FILE.

Message No. DB036.

4 REPLIES 4
Read only

Former Member
0 Likes
853

Cases can be

1. file name should be in caps (upper case lower case conversion

2. when executing in bg variant not picked

3. collision of file path across servers in a system

In a system there will be servers like in Quality it can have varying servers ex sapqp1 sapqp2 sapqp3

In here qp1 qp2 and qp3 are the servers in quality which can hold the unix data (al11) . If qp2 is directed in your check and if qp2 dosent have the file path it throws error. recently we have faced a similar issue . Problem was solved when basis guys made the setting across all server's to access the path.

Try these options.

Br,

vijay.

Read only

0 Likes
853

Dear Vijay,

thanks for your reply..

I confirm that the filename is correct, variant no issue and filepath seems to be correct.

Is it due to the fact that the file is declared as a type 'STRING'. Will it solve if i use a datatype of fixed length ?

br,

Uday

Read only

0 Likes
853

May be also .. but you said its working fine in dev and prod .

Change the datatype to appropriate and check . No harm in that .

But can you check with basis guys on this issue ..i have explained the 3 check which is prone..

Br,

Vijay.

Edited by: sniper on Dec 23, 2011 5:55 PM

Read only

0 Likes
853

the problem is solved when i used a proper datatype instead of type 'string'.