SAP Reports / Programs | Sales and Distribution | Foreign Trade(SD-FT) SAP SD

/SAPSLL/KMAT_DISTRIBUTE_FOR SAP ABAP INCLUDE - /SAPSLL/KMATDISTRIBUTEFOR







/SAPSLL/KMAT_DISTRIBUTE_FOR is a standard ABAP INCLUDE 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 /SAPSLL/KMAT_DISTRIBUTE_FOR into the relevant SAP transactions such as SE38 or SE80


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 /SAPSLL/KMAT_DISTRIBUTE_FOR. "Basic submit
SUBMIT /SAPSLL/KMAT_DISTRIBUTE_FOR AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/KMAT_DISTRIBUTE_FOR VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT /SAPSLL/KMAT_DISTRIBUTE_FOR

No INCLUDES are used within this REPORT code!


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:

BAL_LOG_CREATE call function 'BAL_LOG_CREATE' exporting i_s_log = ls_appl_log importing e_log_handle = ls_kmatwlr3-loghandle exceptions log_header_inconsistent = 1 others = 2.

BAL_LOG_MSG_ADD call function 'BAL_LOG_MSG_ADD' exporting i_log_handle = ls_kmatwlr3-loghandle i_s_msg = ls_appl_msg * IMPORTING * E_S_MSG_HANDLE = * E_MSG_WAS_LOGGED = * E_MSG_WAS_DISPLAYED = exceptions log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 others = 4 .

BAL_DB_SAVE call function 'BAL_DB_SAVE' exporting * I_CLIENT = SY-MANDT * I_IN_UPDATE_TASK = ' ' i_save_all = 'X' * I_T_LOG_HANDLE = * IMPORTING * E_NEW_LOGNUMBERS = exceptions log_not_found = 1 save_not_allowed = 2 numbering_error = 3 others = 4 .

BAL_DB_DELETE call function 'BAL_DB_DELETE' exporting * I_T_LOGS_TO_DELETE = i_t_log_handle = lt_handle_del * I_T_LOGNUMBER = * I_CLIENT = SY-MANDT * I_IN_UPDATE_TASK = ' ' * I_WITH_COMMIT_WORK = ' ' * I_PACKAGE_SIZE = 100 exceptions no_logs_specified = 1 others = 2 .

ENQUEUE_/SAPSLL/EKMTWLR3 call function 'ENQUEUE_/SAPSLL/EKMTWLR3' exporting mode_/sapsll/kmatwlr3_enq_s = 'E' mandt = sy-mandt apevs = -apevs barvs = -barvs vbeln = -vbeln * POSNR = * X_APEVS = ' ' * X_BARVS = ' ' * X_VBELN = ' ' * X_POSNR = ' ' _scope = '3' * _WAIT = ' ' * _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3 .

/SAPSLL/KMATWLR3_DB_RNG_READ call function '/SAPSLL/KMATWLR3_DB_RNG_READ' exporting is_crit = ls_kmatwlr3_crit * IV_FLAG_FILL_BUFFER = 'X' importing et_result = lt_kmatwlr3 exceptions no_data = 1 open_sql_error = 2 others = 3 .

SD_VBAP_SINGLE_READ call function 'SD_VBAP_SINGLE_READ' exporting i_vbeln = ls_vbap-vbeln i_posnr = ls_vbap-posnr * I_BYPASSING_BUFFER = ' ' * I_REFRESH_BUFFER = importing * E_VBAPVB = e_vbap = ls_vbap exceptions record_not_found = 1 others = 2 .

SD_VBUP_SELECT call function 'SD_VBUP_SELECT' exporting i_document_number = ls_vbap-vbeln i_item_number = ls_vbap-posnr importing e_vbup = ls_vbup exceptions item_not_found = 1 others = 2.

/SAPSLL/KMATBOM_EXPLODE_R3 call function '/SAPSLL/KMATBOM_EXPLODE_R3' exporting iv_vbeln = -vbeln iv_posnr = -posnr ir_werks = ir_werks importing es_bom_obj = -bom_obj es_crit_bom_explode = -crit_bom_explode et_bom_objsi = -bom_objsi ev_subrc = lv_retcode tables et_messages = lt_messages.

/SAPSLL/CD_ALE_RECEIVER_GET_R3 call function '/SAPSLL/CD_ALE_RECEIVER_GET_R3' importing ev_rfc_dest = cv_rfc_dest exceptions no_rfc_destination_maintained = 1 customs_server_not_unique = 2 others = 3.

/SAPSLL/MAP_R3_API_BOM call function '/SAPSLL/MAP_R3_API_BOM' exporting is_crit_bom_explode = is_crit_bom is_bom_obj = is_bom_obj tables ct_messages = ct_messages changing cs_api_bom_org = ls_api_bom_org ct_api_bom_hdr = lt_api_bom_hdr ct_api_bom_item = ct_api_bom_item exceptions others = 1.

SLL_LEG_BOMR3_003 call function 'SLL_LEG_BOMR3_003' exporting is_api_bom_org = ls_api_bom_org it_sll_bom_obj = lt_bom_obj[] tables it_api_bom_hdr = lt_api_bom_hdr it_api_bom_item = ct_api_bom_item it_api_bom_wkgrp = ct_wkgrp it_messages = ct_messages exceptions others = 1.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = ls_api_kmatbom-refno importing output = ls_api_kmatbom-refno.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = ls_api_kmatbom-itvsy importing output = ls_api_kmatbom-itvsy.

/SAPSLL/API_BOM_SYNCH_MASS call function '/SAPSLL/API_BOM_SYNCH_MASS' destination iv_rfc_dest exporting is_api_bom_org = is_api_bom_org tables it_api_bom_hdr = it_api_bom_hdr_packaged[] it_api_bom_item = it_api_bom_itm_packaged[] it_api_bom_kmat = it_api_kmatbom_packaged[] it_api_bom_wkgrp = it_wkgrp[] it_messages = lt_messages exceptions system_failure = 1 message lv_rfc_msg communication_failure = 2 message lv_rfc_msg others = 3.

DEQUEUE_/SAPSLL/EKMTWLR3 call function 'DEQUEUE_/SAPSLL/EKMTWLR3' exporting mode_/sapsll/kmatwlr3_enq_s = 'E' mandt = sy-mandt apevs = ls_kmatwlr3-apevs barvs = ls_kmatwlr3-barvs vbeln = ls_kmatwlr3-vbeln * POSNR = * X_APEVS = ' ' * X_BARVS = ' ' * X_VBELN = ' ' * X_POSNR = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .



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 /SAPSLL/KMAT_DISTRIBUTE_FOR or its description.