Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error ABAP in the upload SyncBO

Hi all,

I have this defination in meRepMeta.xml:

<Property name="CLIENT.BUILDNUMBER">2</Property>

<Property name="C_APPLRESOLVE" />

<Property name="DATA_VISIBLE_SHARED">X</Property>

<Property name="E_APPLRESOLVE" />

<Property name="FACADE_C_CLIENT">X</Property>

<Property name="FACADE_E_CLIENT">X</Property>

<Property name="HOMEPAGE.INVISIBLE" />

<Property name="INITVALUE">X</Property>

<Property name="RUNTIME">JSP</Property>

<Property name="TYPE">APPLICATION</Property>

- <SyncBO id="ZSyncBO" version="8" type="twoWay" allowCreate="true" allowModify="true" allowDelete="true"

reqDirectSync="true">

This is my code in getList bapiWrapper:

*"----


""Interfaccia globale:

*" TABLES

*" T_TOP STRUCTURE OBJEC

*" RETURN STRUCTURE BAPIRET2

*"----


DATA application TYPE REF TO z0012_application.

DATA: my_top TYPE objec_t.

CREATE OBJECT application.

CALL METHOD application->arbpl_werks_by_user.

*******************************************

DATA: tb_log TYPE z0012_log OCCURS 0,

wa_log TYPE z0012_log.

  • SELECT * FROM z0012_log INTO TABLE tb_log.

  • SORT tb_log BY id DESCENDING.

  • READ TABLE tb_log INTO wa_log INDEX 1.

wa_log-data = sy-datum.

wa_log-ora = sy-uzeit.

wa_log-uname = sy-uname.

MODIFY z0012_log FROM wa_log.

********************************************

CALL METHOD application->get_cid_from_arbpl_werks

IMPORTING

tb_result_objec = my_top

  • SEL_WERKS_TXT =

  • SEL_ARBPL_TXT =

  • TB_ARBPL =

  • TB_WERKS =

.

t_top[] = my_top[].

The others bapiWrappers(Detail,MODIFY,Delete,Create) are empty.

When install my application and it do the initial load is Ok: I read the record in the ZSyncBO.

"---

If in backend system add others records, when I syncronize I have this error in middleware:

The ABAP/4 Open SQL array insert results in duplicate database records.

usa dell'errore

Error in ABAP application program.

The current ABAP program "SAPLMEREP_RUNTIME_DB" had to be terminated because

one of the

statements could not be executed.

This is probably due to an error in the ABAP program.

Print out the error message (using the "Print" function)

and make a note of the actions and input that caused the

error.

To resolve the problem, contact your SAP system administrator.

You can use transaction ST22 (ABAP Dump Analysis) to view and administer

termination messages, especially those beyond their normal deletion

date.

is especially useful if you want to keep a particular message.

--"

Why?

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question