SAP S_TWB_U_FILL_USER_PARAMETERS Function Module for









S_TWB_U_FILL_USER_PARAMETERS is a standard s twb u fill user parameters 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 s twb u fill user parameters FM, simply by entering the name S_TWB_U_FILL_USER_PARAMETERS into the relevant SAP transaction such as SE37 or SE38.

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



Function S_TWB_U_FILL_USER_PARAMETERS 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 'S_TWB_U_FILL_USER_PARAMETERS'"
EXPORTING
* TWB_APPL = 'TWB' "Not More Closely Defined Area, Possibly Used for Patchlevels
* COMPONENT = ' ' "
* DEV_CLASS = ' ' "
* TR_ORDER = ' ' "
* PROJECT_ID = ' ' "Project Name
* SOLUTION_ID = ' ' "
* SY_ROLE = 'T' "System Role
* DISPLAY_TRANSACTION = "General Flag
* PURPOSE = "
* LANGUAGE = SY-LANGU "
* TCODE = SY-TCODE "
FUNCTION_CODE = "
* STRUCTURE_ID = "GUID for Structure
STRUCTURE_TYPE = "Structure type
* FILTER_ID = "GUID for Structure
* STATUS_ADM = 'PA' "
* MODE = ' ' "

TABLES
USER_PARAMETERS = "
.



IMPORTING Parameters details for S_TWB_U_FILL_USER_PARAMETERS

TWB_APPL - Not More Closely Defined Area, Possibly Used for Patchlevels

Data type: CHAR4
Default: 'TWB'
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPONENT -

Data type: TNODE02A-COMPONENT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEV_CLASS -

Data type: KO200-DEVCLASS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TR_ORDER -

Data type: KO200-TRKORR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROJECT_ID - Project Name

Data type: PROJECT_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SOLUTION_ID -

Data type: TWB_SOLUTION_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SY_ROLE - System Role

Data type: TWB_SY_ROLE
Default: 'T'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY_TRANSACTION - General Flag

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

PURPOSE -

Data type: TWB_PURPOSE
Optional: Yes
Call by Reference: Yes

LANGUAGE -

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

TCODE -

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

FUNCTION_CODE -

Data type: SY-UCOMM
Optional: No
Call by Reference: No ( called with pass by value option)

STRUCTURE_ID - GUID for Structure

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

STRUCTURE_TYPE - Structure type

Data type: HIER_TREET
Optional: No
Call by Reference: No ( called with pass by value option)

FILTER_ID - GUID for Structure

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

STATUS_ADM -

Data type: STWB_SET-ADM_STAT
Default: 'PA'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE -

Data type: TWB_STRUC-TWBMODE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for S_TWB_U_FILL_USER_PARAMETERS

USER_PARAMETERS -

Data type: STREEPROP
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for S_TWB_U_FILL_USER_PARAMETERS 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_twb_appl  TYPE CHAR4, "   'TWB'
lt_user_parameters  TYPE STANDARD TABLE OF STREEPROP, "   
lv_component  TYPE TNODE02A-COMPONENT, "   SPACE
lv_dev_class  TYPE KO200-DEVCLASS, "   SPACE
lv_tr_order  TYPE KO200-TRKORR, "   SPACE
lv_project_id  TYPE PROJECT_ID, "   SPACE
lv_solution_id  TYPE TWB_SOLUTION_ID, "   SPACE
lv_sy_role  TYPE TWB_SY_ROLE, "   'T'
lv_display_transaction  TYPE FLAG, "   
lv_purpose  TYPE TWB_PURPOSE, "   
lv_language  TYPE T002-SPRAS, "   SY-LANGU
lv_tcode  TYPE SY-TCODE, "   SY-TCODE
lv_function_code  TYPE SY-UCOMM, "   
lv_structure_id  TYPE HIER_TREEG, "   
lv_structure_type  TYPE HIER_TREET, "   
lv_filter_id  TYPE HIER_TREEG, "   
lv_status_adm  TYPE STWB_SET-ADM_STAT, "   'PA'
lv_mode  TYPE TWB_STRUC-TWBMODE. "   SPACE

  CALL FUNCTION 'S_TWB_U_FILL_USER_PARAMETERS'  "
    EXPORTING
         TWB_APPL = lv_twb_appl
         COMPONENT = lv_component
         DEV_CLASS = lv_dev_class
         TR_ORDER = lv_tr_order
         PROJECT_ID = lv_project_id
         SOLUTION_ID = lv_solution_id
         SY_ROLE = lv_sy_role
         DISPLAY_TRANSACTION = lv_display_transaction
         PURPOSE = lv_purpose
         LANGUAGE = lv_language
         TCODE = lv_tcode
         FUNCTION_CODE = lv_function_code
         STRUCTURE_ID = lv_structure_id
         STRUCTURE_TYPE = lv_structure_type
         FILTER_ID = lv_filter_id
         STATUS_ADM = lv_status_adm
         MODE = lv_mode
    TABLES
         USER_PARAMETERS = lt_user_parameters
. " S_TWB_U_FILL_USER_PARAMETERS




ABAP code using 7.40 inline data declarations to call FM S_TWB_U_FILL_USER_PARAMETERS

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.

DATA(ld_twb_appl) = 'TWB'.
 
 
"SELECT single COMPONENT FROM TNODE02A INTO @DATA(ld_component).
DATA(ld_component) = ' '.
 
"SELECT single DEVCLASS FROM KO200 INTO @DATA(ld_dev_class).
DATA(ld_dev_class) = ' '.
 
"SELECT single TRKORR FROM KO200 INTO @DATA(ld_tr_order).
DATA(ld_tr_order) = ' '.
 
DATA(ld_project_id) = ' '.
 
DATA(ld_solution_id) = ' '.
 
DATA(ld_sy_role) = 'T'.
 
 
 
"SELECT single SPRAS FROM T002 INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
"SELECT single TCODE FROM SY INTO @DATA(ld_tcode).
DATA(ld_tcode) = SY-TCODE.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_function_code).
 
 
 
 
"SELECT single ADM_STAT FROM STWB_SET INTO @DATA(ld_status_adm).
DATA(ld_status_adm) = 'PA'.
 
"SELECT single TWBMODE FROM TWB_STRUC INTO @DATA(ld_mode).
DATA(ld_mode) = ' '.
 


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!