SAP FCJ_CHECK_VEND_CUST Function Module for









FCJ_CHECK_VEND_CUST is a standard fcj check vend cust 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 fcj check vend cust FM, simply by entering the name FCJ_CHECK_VEND_CUST into the relevant SAP transaction such as SE37 or SE38.

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



Function FCJ_CHECK_VEND_CUST 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 'FCJ_CHECK_VEND_CUST'"
EXPORTING
I_TRANSACT_NAME = "
* I_POSTING = "Cash Journal Structure Screen 0100 SAPMFCJ0
I_TYP = "
I_COMP_CODE = "Company Code
I_IMKEY = "Internal Key for Real Estate Object
* I_BANK_CTRY = "Bank Country Key
* I_BANK_KEY = "Bank Key
* I_BANK_ACCT = "Bank Account Number
* I_OLD_VENDOR_NO = "Account Number of Vendor
* I_OLD_CUSTOMER_NO = "Customer Number

CHANGING
P_VENDOR_NO = "Account Number of Vendor
P_CUSTOMER = "Customer Number
P_BRANCH = "Account number of the branch
* P_BP_NAME = "Name of Receipt Recipient
* P_STCEG = "VAT Registration Number

TABLES
* ITCJ_CPD = "FBCJ: One-Time Account Data of Cash Journal Document Items
* ITCJ_WTAX_ITEMS = "
.



IMPORTING Parameters details for FCJ_CHECK_VEND_CUST

I_TRANSACT_NAME -

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

I_POSTING - Cash Journal Structure Screen 0100 SAPMFCJ0

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

I_TYP -

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

I_COMP_CODE - Company Code

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

I_IMKEY - Internal Key for Real Estate Object

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

I_BANK_CTRY - Bank Country Key

Data type: ISCJ_CR_POSTINGS-BANK_CTRY
Optional: Yes
Call by Reference: Yes

I_BANK_KEY - Bank Key

Data type: ISCJ_CR_POSTINGS-BANK_KEY
Optional: Yes
Call by Reference: Yes

I_BANK_ACCT - Bank Account Number

Data type: ISCJ_CR_POSTINGS-BANK_ACCT
Optional: Yes
Call by Reference: Yes

I_OLD_VENDOR_NO - Account Number of Vendor

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

I_OLD_CUSTOMER_NO - Customer Number

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

CHANGING Parameters details for FCJ_CHECK_VEND_CUST

P_VENDOR_NO - Account Number of Vendor

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

P_CUSTOMER - Customer Number

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

P_BRANCH - Account number of the branch

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

P_BP_NAME - Name of Receipt Recipient

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

P_STCEG - VAT Registration Number

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

TABLES Parameters details for FCJ_CHECK_VEND_CUST

ITCJ_CPD - FBCJ: One-Time Account Data of Cash Journal Document Items

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

ITCJ_WTAX_ITEMS -

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

Copy and paste ABAP code example for FCJ_CHECK_VEND_CUST 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_itcj_cpd  TYPE STANDARD TABLE OF TCJ_CPD, "   
lv_p_vendor_no  TYPE LIFNR, "   
lv_i_transact_name  TYPE TCJ_TRANS_NAMES-TRANSACT_NAME, "   
lv_i_posting  TYPE ISCJ_POSTINGS, "   
lv_i_typ  TYPE CJTRANSTYP, "   
lv_p_customer  TYPE KUNNR, "   
lt_itcj_wtax_items  TYPE STANDARD TABLE OF TCJ_WTAX_ITEMS, "   
lv_p_branch  TYPE FILKD, "   
lv_i_comp_code  TYPE TCJ_C_JOURNALS-COMP_CODE, "   
lv_i_imkey  TYPE IMKEY, "   
lv_p_bp_name  TYPE CJBPNAME, "   
lv_p_stceg  TYPE STCEG, "   
lv_i_bank_ctry  TYPE ISCJ_CR_POSTINGS-BANK_CTRY, "   
lv_i_bank_key  TYPE ISCJ_CR_POSTINGS-BANK_KEY, "   
lv_i_bank_acct  TYPE ISCJ_CR_POSTINGS-BANK_ACCT, "   
lv_i_old_vendor_no  TYPE LIFNR, "   
lv_i_old_customer_no  TYPE KUNNR. "   

  CALL FUNCTION 'FCJ_CHECK_VEND_CUST'  "
    EXPORTING
         I_TRANSACT_NAME = lv_i_transact_name
         I_POSTING = lv_i_posting
         I_TYP = lv_i_typ
         I_COMP_CODE = lv_i_comp_code
         I_IMKEY = lv_i_imkey
         I_BANK_CTRY = lv_i_bank_ctry
         I_BANK_KEY = lv_i_bank_key
         I_BANK_ACCT = lv_i_bank_acct
         I_OLD_VENDOR_NO = lv_i_old_vendor_no
         I_OLD_CUSTOMER_NO = lv_i_old_customer_no
    CHANGING
         P_VENDOR_NO = lv_p_vendor_no
         P_CUSTOMER = lv_p_customer
         P_BRANCH = lv_p_branch
         P_BP_NAME = lv_p_bp_name
         P_STCEG = lv_p_stceg
    TABLES
         ITCJ_CPD = lt_itcj_cpd
         ITCJ_WTAX_ITEMS = lt_itcj_wtax_items
. " FCJ_CHECK_VEND_CUST




ABAP code using 7.40 inline data declarations to call FM FCJ_CHECK_VEND_CUST

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 TRANSACT_NAME FROM TCJ_TRANS_NAMES INTO @DATA(ld_i_transact_name).
 
 
 
 
 
 
"SELECT single COMP_CODE FROM TCJ_C_JOURNALS INTO @DATA(ld_i_comp_code).
 
 
 
 
"SELECT single BANK_CTRY FROM ISCJ_CR_POSTINGS INTO @DATA(ld_i_bank_ctry).
 
"SELECT single BANK_KEY FROM ISCJ_CR_POSTINGS INTO @DATA(ld_i_bank_key).
 
"SELECT single BANK_ACCT FROM ISCJ_CR_POSTINGS INTO @DATA(ld_i_bank_acct).
 
 
 


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!