SAP Function Modules

SAMPLE_PROCESS_00708101 SAP Function module - Interface Description for Process 00708101







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

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


Pattern for FM SAMPLE_PROCESS_00708101 - SAMPLE PROCESS 00708101





CALL FUNCTION 'SAMPLE_PROCESS_00708101' "Interface Description for Process 00708101
  EXPORTING
    i_recnscsrhnr =             " recnscsrhnr   Accounting Number
    i_recnflds =                " recnflds      Contract Header
*   i_display = ' '             "               Display Mode
*   i_post = ' '                "               Post Settlement
  IMPORTING
    e_accept =                  "               Service Charge Settlement Accepted
    e_posted =                  "               Service Charge Settlement Posted
    e_post_bukrs =              " bkpf-bukrs    Company Code
    e_post_belnr =              " bkpf-belnr    Accounting Document Number
    e_post_gjahr =              " bkpf-gjahr    Fiscal Year
  TABLES
    t_recnvicnscs =             " recnvicnscs   Service Charge Assignment "Service Charge Key"
    t_recnvicnscsau =           " recnvicnscsau  Service Charge Assignment "Apportionment Units"
    t_recnvicnscsrh =           " recnvicnscsrh  Service Charge Settlement "Header"
    t_recnvicnscsrp =           " recnvicnscsrp  Service Charge Settlement "Item"
    t_ap_stream =               " gvibepp       Change Document Structure: Generated by RSSCD000
    .  "  SAMPLE_PROCESS_00708101

ABAP code example for Function Module SAMPLE_PROCESS_00708101





The ABAP code below is a full code listing to execute function module SAMPLE_PROCESS_00708101 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_e_accept  TYPE STRING ,
ld_e_posted  TYPE STRING ,
ld_e_post_bukrs  TYPE BKPF-BUKRS ,
ld_e_post_belnr  TYPE BKPF-BELNR ,
ld_e_post_gjahr  TYPE BKPF-GJAHR ,
it_t_recnvicnscs  TYPE STANDARD TABLE OF RECNVICNSCS,"TABLES PARAM
wa_t_recnvicnscs  LIKE LINE OF it_t_recnvicnscs ,
it_t_recnvicnscsau  TYPE STANDARD TABLE OF RECNVICNSCSAU,"TABLES PARAM
wa_t_recnvicnscsau  LIKE LINE OF it_t_recnvicnscsau ,
it_t_recnvicnscsrh  TYPE STANDARD TABLE OF RECNVICNSCSRH,"TABLES PARAM
wa_t_recnvicnscsrh  LIKE LINE OF it_t_recnvicnscsrh ,
it_t_recnvicnscsrp  TYPE STANDARD TABLE OF RECNVICNSCSRP,"TABLES PARAM
wa_t_recnvicnscsrp  LIKE LINE OF it_t_recnvicnscsrp ,
it_t_ap_stream  TYPE STANDARD TABLE OF GVIBEPP,"TABLES PARAM
wa_t_ap_stream  LIKE LINE OF it_t_ap_stream .

DATA(ld_i_recnscsrhnr) = 'Check type of data required'.
DATA(ld_i_recnflds) = 'Check type of data required'.
DATA(ld_i_display) = 'some text here'.
DATA(ld_i_post) = 'some text here'.

"populate fields of struture and append to itab
append wa_t_recnvicnscs to it_t_recnvicnscs.

"populate fields of struture and append to itab
append wa_t_recnvicnscsau to it_t_recnvicnscsau.

"populate fields of struture and append to itab
append wa_t_recnvicnscsrh to it_t_recnvicnscsrh.

"populate fields of struture and append to itab
append wa_t_recnvicnscsrp to it_t_recnvicnscsrp.

"populate fields of struture and append to itab
append wa_t_ap_stream to it_t_ap_stream. . CALL FUNCTION 'SAMPLE_PROCESS_00708101' EXPORTING i_recnscsrhnr = ld_i_recnscsrhnr i_recnflds = ld_i_recnflds * i_display = ld_i_display * i_post = ld_i_post IMPORTING e_accept = ld_e_accept e_posted = ld_e_posted e_post_bukrs = ld_e_post_bukrs e_post_belnr = ld_e_post_belnr e_post_gjahr = ld_e_post_gjahr TABLES t_recnvicnscs = it_t_recnvicnscs t_recnvicnscsau = it_t_recnvicnscsau t_recnvicnscsrh = it_t_recnvicnscsrh t_recnvicnscsrp = it_t_recnvicnscsrp t_ap_stream = it_t_ap_stream . " SAMPLE_PROCESS_00708101
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_e_accept  TYPE STRING ,
ld_i_recnscsrhnr  TYPE RECNSCSRHNR ,
it_t_recnvicnscs  TYPE STANDARD TABLE OF RECNVICNSCS ,
wa_t_recnvicnscs  LIKE LINE OF it_t_recnvicnscs,
ld_e_posted  TYPE STRING ,
ld_i_recnflds  TYPE RECNFLDS ,
it_t_recnvicnscsau  TYPE STANDARD TABLE OF RECNVICNSCSAU ,
wa_t_recnvicnscsau  LIKE LINE OF it_t_recnvicnscsau,
ld_e_post_bukrs  TYPE BKPF-BUKRS ,
ld_i_display  TYPE STRING ,
it_t_recnvicnscsrh  TYPE STANDARD TABLE OF RECNVICNSCSRH ,
wa_t_recnvicnscsrh  LIKE LINE OF it_t_recnvicnscsrh,
ld_e_post_belnr  TYPE BKPF-BELNR ,
ld_i_post  TYPE STRING ,
it_t_recnvicnscsrp  TYPE STANDARD TABLE OF RECNVICNSCSRP ,
wa_t_recnvicnscsrp  LIKE LINE OF it_t_recnvicnscsrp,
ld_e_post_gjahr  TYPE BKPF-GJAHR ,
it_t_ap_stream  TYPE STANDARD TABLE OF GVIBEPP ,
wa_t_ap_stream  LIKE LINE OF it_t_ap_stream.

ld_i_recnscsrhnr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_recnvicnscs to it_t_recnvicnscs.
ld_i_recnflds = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_recnvicnscsau to it_t_recnvicnscsau.
ld_i_display = 'some text here'.

"populate fields of struture and append to itab
append wa_t_recnvicnscsrh to it_t_recnvicnscsrh.
ld_i_post = 'some text here'.

"populate fields of struture and append to itab
append wa_t_recnvicnscsrp to it_t_recnvicnscsrp.

"populate fields of struture and append to itab
append wa_t_ap_stream to it_t_ap_stream.

SAP Documentation for FM SAMPLE_PROCESS_00708101


DEFINE TEXT = 'General Contract: Check SCS/Post Vendor'
DEFINE EVENT = '00708101' ...See here for full SAP fm documentation

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