cancel
Showing results for 
Search instead for 
Did you mean: 

Strange problem with workflow copied from standard

Former Member
0 Kudos

Hi all,

i created a new workflow from 20000397 standard workflow. In the workflow builder i look the container and i want to see the attributs of the element 'IncomingInvoice', the system give me a message 'IncomingInvoice does not exist' and i go out of the transaction. Very strange.

Any idea ?

Cheers.

Accepted Solutions (0)

Answers (2)

Answers (2)

jj
Active Contributor
0 Kudos

Check in Tcode: SWO1 this particular business object BUS2081( Incoming Invoice ) exist or not.

Usually this error message comes when the business object used in the workflow does not exist

Former Member
0 Kudos

Of course the BOR BUS2081 exist in system. Finally it's not a problem of copy, I have the same problem with the standard workflow 20000397 i can't see the attributs of the element IncomingInvoice, the system display error 'IncomingInvoice does not exist' and go out the transaction. Can you test in your environnment ? I'm in ECC 5. If i delete the element IncomingInvoice and recreate it it's work and after it don't work. In fact the system wait an instance of the BOR BUS2081, but it's no sense because i'm in developing environment.

Thanks a lot for your help.

Cheers

Former Member
0 Kudos

I debug the standard code, my problem is from GET_BOR_ATTRIBUTES method of CL_SWF_EXP_SERVICE class. The system call cl_swf_cnt_service=>element_get_rh method and normally the l_dref variable must be initial, but in my case it's not.

IF get_values IS NOT INITIAL.                                
** we need a runtime object reference to query the attributes
  CLEAR l_dref.                                              
  CALL METHOD cl_swf_cnt_service=>element_get_rh             
    EXPORTING                                                
      element_if = element                                   
    IMPORTING                                                
      ref_to_rh  = l_dref.                                   
  IF l_dref IS BOUND.                                        
    ASSIGN l_dref->* TO <bor_rh>.                            
    CLEAR lt_cont[].                                         
  ELSE.                                                      
**  invalid persistent handle, component values not available
    UNASSIGN <bor_rh>.                                       
  ENDIF.

Former Member
0 Kudos

hi CEGG!

how did u solve this issue?

ur reply will be greatly appeciated.

thanks,

navi

Former Member
0 Kudos

Hi,

Just a hunch..COuld it be any auth. issue ?

coz, i can see it..

venu

Former Member
0 Kudos

Thanks for your answer.

I've SAP_ALL authorisation.

Cheers