SAP TH_START_V2 Function Module for









TH_START_V2 is a standard th start v2 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 th start v2 FM, simply by entering the name TH_START_V2 into the relevant SAP transaction such as SE37 or SE38.

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



Function TH_START_V2 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 'TH_START_V2'"
EXPORTING
* DATANF = 00000000 "
* DEBUG = ' ' "Loops, Current Loop Pass
* SERIAL = ' ' "
* SELALL = 'X' "
* RAISE_EVENT_ON_END = ' ' "
* NEXT_VBCONTEXT = '*' "
* MULTIPLEX = ' ' "SAP R/3 System, Current Language
* IGNORE_CONTEXT = 'X' "
* ZEITANF = 000000 "
* DATEND = 99990000 "
* ZEITEND = 000000 "
* USR = '*' "
* CLIENT = '*' "
* FUNC = ' ' "
* VBCONTEXT = '*' "Update context (Code-page, DB node, ..)
* MAXFBS = 0 "
.



IMPORTING Parameters details for TH_START_V2

DATANF -

Data type: VBPARAM-VBDATANF
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEBUG - Loops, Current Loop Pass

Data type: SY-LANGU
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SERIAL -

Data type: SY-LANGU
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELALL -

Data type: SY-LANGU
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RAISE_EVENT_ON_END -

Data type: SY-LANGU
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NEXT_VBCONTEXT -

Data type: VBHDR-VBCONTEXT
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MULTIPLEX - SAP R/3 System, Current Language

Data type: SY-LANGU
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IGNORE_CONTEXT -

Data type: SY-LANGU
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ZEITANF -

Data type: VBPARAM-VBZEITANF
Default: 000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATEND -

Data type: VBPARAM-VBDATEND
Default: 99990000
Optional: Yes
Call by Reference: No ( called with pass by value option)

ZEITEND -

Data type: VBPARAM-VBZEITEND
Default: 000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

USR -

Data type: VBPARAM-VBUSR
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT -

Data type: VBPARAM-VBMANDT
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FUNC -

Data type: VBPARAM-VBFUNC
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

VBCONTEXT - Update context (Code-page, DB node, ..)

Data type: VBHDR-VBCONTEXT
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAXFBS -

Data type: VBPARAM-VBMODCNT
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TH_START_V2 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_datanf  TYPE VBPARAM-VBDATANF, "   00000000
lv_debug  TYPE SY-LANGU, "   ' '
lv_serial  TYPE SY-LANGU, "   ' '
lv_selall  TYPE SY-LANGU, "   'X'
lv_raise_event_on_end  TYPE SY-LANGU, "   ' '
lv_next_vbcontext  TYPE VBHDR-VBCONTEXT, "   '*'
lv_multiplex  TYPE SY-LANGU, "   ' '
lv_ignore_context  TYPE SY-LANGU, "   'X'
lv_zeitanf  TYPE VBPARAM-VBZEITANF, "   000000
lv_datend  TYPE VBPARAM-VBDATEND, "   99990000
lv_zeitend  TYPE VBPARAM-VBZEITEND, "   000000
lv_usr  TYPE VBPARAM-VBUSR, "   '*'
lv_client  TYPE VBPARAM-VBMANDT, "   '*'
lv_func  TYPE VBPARAM-VBFUNC, "   ' '
lv_vbcontext  TYPE VBHDR-VBCONTEXT, "   '*'
lv_maxfbs  TYPE VBPARAM-VBMODCNT. "   0

  CALL FUNCTION 'TH_START_V2'  "
    EXPORTING
         DATANF = lv_datanf
         DEBUG = lv_debug
         SERIAL = lv_serial
         SELALL = lv_selall
         RAISE_EVENT_ON_END = lv_raise_event_on_end
         NEXT_VBCONTEXT = lv_next_vbcontext
         MULTIPLEX = lv_multiplex
         IGNORE_CONTEXT = lv_ignore_context
         ZEITANF = lv_zeitanf
         DATEND = lv_datend
         ZEITEND = lv_zeitend
         USR = lv_usr
         CLIENT = lv_client
         FUNC = lv_func
         VBCONTEXT = lv_vbcontext
         MAXFBS = lv_maxfbs
. " TH_START_V2




ABAP code using 7.40 inline data declarations to call FM TH_START_V2

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 VBDATANF FROM VBPARAM INTO @DATA(ld_datanf).
DATA(ld_datanf) = 00000000.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_debug).
DATA(ld_debug) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_serial).
DATA(ld_serial) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_selall).
DATA(ld_selall) = 'X'.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_raise_event_on_end).
DATA(ld_raise_event_on_end) = ' '.
 
"SELECT single VBCONTEXT FROM VBHDR INTO @DATA(ld_next_vbcontext).
DATA(ld_next_vbcontext) = '*'.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_multiplex).
DATA(ld_multiplex) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_ignore_context).
DATA(ld_ignore_context) = 'X'.
 
"SELECT single VBZEITANF FROM VBPARAM INTO @DATA(ld_zeitanf).
DATA(ld_zeitanf) = 000000.
 
"SELECT single VBDATEND FROM VBPARAM INTO @DATA(ld_datend).
DATA(ld_datend) = 99990000.
 
"SELECT single VBZEITEND FROM VBPARAM INTO @DATA(ld_zeitend).
DATA(ld_zeitend) = 000000.
 
"SELECT single VBUSR FROM VBPARAM INTO @DATA(ld_usr).
DATA(ld_usr) = '*'.
 
"SELECT single VBMANDT FROM VBPARAM INTO @DATA(ld_client).
DATA(ld_client) = '*'.
 
"SELECT single VBFUNC FROM VBPARAM INTO @DATA(ld_func).
DATA(ld_func) = ' '.
 
"SELECT single VBCONTEXT FROM VBHDR INTO @DATA(ld_vbcontext).
DATA(ld_vbcontext) = '*'.
 
"SELECT single VBMODCNT FROM VBPARAM INTO @DATA(ld_maxfbs).
 


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!