SAP Function Modules

ISH_PROCESS_PAYMENT_GUARANTEE SAP Function module







ISH_PROCESS_PAYMENT_GUARANTEE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISH_PROCESS_PAYMENT_GUARANTEE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: NKOS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISH_PROCESS_PAYMENT_GUARANTEE - ISH PROCESS PAYMENT GUARANTEE





CALL FUNCTION 'ISH_PROCESS_PAYMENT_GUARANTEE' "
  EXPORTING
*   dynpro_variante = 'S'       "               F=coll.enty per case; K=single entry per cert.no.
*   extp_nam = SY-CPROG         " sy-cprog      Name of Calling Program/Module Pool
    i_rnexl =                   " rnexl         Transfer parameter structure for function module
    i_tcode =                   " sy-tcode
    i_vcode =                   " rnpk1-vcode
  IMPORTING
    return_all_saved =          "               TRUE=no data to save/FALSE=modify data
    return_okcode =             " sy-tcode      User Input in Function Module
* TABLES
*   e_nksk_alt =                " rnksk
*   e_nksk_neu =                " rnksk
*   e_nksp_alt =                " rnksp
*   e_nksp_neu =                " rnksp
  EXCEPTIONS
    COT_FOUND = 1               "               Certificate asgmt (NLKZ) found             -->F2
    NO_NVVF = 2                 "               No case-rel. insurance relationship found
    WRONG_IMPORT = 3            "               Invalid Call
    WRONG_COUNTRY_VERSION = 4   "
    .  "  ISH_PROCESS_PAYMENT_GUARANTEE

ABAP code example for Function Module ISH_PROCESS_PAYMENT_GUARANTEE





The ABAP code below is a full code listing to execute function module ISH_PROCESS_PAYMENT_GUARANTEE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_return_all_saved  TYPE STRING ,
ld_return_okcode  TYPE SY-TCODE ,
it_e_nksk_alt  TYPE STANDARD TABLE OF RNKSK,"TABLES PARAM
wa_e_nksk_alt  LIKE LINE OF it_e_nksk_alt ,
it_e_nksk_neu  TYPE STANDARD TABLE OF RNKSK,"TABLES PARAM
wa_e_nksk_neu  LIKE LINE OF it_e_nksk_neu ,
it_e_nksp_alt  TYPE STANDARD TABLE OF RNKSP,"TABLES PARAM
wa_e_nksp_alt  LIKE LINE OF it_e_nksp_alt ,
it_e_nksp_neu  TYPE STANDARD TABLE OF RNKSP,"TABLES PARAM
wa_e_nksp_neu  LIKE LINE OF it_e_nksp_neu .

DATA(ld_dynpro_variante) = 'some text here'.
DATA(ld_extp_nam) = 'some text here'.
DATA(ld_i_rnexl) = 'some text here'.
DATA(ld_i_tcode) = 'some text here'.

DATA(ld_i_vcode) = some text here

"populate fields of struture and append to itab
append wa_e_nksk_alt to it_e_nksk_alt.

"populate fields of struture and append to itab
append wa_e_nksk_neu to it_e_nksk_neu.

"populate fields of struture and append to itab
append wa_e_nksp_alt to it_e_nksp_alt.

"populate fields of struture and append to itab
append wa_e_nksp_neu to it_e_nksp_neu. . CALL FUNCTION 'ISH_PROCESS_PAYMENT_GUARANTEE' EXPORTING * dynpro_variante = ld_dynpro_variante * extp_nam = ld_extp_nam i_rnexl = ld_i_rnexl i_tcode = ld_i_tcode i_vcode = ld_i_vcode IMPORTING return_all_saved = ld_return_all_saved return_okcode = ld_return_okcode * TABLES * e_nksk_alt = it_e_nksk_alt * e_nksk_neu = it_e_nksk_neu * e_nksp_alt = it_e_nksp_alt * e_nksp_neu = it_e_nksp_neu EXCEPTIONS COT_FOUND = 1 NO_NVVF = 2 WRONG_IMPORT = 3 WRONG_COUNTRY_VERSION = 4 . " ISH_PROCESS_PAYMENT_GUARANTEE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_return_all_saved  TYPE STRING ,
ld_dynpro_variante  TYPE STRING ,
it_e_nksk_alt  TYPE STANDARD TABLE OF RNKSK ,
wa_e_nksk_alt  LIKE LINE OF it_e_nksk_alt,
ld_return_okcode  TYPE SY-TCODE ,
ld_extp_nam  TYPE SY-CPROG ,
it_e_nksk_neu  TYPE STANDARD TABLE OF RNKSK ,
wa_e_nksk_neu  LIKE LINE OF it_e_nksk_neu,
ld_i_rnexl  TYPE RNEXL ,
it_e_nksp_alt  TYPE STANDARD TABLE OF RNKSP ,
wa_e_nksp_alt  LIKE LINE OF it_e_nksp_alt,
ld_i_tcode  TYPE SY-TCODE ,
it_e_nksp_neu  TYPE STANDARD TABLE OF RNKSP ,
wa_e_nksp_neu  LIKE LINE OF it_e_nksp_neu,
ld_i_vcode  TYPE RNPK1-VCODE .

ld_dynpro_variante = 'some text here'.

"populate fields of struture and append to itab
append wa_e_nksk_alt to it_e_nksk_alt.
ld_extp_nam = 'some text here'.

"populate fields of struture and append to itab
append wa_e_nksk_neu to it_e_nksk_neu.
ld_i_rnexl = 'some text here'.

"populate fields of struture and append to itab
append wa_e_nksp_alt to it_e_nksp_alt.
ld_i_tcode = 'some text here'.

"populate fields of struture and append to itab
append wa_e_nksp_neu to it_e_nksp_neu.

ld_i_vcode = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISH_PROCESS_PAYMENT_GUARANTEE or its description.