SAP CORRESPONDENCE_REQUEST_CREATE Function Module for









CORRESPONDENCE_REQUEST_CREATE is a standard correspondence request create 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 correspondence request create FM, simply by entering the name CORRESPONDENCE_REQUEST_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CORRESPONDENCE_REQUEST_CREATE 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 'CORRESPONDENCE_REQUEST_CREATE'"
EXPORTING
* I_ACCOUNT = ' ' "
* I_DATE_TO = "
* I_LANGUAGE = SY-LANGU "
* I_ERLDT_UPDATE = 'X' "
* I_ACCOUNT_TYPE = ' ' "
* I_COMPANY_CODE = ' ' "
* I_DBUPDATE = 'X' "
* I_DOCUMENT = ' ' "
* I_PROCESS = '*' "
* I_YEAR = 0000 "
I_EVENT = "
* I_DATE_FROM = "

IMPORTING
E_BKORM = "
E_TEXT = "
ET_MESSAGES = "
.



IMPORTING Parameters details for CORRESPONDENCE_REQUEST_CREATE

I_ACCOUNT -

Data type: RF05A-KONTO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATE_TO -

Data type: RF022-DATU2
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LANGUAGE -

Data type: THEAD-TDSPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ERLDT_UPDATE -

Data type: ABAP_BOOL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACCOUNT_TYPE -

Data type: BSEG-XUMSW
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COMPANY_CODE -

Data type: BKPF-BUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DBUPDATE -

Data type: BSEG-XUMSW
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DOCUMENT -

Data type: BKPF-BELNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROCESS -

Data type: CHAR3
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YEAR -

Data type: BKPF-GJAHR
Default: 0000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_EVENT -

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

I_DATE_FROM -

Data type: RF022-DATU1
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CORRESPONDENCE_REQUEST_CREATE

E_BKORM -

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

E_TEXT -

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

ET_MESSAGES -

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

Copy and paste ABAP code example for CORRESPONDENCE_REQUEST_CREATE 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_e_bkorm  TYPE BKORM, "   
lv_i_account  TYPE RF05A-KONTO, "   SPACE
lv_i_date_to  TYPE RF022-DATU2, "   
lv_i_language  TYPE THEAD-TDSPRAS, "   SY-LANGU
lv_i_erldt_update  TYPE ABAP_BOOL, "   'X'
lv_e_text  TYPE T048T-LTEXT, "   
lv_i_account_type  TYPE BSEG-XUMSW, "   SPACE
lv_et_messages  TYPE TSMESG, "   
lv_i_company_code  TYPE BKPF-BUKRS, "   SPACE
lv_i_dbupdate  TYPE BSEG-XUMSW, "   'X'
lv_i_document  TYPE BKPF-BELNR, "   SPACE
lv_i_process  TYPE CHAR3, "   '*'
lv_i_year  TYPE BKPF-GJAHR, "   0000
lv_i_event  TYPE T048-EVENT, "   
lv_i_date_from  TYPE RF022-DATU1. "   

  CALL FUNCTION 'CORRESPONDENCE_REQUEST_CREATE'  "
    EXPORTING
         I_ACCOUNT = lv_i_account
         I_DATE_TO = lv_i_date_to
         I_LANGUAGE = lv_i_language
         I_ERLDT_UPDATE = lv_i_erldt_update
         I_ACCOUNT_TYPE = lv_i_account_type
         I_COMPANY_CODE = lv_i_company_code
         I_DBUPDATE = lv_i_dbupdate
         I_DOCUMENT = lv_i_document
         I_PROCESS = lv_i_process
         I_YEAR = lv_i_year
         I_EVENT = lv_i_event
         I_DATE_FROM = lv_i_date_from
    IMPORTING
         E_BKORM = lv_e_bkorm
         E_TEXT = lv_e_text
         ET_MESSAGES = lv_et_messages
. " CORRESPONDENCE_REQUEST_CREATE




ABAP code using 7.40 inline data declarations to call FM CORRESPONDENCE_REQUEST_CREATE

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 KONTO FROM RF05A INTO @DATA(ld_i_account).
DATA(ld_i_account) = ' '.
 
"SELECT single DATU2 FROM RF022 INTO @DATA(ld_i_date_to).
 
"SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_i_language).
DATA(ld_i_language) = SY-LANGU.
 
DATA(ld_i_erldt_update) = 'X'.
 
"SELECT single LTEXT FROM T048T INTO @DATA(ld_e_text).
 
"SELECT single XUMSW FROM BSEG INTO @DATA(ld_i_account_type).
DATA(ld_i_account_type) = ' '.
 
 
"SELECT single BUKRS FROM BKPF INTO @DATA(ld_i_company_code).
DATA(ld_i_company_code) = ' '.
 
"SELECT single XUMSW FROM BSEG INTO @DATA(ld_i_dbupdate).
DATA(ld_i_dbupdate) = 'X'.
 
"SELECT single BELNR FROM BKPF INTO @DATA(ld_i_document).
DATA(ld_i_document) = ' '.
 
DATA(ld_i_process) = '*'.
 
"SELECT single GJAHR FROM BKPF INTO @DATA(ld_i_year).
DATA(ld_i_year) = 0000.
 
"SELECT single EVENT FROM T048 INTO @DATA(ld_i_event).
 
"SELECT single DATU1 FROM RF022 INTO @DATA(ld_i_date_from).
 


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!