SAP Function Modules

SD_CONDITION_CHANGE_DOCS_LOAD SAP Function module







SD_CONDITION_CHANGE_DOCS_LOAD is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SD_CONDITION_CHANGE_DOCS_LOAD into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V64A
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SD_CONDITION_CHANGE_DOCS_LOAD - SD CONDITION CHANGE DOCS LOAD





CALL FUNCTION 'SD_CONDITION_CHANGE_DOCS_LOAD' "
  EXPORTING
    report =                    " sy-repid
    cond_data_entered =         "
    change_data_entered =       "
    selection_screen_flag =     "
*   only_deleted_records = ' '  " c
*   new_display = ' '           " c
  TABLES
    so_knumh =                  " v64_knumh
    so_date =                   " v64_date
    so_time =                   " v64_time
    so_user =                   " v64_user
    so_tcode =                  " v64_tcode
    .  "  SD_CONDITION_CHANGE_DOCS_LOAD

ABAP code example for Function Module SD_CONDITION_CHANGE_DOCS_LOAD





The ABAP code below is a full code listing to execute function module SD_CONDITION_CHANGE_DOCS_LOAD including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_so_knumh  TYPE STANDARD TABLE OF V64_KNUMH,"TABLES PARAM
wa_so_knumh  LIKE LINE OF it_so_knumh ,
it_so_date  TYPE STANDARD TABLE OF V64_DATE,"TABLES PARAM
wa_so_date  LIKE LINE OF it_so_date ,
it_so_time  TYPE STANDARD TABLE OF V64_TIME,"TABLES PARAM
wa_so_time  LIKE LINE OF it_so_time ,
it_so_user  TYPE STANDARD TABLE OF V64_USER,"TABLES PARAM
wa_so_user  LIKE LINE OF it_so_user ,
it_so_tcode  TYPE STANDARD TABLE OF V64_TCODE,"TABLES PARAM
wa_so_tcode  LIKE LINE OF it_so_tcode .

DATA(ld_report) = '123 '.
DATA(ld_cond_data_entered) = 'some text here'.
DATA(ld_change_data_entered) = 'some text here'.
DATA(ld_selection_screen_flag) = 'some text here'.
DATA(ld_only_deleted_records) = 'some text here'.
DATA(ld_new_display) = 'some text here'.

"populate fields of struture and append to itab
append wa_so_knumh to it_so_knumh.

"populate fields of struture and append to itab
append wa_so_date to it_so_date.

"populate fields of struture and append to itab
append wa_so_time to it_so_time.

"populate fields of struture and append to itab
append wa_so_user to it_so_user.

"populate fields of struture and append to itab
append wa_so_tcode to it_so_tcode. . CALL FUNCTION 'SD_CONDITION_CHANGE_DOCS_LOAD' EXPORTING report = ld_report cond_data_entered = ld_cond_data_entered change_data_entered = ld_change_data_entered selection_screen_flag = ld_selection_screen_flag * only_deleted_records = ld_only_deleted_records * new_display = ld_new_display TABLES so_knumh = it_so_knumh so_date = it_so_date so_time = it_so_time so_user = it_so_user so_tcode = it_so_tcode . " SD_CONDITION_CHANGE_DOCS_LOAD
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_report  TYPE SY-REPID ,
it_so_knumh  TYPE STANDARD TABLE OF V64_KNUMH ,
wa_so_knumh  LIKE LINE OF it_so_knumh,
ld_cond_data_entered  TYPE STRING ,
it_so_date  TYPE STANDARD TABLE OF V64_DATE ,
wa_so_date  LIKE LINE OF it_so_date,
ld_change_data_entered  TYPE STRING ,
it_so_time  TYPE STANDARD TABLE OF V64_TIME ,
wa_so_time  LIKE LINE OF it_so_time,
ld_selection_screen_flag  TYPE STRING ,
it_so_user  TYPE STANDARD TABLE OF V64_USER ,
wa_so_user  LIKE LINE OF it_so_user,
ld_only_deleted_records  TYPE C ,
it_so_tcode  TYPE STANDARD TABLE OF V64_TCODE ,
wa_so_tcode  LIKE LINE OF it_so_tcode,
ld_new_display  TYPE C .

ld_report = '123 '.

"populate fields of struture and append to itab
append wa_so_knumh to it_so_knumh.
ld_cond_data_entered = 'some text here'.

"populate fields of struture and append to itab
append wa_so_date to it_so_date.
ld_change_data_entered = 'some text here'.

"populate fields of struture and append to itab
append wa_so_time to it_so_time.
ld_selection_screen_flag = 'some text here'.

"populate fields of struture and append to itab
append wa_so_user to it_so_user.
ld_only_deleted_records = 'some text here'.

"populate fields of struture and append to itab
append wa_so_tcode to it_so_tcode.
ld_new_display = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SD_CONDITION_CHANGE_DOCS_LOAD or its description.