SAP SD_CREDIT_RECREATE Function Module for NOTRANSL: Neuaufbau Kreditdaten SD
SD_CREDIT_RECREATE is a standard sd credit recreate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Neuaufbau Kreditdaten SD 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 sd credit recreate FM, simply by entering the name SD_CREDIT_RECREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: VKMP
Program Name: SAPLVKMP
Main Program: SAPLVKMP
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function SD_CREDIT_RECREATE 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 'SD_CREDIT_RECREATE'"NOTRANSL: Neuaufbau Kreditdaten SD.
EXPORTING
* AFTER_CHANGE_KNKLI = 'X' "
* VBELN = ' ' "
* CHANGE_DOCUMENTS = 'X' "
* AFTER_CHANGE_PRICE_SCHEME = 'X' "
* AFTER_CHANGE_TVAP_TVLP = 'X' "
* KKBER = ' ' "Credit Control Area
* KUNNR = ' ' "Payer
* PROTOCOL = ' ' "
* RECHECK_DOCUMENTS = ' ' "
* SET_COMMIT = 'X' "
* TKNKK = ' ' "
TABLES
* PROTTABLE = "Application Log: Table with Messages in SD
IMPORTING Parameters details for SD_CREDIT_RECREATE
AFTER_CHANGE_KNKLI -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VBELN -
Data type: VBUK-VBELNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_DOCUMENTS -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AFTER_CHANGE_PRICE_SCHEME -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AFTER_CHANGE_TVAP_TVLP -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KKBER - Credit Control Area
Data type: KNKK-KKBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KUNNR - Payer
Data type: KNKK-KUNNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROTOCOL -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RECHECK_DOCUMENTS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SET_COMMIT -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TKNKK -
Data type: KNKKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_CREDIT_RECREATE
PROTTABLE - Application Log: Table with Messages in SD
Data type: BAL_T_MSG_SDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SD_CREDIT_RECREATE 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_prottable | TYPE STANDARD TABLE OF BAL_T_MSG_SD, " | |||
lv_after_change_knkli | TYPE BAL_T_MSG_SD, " 'X' | |||
lv_vbeln | TYPE VBUK-VBELN, " SPACE | |||
lv_change_documents | TYPE VBUK, " 'X' | |||
lv_after_change_price_scheme | TYPE VBUK, " 'X' | |||
lv_after_change_tvap_tvlp | TYPE VBUK, " 'X' | |||
lv_kkber | TYPE KNKK-KKBER, " SPACE | |||
lv_kunnr | TYPE KNKK-KUNNR, " SPACE | |||
lv_protocol | TYPE KNKK, " SPACE | |||
lv_recheck_documents | TYPE KNKK, " SPACE | |||
lv_set_commit | TYPE KNKK, " 'X' | |||
lv_tknkk | TYPE KNKK. " SPACE |
  CALL FUNCTION 'SD_CREDIT_RECREATE' "NOTRANSL: Neuaufbau Kreditdaten SD |
EXPORTING | ||
AFTER_CHANGE_KNKLI | = lv_after_change_knkli | |
VBELN | = lv_vbeln | |
CHANGE_DOCUMENTS | = lv_change_documents | |
AFTER_CHANGE_PRICE_SCHEME | = lv_after_change_price_scheme | |
AFTER_CHANGE_TVAP_TVLP | = lv_after_change_tvap_tvlp | |
KKBER | = lv_kkber | |
KUNNR | = lv_kunnr | |
PROTOCOL | = lv_protocol | |
RECHECK_DOCUMENTS | = lv_recheck_documents | |
SET_COMMIT | = lv_set_commit | |
TKNKK | = lv_tknkk | |
TABLES | ||
PROTTABLE | = lt_prottable | |
. " SD_CREDIT_RECREATE |
ABAP code using 7.40 inline data declarations to call FM SD_CREDIT_RECREATE
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.DATA(ld_after_change_knkli) | = 'X'. | |||
"SELECT single VBELN FROM VBUK INTO @DATA(ld_vbeln). | ||||
DATA(ld_vbeln) | = ' '. | |||
DATA(ld_change_documents) | = 'X'. | |||
DATA(ld_after_change_price_scheme) | = 'X'. | |||
DATA(ld_after_change_tvap_tvlp) | = 'X'. | |||
"SELECT single KKBER FROM KNKK INTO @DATA(ld_kkber). | ||||
DATA(ld_kkber) | = ' '. | |||
"SELECT single KUNNR FROM KNKK INTO @DATA(ld_kunnr). | ||||
DATA(ld_kunnr) | = ' '. | |||
DATA(ld_protocol) | = ' '. | |||
DATA(ld_recheck_documents) | = ' '. | |||
DATA(ld_set_commit) | = 'X'. | |||
DATA(ld_tknkk) | = ' '. | |||
Search for further information about these or an SAP related objects