2008 Jul 17 4:12 AM
I am using SO_OBJECT_UPDATE function in my program to read a mail in my inbox and change the title of the email before I use SO_OBJECT_SEND to send it off again. However I have a problem with SO_OBJECT_UPDATE function.
I have narrowed the error down to line 254 of the function and here is where it bombs.
IF FOL_DAT-FOLRG NE PU_FOL AND FOL_DAT-FOLRG NE SW_FOL.
IF NOT OBJ_DAT-OBJSND IS INITIAL.
IF OBJ_DAT-PRTCT IS INITIAL.
IF OBJ_DAT-FIXED IS INITIAL.
IF NOT OBJ_DAT-OBJCP IS INITIAL.
IF OBJ_DAT-OWNNAM NE OWNER.
MOVE NOK TO RCODE.
ENDIF.
ENDIF.
ELSE.
MOVE-CORRESPONDING OBJ_DAT TO H_OBJECT_HD_CHANGE.
MOVE OBJECT_HD_CHANGE-OBJDES TO H_OBJECT_HD_CHANGE-OB
IF OBJECT_HD_CHANGE NE H_OBJECT_HD_CHANGE.
MOVE NOK TO RCODE.
ENDIF.
ENDIF.
ENDIF.
IF RCODE NE OK.
PERFORM SOOD_DEQUEUE(SAPFSSO2) USING OBJECT_ID.
PERFORM SOFM_DOC_DEQUEUE(SAPFSSO2) USING OBJECT_ID.
RAISE OBJECT_NO_AUTHORIZATION.
ELSE.
The OBJECT_NO_AUTHORIZATION doesn't make sense as I am reading my own mailbox, I think it has something to do with the mail being "non-changeable"? If anyone could help I will reward full points..
I am using SO_OBJECT_UPDATE function in my program to read a mail in my inbox and change the title of the email before I use SO_OBJECT_SEND to send it off again. However I have a problem with SO_OBJECT_UPDATE function.
I have narrowed the error down to line 254 of the function and here is where it bombs.
IF FOL_DAT-FOLRG NE PU_FOL AND FOL_DAT-FOLRG NE SW_FOL.
IF NOT OBJ_DAT-OBJSND IS INITIAL.
IF OBJ_DAT-PRTCT IS INITIAL.
IF OBJ_DAT-FIXED IS INITIAL.
IF NOT OBJ_DAT-OBJCP IS INITIAL.
IF OBJ_DAT-OWNNAM NE OWNER.
MOVE NOK TO RCODE.
ENDIF.
ENDIF.
ELSE.
MOVE-CORRESPONDING OBJ_DAT TO H_OBJECT_HD_CHANGE.
MOVE OBJECT_HD_CHANGE-OBJDES TO H_OBJECT_HD_CHANGE-OB
IF OBJECT_HD_CHANGE NE H_OBJECT_HD_CHANGE.
MOVE NOK TO RCODE.
ENDIF.
ENDIF.
ENDIF.
IF RCODE NE OK.
PERFORM SOOD_DEQUEUE(SAPFSSO2) USING OBJECT_ID.
PERFORM SOFM_DOC_DEQUEUE(SAPFSSO2) USING OBJECT_ID.
RAISE OBJECT_NO_AUTHORIZATION.
ELSE.
The OBJECT_NO_AUTHORIZATION doesn't make sense as I am reading my own mailbox, I think it has something to do with the mail being "non-changeable"? If anyone could help I will reward full points..
2008 Jul 17 6:26 AM
I have found that OBJ_DAT-OBJCP is the "changeable" field. Does anyone know how I can change this per user or how I can change this from non-changeable to changeable in any way? This field can be viewed in the attributes of a email in the SBWP inbox.
2008 Sep 08 4:41 AM