I have a problem implementing BADIs for hierarchies. Let me explain you the scenario.
I am implementing the BADI 'RSR_VARIABLE_F4_RESTRICT_BADI'. I have a database field in the variables which is a manual input and then based on this value, I need to fill up the Hierarchies(not the hierarchy nodes) available for the database and hence the hierarchy variable needs to be filled up with the particular hierarchy values.
I am implementing the method 'GET_RESTRICTION_NODE' as per SAP documentation, but unfortunately, I see the code returns the value of the Hierarchy nodes through c_t_node which fills the hierarchy node values. c_t_hierarchy doesn't fill up my hierarchy variable.
Also, the method 'GET_RESTRICTION_HIER', doesn't have return values which would store the hierarchies.
Please guide me how can I restrict the hierarchy values in F4 help.
Many thanks in advance.