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

Data retrieval problem - Urgent!!!

Former Member
0 Likes
743

Hi all,

Have a very queer problem.I have a program which queries data from a Z table. The problem is that it does not work for some entries of the ztable. The user enters 4 details in the sel-screen and all these 4 are used for the query.

Some entries when queried through the program gives me sy-subrc 4 even though all input values are correct ( please donot reply suggesting me to check my inputs).

I separately queried using the same values in se16 and the record is fetched.but it doesnot happen in through the program.

Any idea guys..if you have faced such problems before.??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

hi rahul....

please check your code gain and just check if there is some zero padding or some other conversion exit required..many times this is the major problem while fecthing the data.

please check whther the data is coming with some zero padding or some other conversion.

4 REPLIES 4
Read only

Former Member
0 Likes
719

Hi Rahul ,

Since you dont want us to ask you to check the input again , then please try checking if there is some conversion exit for the data used , and also check what is the value used in the select statement and is it same as tha used when you access throug SE16. Perform an ST05 on the se16 transaction and check if both the values are same.

Regards

Arun

Read only

Former Member
0 Likes
719

Hi,

Test your code by passing each parameter to the select query(where clause).

And if all fields works fine, then try by giving bunch to the where clause.

Read only

Former Member
0 Likes
720

hi rahul....

please check your code gain and just check if there is some zero padding or some other conversion exit required..many times this is the major problem while fecthing the data.

please check whther the data is coming with some zero padding or some other conversion.

Read only

0 Likes
719

Thanks Shlesha ,

zero padding was the problem...thanks for all others who helped