Skip to Content
avatar image
Former Member

Max number of sessions reached with a BAPI

Hello experts,

i'm facing a problem with BAPI_PRODORD_SET_DELETION_FLAG; if i execute this bapi using as server group COWORK_BAPI with 99 work process max value, for multiple production orders (>6) system return several pop up related to "max number of session reached". Is there a solution to avoid that pop up are displayed once BAPI is executed? Is this problem related to parallelization of the process? If yes, how can i proceed to correctly set it?

Thanks in advance,


Add comment
10|10000 characters needed characters exceeded

  • Antonio,

    Refer the Documentation of this FM using T Code BAPI and relate it to the parameters you are passing especially to WorkProcess Group and WorkProcess Max to get a lead.Also kindly update this thread if you find the root cause and solution for this so that it will be helpfull for all of us.Thanks.


  • Get RSS Feed

2 Answers

  • May 09, 2017 at 02:56 PM

    Hello Antonio

    Generally, when you use parallel processing to call a function module, it is called with a RFC connection and it triggers a dialog process, which means that we have the same restrictions of the max number of sessions for the users.

    Generally, the system admin/basis can change the max number of sessions for the users in transaction RZ10.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Caetano,

      are you referring to the parameter rdisp/max_alt_modes?

      I'd avoid to change this parameter because in this case if a change default value (6) users will be able to create new SAP sessions. Is there any solution on ABAP code in order to avoid that pop-up appear?

      Furthermore, could you tell me how profiles listed into RZ10 are linked to RFC group servers listed into RZ12?

      Kind regards,


  • May 09, 2017 at 06:41 PM

    How many maximum work processes did you define in your RFC group? (transaction RZ12)

    Add comment
    10|10000 characters needed characters exceeded

    • Not sure to understand your answer. This BAPI is quite uncommon, whatever how it's triggered, as it dispatches the processing over function modules started via pRFC (I think, after looking at its code). The "server group" and the "max number of workprocesses" are 2 importing parameters of this BAPI.