Skip to Content
-1

Restricting Variable Values on F4 for Hierarchies

Aug 09, 2017 at 01:58 AM

214

avatar image
Former Member

Hi All,

I am having a hierarchy variable but I need to restrict only few hierarchies in F4, I looked into few blogs which deals with Flat list and hierarchy nodes but could some one help me how to implement F4 values restriction for Hierarchy variable.

Thanks,

Guna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Koen Hesters Aug 09, 2017 at 09:32 AM
0
Share
10 |10000 characters needed characters left characters exceeded
Andrey Uryukin Aug 13, 2017 at 09:16 AM
0

Hi,

May be you can use BADI RSR_VARIABLE_F4_RESTRICT_BADI and then in the method GET_RESTRICTION_HIER you got an internal table I_T_COMPID with queries.

Then restrict required hierarchy by required query.

BR,

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Aug 09, 2017 at 11:07 AM
0

Hi Koen,

Thank you for your response.

My requirement was to restrict hierarchies based on query not based on user.

Please advise.

Thanks

Guna

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Ha didn't grab that from your question

if you use a specific variable on your hierarchy in only those queries you want that to happen and in the other queries you use other variables, you will have a query based solution, no?

grtz

Koen

0
Former Member

Hi Koen,

In the blog you have given, the code is written based on user name, I am not sure how this can be done based on query name.

Please advise.

Thanks,

Guna

0

I see now,

you could use a ref char in the datamodel and set resitriction on that infoobject via the I_iobjnm you could have your condition

Grtz

Koen

0
avatar image
Former Member Sep 07, 2017 at 12:39 AM
0

Hi Experts, I have similar question. Lets say we need to restrict the Values for GL Hierarchies WHERE Char of Account = 'XYZZ'

When we see the GL Hierarchies, we see <Char of Account> / GL Account. So how to restrict to one single Chart of Account? Can anybody please share the BADI enhancement code? Thanks

Vikram

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi,

If you want to filter only by a single chart of account (CoA), why don't you filter your query for that single CoA? That's easier than doing the BADI. I think filtering the CoA will also make the list for GL hierarchies limited based on the filtered CoA.

Regards,

Loed

1
Former Member

Hi Loed,

How can we filter Hierarchies at run time in F4 listing (Selection F4 Listing) do we have option?

0