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

Function Modules

Former Member
0 Likes
690

Hi,

In my report i used a standard Function module, it raises an exception and goes to dump. How to handle that exception.

I didnt get any sy-subrc value, before getting it goes to dump.

6 REPLIES 6
Read only

Former Member
0 Likes
673

hello,

Check whether the parameter and table ur passing are in correct format i.e data type of passing parameter should be same as that mentioned in function module.

Regards,

Neelambari

Read only

Former Member
0 Likes
673

Hi,

Please uncomment the EXCEPTIONS in your code & then handle the sy-subrc.

Best regards,

Prashant

Read only

Former Member
0 Likes
673

Hi

After calling the function module.

check the sy-subrc status.

if sy-subrc = 0 means success.

else.

raise error message.

endif.

Read only

Former Member
0 Likes
673

Make sure all export parameters and tables are compatible with FM parameters.

by the way let us know which FM you are using and what is the message you are getting in dump (you can check this in ST22).

Read only

Former Member
0 Likes
673

Hi,

Go to tcode: SLIN.

Enter program name.

Select Call Function Interfact check box.

Execute the program.

It will give the details.

Regards,

Bhaskar

Read only

Former Member
0 Likes
673

Hi,

Actually while calling the standard FM's wile passing import parameters the data type what the function module import parameter is expecting and the variable data type what u r sending should be same other wise it will go to short dump

if it is not the case then wht u do is uncomment the exceptions given for the function module and handle the sy-subrc then sure u will get why it is going for dump

still if u r unable to do

u can send me the code if i can i will try to solve u r problem

my mail id mutyalasunilkumar@gmail.com

plzz reward if it is helpful..

plzz dont forget to reward......