cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in hiding ship to fields in shopping cart SRM 5.0

Former Member
0 Kudos

Hi Experts,

I am using SRM 5.0 in my project. The requirement is to hide the Ship To fields based on the user's role.

For example,  assume that a user with role A must have Ship To fields HIDDEN. 

Now if this user is creating the shopping cart and if his/her role is A, then in such a case Ship to fields must not be displayed.

I have made the required code changes in the BADI 'BBP_UI_CONTROL_BADI' to achieve this. There is a parameter 'is_header' which has field created_by, so i used this field to get the role details.

But the problem that i am facing here is the parameter 'is_header' does not have any values populated during run time process. So its difficult to obtain the user's role.

Can anyone please help me with this issue.

Thanks,

Deepa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Deepa,

Did you try using FM BBP_PD_SC_GETDETAIL in this BADI. This FM gets call in run time when user click on Shop button. In there you can get the parameter LS_HEADER where Created by shows the user ID. Please find attached screen shot for the same.

Thank you

Ritesh

Former Member
0 Kudos

Please see the below thread for more pointers:

http://scn.sap.com/thread/725362

Former Member
0 Kudos

Please see the below thread for more pointers:

http://scn.sap.com/thread/725362

Former Member
0 Kudos

Hi Ritesh,

Thanks for the quick reply. It was really helpful and solved my problem.

Thanks,

Deepa

Answers (0)