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

CREATE_PERSISTENT

Former Member
0 Likes
457

Hello Guys,

For the first I am experimenting with object services , I am quite sure I have follow all the steps for the creation of the persistence class , i did my code like must of the examples I have seem but it doesn't create the record , Do you have any idea what could I try.

What I am missing here. ?

my code :

DATA : LR_NOTIFICATION_AGENT TYPE  REF TO ZCA_DATA_NOTIFICATION_TYPE2,

        LR_NOTIFICATION TYPE REF TO ZCL_DATA_NOTIFICATION_TYPE2  .

LR_NOTIFICATION_AGENT = ZCA_DATA_NOTIFICATION_TYPE2=>AGENT.

TRY.

CALL METHOD LR_NOTIFICATION_AGENT->CREATE_PERSISTENT

   EXPORTING

     I_QMART  = 'XX'

     "I_QMTYP  = '01'

   RECEIVING

     RESULT   LR_NOTIFICATION

     .

  COMMIT WORK.

     CATCH CX_OS_OBJECT_EXISTING .

ENDTRY.



My Persistence Object



1 REPLY 1
Read only

Former Member
0 Likes
367

I have created the persistence class again and it works!