Skip to Content
author's profile photo Former Member
Former Member

try...catch question!

Hi,

I tried to understand this try...catch statement really can't get. Please someone explain this to me.

try {

bapiInput.execute();

queryOutputNode.bind(bapiInput.getOutput().getFlight_List());

} catch (Exception e) {

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException(e.getLocalizedMessage(), false);

}

If I want to replace one line of code at the third line to copy the elements, how can I copy one node from another node with different elements?

try {

bapiInput.execute();

WDCopyService.copyCorresponding(bapiInput.getOutput().getFlight_List(),

wdContext.nodeOVSAirportQueryOutput());

//queryOutputNode.bind(bapiInput.getDestination_From());

} catch (Exception e) {

IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

msgMgr.reportException(e.getLocalizedMessage(), false);

}

Regards,

-Napadol

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 09, 2007 at 08:06 PM

    Can you be a little more clear on your question? What is that you cannot understand in the try...catch block?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Dhawal Joshi

      Hi Dhawal,

      Thank you so much for explaining this to me, and I understand it more now. Another issue, I created another RFC model node under the Bapi_Flight_Getlist_Input called Airport that contains the objects of Airportid, City, Countr, and Countr_Iso. The RFC output node is called OVSAirportQueryOutput that contains the same objects as RFC Airport node, and the Value node OVSAirportQueryInput that has been created for search values to be applied to. It has the same objects as the other two nodes.

      At run time, I want to do the same thing as the Flight_List calling the same method, but it doesn't give me the values of the objects of the RFC Airport node (Airportid, City, Countr, Count_Iso), instead it gives me a blank table. So, I don't know what the problem is.

      Someone told me to use a WdCopyService to copy the objects from RFC Flight_List node to the RFC OVSAirportQueryOutput node, but both of them have different objects or elements. I don't know other ways around (very less experience with Web Dynpro). Please help me to solve this problem to bring up the values of the RFC Airport node into the hit list search table.

      I would greatly appreciate your help.

      Regards,

      -Napadol

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.