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

SO_OBJECT_UPDATE ABAP Crash Dump

Former Member
0 Likes
604

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..

2 REPLIES 2
Read only

Former Member
0 Likes
491

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.

Read only

Former Member
0 Likes
491

I found my own solution