SAP SDOK_QUEUE_SERVE_P1 Function Module for









SDOK_QUEUE_SERVE_P1 is a standard sdok queue serve p1 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sdok queue serve p1 FM, simply by entering the name SDOK_QUEUE_SERVE_P1 into the relevant SAP transaction such as SE37 or SE38.

Function Group: SDOK_QUEUEING_BTC_ACTIVITY
Program Name: SAPLSDOK_QUEUEING_BTC_ACTIVITY
Main Program: SAPLSDOK_QUEUEING_BTC_ACTIVITY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SDOK_QUEUE_SERVE_P1 pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SDOK_QUEUE_SERVE_P1'"
EXPORTING
IV_EVENTID = "
IV_EVENTPARM = "
IV_EXTERNAL_PROGRAM_ACTIVE = "
IV_JOBCOUNT = "
IV_JOBNAME = "
IV_STEPCOUNT = "
IS_JOBCONTROL = "

EXCEPTIONS
EX_NEXT_ACTIVITY = 1
.



IMPORTING Parameters details for SDOK_QUEUE_SERVE_P1

IV_EVENTID -

Data type: TBTCM-EVENTID
Optional: No
Call by Reference: Yes

IV_EVENTPARM -

Data type: TBTCM-EVENTPARM
Optional: No
Call by Reference: Yes

IV_EXTERNAL_PROGRAM_ACTIVE -

Data type: TBTCM-XPGACTIVE
Optional: No
Call by Reference: Yes

IV_JOBCOUNT -

Data type: TBTCM-JOBCOUNT
Optional: No
Call by Reference: Yes

IV_JOBNAME -

Data type: TBTCM-JOBNAME
Optional: No
Call by Reference: Yes

IV_STEPCOUNT -

Data type: TBTCM-STEPCOUNT
Optional: No
Call by Reference: Yes

IS_JOBCONTROL -

Data type: SDOK_Q_BTCENVIRO
Optional: No
Call by Reference: Yes

EXCEPTIONS details

EX_NEXT_ACTIVITY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SDOK_QUEUE_SERVE_P1 Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_iv_eventid  TYPE TBTCM-EVENTID, "   
lv_ex_next_activity  TYPE TBTCM, "   
lv_iv_eventparm  TYPE TBTCM-EVENTPARM, "   
lv_iv_external_program_active  TYPE TBTCM-XPGACTIVE, "   
lv_iv_jobcount  TYPE TBTCM-JOBCOUNT, "   
lv_iv_jobname  TYPE TBTCM-JOBNAME, "   
lv_iv_stepcount  TYPE TBTCM-STEPCOUNT, "   
lv_is_jobcontrol  TYPE SDOK_Q_BTCENVIRO. "   

  CALL FUNCTION 'SDOK_QUEUE_SERVE_P1'  "
    EXPORTING
         IV_EVENTID = lv_iv_eventid
         IV_EVENTPARM = lv_iv_eventparm
         IV_EXTERNAL_PROGRAM_ACTIVE = lv_iv_external_program_active
         IV_JOBCOUNT = lv_iv_jobcount
         IV_JOBNAME = lv_iv_jobname
         IV_STEPCOUNT = lv_iv_stepcount
         IS_JOBCONTROL = lv_is_jobcontrol
    EXCEPTIONS
        EX_NEXT_ACTIVITY = 1
. " SDOK_QUEUE_SERVE_P1




ABAP code using 7.40 inline data declarations to call FM SDOK_QUEUE_SERVE_P1

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single EVENTID FROM TBTCM INTO @DATA(ld_iv_eventid).
 
 
"SELECT single EVENTPARM FROM TBTCM INTO @DATA(ld_iv_eventparm).
 
"SELECT single XPGACTIVE FROM TBTCM INTO @DATA(ld_iv_external_program_active).
 
"SELECT single JOBCOUNT FROM TBTCM INTO @DATA(ld_iv_jobcount).
 
"SELECT single JOBNAME FROM TBTCM INTO @DATA(ld_iv_jobname).
 
"SELECT single STEPCOUNT FROM TBTCM INTO @DATA(ld_iv_stepcount).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!