SAP Reports / Programs | Customer Bill of Services | Industry Solution Engineering & Construction | Customer Bill of Services(IS-EC-BOS) SAP IS

RADBOS02 SAP ABAP Report - Generic Report: Bills of Services in SD (With Hierarchy)







RADBOS02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RADBOS02 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

ADBOS02 - SD-SRV Reporting: BOS w. Hierarchy


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RADBOS02. "Basic submit
SUBMIT RADBOS02 AND RETURN. "Return to original report after report execution complete
SUBMIT RADBOS02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PVBELN = Document number
Selection Text: PVARIANT = Selection variant
Selection Text: PPOSNR = Document item
Title: Generic Report: Bills of Services in SD (With Hierarchy)
Text Symbol: 038 = No Services
Text Symbol: 037 = Services Exist
Text Symbol: 022 = Subitem
Text Symbol: 021 = Mainitem
Text Symbol: 020 = Service
Text Symbol: 019 = Quantity
Text Symbol: 018 = Category
Text Symbol: 017 = Performing Quantity
Text Symbol: 016 = Object Category
Text Symbol: 015 = Performed services
Text Symbol: 014 = Order bill of services
Text Symbol: 013 = Quotation bill of services
Text Symbol: 012 = Inquiry bill of services
Text Symbol: 011 = UC
Text Symbol: 010 = Sales Document No:
Text Symbol: 009 = Sold-to party:
Text Symbol: 008 = Item:
Text Symbol: 007 = Purchase Order No:
Text Symbol: 006 = Selection variant
Text Symbol: 005 = Sales document
Text Symbol: 004 = SI
Text Symbol: 003 = ServiceIndex
Text Symbol: 002 = Detail
Text Symbol: 001 = Long text


INCLUDES used within this REPORT RADBOS02

INCLUDE RBOSE021.
INCLUDE RBOSE022.
INCLUDE RBOSO021_ALV.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

/SAPBOQ/GET_SI_FLAG CALL FUNCTION '/SAPBOQ/GET_SI_FLAG' IMPORTING e_si_flag = si_enable.

MS_SUBDIVISION_FOR_PRINT CALL FUNCTION 'MS_SUBDIVISION_FOR_PRINT' EXPORTING packno = eslh-hpackno TABLES gliederung = outline EXCEPTIONS packno_not_exist = 01.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_checked * TEXT = text-037 "Service list available * INFO = text-037 "Service list available add_stdinf = 'X' IMPORTING RESULT = outline_list-text2 EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3 .

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_checked * TEXT = text-037 "Service list available * INFO = text-037 "Service list available add_stdinf = 'X' IMPORTING RESULT = outline_list-text2 EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3 .

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' TABLES nodetab = outline_list EXCEPTIONS tree_failure = 1.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING callback_program = grepid callback_user_command = 'NODE_SELECT' * CALLBACK_TEXT_DISPLAY = callback_moreinfo_display = 'MOREINFO_DISPLAY' * CALLBACK_COLOR_DISPLAY = callback_top_of_page = 'TOP_OF_PAGE' * CALLBACK_GUI_STATUS = status = 'OWN' * CHECK_DUPLICATE_NAME = '1' color_of_node = '0' color_of_mark = '0' color_of_link = '0' color_of_match = '0' * LOWER_CASE_SENSITIVE = ' ' * modification_log = ' ' * node_length = 30 * text_length = 40 * text_length1 = 45 * text_length2 = 20 * return_marked_subtree = ' ' * screen_start_column = 20 * screen_start_line = 5 * screen_end_column = 70 * screen_end_line = 20 * suppress_node_output = 'X' * layout_mode = 'C' * use_control = 'L' IMPORTING f15 = f15.

RS_TREE_GET_CURRENT_LAYOUT CALL FUNCTION 'RS_TREE_GET_CURRENT_LAYOUT' TABLES layout = l_layout.

RS_TREE_SET_CURRENT_TREE CALL FUNCTION 'RS_TREE_SET_CURRENT_TREE' TABLES nodeinfo = outline_list.

RS_TREE_SET_CURRENT_LAYOUT CALL FUNCTION 'RS_TREE_SET_CURRENT_LAYOUT' TABLES layout = l_layout.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = grepid i_internal_tabname = 'SERVICES' i_structure_name = 'ML_ESLL' * I_CLIENT_NEVER_DISPLAY = 'X' * I_INCLNAME = CHANGING ct_fieldcat = lt_fldcat[] * EXCEPTIONS * INCONSISTENT_INTERFACE = 1 * PROGRAM_ERROR = 2 * OTHERS = 3 .

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'ML_ESLL' * I_CLIENT_NEVER_DISPLAY = 'X' CHANGING ct_fieldcat = gt_grid_fieldcat .

MS_READ_AND_CHECK_FORMULA CALL FUNCTION 'MS_READ_AND_CHECK_FORMULA' EXPORTING i_formelnr = services-formelnr no_errors = 'X' IMPORTING e_formel = formula TABLES variablen = variables EXCEPTIONS OTHERS = 0.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_variant i_save = g_save * i_tabname_header = 'SERVICES' * i_tabname_item = 'DETAILS_LIST' * it_default_fieldcat = IMPORTING e_exit = g_exit es_variant = gx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

MS_SERVICES_FOR_PRINT CALL FUNCTION 'MS_SERVICES_FOR_PRINT' EXPORTING packno = outline-sub_packno TABLES leistung = tservices EXCEPTIONS no_services_found = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * i_interface_check = 'X' i_callback_program = grepid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = g_usercommand * I_STRUCTURE_NAME = is_layout = list_layout it_fieldcat = gt_fldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = i_default = 'X' i_save = g_save is_variant = g_variant it_events = list_events[] * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = services * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 .

K_UNITCOSTING_KEY_BUILD CALL FUNCTION 'K_UNITCOSTING_KEY_BUILD' EXPORTING kb_bzobj = lbzobj TABLES kb_khsk_exp = lkhsk kb_rk70f_imp = lrk70f EXCEPTIONS bzobj_not_valid = 1 fatal_error = 2 klvar_not_defined = 3 no_entry_in_rk70f = 4 no_kalka_for_klvar = 5 OTHERS = 6.

K_UNITCOSTING_READ CALL FUNCTION 'K_UNITCOSTING_READ' EXPORTING fel_bwvar = '' fel_bzobj = lbzobj fel_kadky = '00000000' fel_kalka = lkhsk-kalka fel_kalnr = ix_esll-kalnr fel_kkzma = ' ' fel_lednr = '00' fel_spras = sy-langu fel_tvers = '01' IMPORTING fel_khs1 = l_khs1 TABLES * FEL_TAB_CKIT = fel_tab_kis1 = l_t_kis1 EXCEPTIONS fel_not_found = 1 OTHERS = 2.

K_KKB_ITEMIZATION





CALL FUNCTION 'K_KKB_ITEMIZATION' EXPORTING * I_PSPNR = * I_KDAUF = * I_KSTRG = * I_TVERS = * I_GJAHR = * I_PRONR = * I_AUFNR = * I_VERSN = * I_KADKY = * I_KALNR_BA = * I_KLVAR = * I_KDPOS = i_kokrs = l_khs1-kokrs * I_EXTNR = * I_MATNR = * I_WERKS = * I_EXPLOSION = i_khs1 = l_khs1 * I_AUFLO = * I_SICHT = '01' * I_MATON = * I_CURR_FORCED = * I_BZ_LOSGR = * I_KEKO = * I_NO_TREE = * I_PRINT = * I_RESS_EINZ = * I_PKOST = * I_KOSTL = * I_NO_DEF_VARIANT = * I_DINKEL_FORCED = * I_NETWORK = * I_NETWORK_VORNR = * I_NETWORK_COMP = * I_NETWORK_PRONR = * I_NETWORK_VSNMR = i_lzeile = belnr i_pfad = services-index i_leistung = services-ktext1 TABLES * T_SA_TABIN = t_kis1 = l_t_kis1 * T_XHEADER = * T_KISK_OBJ = * EXCEPTIONS * INPUT_INCOMPLETE = 1 * INPUT_NOT_UNIQUE = 2 * NO_CALCULATION_FOUND = 3 * NO_ITEMS_FOUND = 4 * WRONG_INPUT = 5 * OTHERS = 6 .

SD_VBAK_SELECT CALL FUNCTION 'SD_VBAK_SELECT' EXPORTING *IBS_DI_BOQ_SI * I_DOCUMENT_NUMBER = PVBELN-LOW i_document_number = pvbeln *IBS_DI_BOQ_SI IMPORTING e_vbak = vbak EXCEPTIONS document_not_found = 1 OTHERS = 2 .

SD_VBAP_SELECT CALL FUNCTION 'SD_VBAP_SELECT' EXPORTING *IBS_DI_BOQ_SI * I_DOCUMENT_NUMBER = PVBELN-LOW * I_ITEM_NUMBER = PPOSNR-LOW i_document_number = pvbeln i_item_number = pposnr *IBS_DI_BOQ_SI
IMPORTING e_vbap = vbap EXCEPTIONS item_not_found = 1 OTHERS = 2 .

SD_VBKD_SELECT CALL FUNCTION 'SD_VBKD_SELECT' EXPORTING *IBS_DI_BOQ_SI * I_DOCUMENT_NUMBER = PVBELN-LOW * I_ITEM_NUMBER = PPOSNR-LOW i_document_number = pvbeln i_item_number = pposnr *IBS_DI_BOQ_SI
IMPORTING e_vbkd = vbkd EXCEPTIONS entry_not_found = 1 OTHERS = 2 .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RADBOS02 or its description.