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

select statment

Former Member
0 Likes
889

Hi,

I am writing a select statement to get the details from IHPA table based on PARNR value.

Here i have value 100 for parnr field and i am searching on this for the records. But its not displaying the record based on this selection. For other values like character value for this parnr filed i am able tyo get the records.

Can anyone let me know the problem for this...

Regards,

Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

Hi

Just now i have tried it give the data in single quotes in the exact format as it is stored in database eg '000000002' like this, it will work.

Regards

Haritha.

Message was edited by:

Haritha Ramayanam Ramayanam

7 REPLIES 7
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
868

Hi,

Try converting the PARNR field to SAP format and then use the same in WHERE clause.

Read only

Former Member
0 Likes
868

Hi

May be that value is not there in that table, try with other number or else may be your selection condition is not correct. Check with the where condition. If u post the code where you r giving where condition may be we can correct that.

Regards

Haritha.

Read only

0 Likes
868

Hi,

There is no problem in the select statement. Its giving the results for the character value of PARNR. but if we pass the numeric value then its not giving. But there are some records with PARNR value as numeric.

Regards,

Ram.

Read only

0 Likes
868

hi Ram,

pass PARNR value as '0000000100' then see the results of select.

Regards

vijay

Read only

0 Likes
868

even tried with this value also by converting PARNR using

conversion_exit_alpha_input FM.

Regards,

Ram

Read only

0 Likes
868

Hi Ram,

Yes u r right!!

this looks strange

When i go to that table and give an existing partner value and check the no of entries , it is not showing any entries even the entry exists

Read only

Former Member
0 Likes
869

Hi

Just now i have tried it give the data in single quotes in the exact format as it is stored in database eg '000000002' like this, it will work.

Regards

Haritha.

Message was edited by:

Haritha Ramayanam Ramayanam