Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Internal Server Error - XML- BAPI inetgration Module

0 Likes
626

Hi All WAS Gurus,

Basically the functionality is - I have to parse the incoming xml , get data ( number of records - internal table) and call some Remote enables FM to update DB and collect the error it throws back (internal table) and recreate the XML and send it back. I have a handler class which parse the xml data and calls the FM.

This function module accepts a set of records and tries to update (calling some other FM) DB. If any errors were there in any records it will append to the return internal table.

Say, if I give four correct records in XML and call the web service from HTTP client (browser) it updates the DB as expected. But if the records are wrong it is showing internal server error.

My called FM is functioning very well when I am testing it individually. If I give three wrong records and one wrong record in the internal table it exactly gives the one wrong record back with reason - the very expected output

For debugging the code I have copied the whole class code into a SE38 program. Supplied the same XML hard coded. This SE38 program calls the FM and gets back error messages and create the XML without any error - No problem at all

But the only problem is when I call the web services from the browser with wrong input records. As mentioned if all records are correct, every thing is fine

When this internal server error is coming it doesn't show any short dump. So no way I can debug it. Remember SE38 is working fine. My called FM is Remote enabled.

I really don't know what the problem is, I am using WAS 620. Is that any patch problem?

Please input your valuable comments. I would be grateful to all of you

Thanks

Bineesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
538

Hi,

Please look at SAP Note : 795699

Regards,

GSR.

4 REPLIES 4
Read only

Former Member
0 Likes
539

Hi,

Please look at SAP Note : 795699

Regards,

GSR.

Read only

0 Likes
538

Hi Reddy,

Thanks for your help.But my primary problems is why it is happening. If there are any errors or exceptions, how does my Se38 report program work?

Do I need to handle exceptions? if so what exceptions. It( class) does not give any short dump.

Read only

athavanraja
Active Contributor
0 Likes
538

why not place a HTTP (external) break point in your FM and try debugging to where the error happens

Regards

Raja

Read only

0 Likes
538

Thanks Raja,

in fact, I found many options to debug it. SICF debug , trace, external break point.

Thanks for you help.

I found the problem also. The function call also should be remote enabled