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

Reg Data type NUMC problem when query data between mbew and ckmlcr

Former Member
0 Likes
979

Hi Friends,

I have problem when query data between mbew and ckmlcr..

select ckmlcrpoper mbewlfmon into table it from ckmlcr join mbew on (ckmlcrkalnr eq mbewkaln1 and ckmlcrpoper eq mbewlfmon ).

This query return subrc 4(no record found).But if I remove ckmlcrpoper eq mbewlfmon then subrc = 0 and get records.

But problem is I can see same values for ckmlcrpoper and mbewlfmon.But only think is poper is numc(3) and lfmon is numc(2).I can see poper = u2018010u2019 and lfmon = u201810u2019.

I donu2019t know how to solve this issue.Please help me <removed by moderator>

Thanks all...

Regards,

Kumar

Edited by: Thomas Zloch on Oct 24, 2010 8:53 PM

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
871

This query return subrc 4(no record found).But if I remove ckmlcrpoper eq mbewlfmon then subrc = 0 and get records.-> use this condition for selection and then reove the unwanbted records using loop.

5 REPLIES 5
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
872

This query return subrc 4(no record found).But if I remove ckmlcrpoper eq mbewlfmon then subrc = 0 and get records.-> use this condition for selection and then reove the unwanbted records using loop.

Read only

Clemenss
Active Contributor
0 Likes
871

Hi,

saving memory without loosing performance you can use

SELECT ... INTO CORRESPONDING FIELDS OF <structure> ...
CHECK <structure>-poper+1 eq <structure>-lfmon ).
APPEND <structure> to <table>.
ENDSELECT.

Regards,

Clemens

Read only

Former Member
0 Likes
871

Hi Friends,

Thanks for your reply.Due to deadline,I changed program logic and move all related data into different internal table and by compare/modify internal table data,I solved this issue.Thanks again.

Regards

Kumaran

Read only

0 Likes
871

Moderator message - Please assign po1nts to helpful answers and mark your question as solved Rob

Read only

Former Member
0 Likes
871

Hi Friends,

I spilit queries into simple queries and moved to many internal tables and finaly filter internal table based on my requirement.Thank you...

Regards,

Kumaran..