SAP CACS00_SAMPLE_PRC_9801 Function Module for Read FI Document









CACS00_SAMPLE_PRC_9801 is a standard cacs00 sample prc 9801 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read FI Document 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 cacs00 sample prc 9801 FM, simply by entering the name CACS00_SAMPLE_PRC_9801 into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACS00_SAMPLE
Program Name: SAPLCACS00_SAMPLE
Main Program: SAPLCACS00_SAMPLE
Appliation area: E
Release date: 30-Nov-2004
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACS00_SAMPLE_PRC_9801 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 'CACS00_SAMPLE_PRC_9801'"Read FI Document
EXPORTING
I_DOCID = "Document Identification
I_PSTYEAR = "Assignment Year of Commission Case/Document
I_AWORG = "Reference organizational units
I_AWKEY = "Reference Key

TABLES
T_DATA_HD = "Document Header
T_DATA_SE = "Document Items
T_BKPF = "Accounting Document Header
T_BSEG = "Accounting Document Segment
.



IMPORTING Parameters details for CACS00_SAMPLE_PRC_9801

I_DOCID - Document Identification

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

I_PSTYEAR - Assignment Year of Commission Case/Document

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

I_AWORG - Reference organizational units

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

I_AWKEY - Reference Key

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

TABLES Parameters details for CACS00_SAMPLE_PRC_9801

T_DATA_HD - Document Header

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

T_DATA_SE - Document Items

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

T_BKPF - Accounting Document Header

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

T_BSEG - Accounting Document Segment

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

Copy and paste ABAP code example for CACS00_SAMPLE_PRC_9801 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_docid  TYPE CACSDOCID, "   
lt_t_data_hd  TYPE STANDARD TABLE OF CACS00_S_TRANSFER_FI_H, "   
lv_i_pstyear  TYPE CACSPSTYEAR, "   
lt_t_data_se  TYPE STANDARD TABLE OF CACS00_S_TRANSFER_FI_P, "   
lt_t_bkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_i_aworg  TYPE AWORG, "   
lt_t_bseg  TYPE STANDARD TABLE OF BSEG, "   
lv_i_awkey  TYPE AWKEY. "   

  CALL FUNCTION 'CACS00_SAMPLE_PRC_9801'  "Read FI Document
    EXPORTING
         I_DOCID = lv_i_docid
         I_PSTYEAR = lv_i_pstyear
         I_AWORG = lv_i_aworg
         I_AWKEY = lv_i_awkey
    TABLES
         T_DATA_HD = lt_t_data_hd
         T_DATA_SE = lt_t_data_se
         T_BKPF = lt_t_bkpf
         T_BSEG = lt_t_bseg
. " CACS00_SAMPLE_PRC_9801




ABAP code using 7.40 inline data declarations to call FM CACS00_SAMPLE_PRC_9801

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.

 
 
 
 
 
 
 
 


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!