User-exit at serial number entry on Delivery

Problem: you want to invoke action after user enters a Serial Number on the item of a Delivery, in ERP.

Solution: In the SMOD transaction there are few projects that can help you achieve this:

  • IQSM0001 – Automatic serial number assignment
  • IQSM0002 – Check when copying object list
  • IQSM0003 – Serial numbers, user exit for additional data
  • IQSM0004 – Serial numbers, user exit after leaving serial screen
  • IQSM0005 – Serial numbers, user exit to posting
  • IQSM0007 – Serial numbers, user exit for material movement
  • IQSM0008 – Check for serial numbers – character string.

For example in project ZXQSMU04, FM EXIT_SAPLIPW1_004, you can access information about entered Serial Number. Below example code:

FIELD-SYMBOLS:
  <ls_iequi> TYPE riequi.
 
ASSIGN ('(SAPLIPW1)xequi') TO <ls_iequi>.
CHECK sy-subrc = 0.
 
WRITE: <ls_iequi>-sernr.
WRITE: <ls_iequi>-matnr.
FIELD-SYMBOLS:
  <ls_iequi> TYPE riequi.

ASSIGN ('(SAPLIPW1)xequi') TO <ls_iequi>.
CHECK sy-subrc = 0.

WRITE: <ls_iequi>-sernr.
WRITE: <ls_iequi>-matnr.

Komentowanie jest zakończone.