SAP ISM_PAYMENT_METHOD_CHECK Function Module for IS-M/AM: Check Payment Method (Admissibility for Payer/Payment Card)









ISM_PAYMENT_METHOD_CHECK is a standard ism payment method check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Check Payment Method (Admissibility for Payer/Payment Card) 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 ism payment method check FM, simply by entering the name ISM_PAYMENT_METHOD_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function ISM_PAYMENT_METHOD_CHECK 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 'ISM_PAYMENT_METHOD_CHECK'"IS-M/AM: Check Payment Method (Admissibility for Payer/Payment Card)
EXPORTING
PV_BUKRS = "Company code of the sales organization
PV_ALAND = "Departure country (country from which the goods are sent)
PV_XGP_ZAHLW = "IS-M: Only payment methods from BP master data permitted
PV_XCPDK = "Indicator: Is the account a one-time account?
PV_ZLSCH = "Payment Method
PV_REGULIERER = "IS-M: Payer
* PV_CCINS = "Payment Cards: Card Type
* PV_WAERS = "

EXCEPTIONS
CREDITCARD_USED = 1 NO_PAYMENT_METHOD_OF_COUNTRY = 2 NO_PAYMENT_METHOD_OF_PAYER = 3 NO_SEPA_PAYMENT_METHOD_VALID = 4
.



IMPORTING Parameters details for ISM_PAYMENT_METHOD_CHECK

PV_BUKRS - Company code of the sales organization

Data type: RJHALLG-BUKRS
Optional: No
Call by Reference: Yes

PV_ALAND - Departure country (country from which the goods are sent)

Data type: RJHALLG-ALAND
Optional: No
Call by Reference: Yes

PV_XGP_ZAHLW - IS-M: Only payment methods from BP master data permitted

Data type: RJHALLG-XGP_ZAHLW
Optional: No
Call by Reference: Yes

PV_XCPDK - Indicator: Is the account a one-time account?

Data type: RJHAK-XCPDK
Optional: No
Call by Reference: Yes

PV_ZLSCH - Payment Method

Data type: RJHAISZ-ZLSCH
Optional: No
Call by Reference: Yes

PV_REGULIERER - IS-M: Payer

Data type: RJHAISZ-REGULIERER
Optional: No
Call by Reference: Yes

PV_CCINS - Payment Cards: Card Type

Data type: RJHAISZ-CCINS
Optional: Yes
Call by Reference: Yes

PV_WAERS -

Data type: RJHAISZ-WAERG
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

CREDITCARD_USED -

Data type:
Optional: No
Call by Reference: Yes

NO_PAYMENT_METHOD_OF_COUNTRY -

Data type:
Optional: No
Call by Reference: Yes

NO_PAYMENT_METHOD_OF_PAYER -

Data type:
Optional: No
Call by Reference: Yes

NO_SEPA_PAYMENT_METHOD_VALID -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_PAYMENT_METHOD_CHECK 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_pv_bukrs  TYPE RJHALLG-BUKRS, "   
lv_creditcard_used  TYPE RJHALLG, "   
lv_pv_aland  TYPE RJHALLG-ALAND, "   
lv_no_payment_method_of_country  TYPE RJHALLG, "   
lv_pv_xgp_zahlw  TYPE RJHALLG-XGP_ZAHLW, "   
lv_no_payment_method_of_payer  TYPE RJHALLG, "   
lv_pv_xcpdk  TYPE RJHAK-XCPDK, "   
lv_no_sepa_payment_method_valid  TYPE RJHAK, "   
lv_pv_zlsch  TYPE RJHAISZ-ZLSCH, "   
lv_pv_regulierer  TYPE RJHAISZ-REGULIERER, "   
lv_pv_ccins  TYPE RJHAISZ-CCINS, "   
lv_pv_waers  TYPE RJHAISZ-WAERG. "   

  CALL FUNCTION 'ISM_PAYMENT_METHOD_CHECK'  "IS-M/AM: Check Payment Method (Admissibility for Payer/Payment Card)
    EXPORTING
         PV_BUKRS = lv_pv_bukrs
         PV_ALAND = lv_pv_aland
         PV_XGP_ZAHLW = lv_pv_xgp_zahlw
         PV_XCPDK = lv_pv_xcpdk
         PV_ZLSCH = lv_pv_zlsch
         PV_REGULIERER = lv_pv_regulierer
         PV_CCINS = lv_pv_ccins
         PV_WAERS = lv_pv_waers
    EXCEPTIONS
        CREDITCARD_USED = 1
        NO_PAYMENT_METHOD_OF_COUNTRY = 2
        NO_PAYMENT_METHOD_OF_PAYER = 3
        NO_SEPA_PAYMENT_METHOD_VALID = 4
. " ISM_PAYMENT_METHOD_CHECK




ABAP code using 7.40 inline data declarations to call FM ISM_PAYMENT_METHOD_CHECK

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 BUKRS FROM RJHALLG INTO @DATA(ld_pv_bukrs).
 
 
"SELECT single ALAND FROM RJHALLG INTO @DATA(ld_pv_aland).
 
 
"SELECT single XGP_ZAHLW FROM RJHALLG INTO @DATA(ld_pv_xgp_zahlw).
 
 
"SELECT single XCPDK FROM RJHAK INTO @DATA(ld_pv_xcpdk).
 
 
"SELECT single ZLSCH FROM RJHAISZ INTO @DATA(ld_pv_zlsch).
 
"SELECT single REGULIERER FROM RJHAISZ INTO @DATA(ld_pv_regulierer).
 
"SELECT single CCINS FROM RJHAISZ INTO @DATA(ld_pv_ccins).
 
"SELECT single WAERG FROM RJHAISZ INTO @DATA(ld_pv_waers).
 


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!