SAP MR_POST_PP_INVOICE Function Module for Post parked document









MR_POST_PP_INVOICE is a standard mr post pp invoice SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post parked document processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for mr post pp invoice FM, simply by entering the name MR_POST_PP_INVOICE into the relevant SAP transaction such as SE37 or SE38.

Function Group: MRPP
Program Name: SAPLMRPP
Main Program: SAPLMRPP
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MR_POST_PP_INVOICE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'MR_POST_PP_INVOICE'"Post parked document
IMPORTING
E_XPOST = "'Document posted' ID

TABLES
T_MESG = "Messages
T_VBKPF = "Document header of parked document
T_VBSEC = "CpD data of parked document
T_VBSEG = "Items of parked document
T_VBSET = "Tax lines of parked document
.



EXPORTING Parameters details for MR_POST_PP_INVOICE

E_XPOST - 'Document posted' ID

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MR_POST_PP_INVOICE

T_MESG - Messages

Data type: MESG
Optional: No
Call by Reference: No ( called with pass by value option)

T_VBKPF - Document header of parked document

Data type: FVBKPF
Optional: No
Call by Reference: No ( called with pass by value option)

T_VBSEC - CpD data of parked document

Data type: FVBSEC
Optional: No
Call by Reference: No ( called with pass by value option)

T_VBSEG - Items of parked document

Data type: FVBSEG
Optional: No
Call by Reference: No ( called with pass by value option)

T_VBSET - Tax lines of parked document

Data type: FVBSET
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MR_POST_PP_INVOICE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_t_mesg  TYPE STANDARD TABLE OF MESG, "   
lv_e_xpost  TYPE MESG, "   
lt_t_vbkpf  TYPE STANDARD TABLE OF FVBKPF, "   
lt_t_vbsec  TYPE STANDARD TABLE OF FVBSEC, "   
lt_t_vbseg  TYPE STANDARD TABLE OF FVBSEG, "   
lt_t_vbset  TYPE STANDARD TABLE OF FVBSET. "   

  CALL FUNCTION 'MR_POST_PP_INVOICE'  "Post parked document
    IMPORTING
         E_XPOST = lv_e_xpost
    TABLES
         T_MESG = lt_t_mesg
         T_VBKPF = lt_t_vbkpf
         T_VBSEC = lt_t_vbsec
         T_VBSEG = lt_t_vbseg
         T_VBSET = lt_t_vbset
. " MR_POST_PP_INVOICE




ABAP code using 7.40 inline data declarations to call FM MR_POST_PP_INVOICE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!