Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

uncaught exception CX_OS_DB_INSERT from custom persistent object -

$
0
0

Hello ABAP professionals,

 

I have developed a persistant class and I sometimes get  a dump due to the exception mentioned in the subject line from the base class method MAP_SAVE_TO_DATABASE.  I am working in a CRM system SAP basis release 2005_1_700, CRM addon 01H_CRM500.  I have checked OSS notes but did not find anything specific to my situation.

 

This process runs either in batch on directly to perform mass inserts or updates to my table. Would placing a 'CATCH' for that exception within the TRY block when I do a

TRY.

  l_agent         = zca_zelm_prd_text=>agent.

 

 

CALL METHOD L_AGENT->CREATE_PERSISTENT

          EXPORTING

            I_ACT_DATE   = i_act_date

            I_ACT_NO_EXT = i_act_no_ext

            I_BP_NO_CRM  = i_bp_no_crm

            I_CRDAT      = i_crdat

            I_CRTIM      = i_crtim

            I_CRUSR      = i_crusr

            I_ID_EXT     = i_id_ext

            I_LPDAT      = i_lpdat

            I_LPTIM      = i_lptim

            I_LPUSR      = i_lpusr

            I_PRD_NO_CRM = i_product_id

            I_PRD_SRNO   = i_serial_no

            I_TEXT_OBJNR = i_text_objnr

          RECEIVING

            RESULT       = l_pers_obj.

 

          CATCH CX_OS_OBJECT_EXISTING.

        RAISE EXCEPTION TYPE zcx_elm_prd_text

           EXPORTING textid = zcx_elm_prd_text=>record_exists

           product_id       = i_product_id

           serial_no        = i_serial_no

           text_objnr       = i_text_objnr

           activity         = i_act_no_ext

           act_date         = i_act_date

           partner_id       = i_bp_no_crm

           partner_ext      = i_id_ext.

 

 

    ENDTRY.

 

 

solve my issue?

 

Any guidence would be greatly appreciated.

 

Thanks in advance.

 

Jennifer


Viewing all articles
Browse latest Browse all 4552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>