SAP Function Modules

TB_DEAL_FIX_POST SAP Function module - Fixing and Trigger of Posting for Transferred Flow for a Transaction







TB_DEAL_FIX_POST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TB_DEAL_FIX_POST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TB32NEU
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TB_DEAL_FIX_POST - TB DEAL FIX POST





CALL FUNCTION 'TB_DEAL_FIX_POST' "Fixing and Trigger of Posting for Transferred Flow for a Transaction
  EXPORTING
    control_data =              " vtbposting    Control Data
    deal =                      " vtbfha        Transaction
    local_currency =            " t001-waers    Local Currency
    protocol_handler =          " cl_protocol_handler_trp  Protocol Manager
  IMPORTING
    error_flg =                 " boolean       Errors occurred!
  TABLES
    activities =                " vtbfhazu      Vorgänge zu den Bewegungen - eingehend
    flows =                     " vtbfhapo      Bewegungen - eingehend
    messages =                  " vtbmsgpost    Treasury: Fehlermeldungen der Buchungsschnittstelle
    .  "  TB_DEAL_FIX_POST

ABAP code example for Function Module TB_DEAL_FIX_POST





The ABAP code below is a full code listing to execute function module TB_DEAL_FIX_POST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_error_flg  TYPE BOOLEAN ,
it_activities  TYPE STANDARD TABLE OF VTBFHAZU,"TABLES PARAM
wa_activities  LIKE LINE OF it_activities ,
it_flows  TYPE STANDARD TABLE OF VTBFHAPO,"TABLES PARAM
wa_flows  LIKE LINE OF it_flows ,
it_messages  TYPE STANDARD TABLE OF VTBMSGPOST,"TABLES PARAM
wa_messages  LIKE LINE OF it_messages .

DATA(ld_control_data) = 'Check type of data required'.
DATA(ld_deal) = 'Check type of data required'.

SELECT single WAERS
FROM T001
INTO @DATA(ld_local_currency).

DATA(ld_protocol_handler) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_activities to it_activities.

"populate fields of struture and append to itab
append wa_flows to it_flows.

"populate fields of struture and append to itab
append wa_messages to it_messages. . CALL FUNCTION 'TB_DEAL_FIX_POST' EXPORTING control_data = ld_control_data deal = ld_deal local_currency = ld_local_currency protocol_handler = ld_protocol_handler IMPORTING error_flg = ld_error_flg TABLES activities = it_activities flows = it_flows messages = it_messages . " TB_DEAL_FIX_POST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_error_flg  TYPE BOOLEAN ,
ld_control_data  TYPE VTBPOSTING ,
it_activities  TYPE STANDARD TABLE OF VTBFHAZU ,
wa_activities  LIKE LINE OF it_activities,
ld_deal  TYPE VTBFHA ,
it_flows  TYPE STANDARD TABLE OF VTBFHAPO ,
wa_flows  LIKE LINE OF it_flows,
ld_local_currency  TYPE T001-WAERS ,
it_messages  TYPE STANDARD TABLE OF VTBMSGPOST ,
wa_messages  LIKE LINE OF it_messages,
ld_protocol_handler  TYPE CL_PROTOCOL_HANDLER_TRP .

ld_control_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_activities to it_activities.
ld_deal = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_flows to it_flows.

SELECT single WAERS
FROM T001
INTO ld_local_currency.


"populate fields of struture and append to itab
append wa_messages to it_messages.
ld_protocol_handler = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TB_DEAL_FIX_POST or its description.