SAP HRPP_CONVERT_DOCUMENT Function Module for









HRPP_CONVERT_DOCUMENT is a standard hrpp convert document SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hrpp convert document FM, simply by entering the name HRPP_CONVERT_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPT
Program Name: SAPLHRPT
Main Program: SAPLHRPT
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRPP_CONVERT_DOCUMENT 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 'HRPP_CONVERT_DOCUMENT'"
EXPORTING
I_PPDHD = "
* I_COMPO = ' ' "

IMPORTING
E_RWIN_HEAD_GL = "
E_RWIN_HEAD_AP = "
E_RWIN_HEAD_AR = "
E_CONV_ERROR = "

TABLES
T_PPDIT = "
T_PPDMSG = "
T_RWIN_ACCGL = "
T_RWIN_ACCPAY = "
T_RWIN_ACCGL_AP = "
T_RWIN_ACCREC = "
T_RWIN_ACCGL_AR = "
T_RWIN_ACCTAX = "
T_RWIN_CURR = "
.



IMPORTING Parameters details for HRPP_CONVERT_DOCUMENT

I_PPDHD -

Data type: PPDHD
Optional: No
Call by Reference: Yes

I_COMPO -

Data type: BAPIACHE04-COMPO_ACC
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for HRPP_CONVERT_DOCUMENT

E_RWIN_HEAD_GL -

Data type: BAPIACHE04
Optional: No
Call by Reference: Yes

E_RWIN_HEAD_AP -

Data type: BAPIACHE06
Optional: No
Call by Reference: Yes

E_RWIN_HEAD_AR -

Data type: BAPIACHE05
Optional: No
Call by Reference: Yes

E_CONV_ERROR -

Data type: C
Optional: No
Call by Reference: Yes

TABLES Parameters details for HRPP_CONVERT_DOCUMENT

T_PPDIT -

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

T_PPDMSG -

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

T_RWIN_ACCGL -

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

T_RWIN_ACCPAY -

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

T_RWIN_ACCGL_AP -

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

T_RWIN_ACCREC -

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

T_RWIN_ACCGL_AR -

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

T_RWIN_ACCTAX -

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

T_RWIN_CURR -

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

Copy and paste ABAP code example for HRPP_CONVERT_DOCUMENT 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:
lv_i_ppdhd  TYPE PPDHD, "   
lt_t_ppdit  TYPE STANDARD TABLE OF PPDIT, "   
lv_e_rwin_head_gl  TYPE BAPIACHE04, "   
lv_i_compo  TYPE BAPIACHE04-COMPO_ACC, "   SPACE
lt_t_ppdmsg  TYPE STANDARD TABLE OF PPDMSG, "   
lv_e_rwin_head_ap  TYPE BAPIACHE06, "   
lt_t_rwin_accgl  TYPE STANDARD TABLE OF BAPIACGL04, "   
lv_e_rwin_head_ar  TYPE BAPIACHE05, "   
lv_e_conv_error  TYPE C, "   
lt_t_rwin_accpay  TYPE STANDARD TABLE OF BAPIACAP06, "   
lt_t_rwin_accgl_ap  TYPE STANDARD TABLE OF BAPIACGL06, "   
lt_t_rwin_accrec  TYPE STANDARD TABLE OF BAPIACAR05, "   
lt_t_rwin_accgl_ar  TYPE STANDARD TABLE OF BAPIACGL05, "   
lt_t_rwin_acctax  TYPE STANDARD TABLE OF BAPIACTX01, "   
lt_t_rwin_curr  TYPE STANDARD TABLE OF BAPIACCR04. "   

  CALL FUNCTION 'HRPP_CONVERT_DOCUMENT'  "
    EXPORTING
         I_PPDHD = lv_i_ppdhd
         I_COMPO = lv_i_compo
    IMPORTING
         E_RWIN_HEAD_GL = lv_e_rwin_head_gl
         E_RWIN_HEAD_AP = lv_e_rwin_head_ap
         E_RWIN_HEAD_AR = lv_e_rwin_head_ar
         E_CONV_ERROR = lv_e_conv_error
    TABLES
         T_PPDIT = lt_t_ppdit
         T_PPDMSG = lt_t_ppdmsg
         T_RWIN_ACCGL = lt_t_rwin_accgl
         T_RWIN_ACCPAY = lt_t_rwin_accpay
         T_RWIN_ACCGL_AP = lt_t_rwin_accgl_ap
         T_RWIN_ACCREC = lt_t_rwin_accrec
         T_RWIN_ACCGL_AR = lt_t_rwin_accgl_ar
         T_RWIN_ACCTAX = lt_t_rwin_acctax
         T_RWIN_CURR = lt_t_rwin_curr
. " HRPP_CONVERT_DOCUMENT




ABAP code using 7.40 inline data declarations to call FM HRPP_CONVERT_DOCUMENT

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.

 
 
 
"SELECT single COMPO_ACC FROM BAPIACHE04 INTO @DATA(ld_i_compo).
DATA(ld_i_compo) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 


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!