SAP Function Modules

SAMPLE_PROCESS_00107050 SAP Function module - BTE 00107050: RFFMKG03 Anordnung ändern







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

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


Pattern for FM SAMPLE_PROCESS_00107050 - SAMPLE PROCESS 00107050





CALL FUNCTION 'SAMPLE_PROCESS_00107050' "BTE 00107050: RFFMKG03 Anordnung ändern
* EXPORTING
*   i_belnr =                   " kble-belnr    Belegnummer Mittelvormerkung
*   i_blpos =                   " kble-blpos    Belegposition Mittelvormerkung
*   i_bpent =                   " kble-bpent    Belegpositionsentwicklung
*   i_bkpf =                    " bkpf          Belegkopf für Buchhaltung
* TABLES
*   t_bseg =                    " bseg          Belegsegment Buchhaltung
*   t_bsec =                    " bsec          Belegsegment CPD-Daten
*   t_bset =                    " bset          Belegsegment Steuerdaten
*   t_bbkpf =                   " bbkpf_fm      Belegkopf für Buchhaltungsbeleg (Batch-Input-Struktur)
*   t_bbseg =                   " bbseg_fm      Belegsegment Buchhaltung für IS-PS (Batch-Input-Struktur)
*   t_bbtax =                   " bbtax_fm      Belegsteuern (Batch-Input-Struktur)
    .  "  SAMPLE_PROCESS_00107050

ABAP code example for Function Module SAMPLE_PROCESS_00107050





The ABAP code below is a full code listing to execute function module SAMPLE_PROCESS_00107050 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_t_bseg  TYPE STANDARD TABLE OF BSEG,"TABLES PARAM
wa_t_bseg  LIKE LINE OF it_t_bseg ,
it_t_bsec  TYPE STANDARD TABLE OF BSEC,"TABLES PARAM
wa_t_bsec  LIKE LINE OF it_t_bsec ,
it_t_bset  TYPE STANDARD TABLE OF BSET,"TABLES PARAM
wa_t_bset  LIKE LINE OF it_t_bset ,
it_t_bbkpf  TYPE STANDARD TABLE OF BBKPF_FM,"TABLES PARAM
wa_t_bbkpf  LIKE LINE OF it_t_bbkpf ,
it_t_bbseg  TYPE STANDARD TABLE OF BBSEG_FM,"TABLES PARAM
wa_t_bbseg  LIKE LINE OF it_t_bbseg ,
it_t_bbtax  TYPE STANDARD TABLE OF BBTAX_FM,"TABLES PARAM
wa_t_bbtax  LIKE LINE OF it_t_bbtax .


SELECT single BELNR
FROM KBLE
INTO @DATA(ld_i_belnr).


SELECT single BLPOS
FROM KBLE
INTO @DATA(ld_i_blpos).


SELECT single BPENT
FROM KBLE
INTO @DATA(ld_i_bpent).

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

"populate fields of struture and append to itab
append wa_t_bseg to it_t_bseg.

"populate fields of struture and append to itab
append wa_t_bsec to it_t_bsec.

"populate fields of struture and append to itab
append wa_t_bset to it_t_bset.

"populate fields of struture and append to itab
append wa_t_bbkpf to it_t_bbkpf.

"populate fields of struture and append to itab
append wa_t_bbseg to it_t_bbseg.

"populate fields of struture and append to itab
append wa_t_bbtax to it_t_bbtax. . CALL FUNCTION 'SAMPLE_PROCESS_00107050' * EXPORTING * i_belnr = ld_i_belnr * i_blpos = ld_i_blpos * i_bpent = ld_i_bpent * i_bkpf = ld_i_bkpf * TABLES * t_bseg = it_t_bseg * t_bsec = it_t_bsec * t_bset = it_t_bset * t_bbkpf = it_t_bbkpf * t_bbseg = it_t_bbseg * t_bbtax = it_t_bbtax . " SAMPLE_PROCESS_00107050
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_belnr  TYPE KBLE-BELNR ,
it_t_bseg  TYPE STANDARD TABLE OF BSEG ,
wa_t_bseg  LIKE LINE OF it_t_bseg,
ld_i_blpos  TYPE KBLE-BLPOS ,
it_t_bsec  TYPE STANDARD TABLE OF BSEC ,
wa_t_bsec  LIKE LINE OF it_t_bsec,
ld_i_bpent  TYPE KBLE-BPENT ,
it_t_bset  TYPE STANDARD TABLE OF BSET ,
wa_t_bset  LIKE LINE OF it_t_bset,
ld_i_bkpf  TYPE BKPF ,
it_t_bbkpf  TYPE STANDARD TABLE OF BBKPF_FM ,
wa_t_bbkpf  LIKE LINE OF it_t_bbkpf,
it_t_bbseg  TYPE STANDARD TABLE OF BBSEG_FM ,
wa_t_bbseg  LIKE LINE OF it_t_bbseg,
it_t_bbtax  TYPE STANDARD TABLE OF BBTAX_FM ,
wa_t_bbtax  LIKE LINE OF it_t_bbtax.


SELECT single BELNR
FROM KBLE
INTO ld_i_belnr.


"populate fields of struture and append to itab
append wa_t_bseg to it_t_bseg.

SELECT single BLPOS
FROM KBLE
INTO ld_i_blpos.


"populate fields of struture and append to itab
append wa_t_bsec to it_t_bsec.

SELECT single BPENT
FROM KBLE
INTO ld_i_bpent.


"populate fields of struture and append to itab
append wa_t_bset to it_t_bset.
ld_i_bkpf = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_bbkpf to it_t_bbkpf.

"populate fields of struture and append to itab
append wa_t_bbseg to it_t_bbseg.

"populate fields of struture and append to itab
append wa_t_bbtax to it_t_bbtax.

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