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

BAPI_GOODSMVT_CREATE

Former Member
0 Likes
548

Hi,

I am trying to use the BAPI_GOODSMVT_CREATE and I got a dump like

The termination occurred in the ABAP program "SAPLMG22" in "MARC_ARRAY_READ".

The main program was "ZI_0005_INVENTORY ".

The termination occurred in line 190 of the source code of the (Include) program "LMG22U01"

of the source code of program "LMG22U01" (when calling the editor 1900).

Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in

the

procedure "MARC_ARRAY_READ" "(FUNCTION)" but was not handled locally, not

declared in the

RAISING clause of the procedure.

The procedure is in the program "SAPLMG22 ". Its source code starts in line 5

of the (Include) program "LMG22$01 ".

The source code extract is

SELECT * FROM MARC APPENDING TABLE IMARC

FOR ALL ENTRIES IN IPRE01

WHERE MATNR = IPRE01-MATNR

AND WERKS = IPRE01-WERKS.

IF SY-SUBRC EQ 0.

  • Übernehmen der neuen Einträge in die TMARC -------------------

ZAEHLER1 = ZAEHLER_IMARC + 1.

LOOP AT IMARC FROM ZAEHLER1.

APPEND IMARC TO TMARC.

APPEND IMARC TO MARC_TAB.

ENDLOOP.

SORT IMARC BY MATNR WERKS.

SORT TMARC BY MATNR WERKS.

SORT MARC_TAB BY MATNR WERKS.

ENDIF.

Can some one tell me why is this ?

Thanks.

Message was edited by: lakshmi

2 REPLIES 2
Read only

Former Member
0 Likes
414

Hi,

I got the same error, can you tell me how did you solve this?

thanks,

Jennie

Read only

0 Likes
414

Guys, the problem has to be in your parameters. Could you please post back with the call you are making and its context?

Thanks

Leonardo De Araujo