Quantcast
Channel: SCN : Discussion List - SAP CRM: Sales
Viewing all articles
Browse latest Browse all 1559

Problem while reading order using Order Start and End Date.

$
0
0

Hi,

 

I am trying to read values form DB using Order Start and End Date inside BADI method- CRM_BADI_RF_Q1O_SEARCH-> IF_CRM_RF_Q1O_SEARCH~SEARCH. When I specify AND operator, select query fails to read result even though there are records matching the criteria. Below is the query using which I am trying to fetch the result.

 

SELECT a~guid_hi FROM crmd_link AS a INNER JOIN crmd_orderadm_h AS aa ON aa~guid = a~guid_hi
          INNER JOIN scapptseg AS b ON a~guid_set = b~appl_guid INTO TABLE lt_guids_temp
           UP TO 100 ROWS
           WHERE aa~process_type = 'ZXY' AND
                 ( ( b~tst_from = '20130323060000' AND b~appt_type = 'ZFSQUOSTD' ) AND " Order Start
                 ( b~tst_from  = '20130330060000' AND b~appt_type = 'ZFSQUORTD' ) ) AND " Order End
                 a~objtype_hi   = lc_objtyp_hi     AND " Order Header
                 a~objtype_set  = lc_objtyp_set.         " Appointment

 

Here in above Query I am providing Appt type to differentiate between Start and End Date along with actual Date values.

Suggest if this is the right way to do this OR I am missing anything.


Viewing all articles
Browse latest Browse all 1559

Trending Articles



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