Application Development 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: 

how to set parmeter rdisp/max_wprun_time dynamically in abap

mandeep_kauldhar
Participant
0 Kudos

Can we set this parmeter rdisp/max_wprun_time dynamically in abap for a particular program only? not all on instance profile level.

Mandeep

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

Maybe your question is how to avoid a time out in a given transaction or a custom program? If it's a custom program, you may add a COMMIT WORK which resets the time out counter (there's a SAP note about it, and many placesin the forum). In that case, place it at an adequate position so that it doesn't alter the program correctness.

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

You can change rdisp/max_wprun_time in a program, but it would apply to every current process.

(Look for FM TH_CHANGE_PARAMETER)

Else execute in background job or trick system with frequent call of a FM like SAPGUI_PROGRESS_INDICATOR (but you shouldn't)

Regards,

Raymond

0 Kudos

If i call a program/rfc from external interface will it be considered background process or simple dialog process?

Mandeep

0 Kudos

DIA type process - SM50 in Detail: Column Overview


There are the following work process types:

  • DIA Work processes to execute: 

    - UI requests

    - RFC requests

    - Internal requests

    UPD: process to execute update requests 
  • UP2 process to execute deferred update requests 
  • ENQ process to execute lock requests 
  • BTC process to execute background jobs 
  • SPO process to execute print requests 

Regards,

Raymond

Sandra_Rossi
Active Contributor
0 Kudos

Maybe your question is how to avoid a time out in a given transaction or a custom program? If it's a custom program, you may add a COMMIT WORK which resets the time out counter (there's a SAP note about it, and many placesin the forum). In that case, place it at an adequate position so that it doesn't alter the program correctness.

0 Kudos

Thanks Sandra, what if we have a SQL query taking longer than expected time and i want to avoid that?

Mandeep

0 Kudos

There are many ways to increase the performance of an SQL query. It's difficult to answer. If it's a custom program, you can adjust the ABAP + open sql query (hints, parallelization, split or join tables differently). In any case, you may also do things depending on your database possibilities (hint using base line for Oracle). Really too many possibilities...