cancel
Showing results for 
Search instead for 
Did you mean: 

Populating variables dynamically

Former Member
0 Kudos

Hi Friends,

I am currently working on BW3.5.

I have got a requirement like this.

I have a Char variables A & B.

But to fill up varibale B values, the query should first read what the user has entered value for Varibale A amd make use of this value for deriving the values/populating the variable B.

How can I achieve this? Does it require ABAP coding?

If coding is required, where it is to be done?

If anyone of you have coding for this, pls let me know.

Thanks

mv_d

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to write Variable Exit will do it.

There are so many examples on here, please check how to do it.

thanks.

Wond

Former Member
0 Kudos

Hi Wond,

Can you please provide me the link to those posts.

Thanks

mv_d

Former Member
0 Kudos

DATA: WEEKDAY LIKE SCAL-INDICATOR,

NEWDATE LIKE SY-DATUM.

CALL FUNCTION 'DATE_COMPUTE_DAY'

EXPORTING

DATE = SY-DATUM

IMPORTING

DAY = WEEKDAY.

CLEAR E_T_RANGE.

IF WEEKDAY = 1.

NEWDATE = SY-DATUM - 3.

ELSE.

NEWDATE = SY-DATUM - 1.

ENDIF.

MOVE NEWDATE TO L_S_RANGE-LOW.

MOVE 'I' TO L_S_RANGE-SIGN.

MOVE 'EQ' TO L_S_RANGE-OPT.

APPEND L_S_RANGE TO E_T_RANGE.

thanks.

Wond