SAP CACS_SEG_SEL_SEGID Function Module for NOTRANSL: Datenbeschaffung: Segment aus Tabelle CACS_SEGMNT
CACS_SEG_SEL_SEGID is a standard cacs seg sel segid SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Datenbeschaffung: Segment aus Tabelle CACS_SEGMNT processing and below is the pattern details for this FM, 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 cacs seg sel segid FM, simply by entering the name CACS_SEG_SEL_SEGID into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_SEG_METH
Program Name: SAPLCACS_SEG_METH
Main Program: SAPLCACS_SEG_METH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_SEG_SEL_SEGID 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 'CACS_SEG_SEL_SEGID'"NOTRANSL: Datenbeschaffung: Segment aus Tabelle CACS_SEGMNT.
EXPORTING
I_APPL = "Commission Application Identification
I_BUSI_BEGIN = "Effective From
* I_BUSI_END = '31.12.9999' "Effective Until (Time Stamp: YYYY.MM.DD hh:mm:ss)
I_TECH_BEGIN = "Technically Valid from
* I_TECH_END = '31.12.9999' "Technically Valid to (Time Stamp: YYYY.MM.DD hh:mm:ss)
* I_SEGID = "Number of segment
TABLES
T_CACS_SEGMNT = "Segment
IMPORTING Parameters details for CACS_SEG_SEL_SEGID
I_APPL - Commission Application Identification
Data type: CACSAPPLOptional: No
Call by Reference: No ( called with pass by value option)
I_BUSI_BEGIN - Effective From
Data type: TCACS_SEGTYP-BUSI_BEGINOptional: No
Call by Reference: No ( called with pass by value option)
I_BUSI_END - Effective Until (Time Stamp: YYYY.MM.DD hh:mm:ss)
Data type: TCACS_SEGTYP-BUSI_ENDDefault: '31.12.9999'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TECH_BEGIN - Technically Valid from
Data type: TCACS_SEGTYP-TECH_BEGINOptional: No
Call by Reference: No ( called with pass by value option)
I_TECH_END - Technically Valid to (Time Stamp: YYYY.MM.DD hh:mm:ss)
Data type: TCACS_SEGTYP-TECH_ENDDefault: '31.12.9999'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEGID - Number of segment
Data type: CACS_SEGMNT-SEGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CACS_SEG_SEL_SEGID
T_CACS_SEGMNT - Segment
Data type: CACS_SEGMNTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CACS_SEG_SEL_SEGID 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_i_appl | TYPE CACSAPPL, " | |||
| lt_t_cacs_segmnt | TYPE STANDARD TABLE OF CACS_SEGMNT, " | |||
| lv_i_busi_begin | TYPE TCACS_SEGTYP-BUSI_BEGIN, " | |||
| lv_i_busi_end | TYPE TCACS_SEGTYP-BUSI_END, " '31,12,9999' | |||
| lv_i_tech_begin | TYPE TCACS_SEGTYP-TECH_BEGIN, " | |||
| lv_i_tech_end | TYPE TCACS_SEGTYP-TECH_END, " '31,12,9999' | |||
| lv_i_segid | TYPE CACS_SEGMNT-SEGID. " |
|   CALL FUNCTION 'CACS_SEG_SEL_SEGID' "NOTRANSL: Datenbeschaffung: Segment aus Tabelle CACS_SEGMNT |
| EXPORTING | ||
| I_APPL | = lv_i_appl | |
| I_BUSI_BEGIN | = lv_i_busi_begin | |
| I_BUSI_END | = lv_i_busi_end | |
| I_TECH_BEGIN | = lv_i_tech_begin | |
| I_TECH_END | = lv_i_tech_end | |
| I_SEGID | = lv_i_segid | |
| TABLES | ||
| T_CACS_SEGMNT | = lt_t_cacs_segmnt | |
| . " CACS_SEG_SEL_SEGID | ||
ABAP code using 7.40 inline data declarations to call FM CACS_SEG_SEL_SEGID
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.| "SELECT single BUSI_BEGIN FROM TCACS_SEGTYP INTO @DATA(ld_i_busi_begin). | ||||
| "SELECT single BUSI_END FROM TCACS_SEGTYP INTO @DATA(ld_i_busi_end). | ||||
| DATA(ld_i_busi_end) | = '31.12.9999'. | |||
| "SELECT single TECH_BEGIN FROM TCACS_SEGTYP INTO @DATA(ld_i_tech_begin). | ||||
| "SELECT single TECH_END FROM TCACS_SEGTYP INTO @DATA(ld_i_tech_end). | ||||
| DATA(ld_i_tech_end) | = '31.12.9999'. | |||
| "SELECT single SEGID FROM CACS_SEGMNT INTO @DATA(ld_i_segid). | ||||
Search for further information about these or an SAP related objects