SAP S_TWB_U_F4_PACKAGE Function Module for









S_TWB_U_F4_PACKAGE is a standard s twb u f4 package 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 f4 package FM, simply by entering the name S_TWB_U_F4_PACKAGE 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:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function S_TWB_U_F4_PACKAGE 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_F4_PACKAGE'"
EXPORTING
* IV_LANGUAGE = SY-LANGU "
IV_PLAN_ID = "
* IV_TITLE = "
* IV_MULTIPLE_CHOICE = ' ' "

IMPORTING
EV_PACK_ID = "
EV_EXIT_BY_USER = "

TABLES
* IT_LIST_COMMENTARY = "
* IT_PACK_IDS = "
* ET_PACK_IDS = "

EXCEPTIONS
STRUCTURE_NOT_FOUND = 1 WRONG_STRUCTURE_TYPE = 2
.



IMPORTING Parameters details for S_TWB_U_F4_PACKAGE

IV_LANGUAGE -

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

IV_PLAN_ID -

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

IV_TITLE -

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

IV_MULTIPLE_CHOICE -

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

EXPORTING Parameters details for S_TWB_U_F4_PACKAGE

EV_PACK_ID -

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

EV_EXIT_BY_USER -

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

TABLES Parameters details for S_TWB_U_F4_PACKAGE

IT_LIST_COMMENTARY -

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

IT_PACK_IDS -

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

ET_PACK_IDS -

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

EXCEPTIONS details

STRUCTURE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

WRONG_STRUCTURE_TYPE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for S_TWB_U_F4_PACKAGE 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_ev_pack_id  TYPE HIER_TREEG, "   
lv_iv_language  TYPE SYLANGU, "   SY-LANGU
lt_it_list_commentary  TYPE STANDARD TABLE OF SLIS_T_LISTHEADER, "   
lv_structure_not_found  TYPE SLIS_T_LISTHEADER, "   
lv_iv_plan_id  TYPE HIER_TREEG, "   
lt_it_pack_ids  TYPE STANDARD TABLE OF TWB_EX_STRUCTURE_IDS, "   
lv_ev_exit_by_user  TYPE SLIS_EXIT_BY_USER, "   
lv_wrong_structure_type  TYPE SLIS_EXIT_BY_USER, "   
lv_iv_title  TYPE SYTITLE, "   
lt_et_pack_ids  TYPE STANDARD TABLE OF TWB_EX_STRUCTURE_IDS, "   
lv_iv_multiple_choice  TYPE HIER_YESNO. "   SPACE

  CALL FUNCTION 'S_TWB_U_F4_PACKAGE'  "
    EXPORTING
         IV_LANGUAGE = lv_iv_language
         IV_PLAN_ID = lv_iv_plan_id
         IV_TITLE = lv_iv_title
         IV_MULTIPLE_CHOICE = lv_iv_multiple_choice
    IMPORTING
         EV_PACK_ID = lv_ev_pack_id
         EV_EXIT_BY_USER = lv_ev_exit_by_user
    TABLES
         IT_LIST_COMMENTARY = lt_it_list_commentary
         IT_PACK_IDS = lt_it_pack_ids
         ET_PACK_IDS = lt_et_pack_ids
    EXCEPTIONS
        STRUCTURE_NOT_FOUND = 1
        WRONG_STRUCTURE_TYPE = 2
. " S_TWB_U_F4_PACKAGE




ABAP code using 7.40 inline data declarations to call FM S_TWB_U_F4_PACKAGE

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_iv_language) = SY-LANGU.
 
 
 
 
 
 
 
 
 
DATA(ld_iv_multiple_choice) = ' '.
 


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!