SAP SD_COND_AS_READ Function Module for NOTRANSL: Datenbeschaffung aus dem Archiv









SD_COND_AS_READ is a standard sd cond as 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 NOTRANSL: Datenbeschaffung aus dem Archiv 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 sd cond as read FM, simply by entering the name SD_COND_AS_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_COND_AS_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 'SD_COND_AS_READ'"NOTRANSL: Datenbeschaffung aus dem Archiv
EXPORTING
* I_ARCHIVEKEY = "Key for Archive File
* I_OFFSET = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_KNUMH = "Condition Record Number

IMPORTING
ET_KODAT = "
ET_KONH = "
ET_KONP = "
ET_KONM = "
ET_KONW = "

EXCEPTIONS
NOT_IN_INFOSTRUCTURE = 1 NOT_IN_ARCHIVE = 2 NO_INFOSTRUCTURE_DEFINED = 3
.



IMPORTING Parameters details for SD_COND_AS_READ

I_ARCHIVEKEY - Key for Archive File

Data type: ADMI_FILES-ARCHIV_KEY
Optional: Yes
Call by Reference: Yes

I_OFFSET - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ARCH_IDX-OFFSET
Optional: Yes
Call by Reference: Yes

I_KNUMH - Condition Record Number

Data type: KNUMH
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SD_COND_AS_READ

ET_KODAT -

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

ET_KONH -

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

ET_KONP -

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

ET_KONM -

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

ET_KONW -

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

EXCEPTIONS details

NOT_IN_INFOSTRUCTURE - Does not exist in the info structure

Data type:
Optional: No
Call by Reference: Yes

NOT_IN_ARCHIVE - Does not exist in the archive

Data type:
Optional: No
Call by Reference: Yes

NO_INFOSTRUCTURE_DEFINED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SD_COND_AS_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_et_kodat  TYPE TABLE, "   
lv_i_archivekey  TYPE ADMI_FILES-ARCHIV_KEY, "   
lv_not_in_infostructure  TYPE ADMI_FILES, "   
lv_et_konh  TYPE TABLE, "   
lv_i_offset  TYPE ARCH_IDX-OFFSET, "   
lv_not_in_archive  TYPE ARCH_IDX, "   
lv_et_konp  TYPE TABLE, "   
lv_i_knumh  TYPE KNUMH, "   
lv_no_infostructure_defined  TYPE KNUMH, "   
lv_et_konm  TYPE TABLE, "   
lv_et_konw  TYPE TABLE. "   

  CALL FUNCTION 'SD_COND_AS_READ'  "NOTRANSL: Datenbeschaffung aus dem Archiv
    EXPORTING
         I_ARCHIVEKEY = lv_i_archivekey
         I_OFFSET = lv_i_offset
         I_KNUMH = lv_i_knumh
    IMPORTING
         ET_KODAT = lv_et_kodat
         ET_KONH = lv_et_konh
         ET_KONP = lv_et_konp
         ET_KONM = lv_et_konm
         ET_KONW = lv_et_konw
    EXCEPTIONS
        NOT_IN_INFOSTRUCTURE = 1
        NOT_IN_ARCHIVE = 2
        NO_INFOSTRUCTURE_DEFINED = 3
. " SD_COND_AS_READ




ABAP code using 7.40 inline data declarations to call FM SD_COND_AS_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 ARCHIV_KEY FROM ADMI_FILES INTO @DATA(ld_i_archivekey).
 
 
 
"SELECT single OFFSET FROM ARCH_IDX INTO @DATA(ld_i_offset).
 
 
 
 
 
 
 


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!