Skip to Content
0
Former Member
Apr 16, 2014 at 07:48 AM

MIR4- Invoice posting BDC not working in background

371 Views

Hi All,

We have a requirement to create a BDC for posting an invoice and have created one. BDC is working in foreground and invoice is getting posted. But when we try to execute the BDC in background it is failing and invoice is not getting posted.

Please help.

Below is the dump in ST22.

Category ABAP Programming Error

Runtime Errors RAISE_EXCEPTION

ABAP Program SAPLMR1M

Application Component MM-IV

A RAISE statement in the program "CL_GUI_DOCKING_CONTAINER======CP" raised the

exception

condition "CNTL_ERROR".

Since the exception was not intercepted by a superior

program, processing was terminated.

Source code where the program terminated:

CALL METHOD DOCK_AT_internal
EXPORTING
SIDE = SIDE
notify = space
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2.

CASE SY-SUBRC.
WHEN 0.
WHEN 1.
RAISE CNTL_SYSTEM_ERROR.
WHEN 2.
>>>> RAISE CNTL_ERROR.
WHEN OTHERS.
RAISE CNTL_ERROR.
ENDCASE.