‎2015 Jan 21 9:48 AM
Hello Techies,
we use a Standard FM 'RSNDI_MD_ATTRIBUTES_UPDATE' for updating infoobject .
So sometimes it fails to update and giving error .
so we use solution like , we are keeping that FM in a DOLOOP for 3 times and making wait for sometime.
So am expecting an alternative solution for avoiding this error and i want to avoid that DOLOOP also .
Thanks in advance .
‎2015 Jan 21 9:55 AM
‎2015 Jan 21 10:06 AM
If it`s ENQUEUE problem, i just a piece of code.
DO.
* To check whether there already are a 'E' lock on this object.
CALL FUNCTION 'ENQUEUE_READ'
EXPORTING
gclient = sy-mandt
TABLES
enq = lt_enq
EXCEPTIONS
communication_failure = 3
system_failure = 4.
IF sy-subrc EQ 0.
SORT lt_enq BY gname gmode.
READ TABLE lt_enq INTO ls_enq WITH KEY gname = 'E070' gmode = 'E' BINARY SEARCH.
IF sy-subrc EQ 0.
WAIT UP TO 1 SECONDS.
ELSE.
EXIT.
ENDIF.
ENDIF.
ENDDO.
CALL FM.
regards,
Archer