Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI Filter value

Former Member
0 Likes
2,125

hi friends,

i have few doubts in BADI plz explain me

1.i have implemented badi while saving its asking me specify filter value [what to specify here]i specified its default filter value

2.in coding in method i copied standard example code when i did syntax check its throwing me error type 'T_RANGE' is

unknown.in types i specified this variable its giving me 'Enter Type Fully'

thanks in advance

soorya

6 REPLIES 6
Read only

Former Member
0 Likes
1,331

Hi Soorya,

1. You have to enter the values for that filter Type just below where you check the filter-Depentend check box (Before that u have to enter value in Filter Type).

And this will add FLT_VAL importing parameter to ur methods when u call instance of them in calling program.

IF the FLT_VAL value matches (with the value that u entered earlier) then only this BADI will get triggered otherwise not.

2.The Syntax Check that u are making should be in Import parameter of the Method otherwise it will through the same error.

Please Do reply in case of further Help.

Regards,

Ranjit Thakur.

Please Mark The Helpful Answer.

Message was edited by: Ranjit Thakur

Read only

0 Likes
1,331

hi ranjit,

my badi is filter type in default

plz explain me in detail how to enter filter value

and how to do syntax check for import

thanks in advance

soorya

Read only

0 Likes
1,331

Hi Soorya,

can u tell me the BADI Name and in which method u want to do the syntax check ?

Regards,

Ranjit Thakur.

Please Mark The Helpful Answer.

Read only

0 Likes
1,331

hi ranjit,

my BADI IS --WOSCR_CBL

Method--- IF_EX_WOSCR_CBL~GL_POSTINGS_SELECT

[GL_POSTINGS_SELECT]

i copied the standard coding for my Zbadi method and while checking syntax check i get the error

regards,

soorya

Read only

0 Likes
1,331

Hi Soorya,

I have gone through the BADI,

1. While Implementing, It will not allow you to go to next screen till u enter the filter value and short Description. It is giving search help for the filter value.

2.Check Import Parameters of Method GL_POSTINGS_SELECT

whether they contain the values which u are checking.

If not then int will definately show u error.

Please Send me Validation which u want to do, so that i can try with the same.

Regards,

Ranjit Thakur.

Please Mark The Helpful Answer.

Read only

Former Member
0 Likes
1,331

Hi soorya,

Be carefull with Badi contained filters.

Some standard implementations are made by SAP with differents filters of the definition.

So if you code a specific implementation with existing filters, search if you don't have a standard implementation to use.

You can also try to fill "*" in value of filter.

regards

Sebastien