SAP Function Modules

SCTC_CONV_BDLS SAP Function module - Conversion of Logical System Names







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

Associated Function Group: SCTC_SC_EXEC
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SCTC_CONV_BDLS - SCTC CONV BDLS





CALL FUNCTION 'SCTC_CONV_BDLS' "Conversion of Logical System Names
  EXPORTING
    iv_job_variant =            " char01        Character Field Length 1
    iv_job_release =            " sap_bool      Boolean Variable (X=True, Space=False)
    iv_reccount =               " sydbcnt       Processed Database Table Rows
*   iv_batch_proc_no =          " i
*   iv_bdlshdr_cui =            " guid_32       GUID in 'CHAR' Format in Uppercase
*   iv_clnt_dep =               " sap_bool      Boolean Variable (X=True, Space=False)
  TABLES
    ct_conv_pairs =             " sctc_sc_s_conv_pairs  Pairs of logical system names for conversion
    ct_rng_tables =             " sctc_sc_s_rng_tabname  Structure for ranges table with tabname
    ct_jobs =                   " bpxminfo      Some Information on a Job: Status and Child Flag
*   ct_bdlspos =                " bdlspos       Item for Conversion of Logical System Names
*   tt_return =                 " bapiret2      Return Parameter
    .  "  SCTC_CONV_BDLS

ABAP code example for Function Module SCTC_CONV_BDLS





The ABAP code below is a full code listing to execute function module SCTC_CONV_BDLS 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_ct_conv_pairs  TYPE STANDARD TABLE OF SCTC_SC_S_CONV_PAIRS,"TABLES PARAM
wa_ct_conv_pairs  LIKE LINE OF it_ct_conv_pairs ,
it_ct_rng_tables  TYPE STANDARD TABLE OF SCTC_SC_S_RNG_TABNAME,"TABLES PARAM
wa_ct_rng_tables  LIKE LINE OF it_ct_rng_tables ,
it_ct_jobs  TYPE STANDARD TABLE OF BPXMINFO,"TABLES PARAM
wa_ct_jobs  LIKE LINE OF it_ct_jobs ,
it_ct_bdlspos  TYPE STANDARD TABLE OF BDLSPOS,"TABLES PARAM
wa_ct_bdlspos  LIKE LINE OF it_ct_bdlspos ,
it_tt_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_tt_return  LIKE LINE OF it_tt_return .

DATA(ld_iv_job_variant) = 'Check type of data required'.
DATA(ld_iv_job_release) = 'Check type of data required'.
DATA(ld_iv_reccount) = '123 '.
DATA(ld_iv_batch_proc_no) = '123 '.
DATA(ld_iv_bdlshdr_cui) = '123 '.
DATA(ld_iv_clnt_dep) = '123 '.

"populate fields of struture and append to itab
append wa_ct_conv_pairs to it_ct_conv_pairs.

"populate fields of struture and append to itab
append wa_ct_rng_tables to it_ct_rng_tables.

"populate fields of struture and append to itab
append wa_ct_jobs to it_ct_jobs.

"populate fields of struture and append to itab
append wa_ct_bdlspos to it_ct_bdlspos.

"populate fields of struture and append to itab
append wa_tt_return to it_tt_return. . CALL FUNCTION 'SCTC_CONV_BDLS' EXPORTING iv_job_variant = ld_iv_job_variant iv_job_release = ld_iv_job_release iv_reccount = ld_iv_reccount * iv_batch_proc_no = ld_iv_batch_proc_no * iv_bdlshdr_cui = ld_iv_bdlshdr_cui * iv_clnt_dep = ld_iv_clnt_dep TABLES ct_conv_pairs = it_ct_conv_pairs ct_rng_tables = it_ct_rng_tables ct_jobs = it_ct_jobs * ct_bdlspos = it_ct_bdlspos * tt_return = it_tt_return . " SCTC_CONV_BDLS
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_iv_job_variant  TYPE CHAR01 ,
it_ct_conv_pairs  TYPE STANDARD TABLE OF SCTC_SC_S_CONV_PAIRS ,
wa_ct_conv_pairs  LIKE LINE OF it_ct_conv_pairs,
ld_iv_job_release  TYPE SAP_BOOL ,
it_ct_rng_tables  TYPE STANDARD TABLE OF SCTC_SC_S_RNG_TABNAME ,
wa_ct_rng_tables  LIKE LINE OF it_ct_rng_tables,
ld_iv_reccount  TYPE SYDBCNT ,
it_ct_jobs  TYPE STANDARD TABLE OF BPXMINFO ,
wa_ct_jobs  LIKE LINE OF it_ct_jobs,
ld_iv_batch_proc_no  TYPE I ,
it_ct_bdlspos  TYPE STANDARD TABLE OF BDLSPOS ,
wa_ct_bdlspos  LIKE LINE OF it_ct_bdlspos,
ld_iv_bdlshdr_cui  TYPE GUID_32 ,
it_tt_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_tt_return  LIKE LINE OF it_tt_return,
ld_iv_clnt_dep  TYPE SAP_BOOL .

ld_iv_job_variant = '123 '.

"populate fields of struture and append to itab
append wa_ct_conv_pairs to it_ct_conv_pairs.
ld_iv_job_release = '123 '.

"populate fields of struture and append to itab
append wa_ct_rng_tables to it_ct_rng_tables.
ld_iv_reccount = '123 '.

"populate fields of struture and append to itab
append wa_ct_jobs to it_ct_jobs.
ld_iv_batch_proc_no = '123 '.

"populate fields of struture and append to itab
append wa_ct_bdlspos to it_ct_bdlspos.
ld_iv_bdlshdr_cui = '123 '.

"populate fields of struture and append to itab
append wa_tt_return to it_tt_return.
ld_iv_clnt_dep = '123 '.

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