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

Raise Exception throwing Dump

Former Member
0 Likes
1,122

Hi,

I am calling a FM : YTUXXWF_ITS_PO_GETDETAIL from inclde : LYTUXXWF_ITSUXX

The above FM belongs to the Function Pool :FUNCTION-POOL ytuxxwf_its MESSAGE-ID yuwf_procurwf.

The below code is throwing a dump everytime the control goes to Raise no_authorization.

CHECK NOT lt_return[] IS INITIAL.

RAISE no_authorization.

  • 'You are not authorized to display document &'.

msg_add 'W' '109' gv_objkey '' '' ''.

Kindly let me know how can we resolve the above dump error.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
885

Are you handling the exception??

Rob

5 REPLIES 5
Read only

Former Member
0 Likes
885

please check data type of function module as import parameter and input data which you pass to this import parameter..

both should be exactly same

regard

Shankar

Read only

Former Member
0 Likes
885

You should find the exact line on which error occur.

If it occurs in this line msg_add 'W' '109' gv_objkey " " "

then possible cause can be datatype of msg_add or gv_objkey.

And why are you using " " " ?

Please check these.

Read only

0 Likes
885

Hi,

Thanks for replying.

The exact line where it throws dmp is

Raise no_authorization.

any idea's

Read only

0 Likes
885

Hi Sam,

Please post the error discription here.

You will get an idea that what is going wrong , if you will read the full message in error.

Also read this http://help.sap.com/saphelp_nw70/helpdata/en/83/636d2012fc11d5991e00508b5d5211/content.htm

Read only

Former Member
0 Likes
886

Are you handling the exception??

Rob