Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Over riding the User entry using exit

Hi,

In Bex selection screen user will give entry in Mandt field ZDAYS (No. Of days), In step = 2 of customer exit i am using this entry for calculating 2 dates which will be moved other varaible(ZEXIT) processed by customer exit.

ZDAYS infoobject is dummy object only used for BEx perspective to hold input value i.e No. odf days , it doesnt have any transaction data associated to it.

My hurdle is when i give some value to ZDAYS say 10.

It returns nothing as there is no data exists for ZDAYS field in data target.

But if i give <= 10 then my query will work, as it will fetch the data where ZDAYS will have blank.

My code will be like this..

IF I_STEP = 2.

READ TABLE I_T_VAR_RANGE INTO WA_I_T_VAR_RANGE WITH KEY VNAM = 'ZDAYS'.

w_der_date = sy-datum - WA_I_T_VAR_RANGE-LOW.

zdate = w_der_date.

CLEAR WA_I_T_VAR_RANGE.

IF I_VNAM = 'ZEXIT'.

CLEAR l_s_range.

l_s_range-low = zdate.

l_s_range-high = ZACT_GI_DTE.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

APPEND l_s_range TO e_t_range.

CLEAR l_s_range.

ENDIF.

ENDIF.

What are the options to resolve the issue.

i tried by adding below piece of code to override the user entry. But it didnt work...

IF I_VNAM = 'ZDAYS'.

CLEAR l_s_range.

l_s_range-low = space.

l_s_range-sign = 'I'.

APPEND l_s_range TO e_t_range.

CLEAR l_s_range.

ENDIF.

Thanks in advance.

bhaskar...

Not what you were looking for? View more on this topic or Ask a question