SGT_BOM_API_SEGMENT_GET is a standard SAP function module that performs Get segmentation values from db table for API functionality. This is available within standard R/3 SAP systems depending on version and release level.
Below are the pattern details for this FM showing its interface including any import, export and tables parameters. There is also a list of Exceptions and for your convenience any standard documentation available. All this information and more can also be viewed if you enter the function module name SGT_BOM_API_SEGMENT_GET into the relevant SAP transaction such as SE37 or SE80.
CALL FUNCTION 'SGT_BOM_API_SEGMENT_GET' "Get segmentation values from db table for API
EXPORTING
is_stpo = " stpob BOM item document table
iv_matnr1 = " matnr Material Number
iv_matnr2 = " matnr Material Number
* is_stpo2 = " stpob BOM item document table
iv_werks = " werks_d Plant
IMPORTING
et_bomc = " sgt_tt_bomc Table Type of SGT_S_BOMC
. " SGT_BOM_API_SEGMENT_GET