SAP Function Modules

RV_INVOICE_LIST_HEAD_MAINTAIN SAP Function module







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

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


Pattern for FM RV_INVOICE_LIST_HEAD_MAINTAIN - RV INVOICE LIST HEAD MAINTAIN





CALL FUNCTION 'RV_INVOICE_LIST_HEAD_MAINTAIN' "
  EXPORTING
*   fcode_i = '    '            "
    vbrk_i =                    " vbrk
  TABLES
    xkomfk =                    " komfk         G/L account number
    xkomv =                     " komv
    xthead =                    " theadvb
    xvbfs =                     " vbfs
    xvbpa =                     " vbpavb
    xvbrk =                     " vbrkvb
    xvbss =                     " vbss
    xvbrl =                     " vbrlvb
    .  "  RV_INVOICE_LIST_HEAD_MAINTAIN

ABAP code example for Function Module RV_INVOICE_LIST_HEAD_MAINTAIN





The ABAP code below is a full code listing to execute function module RV_INVOICE_LIST_HEAD_MAINTAIN 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_xkomfk  TYPE STANDARD TABLE OF KOMFK,"TABLES PARAM
wa_xkomfk  LIKE LINE OF it_xkomfk ,
it_xkomv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_xkomv  LIKE LINE OF it_xkomv ,
it_xthead  TYPE STANDARD TABLE OF THEADVB,"TABLES PARAM
wa_xthead  LIKE LINE OF it_xthead ,
it_xvbfs  TYPE STANDARD TABLE OF VBFS,"TABLES PARAM
wa_xvbfs  LIKE LINE OF it_xvbfs ,
it_xvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_xvbpa  LIKE LINE OF it_xvbpa ,
it_xvbrk  TYPE STANDARD TABLE OF VBRKVB,"TABLES PARAM
wa_xvbrk  LIKE LINE OF it_xvbrk ,
it_xvbss  TYPE STANDARD TABLE OF VBSS,"TABLES PARAM
wa_xvbss  LIKE LINE OF it_xvbss ,
it_xvbrl  TYPE STANDARD TABLE OF VBRLVB,"TABLES PARAM
wa_xvbrl  LIKE LINE OF it_xvbrl .

DATA(ld_fcode_i) = 'some text here'.
DATA(ld_vbrk_i) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xkomfk to it_xkomfk.

"populate fields of struture and append to itab
append wa_xkomv to it_xkomv.

"populate fields of struture and append to itab
append wa_xthead to it_xthead.

"populate fields of struture and append to itab
append wa_xvbfs to it_xvbfs.

"populate fields of struture and append to itab
append wa_xvbpa to it_xvbpa.

"populate fields of struture and append to itab
append wa_xvbrk to it_xvbrk.

"populate fields of struture and append to itab
append wa_xvbss to it_xvbss.

"populate fields of struture and append to itab
append wa_xvbrl to it_xvbrl. . CALL FUNCTION 'RV_INVOICE_LIST_HEAD_MAINTAIN' EXPORTING * fcode_i = ld_fcode_i vbrk_i = ld_vbrk_i TABLES xkomfk = it_xkomfk xkomv = it_xkomv xthead = it_xthead xvbfs = it_xvbfs xvbpa = it_xvbpa xvbrk = it_xvbrk xvbss = it_xvbss xvbrl = it_xvbrl . " RV_INVOICE_LIST_HEAD_MAINTAIN
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_fcode_i  TYPE STRING ,
it_xkomfk  TYPE STANDARD TABLE OF KOMFK ,
wa_xkomfk  LIKE LINE OF it_xkomfk,
ld_vbrk_i  TYPE VBRK ,
it_xkomv  TYPE STANDARD TABLE OF KOMV ,
wa_xkomv  LIKE LINE OF it_xkomv,
it_xthead  TYPE STANDARD TABLE OF THEADVB ,
wa_xthead  LIKE LINE OF it_xthead,
it_xvbfs  TYPE STANDARD TABLE OF VBFS ,
wa_xvbfs  LIKE LINE OF it_xvbfs,
it_xvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_xvbpa  LIKE LINE OF it_xvbpa,
it_xvbrk  TYPE STANDARD TABLE OF VBRKVB ,
wa_xvbrk  LIKE LINE OF it_xvbrk,
it_xvbss  TYPE STANDARD TABLE OF VBSS ,
wa_xvbss  LIKE LINE OF it_xvbss,
it_xvbrl  TYPE STANDARD TABLE OF VBRLVB ,
wa_xvbrl  LIKE LINE OF it_xvbrl.

ld_fcode_i = 'some text here'.

"populate fields of struture and append to itab
append wa_xkomfk to it_xkomfk.
ld_vbrk_i = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xkomv to it_xkomv.

"populate fields of struture and append to itab
append wa_xthead to it_xthead.

"populate fields of struture and append to itab
append wa_xvbfs to it_xvbfs.

"populate fields of struture and append to itab
append wa_xvbpa to it_xvbpa.

"populate fields of struture and append to itab
append wa_xvbrk to it_xvbrk.

"populate fields of struture and append to itab
append wa_xvbss to it_xvbss.

"populate fields of struture and append to itab
append wa_xvbrl to it_xvbrl.

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