SAP S_TWB_A_ATTRIBUTES_METHODS Function Module for









S_TWB_A_ATTRIBUTES_METHODS is a standard s twb a attributes methods 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 a attributes methods FM, simply by entering the name S_TWB_A_ATTRIBUTES_METHODS into the relevant SAP transaction such as SE37 or SE38.

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



Function S_TWB_A_ATTRIBUTES_METHODS 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_A_ATTRIBUTES_METHODS'"
EXPORTING
* IV_ACTION = 'CP' "
* IV_TRANS_FORCED_MODE = ' ' "
* IV_DIALOGUE = 'X' "
IV_TC_NAME = "
* IV_TC_TYPE = "
* IV_TC_TARGET = "
* IV_ORDER = "Transport Request
* IV_TASK = "Task
* IV_LANGUAGE = SY-LANGU "
* IV_SUPPRESS_LANGUAGE_CHECK = ' ' "

IMPORTING
EV_TC_TARGET = "
EV_ORDER = "Selected order
EV_TASK = "Selected Task

EXCEPTIONS
NO_TESTCASE_GIVEN = 1 TESTCASE_NON_EXISTING = 2 INVALID_CHARACTERS = 3 NO_TARGET_GIVEN = 4 ENQUEUE_ERROR = 5 DEQUEUE_ERROR = 6 TRANSPORT_OTHER_ERROR = 7 USER_CANCEL = 8
.



IMPORTING Parameters details for S_TWB_A_ATTRIBUTES_METHODS

IV_ACTION -

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

IV_TRANS_FORCED_MODE -

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

IV_DIALOGUE -

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

IV_TC_NAME -

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

IV_TC_TYPE -

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

IV_TC_TARGET -

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

IV_ORDER - Transport Request

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

IV_TASK - Task

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

IV_LANGUAGE -

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

IV_SUPPRESS_LANGUAGE_CHECK -

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

EXPORTING Parameters details for S_TWB_A_ATTRIBUTES_METHODS

EV_TC_TARGET -

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

EV_ORDER - Selected order

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

EV_TASK - Selected Task

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

EXCEPTIONS details

NO_TESTCASE_GIVEN -

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

TESTCASE_NON_EXISTING -

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

INVALID_CHARACTERS -

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

NO_TARGET_GIVEN -

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

ENQUEUE_ERROR - Locking Error

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

DEQUEUE_ERROR - Error Unlocking

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

TRANSPORT_OTHER_ERROR -

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

USER_CANCEL - Cancellation by user

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

Copy and paste ABAP code example for S_TWB_A_ATTRIBUTES_METHODS 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_action  TYPE CHAR2, "   'CP'
lv_ev_tc_target  TYPE TWBAT_HEAD-NAME, "   
lv_no_testcase_given  TYPE TWBAT_HEAD, "   
lv_iv_trans_forced_mode  TYPE CHAR1, "   SPACE
lv_ev_order  TYPE E070-TRKORR, "   
lv_iv_dialogue  TYPE CHAR1, "   'X'
lv_testcase_non_existing  TYPE CHAR1, "   
lv_ev_task  TYPE E070-TRKORR, "   
lv_iv_tc_name  TYPE TWBAT_HEAD-NAME, "   
lv_invalid_characters  TYPE TWBAT_HEAD, "   
lv_iv_tc_type  TYPE TWBAT_HEAD-TYPE, "   
lv_no_target_given  TYPE TWBAT_HEAD, "   
lv_iv_tc_target  TYPE TWBAT_HEAD-NAME, "   
lv_enqueue_error  TYPE TWBAT_HEAD, "   
lv_iv_order  TYPE E070-TRKORR, "   
lv_dequeue_error  TYPE E070, "   
lv_iv_task  TYPE E070-TRKORR, "   
lv_transport_other_error  TYPE E070, "   
lv_iv_language  TYPE T002-SPRAS, "   SY-LANGU
lv_user_cancel  TYPE T002, "   
lv_iv_suppress_language_check  TYPE CHAR1. "   SPACE

  CALL FUNCTION 'S_TWB_A_ATTRIBUTES_METHODS'  "
    EXPORTING
         IV_ACTION = lv_iv_action
         IV_TRANS_FORCED_MODE = lv_iv_trans_forced_mode
         IV_DIALOGUE = lv_iv_dialogue
         IV_TC_NAME = lv_iv_tc_name
         IV_TC_TYPE = lv_iv_tc_type
         IV_TC_TARGET = lv_iv_tc_target
         IV_ORDER = lv_iv_order
         IV_TASK = lv_iv_task
         IV_LANGUAGE = lv_iv_language
         IV_SUPPRESS_LANGUAGE_CHECK = lv_iv_suppress_language_check
    IMPORTING
         EV_TC_TARGET = lv_ev_tc_target
         EV_ORDER = lv_ev_order
         EV_TASK = lv_ev_task
    EXCEPTIONS
        NO_TESTCASE_GIVEN = 1
        TESTCASE_NON_EXISTING = 2
        INVALID_CHARACTERS = 3
        NO_TARGET_GIVEN = 4
        ENQUEUE_ERROR = 5
        DEQUEUE_ERROR = 6
        TRANSPORT_OTHER_ERROR = 7
        USER_CANCEL = 8
. " S_TWB_A_ATTRIBUTES_METHODS




ABAP code using 7.40 inline data declarations to call FM S_TWB_A_ATTRIBUTES_METHODS

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_action) = 'CP'.
 
"SELECT single NAME FROM TWBAT_HEAD INTO @DATA(ld_ev_tc_target).
 
 
DATA(ld_iv_trans_forced_mode) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_ev_order).
 
DATA(ld_iv_dialogue) = 'X'.
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_ev_task).
 
"SELECT single NAME FROM TWBAT_HEAD INTO @DATA(ld_iv_tc_name).
 
 
"SELECT single TYPE FROM TWBAT_HEAD INTO @DATA(ld_iv_tc_type).
 
 
"SELECT single NAME FROM TWBAT_HEAD INTO @DATA(ld_iv_tc_target).
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_order).
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_task).
 
 
"SELECT single SPRAS FROM T002 INTO @DATA(ld_iv_language).
DATA(ld_iv_language) = SY-LANGU.
 
 
DATA(ld_iv_suppress_language_check) = ' '.
 


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!