SAP Function Modules

RV_FTT_GOV_ISSUE_LOG_SEL_REP SAP Function module







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

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


Pattern for FM RV_FTT_GOV_ISSUE_LOG_SEL_REP - RV FTT GOV ISSUE LOG SEL REP





CALL FUNCTION 'RV_FTT_GOV_ISSUE_LOG_SEL_REP' "
  EXPORTING
    flow_of_goods =             " veiav-arrivdepa  Goods direction
    flg_simulation =            "               Simulation Mode
    reporting_type =            " v50g_i_reporting_type  Message Type
    log_type =                  "               Log type
    reporting_month =           " veiav-datummona  Reporting Month
    reporting_year =            " veiav-datumjahr  Reporting Year
*   variant =                   " disvariant    Layout
*   country =                   " t005-intca    Country of Declaration
*   calling_program =           " sy-repid
*   call_from_enjoy = SPACE     "
*   sed_servagent =             " vesed-servagent  NAFTA: Definition of data record for exporter/fwd. agent
*   i_start_screen =            "
*   i_refr_selection_log = SPACE  "
* TABLES
*   selection_log =             " v50g_selection_log
*   selection_log_open =        " v50g_selection_log_open
*   incompletion_log =          " v50g_incompletion_log  No longer used
*   incompletion_data_header =   " v50g_incompletion_data
*   incompletion_data_item =    " v50g_incompletion_data
*   status_exclusion =          " v50g_extab
  EXCEPTIONS
    WRONG_REPORTING_TYPE = 1    "
    .  "  RV_FTT_GOV_ISSUE_LOG_SEL_REP

ABAP code example for Function Module RV_FTT_GOV_ISSUE_LOG_SEL_REP





The ABAP code below is a full code listing to execute function module RV_FTT_GOV_ISSUE_LOG_SEL_REP 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_selection_log  TYPE STANDARD TABLE OF V50G_SELECTION_LOG,"TABLES PARAM
wa_selection_log  LIKE LINE OF it_selection_log ,
it_selection_log_open  TYPE STANDARD TABLE OF V50G_SELECTION_LOG_OPEN,"TABLES PARAM
wa_selection_log_open  LIKE LINE OF it_selection_log_open ,
it_incompletion_log  TYPE STANDARD TABLE OF V50G_INCOMPLETION_LOG,"TABLES PARAM
wa_incompletion_log  LIKE LINE OF it_incompletion_log ,
it_incompletion_data_header  TYPE STANDARD TABLE OF V50G_INCOMPLETION_DATA,"TABLES PARAM
wa_incompletion_data_header  LIKE LINE OF it_incompletion_data_header ,
it_incompletion_data_item  TYPE STANDARD TABLE OF V50G_INCOMPLETION_DATA,"TABLES PARAM
wa_incompletion_data_item  LIKE LINE OF it_incompletion_data_item ,
it_status_exclusion  TYPE STANDARD TABLE OF V50G_EXTAB,"TABLES PARAM
wa_status_exclusion  LIKE LINE OF it_status_exclusion .


SELECT single ARRIVDEPA
FROM VEIAV
INTO @DATA(ld_flow_of_goods).

DATA(ld_flg_simulation) = 'some text here'.
DATA(ld_reporting_type) = 'Check type of data required'.
DATA(ld_log_type) = 'some text here'.

SELECT single DATUMMONA
FROM VEIAV
INTO @DATA(ld_reporting_month).


SELECT single DATUMJAHR
FROM VEIAV
INTO @DATA(ld_reporting_year).

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

SELECT single INTCA
FROM T005
INTO @DATA(ld_country).

DATA(ld_calling_program) = 'Check type of data required'.
DATA(ld_call_from_enjoy) = 'some text here'.

SELECT single SERVAGENT
FROM VESED
INTO @DATA(ld_sed_servagent).

DATA(ld_i_start_screen) = 'some text here'.
DATA(ld_i_refr_selection_log) = 'some text here'.

"populate fields of struture and append to itab
append wa_selection_log to it_selection_log.

"populate fields of struture and append to itab
append wa_selection_log_open to it_selection_log_open.

"populate fields of struture and append to itab
append wa_incompletion_log to it_incompletion_log.

"populate fields of struture and append to itab
append wa_incompletion_data_header to it_incompletion_data_header.

"populate fields of struture and append to itab
append wa_incompletion_data_item to it_incompletion_data_item.

"populate fields of struture and append to itab
append wa_status_exclusion to it_status_exclusion. . CALL FUNCTION 'RV_FTT_GOV_ISSUE_LOG_SEL_REP' EXPORTING flow_of_goods = ld_flow_of_goods flg_simulation = ld_flg_simulation reporting_type = ld_reporting_type log_type = ld_log_type reporting_month = ld_reporting_month reporting_year = ld_reporting_year * variant = ld_variant * country = ld_country * calling_program = ld_calling_program * call_from_enjoy = ld_call_from_enjoy * sed_servagent = ld_sed_servagent * i_start_screen = ld_i_start_screen * i_refr_selection_log = ld_i_refr_selection_log * TABLES * selection_log = it_selection_log * selection_log_open = it_selection_log_open * incompletion_log = it_incompletion_log * incompletion_data_header = it_incompletion_data_header * incompletion_data_item = it_incompletion_data_item * status_exclusion = it_status_exclusion EXCEPTIONS WRONG_REPORTING_TYPE = 1 . " RV_FTT_GOV_ISSUE_LOG_SEL_REP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_flow_of_goods  TYPE VEIAV-ARRIVDEPA ,
it_selection_log  TYPE STANDARD TABLE OF V50G_SELECTION_LOG ,
wa_selection_log  LIKE LINE OF it_selection_log,
ld_flg_simulation  TYPE STRING ,
it_selection_log_open  TYPE STANDARD TABLE OF V50G_SELECTION_LOG_OPEN ,
wa_selection_log_open  LIKE LINE OF it_selection_log_open,
ld_reporting_type  TYPE V50G_I_REPORTING_TYPE ,
it_incompletion_log  TYPE STANDARD TABLE OF V50G_INCOMPLETION_LOG ,
wa_incompletion_log  LIKE LINE OF it_incompletion_log,
ld_log_type  TYPE STRING ,
it_incompletion_data_header  TYPE STANDARD TABLE OF V50G_INCOMPLETION_DATA ,
wa_incompletion_data_header  LIKE LINE OF it_incompletion_data_header,
ld_reporting_month  TYPE VEIAV-DATUMMONA ,
it_incompletion_data_item  TYPE STANDARD TABLE OF V50G_INCOMPLETION_DATA ,
wa_incompletion_data_item  LIKE LINE OF it_incompletion_data_item,
ld_reporting_year  TYPE VEIAV-DATUMJAHR ,
it_status_exclusion  TYPE STANDARD TABLE OF V50G_EXTAB ,
wa_status_exclusion  LIKE LINE OF it_status_exclusion,
ld_variant  TYPE DISVARIANT ,
ld_country  TYPE T005-INTCA ,
ld_calling_program  TYPE SY-REPID ,
ld_call_from_enjoy  TYPE STRING ,
ld_sed_servagent  TYPE VESED-SERVAGENT ,
ld_i_start_screen  TYPE STRING ,
ld_i_refr_selection_log  TYPE STRING .


SELECT single ARRIVDEPA
FROM VEIAV
INTO ld_flow_of_goods.


"populate fields of struture and append to itab
append wa_selection_log to it_selection_log.
ld_flg_simulation = 'some text here'.

"populate fields of struture and append to itab
append wa_selection_log_open to it_selection_log_open.
ld_reporting_type = 'some text here'.

"populate fields of struture and append to itab
append wa_incompletion_log to it_incompletion_log.
ld_log_type = 'some text here'.

"populate fields of struture and append to itab
append wa_incompletion_data_header to it_incompletion_data_header.

SELECT single DATUMMONA
FROM VEIAV
INTO ld_reporting_month.


"populate fields of struture and append to itab
append wa_incompletion_data_item to it_incompletion_data_item.

SELECT single DATUMJAHR
FROM VEIAV
INTO ld_reporting_year.


"populate fields of struture and append to itab
append wa_status_exclusion to it_status_exclusion.
ld_variant = 'some text here'.

SELECT single INTCA
FROM T005
INTO ld_country.

ld_calling_program = 'Check type of data required'.
ld_call_from_enjoy = 'some text here'.

SELECT single SERVAGENT
FROM VESED
INTO ld_sed_servagent.

ld_i_start_screen = 'some text here'.
ld_i_refr_selection_log = '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 RV_FTT_GOV_ISSUE_LOG_SEL_REP or its description.