SAP SOLAR_DOCUMENT_CHANGE Function Module for









SOLAR_DOCUMENT_CHANGE is a standard solar document change 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 solar document change FM, simply by entering the name SOLAR_DOCUMENT_CHANGE into the relevant SAP transaction such as SE37 or SE38.

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



Function SOLAR_DOCUMENT_CHANGE 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 'SOLAR_DOCUMENT_CHANGE'"
EXPORTING
I_DOCUMENT_ID = "
* IT_ATTRIBUTES_DISPLAY_ONLY = "
* IT_TABS_TO_HIDE = "
* IT_CONTEXT = "
* IT_TOOLBAR_TO_DISABLE = "
* I_COMMIT_WHEN_SAVE = ' ' "
* I_SHOW_ON_POPUP = 'X' "
* I_READ_ONLY = "
* I_SHOW_TOOLBARS = 'X' "
* I_PROJECT_ID = "
* I_SOLUTION_ID = "
* I_TYPE = "
* I_LANGUAGE = SY-LANGU "
* I_USE_ORIGINAL_LANGUAGE = "
* IT_ATTRIBUTES_TO_HIDE = "

IMPORTING
TIMESTAMP_LAST_CHANGE = "
E_DOC_SAVED = "

EXCEPTIONS
CANCELLED = 1 ERROR = 2 NOT_FOUND = 3
.



IMPORTING Parameters details for SOLAR_DOCUMENT_CHANGE

I_DOCUMENT_ID -

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

IT_ATTRIBUTES_DISPLAY_ONLY -

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

IT_TABS_TO_HIDE -

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

IT_CONTEXT -

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

IT_TOOLBAR_TO_DISABLE -

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

I_COMMIT_WHEN_SAVE -

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

I_SHOW_ON_POPUP -

Data type: FLAG
Default: 'X'
Optional: No
Call by Reference: Yes

I_READ_ONLY -

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

I_SHOW_TOOLBARS -

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

I_PROJECT_ID -

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

I_SOLUTION_ID -

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

I_TYPE -

Data type: TNOTEP-NOTETYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LANGUAGE -

Data type: SYLANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USE_ORIGINAL_LANGUAGE -

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

IT_ATTRIBUTES_TO_HIDE -

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

EXPORTING Parameters details for SOLAR_DOCUMENT_CHANGE

TIMESTAMP_LAST_CHANGE -

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

E_DOC_SAVED -

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

EXCEPTIONS details

CANCELLED -

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

ERROR -

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

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SOLAR_DOCUMENT_CHANGE 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_cancelled  TYPE STRING, "   
lv_i_document_id  TYPE SDOKOBJECT, "   
lv_timestamp_last_change  TYPE SDOK_PROPV, "   
lv_it_attributes_display_only  TYPE SDOK_PROPNS, "   
lv_it_tabs_to_hide  TYPE SDOK_PROPNS, "   
lv_it_context  TYPE SDOKPROPTYS, "   
lv_it_toolbar_to_disable  TYPE TTB_BUTTON, "   
lv_i_commit_when_save  TYPE FLAG, "   SPACE
lv_i_show_on_popup  TYPE FLAG, "   'X'
lv_error  TYPE FLAG, "   
lv_e_doc_saved  TYPE FLAG, "   
lv_i_read_only  TYPE FLAG, "   
lv_not_found  TYPE FLAG, "   
lv_i_show_toolbars  TYPE FLAG, "   'X'
lv_i_project_id  TYPE PROJECT_ID, "   
lv_i_solution_id  TYPE SPROJSOLUTION, "   
lv_i_type  TYPE TNOTEP-NOTETYPE, "   
lv_i_language  TYPE SYLANGU, "   SY-LANGU
lv_i_use_original_language  TYPE FLAG, "   
lv_it_attributes_to_hide  TYPE SDOK_PROPNS. "   

  CALL FUNCTION 'SOLAR_DOCUMENT_CHANGE'  "
    EXPORTING
         I_DOCUMENT_ID = lv_i_document_id
         IT_ATTRIBUTES_DISPLAY_ONLY = lv_it_attributes_display_only
         IT_TABS_TO_HIDE = lv_it_tabs_to_hide
         IT_CONTEXT = lv_it_context
         IT_TOOLBAR_TO_DISABLE = lv_it_toolbar_to_disable
         I_COMMIT_WHEN_SAVE = lv_i_commit_when_save
         I_SHOW_ON_POPUP = lv_i_show_on_popup
         I_READ_ONLY = lv_i_read_only
         I_SHOW_TOOLBARS = lv_i_show_toolbars
         I_PROJECT_ID = lv_i_project_id
         I_SOLUTION_ID = lv_i_solution_id
         I_TYPE = lv_i_type
         I_LANGUAGE = lv_i_language
         I_USE_ORIGINAL_LANGUAGE = lv_i_use_original_language
         IT_ATTRIBUTES_TO_HIDE = lv_it_attributes_to_hide
    IMPORTING
         TIMESTAMP_LAST_CHANGE = lv_timestamp_last_change
         E_DOC_SAVED = lv_e_doc_saved
    EXCEPTIONS
        CANCELLED = 1
        ERROR = 2
        NOT_FOUND = 3
. " SOLAR_DOCUMENT_CHANGE




ABAP code using 7.40 inline data declarations to call FM SOLAR_DOCUMENT_CHANGE

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_i_commit_when_save) = ' '.
 
DATA(ld_i_show_on_popup) = 'X'.
 
 
 
 
 
DATA(ld_i_show_toolbars) = 'X'.
 
 
 
"SELECT single NOTETYPE FROM TNOTEP INTO @DATA(ld_i_type).
 
DATA(ld_i_language) = SY-LANGU.
 
 
 


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!