on 06-24-2014 11:12 PM
Hi
In our MDG NWBC screen we have Customer and Supplier folders. In change request report I need to identify in which folder I am in (currently opened folder).
In URL I am seeing string as sap-nwbc-node=106486 and sap-nwbc-node=106496 for both Supplier and Customer. If I get these values in abap, I can write my own logic based on folder that currently opened.
Can any one has experience or any ideas on this.
While this could be doable, I question the need for it. It is a little of over-engineering.
Basically, the "folders" are technically menu roles that are assigned to the user. You can write a single report (or WDA application). Then, in each role assign a different parameter to the menu link for this report/WDA application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abdullah
Yes,, We have two security roles for both the folders.
From the change request report (Class CL_USMD_EDITION_CREQ_GUI_WD method LOAD_CREQUEST) I need to identify in which folder I am in. I tried use class CL_NWBC=>SESSION_CONTEXT attribute and no useful values are passed there. I tried to use various methods in class CL_NWBC_RUNTIME and I didn't get any useful information on currently open folder or role name.
Can you please provide some more details of WDA application you are referring.
Again, you should not care what folder you are in. Reports should be isolated from NWBC context so they can run from any UI: NWBC, Portal, GUI, etc.
Create two different configurations for the application and link each configuration in the corresponding role. In PFCG, you can even pass different parameter values for the same application in different roles.
Hi Abdullah
The role parameter values for 'My change requests' report is same for both Customer and Supplier folders. Technically everything is same as it is calling same web dynpro USMD_EDITION_CREQUEST.
A few users are given authorisation for both the customer and supplier roles. I need to control display values in report depends on folder from which they are accessing 'My Change requests' URL.
So I need to distinguish difference between these folders somehow in abap . I see different links for both the folders which has sap-nwbc-node=106486 and sap-nwbc-node=106496. I am not sure how to get these values in abap.
If above is difficult I saw some information on class CL_CHIP_PROPERTY which is used to design the Customer and Supplier Home pages. But I am unable to access this access within the feeder class CL_USMD_EDITION_CREQ_GUI_WD.
Again, you are approaching this the wrong way. You should control it by parameters independent of what NWBC view a user is displaying. You can enhance the application to have new parameters (or build your own application that calls the same WDA component). Then, depending on the value of the new parameter, display the customer or the vendor details as you like. One the menu role, pass the "customer" value to this new parameter in the customer role and the "vendor" value to the same parameter in the vendor role.
Hi Abdullah
I added a parameter value in PFCG for the URL 'My Change Requests'.
I may need to use these value in feeder class or web dynpro mentioned in previous message.
I tried to call cl_nwbc=>OBN_PARAM_GET but nothing passed to me back. Is it the right approach ?
Can you please advice how to get the role OBN (object-based navitation) parameter values in web dynpro.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.