SAP Function Modules

SD_CONDITION_SAVE_EXIT SAP Function module







SD_CONDITION_SAVE_EXIT 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_SAVE_EXIT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V13A
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM SD_CONDITION_SAVE_EXIT - SD CONDITION SAVE EXIT





CALL FUNCTION 'SD_CONDITION_SAVE_EXIT' "
* EXPORTING
*   change_docs_write = ' '     " boole
  TABLES
    db_time =                   " vakedb
    db_xkonh =                  " konhdb
    db_xkonp =                  " konpdb        New Condition Item
    db_xstaf =                  " condscale     Scales
    db_ykonh =                  " konhdb
    db_ykonp =                  " konpdb
    db_xkondat =                " vkondat
    db_ykondat =                " vkondat
*   db_ystaf =                  " condscale
*   db_xvake =                  " vakevb
    .  "  SD_CONDITION_SAVE_EXIT

ABAP code example for Function Module SD_CONDITION_SAVE_EXIT





The ABAP code below is a full code listing to execute function module SD_CONDITION_SAVE_EXIT 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_db_time  TYPE STANDARD TABLE OF VAKEDB,"TABLES PARAM
wa_db_time  LIKE LINE OF it_db_time ,
it_db_xkonh  TYPE STANDARD TABLE OF KONHDB,"TABLES PARAM
wa_db_xkonh  LIKE LINE OF it_db_xkonh ,
it_db_xkonp  TYPE STANDARD TABLE OF KONPDB,"TABLES PARAM
wa_db_xkonp  LIKE LINE OF it_db_xkonp ,
it_db_xstaf  TYPE STANDARD TABLE OF CONDSCALE,"TABLES PARAM
wa_db_xstaf  LIKE LINE OF it_db_xstaf ,
it_db_ykonh  TYPE STANDARD TABLE OF KONHDB,"TABLES PARAM
wa_db_ykonh  LIKE LINE OF it_db_ykonh ,
it_db_ykonp  TYPE STANDARD TABLE OF KONPDB,"TABLES PARAM
wa_db_ykonp  LIKE LINE OF it_db_ykonp ,
it_db_xkondat  TYPE STANDARD TABLE OF VKONDAT,"TABLES PARAM
wa_db_xkondat  LIKE LINE OF it_db_xkondat ,
it_db_ykondat  TYPE STANDARD TABLE OF VKONDAT,"TABLES PARAM
wa_db_ykondat  LIKE LINE OF it_db_ykondat ,
it_db_ystaf  TYPE STANDARD TABLE OF CONDSCALE,"TABLES PARAM
wa_db_ystaf  LIKE LINE OF it_db_ystaf ,
it_db_xvake  TYPE STANDARD TABLE OF VAKEVB,"TABLES PARAM
wa_db_xvake  LIKE LINE OF it_db_xvake .

DATA(ld_change_docs_write) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_db_time to it_db_time.

"populate fields of struture and append to itab
append wa_db_xkonh to it_db_xkonh.

"populate fields of struture and append to itab
append wa_db_xkonp to it_db_xkonp.

"populate fields of struture and append to itab
append wa_db_xstaf to it_db_xstaf.

"populate fields of struture and append to itab
append wa_db_ykonh to it_db_ykonh.

"populate fields of struture and append to itab
append wa_db_ykonp to it_db_ykonp.

"populate fields of struture and append to itab
append wa_db_xkondat to it_db_xkondat.

"populate fields of struture and append to itab
append wa_db_ykondat to it_db_ykondat.

"populate fields of struture and append to itab
append wa_db_ystaf to it_db_ystaf.

"populate fields of struture and append to itab
append wa_db_xvake to it_db_xvake. . CALL FUNCTION 'SD_CONDITION_SAVE_EXIT' * EXPORTING * change_docs_write = ld_change_docs_write TABLES db_time = it_db_time db_xkonh = it_db_xkonh db_xkonp = it_db_xkonp db_xstaf = it_db_xstaf db_ykonh = it_db_ykonh db_ykonp = it_db_ykonp db_xkondat = it_db_xkondat db_ykondat = it_db_ykondat * db_ystaf = it_db_ystaf * db_xvake = it_db_xvake . " SD_CONDITION_SAVE_EXIT
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_change_docs_write  TYPE BOOLE ,
it_db_time  TYPE STANDARD TABLE OF VAKEDB ,
wa_db_time  LIKE LINE OF it_db_time,
it_db_xkonh  TYPE STANDARD TABLE OF KONHDB ,
wa_db_xkonh  LIKE LINE OF it_db_xkonh,
it_db_xkonp  TYPE STANDARD TABLE OF KONPDB ,
wa_db_xkonp  LIKE LINE OF it_db_xkonp,
it_db_xstaf  TYPE STANDARD TABLE OF CONDSCALE ,
wa_db_xstaf  LIKE LINE OF it_db_xstaf,
it_db_ykonh  TYPE STANDARD TABLE OF KONHDB ,
wa_db_ykonh  LIKE LINE OF it_db_ykonh,
it_db_ykonp  TYPE STANDARD TABLE OF KONPDB ,
wa_db_ykonp  LIKE LINE OF it_db_ykonp,
it_db_xkondat  TYPE STANDARD TABLE OF VKONDAT ,
wa_db_xkondat  LIKE LINE OF it_db_xkondat,
it_db_ykondat  TYPE STANDARD TABLE OF VKONDAT ,
wa_db_ykondat  LIKE LINE OF it_db_ykondat,
it_db_ystaf  TYPE STANDARD TABLE OF CONDSCALE ,
wa_db_ystaf  LIKE LINE OF it_db_ystaf,
it_db_xvake  TYPE STANDARD TABLE OF VAKEVB ,
wa_db_xvake  LIKE LINE OF it_db_xvake.

ld_change_docs_write = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_db_time to it_db_time.

"populate fields of struture and append to itab
append wa_db_xkonh to it_db_xkonh.

"populate fields of struture and append to itab
append wa_db_xkonp to it_db_xkonp.

"populate fields of struture and append to itab
append wa_db_xstaf to it_db_xstaf.

"populate fields of struture and append to itab
append wa_db_ykonh to it_db_ykonh.

"populate fields of struture and append to itab
append wa_db_ykonp to it_db_ykonp.

"populate fields of struture and append to itab
append wa_db_xkondat to it_db_xkondat.

"populate fields of struture and append to itab
append wa_db_ykondat to it_db_ykondat.

"populate fields of struture and append to itab
append wa_db_ystaf to it_db_ystaf.

"populate fields of struture and append to itab
append wa_db_xvake to it_db_xvake.

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_SAVE_EXIT or its description.