on 2023 Mar 13 9:35 AM
Hi Team,
I am printing label in warehouse via pick by voice device. IN backend SAP it is calling /SCWM/PRINT_HU FM, and while calling no error is coming from this FM i.e sy-subrc = 0 . However label is not printed (spool is not genearting). If I execute the same in SAP manually, it is printing . Can any one help me if there is any config required with pick by voice device .
Regards,
Suman Verma
Request clarification before answering.
Hi Suman.
I've been dealing with this issue for a couple of day, the only work around that I found was to fill the field iv_hustep = 'P'.
Best Regards.
CLASS zewm_cl_hu_util DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS print_hu
IMPORTING
!iv_lgnum TYPE /scwm/lgnum
!iv_hu TYPE /scwm/huident.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.<br><br> METHOD print_hu.
DATA: lt_huhdr TYPE /scwm/tt_huhdr_int,
lt_protocol TYPE bal_t_logh,
lt_contexts TYPE ppftcntxts.
"--! Initialize
CALL FUNCTION '/SCWM/TO_INIT_NEW'
EXPORTING
iv_lgnum = iv_lgnum.
"--! Read HU Data
CALL FUNCTION '/SCWM/HU_READ'
EXPORTING
iv_appl = wmegc_huappl_wme
iv_db_select = iv_hu
iv_top = abap_on
iv_huident = iv_hu
IMPORTING
et_huhdr = lt_huhdr
EXCEPTIONS
deleted = 1
not_found = 2
error = 3
OTHERS = 4.
IF sy-subrc = 0.
*--> Set Global Data
CALL FUNCTION '/SCWM/PRINT_GLOBAL_DATA'
EXPORTING
iv_caller = wmegc_hu_processing.
DATA: lo_output_mgmt TYPE REF TO /scwm/if_af_output_mgmt.
"--! Get adapter framework service instance (classic or S/4 EWM)
lo_output_mgmt ?= /scdl/cl_af_management=>get_instance( )->get_service( EXPORTING iv_service = /scwm/if_af_output_mgmt=>sc_service ).
lo_output_mgmt->init( ).
CALL FUNCTION '/SCWM/PRINT_HU'
EXPORTING
it_huhdr = lt_huhdr
iv_caller = wmegc_hu_processing
* iv_cxt_partner =
iv_hustep = 'P'
* iv_workcenter =
* iv_noexe = space
* iv_nodialog = 'X'
* iv_huident_o =
* iv_pmat_o =
* iv_g_weight_o =
* iv_g_volume_o =
* iv_g_capa_o =
* iv_ldest =
* iv_form_group =
* iv_log_process =
* iv_docno =
* iv_reprint =
IMPORTING
et_protocol = lt_protocol
et_contexts = lt_contexts
EXCEPTIONS
no_previous_print = 1
error_on_log_save = 2
previous_print = 3
OTHERS = 4 .
ENDIF." HU Header Read FM
CALL FUNCTION '/SCWM/CLEANUP_PRINT'.
ENDMETHOD.
ENDCLASS.
<br>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.