SAP Function Modules

FTRADE_HEADER_DATA_MNT_TS_PBO SAP Function module







FTRADE_HEADER_DATA_MNT_TS_PBO 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 FTRADE_HEADER_DATA_MNT_TS_PBO into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FTRADE_HEADER_DATA_MNT_TS_PBO - FTRADE HEADER DATA MNT TS PBO





CALL FUNCTION 'FTRADE_HEADER_DATA_MNT_TS_PBO' "
  EXPORTING
    i_ftrade_number =           " eikp-exnum
    i_home_country =            " t001w-land1
*   i_partner_country = ' '     " kna1-land1
*   i_partner_name = ' '        " kna1-name1
*   i_partner_number = ' '      " kna1-kunnr
*   i_exporter_number = ' '     " ekko-lifnr
*   i_exporter_plant = ' '      " t001w-werks
    i_ft_basis =                " eikp-ahbas
*   i_stat_complete_mandatory = ' '  " c
    i_transaction_type =        " t180-trtyp    Transaction/Event Type
*   i_function_code = '    '    " sy-ucomm      Function Code
*   i_function_code_default = '    '  " sy-ucomm
*   i_ft_transaction_call = SPACE  " c
*   i_sd_doc_cat_dl =           " vbtyp         Sales Document Category
* TABLES
*   i_t_xvbrp =                 " vbrpvb        Billing items
    .  "  FTRADE_HEADER_DATA_MNT_TS_PBO

ABAP code example for Function Module FTRADE_HEADER_DATA_MNT_TS_PBO





The ABAP code below is a full code listing to execute function module FTRADE_HEADER_DATA_MNT_TS_PBO 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:
it_i_t_xvbrp  TYPE STANDARD TABLE OF VBRPVB,"TABLES PARAM
wa_i_t_xvbrp  LIKE LINE OF it_i_t_xvbrp .


SELECT single EXNUM
FROM EIKP
INTO @DATA(ld_i_ftrade_number).


SELECT single LAND1
FROM T001W
INTO @DATA(ld_i_home_country).


SELECT single LAND1
FROM KNA1
INTO @DATA(ld_i_partner_country).


SELECT single NAME1
FROM KNA1
INTO @DATA(ld_i_partner_name).


SELECT single KUNNR
FROM KNA1
INTO @DATA(ld_i_partner_number).


SELECT single LIFNR
FROM EKKO
INTO @DATA(ld_i_exporter_number).


SELECT single WERKS
FROM T001W
INTO @DATA(ld_i_exporter_plant).


SELECT single AHBAS
FROM EIKP
INTO @DATA(ld_i_ft_basis).

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

SELECT single TRTYP
FROM T180
INTO @DATA(ld_i_transaction_type).

DATA(ld_i_function_code) = 'some text here'.
DATA(ld_i_function_code_default) = 'some text here'.
DATA(ld_i_ft_transaction_call) = 'some text here'.
DATA(ld_i_sd_doc_cat_dl) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_t_xvbrp to it_i_t_xvbrp. . CALL FUNCTION 'FTRADE_HEADER_DATA_MNT_TS_PBO' EXPORTING i_ftrade_number = ld_i_ftrade_number i_home_country = ld_i_home_country * i_partner_country = ld_i_partner_country * i_partner_name = ld_i_partner_name * i_partner_number = ld_i_partner_number * i_exporter_number = ld_i_exporter_number * i_exporter_plant = ld_i_exporter_plant i_ft_basis = ld_i_ft_basis * i_stat_complete_mandatory = ld_i_stat_complete_mandatory i_transaction_type = ld_i_transaction_type * i_function_code = ld_i_function_code * i_function_code_default = ld_i_function_code_default * i_ft_transaction_call = ld_i_ft_transaction_call * i_sd_doc_cat_dl = ld_i_sd_doc_cat_dl * TABLES * i_t_xvbrp = it_i_t_xvbrp . " FTRADE_HEADER_DATA_MNT_TS_PBO
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_i_ftrade_number  TYPE EIKP-EXNUM ,
it_i_t_xvbrp  TYPE STANDARD TABLE OF VBRPVB ,
wa_i_t_xvbrp  LIKE LINE OF it_i_t_xvbrp,
ld_i_home_country  TYPE T001W-LAND1 ,
ld_i_partner_country  TYPE KNA1-LAND1 ,
ld_i_partner_name  TYPE KNA1-NAME1 ,
ld_i_partner_number  TYPE KNA1-KUNNR ,
ld_i_exporter_number  TYPE EKKO-LIFNR ,
ld_i_exporter_plant  TYPE T001W-WERKS ,
ld_i_ft_basis  TYPE EIKP-AHBAS ,
ld_i_stat_complete_mandatory  TYPE C ,
ld_i_transaction_type  TYPE T180-TRTYP ,
ld_i_function_code  TYPE SY-UCOMM ,
ld_i_function_code_default  TYPE SY-UCOMM ,
ld_i_ft_transaction_call  TYPE C ,
ld_i_sd_doc_cat_dl  TYPE VBTYP .


SELECT single EXNUM
FROM EIKP
INTO ld_i_ftrade_number.


"populate fields of struture and append to itab
append wa_i_t_xvbrp to it_i_t_xvbrp.

SELECT single LAND1
FROM T001W
INTO ld_i_home_country.


SELECT single LAND1
FROM KNA1
INTO ld_i_partner_country.


SELECT single NAME1
FROM KNA1
INTO ld_i_partner_name.


SELECT single KUNNR
FROM KNA1
INTO ld_i_partner_number.


SELECT single LIFNR
FROM EKKO
INTO ld_i_exporter_number.


SELECT single WERKS
FROM T001W
INTO ld_i_exporter_plant.


SELECT single AHBAS
FROM EIKP
INTO ld_i_ft_basis.

ld_i_stat_complete_mandatory = 'some text here'.

SELECT single TRTYP
FROM T180
INTO ld_i_transaction_type.

ld_i_function_code = 'some text here'.
ld_i_function_code_default = 'some text here'.
ld_i_ft_transaction_call = 'some text here'.
ld_i_sd_doc_cat_dl = 'some text here'.

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 FTRADE_HEADER_DATA_MNT_TS_PBO or its description.