EHHSS_SEG_WRITE_DOCUMENT 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 EHHSS_SEG_WRITE_DOCUMENT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
EHHSS_SEG_CH_DOC
Released Date:
Not Released
Processing type: Start of update delayed (Start Delayed)
CALL FUNCTION 'EHHSS_SEG_WRITE_DOCUMENT' "CHDO EHHSS_SEG => Gen. by RSSCD000
EXPORTING
objectid = " cdhdr-objectid
tcode = " cdhdr-tcode
utime = " cdhdr-utime
udate = " cdhdr-udate
username = " cdhdr-username
planned_change_number = SPACE " cdhdr-planchngnr
object_change_indicator = 'U' " cdhdr-change_ind
planned_or_real_changes = SPACE " cdhdr-change_ind
no_change_pointers = SPACE " cdhdr-change_ind
upd_ehhssd_seg_agt = SPACE " cdpos-chngind
upd_ehhssd_seg_job = SPACE " cdpos-chngind
upd_ehhssd_seg_loc = SPACE " cdpos-chngind
upd_ehhssd_seg_name = SPACE " cdpos-chngind
upd_ehhssd_seg_rev = SPACE " cdpos-chngind
upd_ehhssd_seg_root = SPACE " cdpos-chngind
upd_ehhssd_seg_team = SPACE " cdpos-chngind
upd_ehhsss_cdtxctxtt = SPACE " cdpos-chngind
xehhsss_cdtxctxtt = " cdoehhsss_cdtxctxtts
yehhsss_cdtxctxtt = " cdoehhsss_cdtxctxtts
TABLES
xehhssd_seg_agt = " cdoehhssd_seg_agt
yehhssd_seg_agt = " cdoehhssd_seg_agt
xehhssd_seg_job = " cdoehhssd_seg_job
yehhssd_seg_job = " cdoehhssd_seg_job
xehhssd_seg_loc = " cdoehhssd_seg_loc
yehhssd_seg_loc = " cdoehhssd_seg_loc
xehhssd_seg_name = " cdoehhssd_seg_name
yehhssd_seg_name = " cdoehhssd_seg_name
xehhssd_seg_rev = " cdoehhssd_seg_rev
yehhssd_seg_rev = " cdoehhssd_seg_rev
xehhssd_seg_root = " cdoehhssd_seg_root
yehhssd_seg_root = " cdoehhssd_seg_root
xehhssd_seg_team = " cdoehhssd_seg_team
yehhssd_seg_team = " cdoehhssd_seg_team
. " EHHSS_SEG_WRITE_DOCUMENT
The ABAP code below is a full code listing to execute function module EHHSS_SEG_WRITE_DOCUMENT 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).
| it_xehhssd_seg_agt | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_AGT,"TABLES PARAM |
| wa_xehhssd_seg_agt | LIKE LINE OF it_xehhssd_seg_agt , |
| it_yehhssd_seg_agt | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_AGT,"TABLES PARAM |
| wa_yehhssd_seg_agt | LIKE LINE OF it_yehhssd_seg_agt , |
| it_xehhssd_seg_job | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_JOB,"TABLES PARAM |
| wa_xehhssd_seg_job | LIKE LINE OF it_xehhssd_seg_job , |
| it_yehhssd_seg_job | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_JOB,"TABLES PARAM |
| wa_yehhssd_seg_job | LIKE LINE OF it_yehhssd_seg_job , |
| it_xehhssd_seg_loc | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_LOC,"TABLES PARAM |
| wa_xehhssd_seg_loc | LIKE LINE OF it_xehhssd_seg_loc , |
| it_yehhssd_seg_loc | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_LOC,"TABLES PARAM |
| wa_yehhssd_seg_loc | LIKE LINE OF it_yehhssd_seg_loc , |
| it_xehhssd_seg_name | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_NAME,"TABLES PARAM |
| wa_xehhssd_seg_name | LIKE LINE OF it_xehhssd_seg_name , |
| it_yehhssd_seg_name | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_NAME,"TABLES PARAM |
| wa_yehhssd_seg_name | LIKE LINE OF it_yehhssd_seg_name , |
| it_xehhssd_seg_rev | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_REV,"TABLES PARAM |
| wa_xehhssd_seg_rev | LIKE LINE OF it_xehhssd_seg_rev , |
| it_yehhssd_seg_rev | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_REV,"TABLES PARAM |
| wa_yehhssd_seg_rev | LIKE LINE OF it_yehhssd_seg_rev , |
| it_xehhssd_seg_root | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_ROOT,"TABLES PARAM |
| wa_xehhssd_seg_root | LIKE LINE OF it_xehhssd_seg_root , |
| it_yehhssd_seg_root | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_ROOT,"TABLES PARAM |
| wa_yehhssd_seg_root | LIKE LINE OF it_yehhssd_seg_root , |
| it_xehhssd_seg_team | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_TEAM,"TABLES PARAM |
| wa_xehhssd_seg_team | LIKE LINE OF it_xehhssd_seg_team , |
| it_yehhssd_seg_team | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_TEAM,"TABLES PARAM |
| wa_yehhssd_seg_team | LIKE LINE OF it_yehhssd_seg_team . |
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_objectid | TYPE CDHDR-OBJECTID , |
| it_xehhssd_seg_agt | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_AGT , |
| wa_xehhssd_seg_agt | LIKE LINE OF it_xehhssd_seg_agt, |
| ld_tcode | TYPE CDHDR-TCODE , |
| it_yehhssd_seg_agt | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_AGT , |
| wa_yehhssd_seg_agt | LIKE LINE OF it_yehhssd_seg_agt, |
| ld_utime | TYPE CDHDR-UTIME , |
| it_xehhssd_seg_job | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_JOB , |
| wa_xehhssd_seg_job | LIKE LINE OF it_xehhssd_seg_job, |
| ld_udate | TYPE CDHDR-UDATE , |
| it_yehhssd_seg_job | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_JOB , |
| wa_yehhssd_seg_job | LIKE LINE OF it_yehhssd_seg_job, |
| ld_username | TYPE CDHDR-USERNAME , |
| it_xehhssd_seg_loc | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_LOC , |
| wa_xehhssd_seg_loc | LIKE LINE OF it_xehhssd_seg_loc, |
| ld_planned_change_number | TYPE CDHDR-PLANCHNGNR , |
| it_yehhssd_seg_loc | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_LOC , |
| wa_yehhssd_seg_loc | LIKE LINE OF it_yehhssd_seg_loc, |
| ld_object_change_indicator | TYPE CDHDR-CHANGE_IND , |
| it_xehhssd_seg_name | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_NAME , |
| wa_xehhssd_seg_name | LIKE LINE OF it_xehhssd_seg_name, |
| ld_planned_or_real_changes | TYPE CDHDR-CHANGE_IND , |
| it_yehhssd_seg_name | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_NAME , |
| wa_yehhssd_seg_name | LIKE LINE OF it_yehhssd_seg_name, |
| ld_no_change_pointers | TYPE CDHDR-CHANGE_IND , |
| it_xehhssd_seg_rev | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_REV , |
| wa_xehhssd_seg_rev | LIKE LINE OF it_xehhssd_seg_rev, |
| ld_upd_ehhssd_seg_agt | TYPE CDPOS-CHNGIND , |
| it_yehhssd_seg_rev | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_REV , |
| wa_yehhssd_seg_rev | LIKE LINE OF it_yehhssd_seg_rev, |
| it_xehhssd_seg_root | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_ROOT , |
| wa_xehhssd_seg_root | LIKE LINE OF it_xehhssd_seg_root, |
| ld_upd_ehhssd_seg_job | TYPE CDPOS-CHNGIND , |
| it_yehhssd_seg_root | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_ROOT , |
| wa_yehhssd_seg_root | LIKE LINE OF it_yehhssd_seg_root, |
| ld_upd_ehhssd_seg_loc | TYPE CDPOS-CHNGIND , |
| it_xehhssd_seg_team | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_TEAM , |
| wa_xehhssd_seg_team | LIKE LINE OF it_xehhssd_seg_team, |
| ld_upd_ehhssd_seg_name | TYPE CDPOS-CHNGIND , |
| it_yehhssd_seg_team | TYPE STANDARD TABLE OF CDOEHHSSD_SEG_TEAM , |
| wa_yehhssd_seg_team | LIKE LINE OF it_yehhssd_seg_team, |
| ld_upd_ehhssd_seg_rev | TYPE CDPOS-CHNGIND , |
| ld_upd_ehhssd_seg_root | TYPE CDPOS-CHNGIND , |
| ld_upd_ehhssd_seg_team | TYPE CDPOS-CHNGIND , |
| ld_upd_ehhsss_cdtxctxtt | TYPE CDPOS-CHNGIND , |
| ld_xehhsss_cdtxctxtt | TYPE CDOEHHSSS_CDTXCTXTTS , |
| ld_yehhsss_cdtxctxtt | TYPE CDOEHHSSS_CDTXCTXTTS . |
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 EHHSS_SEG_WRITE_DOCUMENT or its description.
EHHSS_SEG_WRITE_DOCUMENT - CHDO EHHSS_SEG => Gen. by RSSCD000 EHHSS_SEARCH_PERSON_EXIT - Example for a search help exit EHHSS_SEARCH_INV_STEP_RES_EXIT - Example for a search help exit EHHSS_SEARCH_INV_LEAD_EXIT - Example for a search help exit EHHSS_SEARCH_ACT_RES_EXIT - Example for a search help exit EHHSS_SEARCH_ACT_APR_EXIT - Example for a search help exit