Hi,
I'd like to prepare a customer exit for variable used for REQUID.
Although I've done all necessary steps, it is not working.
What is interesting, customer exit fills the variable, in RSRT I can see the variable content
but report displays no data. When I don't use the variable but manually restrict this infoobject in Query designer, it works and I receive data.
I also tried to switch on variable setting "Ready for input" and fill the variable in user exit.
In this case I was able to see that the variable is prefilled by exit.
When I run the report no data is received.
But when I manually delete the prefilled variable content from query selection screen and manually write the request id number to variable, I receive correct data.
Here is my code:
DATA: gt_part type table of RSSTATMANPART with header line,
r_s_range TYPE rrrange.
CASE i_vnam.
WHEN 'ZREQCE'.
select * from RSSTATMANPART into table gt_part
where DTA = 'ZFISL_C05' and
LOGSYS = 'P75_300'.
loop at gt_part.
CLEAR R_S_RANGE.
R_S_RANGE-LOW = GT_PART-PARTNR.
R_S_RANGE-SIGN = 'I'.
R_S_RANGE-OPT = 'EQ'.
APPEND R_S_RANGE TO E_T_RANGE.
endloop.
Please have a look at the attachments:
Variable setup - simple variable setting.
RSRT test - displays no data, although variable is prefilled.
RSRT successfull test - when I manually delete the variable content which was prefilled by exit and manually write the same value, report displays data.
Thank you very much for any idea.