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

Problem with variant ...

$
0
0


Hi Experts,

 

i am facing a strange issue. my problem is i have created a varinat and using the same in foreground excution .

in program i have placed a check as mentioned below.

 

PARAMETERS: p_varnt TYPE sy-slset NO-DISPLAY.

  CHECK sy-batch IS INITIAL.

  CLEAR p_varnt.

  MOVE sy-slset TO p_varnt.

.

.

.

.

.

 

 

IF sy-batch ISINITIAL.

  SELECTSINGLE * FROM XXXX
INTO wa_XXXX  WHEREreportEQ sy-repid AND vari   EQ sy-slset.

  ELSE.

    SELECTSINGLE * FROM XXXX INTO wa_XXXX WHEREreportEQ sy-repid AND vari   EQ p_varnt.

  ENDIF.

 

if i execute in forground i will get the variant name because that time sy-batch value will be initial.

 

but if i schedule a background through SM36 (creating a job) in development i am getting variant name i don t know how it is picking. when i transport the changes into Quality system it not picking variant name when schedule background job.

 

can anuone please help me why it is behaving differently in both servers.

 

Thanks in Advance

Sravan


Viewing all articles
Browse latest Browse all 8392

Trending Articles



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