cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Programming Error

Former Member
0 Kudos

Hi experts,

   The system issue below dump after I upgrade the SAP GUI from 720 to 740. The dump error shows below:

Short Text

    Exception condition "UNKNOWN_ERROR" triggered

What happened?

    The current ABAP program has encountered an unexpected situation.

Error analysis

    A RAISE statement in program "SAPLGRAP" has raised exception condition

     "UNKNOWN_ERROR".

    Since the exception was not caught by a program higher up in the call

    hierarchy, processing was terminated.

Information on where terminated

    The termination occurred in ABAP program "SAPLGRAP", in "DOWNLOADWRAP". The

     main program

    was "ZSDR0450".

    In the source code, the termination point is in line 264 of (Include)

    program "LGRAPF02".

    Short text for exception condition:

    You can find detailed documentation about the exception condition in

    transaction SE37 (Function Library). You can find the name of the

    function module called from the display of active calls.

The GUI720 works very well but the GUI740 issue dumps . Can any expert help me now?

Best regards.

Accepted Solutions (1)

Accepted Solutions (1)

fredrik_borlie
Contributor
0 Kudos

It is hard to analyze the root cause by your text. But one thing that have happened in the newer gui versions is that they have changed the upload download functions.

It feels by the text that you have a Z-program that executes an upload or download.

PLease check the code whether it is using function module WS_EXECUTE or calling the method method CL_GUI_FRONTEND_SERVICE=>Execute.

This is described in some notes:

http://service.sap.com/sap/support/notes/1883874

http://service.sap.com/sap/support/notes/1444941

If you specify the exact code that has broken it might be easier to validate the cause.

Best Regards

Fredrik

Former Member
0 Kudos

Hi Fredrik,

       I check the code of Z-program and find below code:

CALL FUNCTION 'WS_DOWNLOAD'

    EXPORTING

      FILENAME = 'C:\chditem'

      FILETYPE = 'ASC'

    TABLES

      DATA_TAB = DOWNLOADDATA.

  REFRESH DOWNLOADDATA.

  CALL FUNCTION 'WS_DOWNLOAD'

    EXPORTING

      FILENAME = 'C:\chdend.tmp'

      FILETYPE = 'ASC'

    TABLES

      DATA_TAB = DOWNLOADDATA.

liang2
Explorer
0 Kudos

Hello Huiyong

'WS_DOWNLOAD' is replaced by the method GUI_DOWNLOAD.

You can perform a unit test of GUI_DOWNLOAD from SE37, or test from SE24 ->

CL_GUI_FRONTEND_SERVICES -> GUI_DOWNLOAD and check if issue occurs?

If issue doesn't occur, you can use GUI_DOWNLOAD in your program.

Best Regards

Liang

fredrik_borlie
Contributor
0 Kudos

So you confirmed my theory of using ws_upload/download.

Then you have a tedious work of replacing ws_upload and ws_download with the new feature.

Use the where used function in SE37 to find all existing code with this function module.

There is AFAIK no other option than to manually replace this function module.

Answers (0)