SAP SCWB_NOTE_READ Function Module for









SCWB_NOTE_READ is a standard scwb note read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 scwb note read FM, simply by entering the name SCWB_NOTE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function SCWB_NOTE_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 'SCWB_NOTE_READ'"
EXPORTING
* IV_READ_ATTRIBUTES = ' ' "
* IV_READ_CUSTOMER_ATTRIBUTES = ' ' "
* IV_READ_READ_BY_USER = ' ' "
* IV_READ_SOL_MGR_REFERENCE = ' ' "
* IV_READ_SAP_STATUS = ' ' "
* IV_READ_SHORT_TEXT = ' ' "
* IV_READ_ALL_TEXTS = ' ' "
* IV_READ_VALIDITY = ' ' "
* IV_READ_CORR_INSTRUCTIONS = ' ' "
* IV_READ_CUSTOMER_LOGFILE = ' ' "
* IV_USE_FALLBACK_LANGUAGES = 'X' "
* IV_READ_LOGHNDL = ' ' "
* IV_READ_FIXES = ' ' "

CHANGING
CS_NOTE = "

EXCEPTIONS
NOTE_NOT_FOUND = 1 LANGUAGE_NOT_FOUND = 2 UNREADABLE_TEXT_FORMAT = 3 CORR_INSTRUCTION_NOT_FOUND = 4
.



IMPORTING Parameters details for SCWB_NOTE_READ

IV_READ_ATTRIBUTES -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_CUSTOMER_ATTRIBUTES -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_READ_BY_USER -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_SOL_MGR_REFERENCE -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_SAP_STATUS -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_SHORT_TEXT -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_ALL_TEXTS -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_VALIDITY -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_CORR_INSTRUCTIONS -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_CUSTOMER_LOGFILE -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_USE_FALLBACK_LANGUAGES -

Data type: BCWBN_BOOL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_LOGHNDL -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_FIXES -

Data type: BCWBN_BOOL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for SCWB_NOTE_READ

CS_NOTE -

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

EXCEPTIONS details

NOTE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

LANGUAGE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

UNREADABLE_TEXT_FORMAT -

Data type:
Optional: No
Call by Reference: Yes

CORR_INSTRUCTION_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SCWB_NOTE_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_cs_note  TYPE BCWBN_NOTE, "   
lv_note_not_found  TYPE BCWBN_NOTE, "   
lv_iv_read_attributes  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_customer_attributes  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_read_by_user  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_sol_mgr_reference  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_sap_status  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_short_text  TYPE BCWBN_BOOL, "   SPACE
lv_language_not_found  TYPE BCWBN_BOOL, "   
lv_iv_read_all_texts  TYPE BCWBN_BOOL, "   SPACE
lv_unreadable_text_format  TYPE BCWBN_BOOL, "   
lv_iv_read_validity  TYPE BCWBN_BOOL, "   SPACE
lv_corr_instruction_not_found  TYPE BCWBN_BOOL, "   
lv_iv_read_corr_instructions  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_customer_logfile  TYPE BCWBN_BOOL, "   SPACE
lv_iv_use_fallback_languages  TYPE BCWBN_BOOL, "   'X'
lv_iv_read_loghndl  TYPE BCWBN_BOOL, "   SPACE
lv_iv_read_fixes  TYPE BCWBN_BOOL. "   SPACE

  CALL FUNCTION 'SCWB_NOTE_READ'  "
    EXPORTING
         IV_READ_ATTRIBUTES = lv_iv_read_attributes
         IV_READ_CUSTOMER_ATTRIBUTES = lv_iv_read_customer_attributes
         IV_READ_READ_BY_USER = lv_iv_read_read_by_user
         IV_READ_SOL_MGR_REFERENCE = lv_iv_read_sol_mgr_reference
         IV_READ_SAP_STATUS = lv_iv_read_sap_status
         IV_READ_SHORT_TEXT = lv_iv_read_short_text
         IV_READ_ALL_TEXTS = lv_iv_read_all_texts
         IV_READ_VALIDITY = lv_iv_read_validity
         IV_READ_CORR_INSTRUCTIONS = lv_iv_read_corr_instructions
         IV_READ_CUSTOMER_LOGFILE = lv_iv_read_customer_logfile
         IV_USE_FALLBACK_LANGUAGES = lv_iv_use_fallback_languages
         IV_READ_LOGHNDL = lv_iv_read_loghndl
         IV_READ_FIXES = lv_iv_read_fixes
    CHANGING
         CS_NOTE = lv_cs_note
    EXCEPTIONS
        NOTE_NOT_FOUND = 1
        LANGUAGE_NOT_FOUND = 2
        UNREADABLE_TEXT_FORMAT = 3
        CORR_INSTRUCTION_NOT_FOUND = 4
. " SCWB_NOTE_READ




ABAP code using 7.40 inline data declarations to call FM SCWB_NOTE_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.

 
 
DATA(ld_iv_read_attributes) = ' '.
 
DATA(ld_iv_read_customer_attributes) = ' '.
 
DATA(ld_iv_read_read_by_user) = ' '.
 
DATA(ld_iv_read_sol_mgr_reference) = ' '.
 
DATA(ld_iv_read_sap_status) = ' '.
 
DATA(ld_iv_read_short_text) = ' '.
 
 
DATA(ld_iv_read_all_texts) = ' '.
 
 
DATA(ld_iv_read_validity) = ' '.
 
 
DATA(ld_iv_read_corr_instructions) = ' '.
 
DATA(ld_iv_read_customer_logfile) = ' '.
 
DATA(ld_iv_use_fallback_languages) = 'X'.
 
DATA(ld_iv_read_loghndl) = ' '.
 
DATA(ld_iv_read_fixes) = ' '.
 


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!