Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Madhusudhan_MV
Explorer
0 Kudos

Issue: Many products are discovered in incorrect storage bins.

In the course of storing items, individuals frequently misplace products into incorrect destination bins. To address this issue, following the system confirming of the putaway warehouse task, it is essential to present the destination bin to the user to which the product was dropped off via a message. Additionally, to ensure user attentiveness and accuracy, manual acknowledgment through pressing a button should be required, thereby disabling the automatic enter function of the RF device when scan button is pressed.

Madhusudhan_MV_0-1711374260769.gif

 

Below video explains - How auto enter works in RF Devices

Madhusudhan_MV_1-1711374260770.gif

 

Solution:

Step 1: Create a new structure:

Madhusudhan_MV_1-1711371911075.png

and add it as a application parameter:

Madhusudhan_MV_0-1711371852320.png

Step 2. Copy one of the RF screen to a new screen 907:

Madhusudhan_MV_3-1711372146951.png

Madhusudhan_MV_4-1711372180900.pngMadhusudhan_MV_5-1711372193870.png

Step 3: Create a new step

Madhusudhan_MV_6-1711372442241.png

Step 4: Create a new function code:

Madhusudhan_MV_8-1711372640389.png

Step 5: Configure the Logical transaction step flow as below

Madhusudhan_MV_7-1711372554755.png

Step 6: In the wrapper function of the warehouse task confirming PAI function module, populate the destination bin where the product was placed into a custom message.

 

 

FUNCTION _rf_pt_hu_dest_pai.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  CHANGING
*"     REFERENCE(CS_PTWY) TYPE  /SCWM/S_RF_PTWY
*"     REFERENCE(CS_ADMIN) TYPE  /SCWM/S_RF_ADMIN
*"     REFERENCE(CT_PTWY) TYPE  /SCWM/TT_RF_PTWY
*"     REFERENCE(CT_LGPLA) TYPE  /SCWM/TT_LGPLA
*"     REFERENCE(CT_SERNR) TYPE  /SCWM/TT_RF_SERNR
*"     REFERENCE(CT_SERNR_DIFF) TYPE  /SCWM/TT_RF_SERNR
*"     REFERENCE(CS_SN) TYPE  /SCWM/S_RF_SN
*"     REFERENCE(TT_NESTED_HU) TYPE  /SCWM/TT_RF_NESTED_HU
*"     REFERENCE(ZCS_CUSTOM_MESSAGE) TYPE  ZEWMS_CUSTOM_MESSAGE
*"       OPTIONAL
*"----------------------------------------------------------------------
  DATA:
    lv_fcode TYPE /scwm/de_fcode,
    lv_msg1  TYPE symsgv.

  DATA:
    ls_ptwy  TYPE /scwm/s_rf_ptwy_att.

* Get actual function code
  CALL METHOD /scwm/cl_rf_bll_srvc=>get_fcode
    RECEIVING
      rv_fcode = lv_fcode.

  MOVE-CORRESPONDING cs_ptwy TO ls_ptwy.
  CALL FUNCTION '/SCWM/RF_PT_HU_DEST_PAI'
    CHANGING
      cs_ptwy       = cs_ptwy
      cs_admin      = cs_admin
      ct_ptwy       = ct_ptwy
      ct_lgpla      = ct_lgpla
      ct_sernr      = ct_sernr
      ct_sernr_diff = ct_sernr_diff
      cs_sn         = cs_sn
      tt_nested_hu  = tt_nested_hu.

  CLEAR zcs_custom_message.

  IF lv_fcode = 'ENTER'.
    SELECT SINGLE tanum
      FROM /scwm/ordim_c
      INTO (lv_tanum)
      WHERE tanum = _ptwy-tanum.
    IF sy-subrc IS INITIAL.

      /scwm/cl_rf_bll_srvc=>set_screen_param( iv_param_name = 'ZCS_CUSTOM_MESSAGE' ).

      zcs_custom_message-text01 = TEXT-t01. "'Confirm the putaway'.
      zcs_custom_message-text02 = TEXT-t02. "'of the product in'.
      CONCATENATE TEXT-t03 ls_ptwy-nlpla INTO zcs_custom_message-text03 SEPARATED BY space.

      /scwm/cl_rf_bll_srvc=>set_prmod( '2' ).
      /scwm/cl_rf_bll_srvc=>set_fcode( 'PBO1' ).

    ENDIF.
  ELSE.

    /scwm/cl_rf_bll_srvc=>set_fcode( 'ZENTER' ).
    /scwm/cl_rf_bll_srvc=>set_prmod( '1' ).

  ENDIF.

ENDFUNCTION.

 

Step 7: Create a Function Group and create PBO and PAI functions declared above

PBO: _RF_CUSTOM_MESSAGE_PBO

 

*-- If changing parameter contain message then execute message display screen else execute in backgound
  IF zcs_custom_message-text01 IS INITIAL.
    /scwm/cl_rf_bll_srvc=>set_prmod( '1' ).
  ELSE.
    /scwm/cl_rf_bll_srvc=>set_prmod( '2' ).
  ENDIF.

 

PAI: _RF_CUSTOM_MESSAGE_POST

 

  DATA:
    lv_fcode TYPE /scwm/de_fcode.

* Get actual function code
  CALL METHOD /scwm/cl_rf_bll_srvc=>get_fcode
    RECEIVING
      rv_fcode = lv_fcode.

*-- Raise error message if user click on other than Enter key
  IF lv_fcode <> 'ZENTER'.
    MESSAGE "'Please click on Enter'
  ENDIF.

 

Step 8: add the ZENTER button on the new screen

Madhusudhan_MV_11-1711373766824.png

Step 9: map logical transaction step to sub-screen

Madhusudhan_MV_10-1711373646472.png

OUTPUT:

Madhusudhan_MV_12-1711374048268.png

 

 

 

 

 

 

1 Comment
Labels in this area