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

area->DETACH_COMMIT() is not defined

former_member185978
Active Participant
0 Likes
605

Hi Experts,

I am getting error when implementing Shared Memory for one of my object.

Created a area SHMA and Assigned Root class

In Root Class I implemented GET_MSG , SET_MSG along with IF_SHM_BUILD_INSTANCE~BUILD methods.

In IF_SHM_BUILD_INSTANCE~BUILD Method:

I wrote
   method IF_SHM_BUILD_INSTANCE~BUILD.
  data :area TYPE REF TO zcl_shared_area,
        root type REF TO zcl_long_text_iw21.

*area = ZCL_SHARED_AREA=>ATTACH_FOR_WRITE[].

*TRY.
CALL METHOD ZCL_SHARED_AREA=>ATTACH_FOR_WRITE
  RECEIVING
    HANDLE      = area.

create OBJECT root AREA HANDLE area.
root->set_message( 'This is testing' ).
area->set_root( root ).
area->DETACH_COMMIT().

endmethod.

I am not able to call DETACH_COMMIT , but able to call SET_ROOT . ITs giving Error "Statement "AREA->DETACH_COMMIT()" is not defined. Check your spelling."

I check some Solution for this and asking me to implement OSS Note , but its cannot be implement.

Please help.

With Regards,

Bala M

Hi Experts,

I am getting error when implementing Shared Memory for one of my object.

Created a area SHMA and Assigned Root class

In Root Class I implemented GET_MSG , SET_MSG along with IF_SHM_BUILD_INSTANCE~BUILD methods.

In IF_SHM_BUILD_INSTANCE~BUILD Method:

I wrote
   method IF_SHM_BUILD_INSTANCE~BUILD.
  data :area TYPE REF TO zcl_shared_area,
        root type REF TO zcl_long_text_iw21.

*area = ZCL_SHARED_AREA=>ATTACH_FOR_WRITE[].

*TRY.
CALL METHOD ZCL_SHARED_AREA=>ATTACH_FOR_WRITE
  RECEIVING
    HANDLE      = area.

create OBJECT root AREA HANDLE area.
root->set_message( 'This is testing' ).
area->set_root( root ).
area->DETACH_COMMIT().

endmethod.

I am not able to call DETACH_COMMIT , but able to call SET_ROOT . ITs giving Error "Statement "AREA->DETACH_COMMIT()" is not defined. Check your spelling."

I check some Solution for this and asking me to implement OSS Note , but its cannot be implement.

Please help.

With Regards,

Bala M

1 REPLY 1
Read only

former_member185978
Active Participant
0 Likes
539

sorry spelling mistake.

Corrected my self.

AREA->DETACH_COMMIT( ). Space between brackets.