SAP BAPI_CD_ACCOUNT_GETDETAIL1 Function Module for FS-CD Display Data for Contract Account









BAPI_CD_ACCOUNT_GETDETAIL1 is a standard bapi cd account getdetail1 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FS-CD Display Data for 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 cd account getdetail1 FM, simply by entering the name BAPI_CD_ACCOUNT_GETDETAIL1 into the relevant SAP transaction such as SE37 or SE38.

Function Group: FSCDMAD_CA_BAPI
Program Name: SAPLFSCDMAD_CA_BAPI
Main Program: SAPLFSCDMAD_CA_BAPI
Appliation area:
Release date: 21-Aug-2007
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_CD_ACCOUNT_GETDETAIL1 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_CD_ACCOUNT_GETDETAIL1'"FS-CD Display Data for Contract Account
EXPORTING
* CONT_ACCT = "Contract Account Number
* LEGACY_ACCT = "Contract Account Number in Legacy System
* BUSPARTNER = "Business Partner Number
* BUSPARTNER_EXT = "Business Partner Number in External System
* INSOBJECT = "Identification for an Insurance Object
* VALID_FROM = "Valid-From Date for Contract Account

IMPORTING
ACCOUNTDATA = "Account Data

TABLES
* ACCOUNTPARTNER = "Partner Data for Contract Account
* ACCOUNTPARTNERCORR = "Correspondence Data for Contract Account
* ACCOUNTPARTNERLOCK = "Lock Data for Contract Account
* ACCOUNTPARTNERCHGDISC = "Individual Surcharges and Discounts for Contract Account
* ACCOUNTTAX = "Data for Taxes for Contract Account
* RETURN = "Returns
* EXTENSIONOUT = "Customer Enhancements (ExtensionOut)
.



IMPORTING Parameters details for BAPI_CD_ACCOUNT_GETDETAIL1

CONT_ACCT - Contract Account Number

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

LEGACY_ACCT - Contract Account Number in Legacy System

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

BUSPARTNER - Business Partner Number

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

BUSPARTNER_EXT - Business Partner Number in External System

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

INSOBJECT - Identification for an Insurance Object

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

VALID_FROM - Valid-From Date for Contract Account

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

EXPORTING Parameters details for BAPI_CD_ACCOUNT_GETDETAIL1

ACCOUNTDATA - Account Data

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

TABLES Parameters details for BAPI_CD_ACCOUNT_GETDETAIL1

ACCOUNTPARTNER - Partner Data for Contract Account

Data type: BAPICD_ACCOUNT_PART_D
Optional: Yes
Call by Reference: Yes

ACCOUNTPARTNERCORR - Correspondence Data for Contract Account

Data type: BAPICD_ACCOUNT_PART_CORR_D
Optional: Yes
Call by Reference: Yes

ACCOUNTPARTNERLOCK - Lock Data for Contract Account

Data type: BAPICD_ACCOUNT_PART_LOCK_D
Optional: Yes
Call by Reference: Yes

ACCOUNTPARTNERCHGDISC - Individual Surcharges and Discounts for Contract Account

Data type: BAPICD_ACCOUNT_PART_CHGDISC_D
Optional: Yes
Call by Reference: Yes

ACCOUNTTAX - Data for Taxes for Contract Account

Data type: BAPICD_ACCOUNT_TAX_D
Optional: Yes
Call by Reference: Yes

RETURN - Returns

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

EXTENSIONOUT - Customer Enhancements (ExtensionOut)

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_CD_ACCOUNT_GETDETAIL1 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_cont_acct  TYPE BAPICD_ACCOUNT-CONT_ACCT, "   
lv_accountdata  TYPE BAPICD_ACCOUNT, "   
lt_accountpartner  TYPE STANDARD TABLE OF BAPICD_ACCOUNT_PART_D, "   
lv_legacy_acct  TYPE BAPICD_ACCOUNT-LEGACY_ACCT, "   
lt_accountpartnercorr  TYPE STANDARD TABLE OF BAPICD_ACCOUNT_PART_CORR_D, "   
lv_buspartner  TYPE BAPICD_ACCOUNT_PART-BUSPARTNER, "   
lt_accountpartnerlock  TYPE STANDARD TABLE OF BAPICD_ACCOUNT_PART_LOCK_D, "   
lv_buspartner_ext  TYPE BAPICD_ACCOUNT_PART-BUSPARTNER_EXT, "   
lt_accountpartnerchgdisc  TYPE STANDARD TABLE OF BAPICD_ACCOUNT_PART_CHGDISC_D, "   
lv_insobject  TYPE BAPI_INSOBJECT_KEY-INSOBJECT, "   
lt_accounttax  TYPE STANDARD TABLE OF BAPICD_ACCOUNT_TAX_D, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_valid_from  TYPE BAPI_CD_ACCOUNT_CONTROL-VALID_FROM, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX. "   

  CALL FUNCTION 'BAPI_CD_ACCOUNT_GETDETAIL1'  "FS-CD Display Data for Contract Account
    EXPORTING
         CONT_ACCT = lv_cont_acct
         LEGACY_ACCT = lv_legacy_acct
         BUSPARTNER = lv_buspartner
         BUSPARTNER_EXT = lv_buspartner_ext
         INSOBJECT = lv_insobject
         VALID_FROM = lv_valid_from
    IMPORTING
         ACCOUNTDATA = lv_accountdata
    TABLES
         ACCOUNTPARTNER = lt_accountpartner
         ACCOUNTPARTNERCORR = lt_accountpartnercorr
         ACCOUNTPARTNERLOCK = lt_accountpartnerlock
         ACCOUNTPARTNERCHGDISC = lt_accountpartnerchgdisc
         ACCOUNTTAX = lt_accounttax
         RETURN = lt_return
         EXTENSIONOUT = lt_extensionout
. " BAPI_CD_ACCOUNT_GETDETAIL1




ABAP code using 7.40 inline data declarations to call FM BAPI_CD_ACCOUNT_GETDETAIL1

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 CONT_ACCT FROM BAPICD_ACCOUNT INTO @DATA(ld_cont_acct).
 
 
 
"SELECT single LEGACY_ACCT FROM BAPICD_ACCOUNT INTO @DATA(ld_legacy_acct).
 
 
"SELECT single BUSPARTNER FROM BAPICD_ACCOUNT_PART INTO @DATA(ld_buspartner).
 
 
"SELECT single BUSPARTNER_EXT FROM BAPICD_ACCOUNT_PART INTO @DATA(ld_buspartner_ext).
 
 
"SELECT single INSOBJECT FROM BAPI_INSOBJECT_KEY INTO @DATA(ld_insobject).
 
 
 
"SELECT single VALID_FROM FROM BAPI_CD_ACCOUNT_CONTROL INTO @DATA(ld_valid_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!