SAP ISB_PCGL_LEDGER_READ Function Module for IS-B: Lesen eines Profit Center - Ledgers









ISB_PCGL_LEDGER_READ is a standard isb pcgl ledger read 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-B: Lesen eines Profit Center - Ledgers 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 isb pcgl ledger read FM, simply by entering the name ISB_PCGL_LEDGER_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function ISB_PCGL_LEDGER_READ 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 'ISB_PCGL_LEDGER_READ'"IS-B: Lesen eines Profit Center - Ledgers
EXPORTING
* I_RLDNR = CON_RLDNR "
* I_RRCTY = CON_RRCTY "
I_RVERS = "
I_RYEAR = "
* I_DRCRK = CON_LIKE "
I_RBUKRS = "
I_PERIO = "

IMPORTING
I_BDSVOL = "

TABLES
SAKNR_TAB = "
PRCTR_TAB = "

EXCEPTIONS
WRONG_LEDGER = 1 NO_SUM_TABLE = 2 NO_AB_LEDGER = 3 NO_ENTRIES_IN_SUM_TABLE = 4
.



IMPORTING Parameters details for ISB_PCGL_LEDGER_READ

I_RLDNR -

Data type: T881-RLDNR
Default: CON_RLDNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RRCTY -

Data type: GLPCT-RRCTY
Default: CON_RRCTY
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RVERS -

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

I_RYEAR -

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

I_DRCRK -

Data type: GLPCT-DRCRK
Default: CON_LIKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RBUKRS -

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

I_PERIO -

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

EXPORTING Parameters details for ISB_PCGL_LEDGER_READ

I_BDSVOL -

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

TABLES Parameters details for ISB_PCGL_LEDGER_READ

SAKNR_TAB -

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

PRCTR_TAB -

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

EXCEPTIONS details

WRONG_LEDGER -

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

NO_SUM_TABLE -

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

NO_AB_LEDGER -

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

NO_ENTRIES_IN_SUM_TABLE -

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

Copy and paste ABAP code example for ISB_PCGL_LEDGER_READ 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_i_rldnr  TYPE T881-RLDNR, "   CON_RLDNR
lv_i_bdsvol  TYPE JBDWFF-BDSVOL, "   
lt_saknr_tab  TYPE STANDARD TABLE OF JBTRANGE, "   
lv_wrong_ledger  TYPE JBTRANGE, "   
lv_i_rrcty  TYPE GLPCT-RRCTY, "   CON_RRCTY
lt_prctr_tab  TYPE STANDARD TABLE OF JBTPRCTR, "   
lv_no_sum_table  TYPE JBTPRCTR, "   
lv_i_rvers  TYPE GLPCT-RVERS, "   
lv_no_ab_ledger  TYPE GLPCT, "   
lv_i_ryear  TYPE GLPCT-RYEAR, "   
lv_no_entries_in_sum_table  TYPE GLPCT, "   
lv_i_drcrk  TYPE GLPCT-DRCRK, "   CON_LIKE
lv_i_rbukrs  TYPE T001-BUKRS, "   
lv_i_perio  TYPE GLPCT-RPMAX. "   

  CALL FUNCTION 'ISB_PCGL_LEDGER_READ'  "IS-B: Lesen eines Profit Center - Ledgers
    EXPORTING
         I_RLDNR = lv_i_rldnr
         I_RRCTY = lv_i_rrcty
         I_RVERS = lv_i_rvers
         I_RYEAR = lv_i_ryear
         I_DRCRK = lv_i_drcrk
         I_RBUKRS = lv_i_rbukrs
         I_PERIO = lv_i_perio
    IMPORTING
         I_BDSVOL = lv_i_bdsvol
    TABLES
         SAKNR_TAB = lt_saknr_tab
         PRCTR_TAB = lt_prctr_tab
    EXCEPTIONS
        WRONG_LEDGER = 1
        NO_SUM_TABLE = 2
        NO_AB_LEDGER = 3
        NO_ENTRIES_IN_SUM_TABLE = 4
. " ISB_PCGL_LEDGER_READ




ABAP code using 7.40 inline data declarations to call FM ISB_PCGL_LEDGER_READ

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 RLDNR FROM T881 INTO @DATA(ld_i_rldnr).
DATA(ld_i_rldnr) = CON_RLDNR.
 
"SELECT single BDSVOL FROM JBDWFF INTO @DATA(ld_i_bdsvol).
 
 
 
"SELECT single RRCTY FROM GLPCT INTO @DATA(ld_i_rrcty).
DATA(ld_i_rrcty) = CON_RRCTY.
 
 
 
"SELECT single RVERS FROM GLPCT INTO @DATA(ld_i_rvers).
 
 
"SELECT single RYEAR FROM GLPCT INTO @DATA(ld_i_ryear).
 
 
"SELECT single DRCRK FROM GLPCT INTO @DATA(ld_i_drcrk).
DATA(ld_i_drcrk) = CON_LIKE.
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_rbukrs).
 
"SELECT single RPMAX FROM GLPCT INTO @DATA(ld_i_perio).
 


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!