Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

AMDP Query for ANLC Table Failed

$
0
0

Hi All,

 

 

I have written following 2 queries in AMDP class.

 

    DATA(im_where_anla) = cl_shdb_seltab=>combine_seltabs( it_named_seltabs = VALUE #(

    ( name = 'BUKRS' dref = REF #( im_bukrs[] ) ) " Company code

    ( name = 'ANLKL' dref = REF #( im_anlkl[] ) ) " Asset Class

    ( name = 'ANLN1' dref = REF #( im_anln1[] ) ) ) ). "Asset Number

 

    DATA(im_where_anlc) = cl_shdb_seltab=>combine_seltabs( it_named_seltabs = VALUE #(

    ( name = 'ANLN1' dref = REF #( im_anln1[] ) ) ) ). "Asset Number

 

 

Note: here im_bukrs[] im_anlkl[] im_anln1[] are select-options from Report Program.

 

1. -    lt_anlc = APPLY_FILTER (anlc, :im_where_ANLC);

 

 

    ex_anlc = select

                   anlc.bukrs,

                   anlc.anln1,

                   anlc.kansw,

                   anlc.knafa,

                   anlc.nafap,

                   anlc.answl

                   from :lt_anlc as anlc;

 

 

2 -     lt_anla = APPLY_FILTER (anla, :im_where_ANLA);

 

 

    ex_anla = select

                   anla.anlkl,

                   anla.ord41,

                   anla.anln1,

                   anla.txt50,

                   anla.zugdt,

                   anla.invnr,

                   anla.sernr

                   from :lt_anla as anla;

 

 

2nd Query is giving me desire output but,

1st query is not working at all giving Zero records as output.

 

 

Kinldy help.

 

Regards,

 

Pritesh Raut.


Viewing all articles
Browse latest Browse all 831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>