cancel
Showing results for 
Search instead for 
Did you mean: 

Badi : ISTEP is not reaching case 2

Former Member
0 Kudos

Hi All,

I have created a BADI implementation   in the existing Enhancement Implementation (for BEx Variable ).

Requirement: I want to run Query on latest available date in my cube which is less than or equal to 'user input date'.

This should be written in istep = 2  ?

I am able to execute/debug  the code when I am putting breakpoint at When istep = 1 i.e. inside istep = 1 code is running fine ,

But the debugger is not going to istep = 2 .

Details of variable is as follows :

Processing by: Customer Exit ,

Mandatory ,

Single Value ,

User Input Ready .

can somebody tell me what is the variable setting requirement  required for this .

Also is there any istep specific setting  in SE19.

Please help.

Regards,

Abhishek Bhattacharya

Accepted Solutions (1)

Accepted Solutions (1)

ccc_ccc
Active Contributor
0 Kudos

Hi Abhishek Bhattacharya,

As I understand your requirement correctly, you have to follow the below steps.

1 Create dummy formula variable with following properties

    Single,Mandatory, Ready for input,Dimension(Date).

2 Create variable for characteristic(customer exit, not ready to input)  which ever you have in infocube for checking date

3 In I_STEP 2 , Read dummy formula variable date(provided by the user) and implement your logic and fill the l_t_range table.

Check this.

Regards,

Nanda


Former Member
0 Kudos

Thanks a lot Nanda Anantha , it worked.

Regards ,

Abhishek Bhattacharya

Former Member
0 Kudos

Hi Nanda ,

One more query ,

I need to use several single values in one case where data will be automatically populated from one table .

For Eg I need 3 company codes C01 , C02 , C03 that will come from one table , can you please tell what separator will be used in between  .

ccc_ccc
Active Contributor
0 Kudos

Hi Abhishek,

If I understand your query properly like,

0COMP_CODE     Description

C01                       ABC

C02                       XYZ

C03                       DEF

Now, you are trying to add all company codes in variable.

Steps:

1) First read all company codes values and update in internal table.(t_compcd)

2) Loop at internal table t_compcd

loop at t_compcd into w_compcd.

l_t_range-low = w_compcd-compcode.

l_t_range-option = 'EQ'.

l_t_range-sign = 'I'.    

append l_t_range.

endloop.

Please check this.

Regards,

Nanda

Former Member
0 Kudos

Thanks a lot Nanda .

sorry for late reply .

Regards ,

Abhishek

Answers (1)

Answers (1)

TammyPowlas
Active Contributor
0 Kudos

moved to the Business Explorer space; please post in the proper space in the future