Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3560

Select Query not working in background in Production , but works in Development

$
0
0

Hi ,

 

I have written a select query that is fetching records from a Z table . The query runs fine in Development(both foreground and background) . The same query is not working in production(background) but is working fine in foreground. I am supposed to run this only in background. When  I say query is not working , I mean that it returns sy-subrc as 4. Below is the query that is failing.

 

if it_pr_item[] is NOT INITIAL.

     select uid_number fiscal_year company_code total_amount approval_status created_on po_number indenter_name from ZHTML_PR_HEADER into TABLE it_pr_header

     FOR ALL ENTRIES IN it_pr_item WHERE

     uid_number = it_pr_item-uid_number and

     fiscal_year = it_pr_item-fiscal_year and

     company_code in so_bukrs and

     created_on in so_date.

   endif.



Thanks,

Mayank


Viewing all articles
Browse latest Browse all 3560

Latest Images

Trending Articles



Latest Images