cancel
Showing results for 
Search instead for 
Did you mean: 

Secondary method is not working

Former Member
0 Kudos

Hello,

I have a problem with my secondary method. I created a method Z_Call_ME23N for my purchase order release workflow and added it as a secondary method to my user decision step.

In testing in swo1 is no problem. Also the authorization test in SU53 are ok.

But when I try to open my workitem a message box comes up: 'Error when starting submethod'.

How can I check it what I have done wrong?

Thanks for your help,

Christoph

Accepted Solutions (1)

Accepted Solutions (1)

KKilhavn
Active Contributor
0 Kudos

What is your main method in the step where you try to use this as a secondary method? If it is e.g. the standard task for release you are using there could be a problem trying to call ME29N and ME23N at the same time.

Your secondary method can't depend on parameters.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

finally I solved this problem. It was a problem with the authorizations (actually I don´t know why it was not working and why the authorization check was ok... but now it is working).

Thanks a lot for all the time you spent tried to help me with this problem,

best regards,

Christoph

Former Member
0 Kudos

Christoph ,

I have a similar problem in a Workflow...

Witch authorization was missing ?

Former Member
0 Kudos

Hi Nuno,

please provide me with some informations about your problem.

In my case I was not able to execute the secondary method with the current user, some authorizations for the called transaction were missing.

I gave the authorizations to him (or asked my administrator to do it for me) - and it works out.

Christoph

Former Member
0 Kudos

Hi,

thanks again for your answers.

The method is in a user decision step. The only parameter it needs is the object-key of the business object (PO number - this shouldn´t be a problem I guess???)

I also don´t have 6 other windows open.

Don´t know how to do that in another way, just want to open this transaction automatically.

Thanks for your help,

Christoph

KKilhavn
Active Contributor
0 Kudos

The method is in a user decision step. The only parameter it needs is the object-key of the business object (PO number - this shouldn´t be a problem I guess???)

That depends.... when you say it needs the object-key of the business object, is this defined as an import parameter? If so, how do you bind a value into this import parameter (this is why it is a problem)? If you, on the other hand, just meant that the method is defined as instance-dependent so it needs its instance key, which is implicitly available, I agree it shouldn't be a problem.

Former Member
0 Kudos

Hej Kjetil,

it is instance dependent - so there shouldn´t be a need for any bindings, or?

Thanks,

martin_nooteboom
Active Contributor
0 Kudos

Hi Christoph,

Do you pass the object to the decision task?

Regards,

Martin

KKilhavn
Active Contributor
0 Kudos

The question is not whether bindings are needed. The question is whether you have a method which tries to read parameters from the method container.

Former Member
0 Kudos

Ah ok,

thanks for this explaination.

But I think this shouldn´t be the case for this method.

Thanks

Former Member
0 Kudos

Hi Martin,

can you tell me how the binding should be?

I have the business object zbus2012 in my WF-container, to what do I have to asign it?

Thanks,

Christoph

martin_nooteboom
Active Contributor
0 Kudos

Hi Christoph,

You should have the same BOR in your decision task, so you can bind it to that container element. I am not sure if this is a requirement, but it works for me.

You say you have zbus2012 in the WF container, you didn't delegate this subtype to bus2012? Why not?

Regards,

Martin

Former Member
0 Kudos

Hi Martin,

thanks for your answer.

I have BUS2012 in my WF container, and it is delegated to ZBUS2012 (so I was wrong to say it is ZBUS2012).

I also have the BO in the decision step (wondered if I was wrong - I made a copy of the standard decision task to add my own container element in the copy - this is the task I am now using).

So actually my bindings for this step is:

BUS2012 (delegated to ZBUS2012) --> BUS2012

is that right?

Unfortunatly it is still not working.

I also tried to clear the buffer (as it says so in others posts), checked the authorizations,etc.

Thanks a lot for you ideas, it is still my first workflow and I don´t know where else I could take a look to get some help.

Christoph

Edited by: Christoph on Jan 30, 2008 3:23 AM

Former Member
0 Kudos

Have you passed the Container element in the Secondary Method portion Generally you need to pass the container element that should be matching the type of BO for which the method is called.Also remember you keep one session free because the method will execute in another session.

Refresh the buffer and test it.

Thanks

Arghadip

former_member190818
Active Contributor
0 Kudos

Hi Christoph,

I think u have enabled Dialog in your method.

Go to workflow log and see what is the error ??

Former Member
0 Kudos

Hi,

thanks for your fast replie.

The problem is that I can´t really see a lot in the workflow log.

In the technical details of the log it is marked as red: EXECUTE_METHODS.

And in the method Z_CALL_ME23N I unabled the dialog workitem.

Don´t know why it is not working .

Regards

martin_nooteboom
Active Contributor
0 Kudos

Hi Christoph,

I think your method should be dialog. Check if you didn't reach the maximum number of sessions, so the new window couldn't open. Also does your method require any input parameters? If so I think you will have a problem providing them.

What do you want to achieve, because maybe a secondary method isn't the right way to go.

Regards,

Martin