Application Development 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: 

RAISE_EXCEPTION Error.

Former Member
0 Kudos
474

Dear Gurus.

I have made a program and used a picture container in that program

using this following code.

call method cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    exporting
      p_object       = 'GRAPHICS'
      p_name         = 'Snak TpF Logo'
      p_id           = 'BMAP'
      p_btype        = 'BCOL'
    receiving
      p_bmp          = l_graphic_xstr
*  EXCEPTIONS
*    NOT_FOUND      = 1
*    INTERNAL_ERROR = 2
*    others         = 3
          .
  if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

After transporting my program to Production Server.

My Program is Running Fine on my ID in Development ID having full access to every module.

But when the client runs this program

it throws a message of RAISE_EXCEPTION.

"RAISE_EXCEPTION" " "

"CL_SSF_XSF_UTILITIES==========CP" or "CL_SSF_XSF_UTILITIES======

"GET_BDS_GRAPHIC_AS_BMP"

or

"CL_SSF_XSF_UTILITIES==========CP" "INTERNAL_ERROR"

or

"ZAPPRAISAL_SNAK2 " "INTERNAL_ERROR"

PLease help me regarding this problem.

Saad Nisar

1 ACCEPTED SOLUTION

Former Member
0 Kudos
154

Hi ,

You uncomment the the EXCEPTIONS and check the same code .

Would you please check the bellow code --

call method cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    exporting
      p_object       = 'GRAPHICS'
      p_name         = 'Snak TpF Logo'
      p_id           = 'BMAP'
      p_btype        = 'BCOL'
    receiving
      p_bmp          = l_graphic_xstr
  EXCEPTIONS     " uncommented
    NOT_FOUND      = 1   " uncommented
    INTERNAL_ERROR = 2    " uncommented
   others         = 3     " uncommented
          .
  if sy-subrc  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

Note : It is for sure that the user lacking some otherization.

Regards

Pinaki

3 REPLIES 3

Former Member
0 Kudos
155

Hi ,

You uncomment the the EXCEPTIONS and check the same code .

Would you please check the bellow code --

call method cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    exporting
      p_object       = 'GRAPHICS'
      p_name         = 'Snak TpF Logo'
      p_id           = 'BMAP'
      p_btype        = 'BCOL'
    receiving
      p_bmp          = l_graphic_xstr
  EXCEPTIONS     " uncommented
    NOT_FOUND      = 1   " uncommented
    INTERNAL_ERROR = 2    " uncommented
   others         = 3     " uncommented
          .
  if sy-subrc  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

Note : It is for sure that the user lacking some otherization.

Regards

Pinaki

0 Kudos
154

Thank you

Former Member
0 Kudos
154

Hi,

This exception problem arieses due to the Authorisation problem. Once you uncomment the exception part, then it will show you the proper messages.

Rgds,

Sachin.