SAP Function Modules

ISH_INVOICE_ENDDATE_GET SAP Function module







ISH_INVOICE_ENDDATE_GET 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_INVOICE_ENDDATE_GET into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISH_INVOICE_ENDDATE_GET - ISH INVOICE ENDDATE GET





CALL FUNCTION 'ISH_INVOICE_ENDDATE_GET' "
  EXPORTING
    i_einri =                   " einri
    is_nlei =                   " nlei
    i_rnf18_aufdt =             " rnf18-aufdt
    i_rnf18_aufzt =             " rnf18-aufzt
    i_rnf18_entbwart =          " rnf18-entbwart
    i_rnf18_entdt =             " rnf18-entdt
    i_rnf18_entzt =             " rnf18-entzt
    ishbegdt =                  " vbrp-ishbegdt
    ishenddt =                  " vbrp-ishenddt
    ishdatzw =                  " vbrp-ishdatzw
    i_menge =                   " rnfp1-menge
    i_abtar =                   " vbrp-ishabtar
    i_ablst =                   " vbrp-ishablst
  IMPORTING
    e_rnfp1_begdt =             " rnfp1-begdt
    e_rnfp1_enddt =             " rnfp1-enddt
    e_rnfp1_datzw =             " rnfp1-datzw
    .  "  ISH_INVOICE_ENDDATE_GET

ABAP code example for Function Module ISH_INVOICE_ENDDATE_GET





The ABAP code below is a full code listing to execute function module ISH_INVOICE_ENDDATE_GET 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_e_rnfp1_begdt  TYPE RNFP1-BEGDT ,
ld_e_rnfp1_enddt  TYPE RNFP1-ENDDT ,
ld_e_rnfp1_datzw  TYPE RNFP1-DATZW .

DATA(ld_i_einri) = 'Check type of data required'.
DATA(ld_is_nlei) = 'Check type of data required'.

DATA(ld_i_rnf18_aufdt) = 20210129

DATA(ld_i_rnf18_aufzt) = Check type of data required

DATA(ld_i_rnf18_entbwart) = some text here

DATA(ld_i_rnf18_entdt) = 20210129

DATA(ld_i_rnf18_entzt) = Check type of data required

SELECT single ISHBEGDT
FROM VBRP
INTO @DATA(ld_ishbegdt).


SELECT single ISHENDDT
FROM VBRP
INTO @DATA(ld_ishenddt).


SELECT single ISHDATZW
FROM VBRP
INTO @DATA(ld_ishdatzw).


DATA(ld_i_menge) = Check type of data required

SELECT single ISHABTAR
FROM VBRP
INTO @DATA(ld_i_abtar).


SELECT single ISHABLST
FROM VBRP
INTO @DATA(ld_i_ablst).
. CALL FUNCTION 'ISH_INVOICE_ENDDATE_GET' EXPORTING i_einri = ld_i_einri is_nlei = ld_is_nlei i_rnf18_aufdt = ld_i_rnf18_aufdt i_rnf18_aufzt = ld_i_rnf18_aufzt i_rnf18_entbwart = ld_i_rnf18_entbwart i_rnf18_entdt = ld_i_rnf18_entdt i_rnf18_entzt = ld_i_rnf18_entzt ishbegdt = ld_ishbegdt ishenddt = ld_ishenddt ishdatzw = ld_ishdatzw i_menge = ld_i_menge i_abtar = ld_i_abtar i_ablst = ld_i_ablst IMPORTING e_rnfp1_begdt = ld_e_rnfp1_begdt e_rnfp1_enddt = ld_e_rnfp1_enddt e_rnfp1_datzw = ld_e_rnfp1_datzw . " ISH_INVOICE_ENDDATE_GET
IF SY-SUBRC EQ 0. "All OK 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_e_rnfp1_begdt  TYPE RNFP1-BEGDT ,
ld_i_einri  TYPE EINRI ,
ld_e_rnfp1_enddt  TYPE RNFP1-ENDDT ,
ld_is_nlei  TYPE NLEI ,
ld_e_rnfp1_datzw  TYPE RNFP1-DATZW ,
ld_i_rnf18_aufdt  TYPE RNF18-AUFDT ,
ld_i_rnf18_aufzt  TYPE RNF18-AUFZT ,
ld_i_rnf18_entbwart  TYPE RNF18-ENTBWART ,
ld_i_rnf18_entdt  TYPE RNF18-ENTDT ,
ld_i_rnf18_entzt  TYPE RNF18-ENTZT ,
ld_ishbegdt  TYPE VBRP-ISHBEGDT ,
ld_ishenddt  TYPE VBRP-ISHENDDT ,
ld_ishdatzw  TYPE VBRP-ISHDATZW ,
ld_i_menge  TYPE RNFP1-MENGE ,
ld_i_abtar  TYPE VBRP-ISHABTAR ,
ld_i_ablst  TYPE VBRP-ISHABLST .

ld_i_einri = 'Check type of data required'.
ld_is_nlei = 'Check type of data required'.

ld_i_rnf18_aufdt = 20210129

ld_i_rnf18_aufzt = Check type of data required

ld_i_rnf18_entbwart = some text here

ld_i_rnf18_entdt = 20210129

ld_i_rnf18_entzt = Check type of data required

SELECT single ISHBEGDT
FROM VBRP
INTO ld_ishbegdt.


SELECT single ISHENDDT
FROM VBRP
INTO ld_ishenddt.


SELECT single ISHDATZW
FROM VBRP
INTO ld_ishdatzw.


ld_i_menge = Check type of data required

SELECT single ISHABTAR
FROM VBRP
INTO ld_i_abtar.


SELECT single ISHABLST
FROM VBRP
INTO ld_i_ablst.

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_INVOICE_ENDDATE_GET or its description.