Académique Documents
Professionnel Documents
Culture Documents
ZBSP_BOL3.
*BOL Declarations
data:
*Application Declarations
Data : Begin of I_TAB occurs 0,
STRING1 type string,
STRING2 type string,
STRING3 type string,
STRING4 type string,
STRING5 type string,
STRING6 type string,
STRING7 type string,
End of I_TAB.
*ALV Declarations
TYPE-POOLS: SLIS.
data: FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV.
*--------------------------------------------------------------*START-OF-SELECTION
*---------------------------------------------------------------START-OF-SELECTION.
*Get the BOL Core instance
DATA lr_core type ref to cl_crm_bol_core.
lr_core = cl_Crm_bol_core=>get_instance( ).
*Load the component set
LR_CORE->LOAD_COMPONENT_SET( 'BP_APPL' ).
*---------------------------------------------------------------*Create the query instance by passing the search object name
DATA lr_query type ref to CL_CRM_BOL_DQUERY_SERVICE.
lr_query = CL_CRM_BOL_DQUERY_SERVICE=>get_instance(
iv_query_name = 'BuilContactAdvancedSearch' ).
'BP_NUMBER' ).
'CONP_NUMBER' ).
'DATE_FROM' ).
'DATE_TO' ).
'FUNCTION' ).
'DEPARTMENT' ).
'AUTHORITY' ).
Append i_tab.
*Go to the next entity
LR_ENTITY = LR_RESULT->GET_NEXT( ).
ENDWHILE.
*--------------------------------------------------------------*END-OF-SELECTION
*---------------------------------------------------------------END-OF-SELECTION.
*Fill field catalog details:
perform fieldcat_init using FIELD_CAT[].
pos = pos + 1.
clear l_fieldcat.
l_fieldcat-col_pos
= POS.
l_fieldcat-fieldname = 'STRING5'.
l_fieldcat-SELTEXT_M = 'Function'.
append l_fieldcat to p_fieldcat.
*Location:
pos = pos + 1.
clear l_fieldcat.
l_fieldcat-col_pos
= POS.
l_fieldcat-fieldname = 'STRING6'.
l_fieldcat-SELTEXT_M = 'Department'.
append l_fieldcat to p_fieldcat.
*Location:
pos = pos + 1.
clear l_fieldcat.
l_fieldcat-col_pos
= POS.
l_fieldcat-fieldname = 'STRING7'.
l_fieldcat-SELTEXT_M = 'Authority'.
append l_fieldcat to p_fieldcat.
ENDFORM.
" fieldcat_init