on 08-05-2009 10:40 AM
Hi,
I have requirement like this,
I should should retrieve expense reports details by passing default SAP user name to
the BAPI.
I have done the following steps,
Step :1
I created "LoggedInUser" attribute in both view and component controller and I mapped them.
Step :2
In my first view,
I have hard code the user name,
wdContext.currentContextElement().setLoggedInUser("IDADMIN");
Step 3:
And in my component controller, I have binded the value to the BAPI field,
Sap_Wapi_Count_Workitems_Input input = new Sap_Wapi_Count_Workitems_Input();
wdContext.nodeCount().bind(input);
String names = wdContext.currentContextElement().getLoggedInUser();
input.setUser(names);.
I have checked whether the BAPI field is retrieving the value by giving message.
Yes user name is bind to BAPI.
But in my second view, the data is not retrieving for expense reports for that user name.
Please guide me with the procedure to retrieve the expense reports details by passing the
user name.
Regards,
Anitha.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you put external breakpoint in bapi and check whether the username is passing to that bapi or not.
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.