SAP Function Modules

RV_INVOICE_POST SAP Function module - Update billing documents







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

Associated Function Group: V60U
Released Date: Not Released
Processing type: Update is started immediately, no restart possible (Immediate start, No restart)
update module no restart settings


Pattern for FM RV_INVOICE_POST - RV INVOICE POST





CALL FUNCTION 'RV_INVOICE_POST' "Update billing documents
  EXPORTING
*   no_konv = ' '               " rv60a-selkz
    vbsk_i =                    " vbsk
*   vf02 = ' '                  " rv60a-selkz
*   with_posting = ' '          " rv60a-selkz
*   j_1b_no_docflow_upd = ' '   " j_1bnfdoc-manual
  TABLES
    xkomv =                     " komv
    xsadr =                     " sadrvb
    xvbfa =                     " vbfavb
*   yvbfa =                     " vbfavb
    xvbfs =                     " vbfs
    xvbpa =                     " vbpavb
    xvbrk =                     " vbrkvb
    xvbrp =                     " vbrpvb
    xvbss =                     " vbss
    xvbuk =                     " vbukvb
    xvbup =                     " vbupvb
    yvbpa =                     " vbpavb
    yvbrk =                     " vbrkvb
    yvbrp =                     " vbrpvb
    yvbuk =                     " vbukvb
    yvbup =                     " vbupvb
*   fxfpla =                    " fplavb
*   fyfpla =                    " fplavb
*   fxfplt =                    " fpltvb
*   fyfplt =                    " fpltvb
    .  "  RV_INVOICE_POST

ABAP code example for Function Module RV_INVOICE_POST





The ABAP code below is a full code listing to execute function module RV_INVOICE_POST 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_xkomv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_xkomv  LIKE LINE OF it_xkomv ,
it_xsadr  TYPE STANDARD TABLE OF SADRVB,"TABLES PARAM
wa_xsadr  LIKE LINE OF it_xsadr ,
it_xvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_xvbfa  LIKE LINE OF it_xvbfa ,
it_yvbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_yvbfa  LIKE LINE OF it_yvbfa ,
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_xvbrp  TYPE STANDARD TABLE OF VBRPVB,"TABLES PARAM
wa_xvbrp  LIKE LINE OF it_xvbrp ,
it_xvbss  TYPE STANDARD TABLE OF VBSS,"TABLES PARAM
wa_xvbss  LIKE LINE OF it_xvbss ,
it_xvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_xvbuk  LIKE LINE OF it_xvbuk ,
it_xvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_xvbup  LIKE LINE OF it_xvbup ,
it_yvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_yvbpa  LIKE LINE OF it_yvbpa ,
it_yvbrk  TYPE STANDARD TABLE OF VBRKVB,"TABLES PARAM
wa_yvbrk  LIKE LINE OF it_yvbrk ,
it_yvbrp  TYPE STANDARD TABLE OF VBRPVB,"TABLES PARAM
wa_yvbrp  LIKE LINE OF it_yvbrp ,
it_yvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_yvbuk  LIKE LINE OF it_yvbuk ,
it_yvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_yvbup  LIKE LINE OF it_yvbup ,
it_fxfpla  TYPE STANDARD TABLE OF FPLAVB,"TABLES PARAM
wa_fxfpla  LIKE LINE OF it_fxfpla ,
it_fyfpla  TYPE STANDARD TABLE OF FPLAVB,"TABLES PARAM
wa_fyfpla  LIKE LINE OF it_fyfpla ,
it_fxfplt  TYPE STANDARD TABLE OF FPLTVB,"TABLES PARAM
wa_fxfplt  LIKE LINE OF it_fxfplt ,
it_fyfplt  TYPE STANDARD TABLE OF FPLTVB,"TABLES PARAM
wa_fyfplt  LIKE LINE OF it_fyfplt .


DATA(ld_no_konv) = some text here
DATA(ld_vbsk_i) = 'Check type of data required'.

DATA(ld_vf02) = some text here

DATA(ld_with_posting) = some text here

SELECT single MANUAL
FROM J_1BNFDOC
INTO @DATA(ld_j_1b_no_docflow_upd).


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

"populate fields of struture and append to itab
append wa_xsadr to it_xsadr.

"populate fields of struture and append to itab
append wa_xvbfa to it_xvbfa.

"populate fields of struture and append to itab
append wa_yvbfa to it_yvbfa.

"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_xvbrp to it_xvbrp.

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

"populate fields of struture and append to itab
append wa_xvbuk to it_xvbuk.

"populate fields of struture and append to itab
append wa_xvbup to it_xvbup.

"populate fields of struture and append to itab
append wa_yvbpa to it_yvbpa.

"populate fields of struture and append to itab
append wa_yvbrk to it_yvbrk.

"populate fields of struture and append to itab
append wa_yvbrp to it_yvbrp.

"populate fields of struture and append to itab
append wa_yvbuk to it_yvbuk.

"populate fields of struture and append to itab
append wa_yvbup to it_yvbup.

"populate fields of struture and append to itab
append wa_fxfpla to it_fxfpla.

"populate fields of struture and append to itab
append wa_fyfpla to it_fyfpla.

"populate fields of struture and append to itab
append wa_fxfplt to it_fxfplt.

"populate fields of struture and append to itab
append wa_fyfplt to it_fyfplt. . CALL FUNCTION 'RV_INVOICE_POST' EXPORTING * no_konv = ld_no_konv vbsk_i = ld_vbsk_i * vf02 = ld_vf02 * with_posting = ld_with_posting * j_1b_no_docflow_upd = ld_j_1b_no_docflow_upd TABLES xkomv = it_xkomv xsadr = it_xsadr xvbfa = it_xvbfa * yvbfa = it_yvbfa xvbfs = it_xvbfs xvbpa = it_xvbpa xvbrk = it_xvbrk xvbrp = it_xvbrp xvbss = it_xvbss xvbuk = it_xvbuk xvbup = it_xvbup yvbpa = it_yvbpa yvbrk = it_yvbrk yvbrp = it_yvbrp yvbuk = it_yvbuk yvbup = it_yvbup * fxfpla = it_fxfpla * fyfpla = it_fyfpla * fxfplt = it_fxfplt * fyfplt = it_fyfplt . " RV_INVOICE_POST
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_no_konv  TYPE RV60A-SELKZ ,
it_xkomv  TYPE STANDARD TABLE OF KOMV ,
wa_xkomv  LIKE LINE OF it_xkomv,
ld_vbsk_i  TYPE VBSK ,
it_xsadr  TYPE STANDARD TABLE OF SADRVB ,
wa_xsadr  LIKE LINE OF it_xsadr,
ld_vf02  TYPE RV60A-SELKZ ,
it_xvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_xvbfa  LIKE LINE OF it_xvbfa,
ld_with_posting  TYPE RV60A-SELKZ ,
it_yvbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_yvbfa  LIKE LINE OF it_yvbfa,
ld_j_1b_no_docflow_upd  TYPE J_1BNFDOC-MANUAL ,
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_xvbrp  TYPE STANDARD TABLE OF VBRPVB ,
wa_xvbrp  LIKE LINE OF it_xvbrp,
it_xvbss  TYPE STANDARD TABLE OF VBSS ,
wa_xvbss  LIKE LINE OF it_xvbss,
it_xvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_xvbuk  LIKE LINE OF it_xvbuk,
it_xvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_xvbup  LIKE LINE OF it_xvbup,
it_yvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_yvbpa  LIKE LINE OF it_yvbpa,
it_yvbrk  TYPE STANDARD TABLE OF VBRKVB ,
wa_yvbrk  LIKE LINE OF it_yvbrk,
it_yvbrp  TYPE STANDARD TABLE OF VBRPVB ,
wa_yvbrp  LIKE LINE OF it_yvbrp,
it_yvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_yvbuk  LIKE LINE OF it_yvbuk,
it_yvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_yvbup  LIKE LINE OF it_yvbup,
it_fxfpla  TYPE STANDARD TABLE OF FPLAVB ,
wa_fxfpla  LIKE LINE OF it_fxfpla,
it_fyfpla  TYPE STANDARD TABLE OF FPLAVB ,
wa_fyfpla  LIKE LINE OF it_fyfpla,
it_fxfplt  TYPE STANDARD TABLE OF FPLTVB ,
wa_fxfplt  LIKE LINE OF it_fxfplt,
it_fyfplt  TYPE STANDARD TABLE OF FPLTVB ,
wa_fyfplt  LIKE LINE OF it_fyfplt.


ld_no_konv = some text here

"populate fields of struture and append to itab
append wa_xkomv to it_xkomv.
ld_vbsk_i = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xsadr to it_xsadr.

ld_vf02 = some text here

"populate fields of struture and append to itab
append wa_xvbfa to it_xvbfa.

ld_with_posting = some text here

"populate fields of struture and append to itab
append wa_yvbfa to it_yvbfa.

SELECT single MANUAL
FROM J_1BNFDOC
INTO ld_j_1b_no_docflow_upd.


"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_xvbrp to it_xvbrp.

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

"populate fields of struture and append to itab
append wa_xvbuk to it_xvbuk.

"populate fields of struture and append to itab
append wa_xvbup to it_xvbup.

"populate fields of struture and append to itab
append wa_yvbpa to it_yvbpa.

"populate fields of struture and append to itab
append wa_yvbrk to it_yvbrk.

"populate fields of struture and append to itab
append wa_yvbrp to it_yvbrp.

"populate fields of struture and append to itab
append wa_yvbuk to it_yvbuk.

"populate fields of struture and append to itab
append wa_yvbup to it_yvbup.

"populate fields of struture and append to itab
append wa_fxfpla to it_fxfpla.

"populate fields of struture and append to itab
append wa_fyfpla to it_fyfpla.

"populate fields of struture and append to itab
append wa_fxfplt to it_fxfplt.

"populate fields of struture and append to itab
append wa_fyfplt to it_fyfplt.

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