on 11-11-2005 3:33 PM
Hi
I Have a Bapi which doesn't have any data but there are some return messages.
How to display these return messages in a webdynpro view
is there any tutorial or code so that i can get the return messages from Bapi and display in Bapi
I already mapped bapi to custom controller and then custom controller to View.
in customer controller i am excuting this bapi and i am calling this bapis method in views on action Go button, but i need to display all the return messages.
com.sap.package4.Bapireturn ret1 = input1.getOutput().getReturn();
String var1 = ret1.getMessage();
msgMgr1.reportSuccess(var1);
after excution i am getting null pointer exception
is there any solution..
Regards,
Murali
Message was edited by: Murali Manohar
Hi Murali:
Have you solved this problem? I've got the same problem with you. I can get the output value from the BAPI, but can't get the return value.
If you know why, can you let me known? Thanks a million!
Regards,
Xiaoming
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murli,
Write following code for dispalying Return message.
String message = wdcontext.currentReturnElement().getMessage();
msgMgr1.reportSuccess(message);
Here, Return is your node in which you are getting your return message.
If it still gives null pointer exception then put this code inside following if statement.
if(wdcontext.currentReturnElement() != null)
{
}
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post the complete stacktrace.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.