cancel
Showing results for 
Search instead for 
Did you mean: 

not passing parameters into badi

Former Member
0 Kudos

Hi

we are calling badi using following script

start_badi decd

p_acct=%acct%

entity=%entity%

time=%time%

category=%category%

query=on

write=on

end_badi

Here our objective is to call the vales that we pass from package. But in badi it is not showing any values in ct_data table.

please suggest any modifications do we need to change in above script.

Mahi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200327
Active Contributor
0 Kudos

Hi Mahi,

Do you have any XDIM_MEMBERSET statements before calling that BAdI? Those together with package selections define what data will be in CT_DATA, not what you pass as parameters to BAdI.

If %time% represents data set selected in DM Package why it's not %time_set%? What kind of PROMPT are you using in DM Package to get those selections?

Regards,

Gersh

Former Member
0 Kudos

Hi Gersh

First I am not defining scope before BAdi. In DM , I am using %account_dim%, %category_dim%,%entity_dim%,%time_dim%.

In my BAdi I am using, P_acct=%acct%, etc .here my objective is to send the account member as variable to the BAdi.

Is it my understanding correct.

Mahi

former_member200327
Active Contributor
0 Kudos

Hi Mahi,

I still don't understand how your %acct%, %time%, etc variables are populated.

Can you check if the cube has data with the values you putting in the Package?

DM log should show with what members your BAdI is called. Can you check if they are different from values you entered?

Regards,

Gersh

Former Member
0 Kudos

Hi Gersh

Yes , we have written it in wrong way, Just I have changed my script like this

start_badi decd

query On

write On

End_badi

Now it is passing parameter values from DM to ct_data table in badi. It is working fine now and showing the values in table also.

thanks for your suggestions

Mahi