SAP Function Modules

CATT_GLPCAP_RETRN_REC_NO_DOCNR SAP Function module







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

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


Pattern for FM CATT_GLPCAP_RETRN_REC_NO_DOCNR - CATT GLPCAP RETRN REC NO DOCNR





CALL FUNCTION 'CATT_GLPCAP_RETRN_REC_NO_DOCNR' "
  EXPORTING
*   tabelle = GLPCA             "
    profit_center =             " glpca-rprctr
    kontonummer =               " glpca-racct
    geschaeftsjahr =            " glpca-ryear
    satzart =                   " glpca-rrcty
    soll_haben_kz =             " glpca-drcrk
    pca_beleg =                 " glpca-docnr
  IMPORTING
    satznummer =                " glpca-gl_sirid
    anzahl_saetze =             " sy-dbcnt
  EXCEPTIONS
    NO_DATA = 1                 "
    WRONG_TABLE = 2             "
    .  "  CATT_GLPCAP_RETRN_REC_NO_DOCNR

ABAP code example for Function Module CATT_GLPCAP_RETRN_REC_NO_DOCNR





The ABAP code below is a full code listing to execute function module CATT_GLPCAP_RETRN_REC_NO_DOCNR 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_satznummer  TYPE GLPCA-GL_SIRID ,
ld_anzahl_saetze  TYPE SY-DBCNT .

DATA(ld_tabelle) = 'some text here'.

SELECT single RPRCTR
FROM GLPCA
INTO @DATA(ld_profit_center).


SELECT single RACCT
FROM GLPCA
INTO @DATA(ld_kontonummer).


SELECT single RYEAR
FROM GLPCA
INTO @DATA(ld_geschaeftsjahr).


SELECT single RRCTY
FROM GLPCA
INTO @DATA(ld_satzart).


SELECT single DRCRK
FROM GLPCA
INTO @DATA(ld_soll_haben_kz).


SELECT single DOCNR
FROM GLPCA
INTO @DATA(ld_pca_beleg).
. CALL FUNCTION 'CATT_GLPCAP_RETRN_REC_NO_DOCNR' EXPORTING * tabelle = ld_tabelle profit_center = ld_profit_center kontonummer = ld_kontonummer geschaeftsjahr = ld_geschaeftsjahr satzart = ld_satzart soll_haben_kz = ld_soll_haben_kz pca_beleg = ld_pca_beleg IMPORTING satznummer = ld_satznummer anzahl_saetze = ld_anzahl_saetze EXCEPTIONS NO_DATA = 1 WRONG_TABLE = 2 . " CATT_GLPCAP_RETRN_REC_NO_DOCNR
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 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_satznummer  TYPE GLPCA-GL_SIRID ,
ld_tabelle  TYPE STRING ,
ld_anzahl_saetze  TYPE SY-DBCNT ,
ld_profit_center  TYPE GLPCA-RPRCTR ,
ld_kontonummer  TYPE GLPCA-RACCT ,
ld_geschaeftsjahr  TYPE GLPCA-RYEAR ,
ld_satzart  TYPE GLPCA-RRCTY ,
ld_soll_haben_kz  TYPE GLPCA-DRCRK ,
ld_pca_beleg  TYPE GLPCA-DOCNR .

ld_tabelle = 'some text here'.

SELECT single RPRCTR
FROM GLPCA
INTO ld_profit_center.


SELECT single RACCT
FROM GLPCA
INTO ld_kontonummer.


SELECT single RYEAR
FROM GLPCA
INTO ld_geschaeftsjahr.


SELECT single RRCTY
FROM GLPCA
INTO ld_satzart.


SELECT single DRCRK
FROM GLPCA
INTO ld_soll_haben_kz.


SELECT single DOCNR
FROM GLPCA
INTO ld_pca_beleg.

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