cancel
Showing results for 
Search instead for 
Did you mean: 

issue with custom object method with module screen

Former Member
0 Kudos

Hi,

I have developed custom object in SWO1 where i created method which is calling module pool program. I used 'BACK' option on screen from menu apart from execute.

User gets the workitem with above method in SAP inbox. On opening the work item, it is opening the module pool screen and when user selects the execute option, work item gets processed and work item disappears from SAP inbox.

Issue is when user presses the back button on called module pool program screen, it is not coming out of program and module pool program screen stays on screen. I checked object method code in debug mode and code is getting  processed after module screen call, but after the ENDMETHOD, it is again displaying the screen by SAP code. When i tested module pool program stand alone, it is working fine and code is leaving the program at press of BACK button.

Please let me know if i am missing something.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

I042439
Employee
Employee
0 Kudos

Hi Amir

Can you let us know:

1) Code in the BO Method to start the Module pool

2) What lines have you coded  for the BACK Action?

3) What lines of code exists after the call to Module Pool in the BO Method (before the END_METHOD statement)


Former Member
0 Kudos

Hi Modak,

1. I used export import memory and used call transaction to call the module pool.

2. I tried LEAVE PROGRAM, and i tested with LEAVE TO SCREEN 0 also in PAI of module pool. Also i tested with makig it at EXIT-COMMAND and on normal PAI  module also.

At both places the program is coming out of program to line called after the call transaction in method.

3. After call transaction and before ENDMEHOD, i am using logic to read table and setting up export parameters using SWC SET ELEMENT.

Thanks

Aamir

I042439
Employee
Employee
0 Kudos

Hi Aamir

this is pretty tricky....hmm!!

Code seems to be correct!

Just trying to find other possibilities ...listing them as they come in my mind ... may not be true in your case ...but still..

1) is the method defined to have "Result" Parameters? that is with a specific branch in the workflow for each result?

2) Is it that step is in a loop and for the next Work item also the same user is the agent - in SBWP, if you execute a WI and you are the agent of the next item too - it opens that immediately. So here, you click Back, the workflow goes to the next loop pass and generates the next WI , opens the same in the SBWP screen

All the best

regards,

Modak

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

can you check pbi . in there you write code for back option.

Regards,

gopi