on 06-19-2008 5:20 PM
Hello,
I am trying to create a sample webdynpro for java application uisng BAPI_EMPLOYEE_Getdata to let user input the employee id and get some personal details...but it does not bring in the data altough when executed in R/3 using the same id it does bring it in...i have followed all the steps of creating the webdynpro application...Please help....
Any help would be highly appreciated.
Hi,
Make sure cardinality of Bapi_Employee_GetDate Node is not zero and you have bind the element.
Also, print exception message, e.getMessage(), that will help in finding exact cause of the problem.
Thanks,
Apurva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make sure inputs to the BAPI are in UPPERCASE. Sometimes if inputs are not in uppercase BAPI does not return desire result.
Regards,
Apurva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply guys...although I didn't put an external breakpoint but I debugged it in Webdnpro and the statement
wdContext.currentBapi_Employee_GetDataElement().modelObject().execute();
causes an exception i think as it goes to the catch block .....but I don;t see any reason for the exception ...please help..
Hi Anil,
Try to debug the application. Go to tcode se38 & give ur bapi name. Put some external breakpoint over there & run ur application. check whether all the input parameters are goin correctly & bapi is returning any value.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
Try giving the exact input as you give it in BAPI, i.e., if your employee id contains "00001" in BAPI then give the same input "00001" not "1"in webdynpro application also. If that is the case then directly bind th input filed to BAPI input field.
If that is not the case check weather you are passing all the required input parameters.
~Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anil,
Setup an external breakpoint in the BAPI which you are trying to access in the backend.
Then try to run the application from Portal and check:
- If the BAPI is being called
- If the input is being sent correctly to the BAPI
- If the values are being returned from the BAPI correctly.
Once you make sure that the BAPI is sending the right data, then you can start looking at the webdynpro side for:
- mapping the returned data to the proper UI elements using context attributes
- invalidating the model
Hope this helps. If you have any questions please revert back.
Thanks,
Shanti
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.