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

Need to return to the Wrapper program when the called Program dumps

Former Member
0 Likes
1,519

Dear Experts,

We are calling a standard sap report from our Z wrapper program using submit and return statement.

The standard sap report program is dumping because of some issues and the execeptions are not caught by SAP.

Our requirement is we need to return to the wrapper program even if the dump occurs so that we can contunue with the further processing.

Any help on this will be highly appreciated and <promise removed by moderator>

Thanks in advance,

Regards

B

Edited by: Balwants on Feb 6, 2011 5:10 AM

Edited by: Thomas Zloch on Feb 6, 2011 1:57 PM

9 REPLIES 9
Read only

Former Member
0 Likes
1,299

Hi,

What is the dump details.

Can you please provide the exact submit statement syntax that you are using in your wrapper program.

With these details maybe we can troubleshoot.

Also let me know if the SAP report you are submitting.

Read only

0 Likes
1,299

Hi,

The std program name is RGLE_ECS_DIRECT_INPUT_PP

submit statement is something like this (I am not mentioning the exact code & have replaced the std program by Y program):

SUBMIT YOVERFLOW_TEST_SUCCESS USING SELECTION-SCREEN 1000

WITH p_date = sy-datum

WITH p_sim = 'X'

AND RETURN.

This problem is basically a very general problem and should not be related to a particular dump.

I am looking for a very general solution on this .

Regards

B

Read only

0 Likes
1,299

Hi Experts,

Please let me know if you were able to get the solution on this.

Thanks in advance,

Balwant

Read only

0 Likes
1,299

Hi,

did you try

TRY.
submit ...
CATCH CX_ROOT.
WRITE: / 'Severe error in submitted program'.
ENDTRY.

I did not try but I have some hope - though no dump will be created.

If you need to know why and where the error occured, you may have chances with exception object.

Regards,

Clemens

Read only

0 Likes
1,299

Hi

I have already tried this it dosent work.

Is there anyother hope to catch an exception like this.

Thanks

Balwant

Read only

0 Likes
1,299

Not possible...

Dump is a special situation where the exception is not taken care by the program.

Could you please let me know as to what exactly is your requirement...

Read only

0 Likes
1,299

Hi ,

I faced some dumps when I was using submit some time ago.It was because I was using the slection screen statement

for a report using screens built out of screen painter. This may be a possibility in your case.

Tell me if this is your case.

Thanks

Read only

0 Likes
1,299

Hi vikranth,

yes, it is true.

TRY .. CATCH is used to catch an exception that would otherwise raise a dump.

But as the submitted program runs in it's own LUW, the exception is not caught.

That means: No way to catch the dump, only make checks before submitting. This is about the same as errors in update task - then you get an express mail.

You couls create and start a Job for any single submit, then you evrything is processed and the errors with dump are in the job log.

Regards,

Clemens

Read only

0 Likes
1,299

Hi All,

There is no problem without a solution;).

We solved it by submitting the report in a wrapper RFC.

RFC will open a new session that is why it will work.

As Clemens mentioned Job spawning ,that was one of the solution too we had figured out intiailly but the std report we were submitting was creating lot of parallel processes so we did not went ahead with this one.

Regards,

Balwant