SAP CSAR_ARCHIVE_DATA Function Module for NOTRANSL: Stellt Datensätze eine Stückliste mit Objektbezug ins Archiv (CS









CSAR_ARCHIVE_DATA is a standard csar archive data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Stellt Datensätze eine Stückliste mit Objektbezug ins Archiv (CS 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 csar archive data FM, simply by entering the name CSAR_ARCHIVE_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: CSAR
Program Name: SAPLCSAR
Main Program: SAPLCSAR
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CSAR_ARCHIVE_DATA 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 'CSAR_ARCHIVE_DATA'"NOTRANSL: Stellt Datensätze eine Stückliste mit Objektbezug ins Archiv (CS
EXPORTING
* TESTRUN = 'X' "Deletion Program as Test Run
* TESTARCH = 'X' "Generic Type

IMPORTING
COUNT_OBJ = "Internal Tables, Current Row Index
COUNT_STKO = "Internal Tables, Current Row Index
COUNT_STAS = "Internal Tables, Current Row Index
COUNT_STPO = "Internal Tables, Current Row Index
COUNT_STPU = "Internal Tables, Current Row Index
COUNT_STPN = "Internal Tables, Current Row Index
COUNT_CUOB = "Internal Tables, Current Row Index
COUNT_MAST = "Internal Tables, Current Row Index
COUNT_DOST = "Internal Tables, Current Row Index
COUNT_EQST = "Internal Tables, Current Row Index
COUNT_TPST = "Internal Tables, Current Row Index
COUNT_KDST = "Internal Tables, Current Row Index
COUNT_STST = "Internal Tables, Current Row Index
COUNT_PRST = "Internal Tables, Current Row Index
COUNT_STZU = "Internal Tables, Current Row Index

TABLES
IT_MAST = "Material to BOM Link
IT_STAS = "BOMs - Item Selection
IT_STPO = "Bill of Material Item
IT_STPU = "BOM Subitem
IT_STPN = "BOM Follow-Up Control
IT_CUOB = "Assignment of Object to Dependency
IT_DOST = "Document to BOM Link
IT_EQST = "Equipment to BOM Link
IT_TPST = "Link Between Functional Location and BOM
IT_KDST = "Sales Order to BOM Link
IT_STST = "Standard BOM Link
IT_PRST = "Project - BOM link
IT_STZU = "Permanent BOM Data
REF_STKO = "Bill Of Material Header
.



IMPORTING Parameters details for CSAR_ARCHIVE_DATA

TESTRUN - Deletion Program as Test Run

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

TESTARCH - Generic Type

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CSAR_ARCHIVE_DATA

COUNT_OBJ - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STKO - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STAS - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STPO - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STPU - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STPN - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_CUOB - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_MAST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_DOST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_EQST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_TPST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_KDST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_PRST - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

COUNT_STZU - Internal Tables, Current Row Index

Data type: SY-TABIX
Optional: No
Call by Reference: Yes

TABLES Parameters details for CSAR_ARCHIVE_DATA

IT_MAST - Material to BOM Link

Data type: MAST
Optional: No
Call by Reference: Yes

IT_STAS - BOMs - Item Selection

Data type: STAS
Optional: No
Call by Reference: Yes

IT_STPO - Bill of Material Item

Data type: STPO
Optional: No
Call by Reference: Yes

IT_STPU - BOM Subitem

Data type: STPU
Optional: No
Call by Reference: Yes

IT_STPN - BOM Follow-Up Control

Data type: STPN
Optional: No
Call by Reference: Yes

IT_CUOB - Assignment of Object to Dependency

Data type: CUOB
Optional: No
Call by Reference: Yes

IT_DOST - Document to BOM Link

Data type: DOST
Optional: No
Call by Reference: Yes

IT_EQST - Equipment to BOM Link

Data type: EQST
Optional: No
Call by Reference: Yes

IT_TPST - Link Between Functional Location and BOM

Data type: TPST
Optional: No
Call by Reference: Yes

IT_KDST - Sales Order to BOM Link

Data type: KDST
Optional: No
Call by Reference: Yes

IT_STST - Standard BOM Link

Data type: STST
Optional: No
Call by Reference: Yes

IT_PRST - Project - BOM link

Data type: PRST
Optional: No
Call by Reference: Yes

IT_STZU - Permanent BOM Data

Data type: STZU
Optional: No
Call by Reference: Yes

REF_STKO - Bill Of Material Header

Data type: STKOAR
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CSAR_ARCHIVE_DATA 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:
lt_it_mast  TYPE STANDARD TABLE OF MAST, "   
lv_testrun  TYPE C, "   'X'
lv_count_obj  TYPE SY-TABIX, "   
lt_it_stas  TYPE STANDARD TABLE OF STAS, "   
lv_count_stko  TYPE SY-TABIX, "   
lt_it_stpo  TYPE STANDARD TABLE OF STPO, "   
lv_count_stas  TYPE SY-TABIX, "   
lt_it_stpu  TYPE STANDARD TABLE OF STPU, "   
lv_count_stpo  TYPE SY-TABIX, "   
lt_it_stpn  TYPE STANDARD TABLE OF STPN, "   
lv_count_stpu  TYPE SY-TABIX, "   
lt_it_cuob  TYPE STANDARD TABLE OF CUOB, "   
lv_count_stpn  TYPE SY-TABIX, "   
lv_count_cuob  TYPE SY-TABIX, "   
lt_it_dost  TYPE STANDARD TABLE OF DOST, "   
lv_testarch  TYPE C, "   'X'
lv_count_mast  TYPE SY-TABIX, "   
lt_it_eqst  TYPE STANDARD TABLE OF EQST, "   
lv_count_dost  TYPE SY-TABIX, "   
lt_it_tpst  TYPE STANDARD TABLE OF TPST, "   
lv_count_eqst  TYPE SY-TABIX, "   
lt_it_kdst  TYPE STANDARD TABLE OF KDST, "   
lv_count_tpst  TYPE SY-TABIX, "   
lt_it_stst  TYPE STANDARD TABLE OF STST, "   
lv_count_kdst  TYPE SY-TABIX, "   
lt_it_prst  TYPE STANDARD TABLE OF PRST, "   
lv_count_stst  TYPE SY-TABIX, "   
lt_it_stzu  TYPE STANDARD TABLE OF STZU, "   
lv_count_prst  TYPE SY-TABIX, "   
lt_ref_stko  TYPE STANDARD TABLE OF STKOAR, "   
lv_count_stzu  TYPE SY-TABIX. "   

  CALL FUNCTION 'CSAR_ARCHIVE_DATA'  "NOTRANSL: Stellt Datensätze eine Stückliste mit Objektbezug ins Archiv (CS
    EXPORTING
         TESTRUN = lv_testrun
         TESTARCH = lv_testarch
    IMPORTING
         COUNT_OBJ = lv_count_obj
         COUNT_STKO = lv_count_stko
         COUNT_STAS = lv_count_stas
         COUNT_STPO = lv_count_stpo
         COUNT_STPU = lv_count_stpu
         COUNT_STPN = lv_count_stpn
         COUNT_CUOB = lv_count_cuob
         COUNT_MAST = lv_count_mast
         COUNT_DOST = lv_count_dost
         COUNT_EQST = lv_count_eqst
         COUNT_TPST = lv_count_tpst
         COUNT_KDST = lv_count_kdst
         COUNT_STST = lv_count_stst
         COUNT_PRST = lv_count_prst
         COUNT_STZU = lv_count_stzu
    TABLES
         IT_MAST = lt_it_mast
         IT_STAS = lt_it_stas
         IT_STPO = lt_it_stpo
         IT_STPU = lt_it_stpu
         IT_STPN = lt_it_stpn
         IT_CUOB = lt_it_cuob
         IT_DOST = lt_it_dost
         IT_EQST = lt_it_eqst
         IT_TPST = lt_it_tpst
         IT_KDST = lt_it_kdst
         IT_STST = lt_it_stst
         IT_PRST = lt_it_prst
         IT_STZU = lt_it_stzu
         REF_STKO = lt_ref_stko
. " CSAR_ARCHIVE_DATA




ABAP code using 7.40 inline data declarations to call FM CSAR_ARCHIVE_DATA

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.

 
DATA(ld_testrun) = 'X'.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_obj).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stko).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stas).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stpo).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stpu).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stpn).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_cuob).
 
 
DATA(ld_testarch) = 'X'.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_mast).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_dost).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_eqst).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_tpst).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_kdst).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stst).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_prst).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_stzu).
 


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!