SAP BAPI_ISUACCOUNT_CREATEFROMDATA Function Module for BAPI for creating a contract account
BAPI_ISUACCOUNT_CREATEFROMDATA is a standard bapi isuaccount createfromdata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI for creating a contract account 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 bapi isuaccount createfromdata FM, simply by entering the name BAPI_ISUACCOUNT_CREATEFROMDATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: ECABAPIS
Program Name: SAPLECABAPIS
Main Program: SAPLECABAPIS
Appliation area: E
Release date: 03-Dec-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_ISUACCOUNT_CREATEFROMDATA 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 'BAPI_ISUACCOUNT_CREATEFROMDATA'"BAPI for creating a contract account.
EXPORTING
* CONTRACTACCOUNT = "Contract Account Number
PARTNER = "Number of Business Partner
CONTRACTACCOUNTCATEGORY = "Contract Account Category
* TESTRUN = "'X' --> Not Saved to Database
IMPORTING
RETURN = "Return in Case of Error
CONTRACT_ACCOUNT = "Contract Account Number
TABLES
TCONTRACTACCOUNTDATA = "Contract Account Data
* TCTRACLOCKDETAIL = "
* EXTENSIONIN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
IMPORTING Parameters details for BAPI_ISUACCOUNT_CREATEFROMDATA
CONTRACTACCOUNT - Contract Account Number
Data type: BAPICAPARA-ACCOUNTOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER - Number of Business Partner
Data type: BAPIBPPARA-PARTNEROptional: No
Call by Reference: No ( called with pass by value option)
CONTRACTACCOUNTCATEGORY - Contract Account Category
Data type: BAPICAPARA-CONTR_ACC_CATGOptional: No
Call by Reference: No ( called with pass by value option)
TESTRUN - 'X' --> Not Saved to Database
Data type: BAPIBPPARA-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_ISUACCOUNT_CREATEFROMDATA
RETURN - Return in Case of Error
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
CONTRACT_ACCOUNT - Contract Account Number
Data type: BAPICAPARA-ACCOUNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_ISUACCOUNT_CREATEFROMDATA
TCONTRACTACCOUNTDATA - Contract Account Data
Data type: BAPIISUVKPOptional: No
Call by Reference: No ( called with pass by value option)
TCTRACLOCKDETAIL -
Data type: BAPIFKKVKLOCKSIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXTENSIONIN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_ISUACCOUNT_CREATEFROMDATA 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_return | TYPE BAPIRET2, " | |||
| lv_contractaccount | TYPE BAPICAPARA-ACCOUNT, " | |||
| lt_tcontractaccountdata | TYPE STANDARD TABLE OF BAPIISUVKP, " | |||
| lv_partner | TYPE BAPIBPPARA-PARTNER, " | |||
| lv_contract_account | TYPE BAPICAPARA-ACCOUNT, " | |||
| lt_tctraclockdetail | TYPE STANDARD TABLE OF BAPIFKKVKLOCKSI, " | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_contractaccountcategory | TYPE BAPICAPARA-CONTR_ACC_CATG, " | |||
| lv_testrun | TYPE BAPIBPPARA-TESTRUN. " |
|   CALL FUNCTION 'BAPI_ISUACCOUNT_CREATEFROMDATA' "BAPI for creating a contract account |
| EXPORTING | ||
| CONTRACTACCOUNT | = lv_contractaccount | |
| PARTNER | = lv_partner | |
| CONTRACTACCOUNTCATEGORY | = lv_contractaccountcategory | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| RETURN | = lv_return | |
| CONTRACT_ACCOUNT | = lv_contract_account | |
| TABLES | ||
| TCONTRACTACCOUNTDATA | = lt_tcontractaccountdata | |
| TCTRACLOCKDETAIL | = lt_tctraclockdetail | |
| EXTENSIONIN | = lt_extensionin | |
| . " BAPI_ISUACCOUNT_CREATEFROMDATA | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_ISUACCOUNT_CREATEFROMDATA
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 ACCOUNT FROM BAPICAPARA INTO @DATA(ld_contractaccount). | ||||
| "SELECT single PARTNER FROM BAPIBPPARA INTO @DATA(ld_partner). | ||||
| "SELECT single ACCOUNT FROM BAPICAPARA INTO @DATA(ld_contract_account). | ||||
| "SELECT single CONTR_ACC_CATG FROM BAPICAPARA INTO @DATA(ld_contractaccountcategory). | ||||
| "SELECT single TESTRUN FROM BAPIBPPARA INTO @DATA(ld_testrun). | ||||
Search for further information about these or an SAP related objects