Skip to Content
avatar image
Former Member

Removing Serial Number from Delivery

Hi Folks,

I have a requirement of Removing Serial Number from Delivery Document. Is there is some BAPI or FM available for this?

Thanks in Advance,

Punit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 09, 2007 at 07:07 AM

    try this FM: <b>DELETE_SERNR_LS</b>

    Hope That Helps

    Anirban M.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Anirban,

      I tried the FM. By Using the FM status of Serial Number 'Assigned to Delivery' is removed.

      But I could still see the Serial Number attached to Line Item in tran VL02N.

      Following is the code I have written.

      MOVE: '0085003031' TO DA_SERXX-LIEF_NR,

      '000030' TO DA_SERXX-POSNR,

      '0000034226' to DA_SERXX-OBKNR,

      'M047SBX050034' TO SERNO-SERNR.

      APPEND serno.

      CALL FUNCTION 'SERNR_DEL_FROM_DOCUMENT'

      EXPORTING

      objkopf = 'SER01'

      serxx = DA_SERXX

      operation = 'SDD1'

      MATERIAL = 'BM20847'

      j_vorgang = 'PMSA'

      • BSTCH =

      • BSTUP =

      • DEL_COMPLETE = ' '

      • PROFILE =

      • BUDAT =

      • IMPORTING

      • ANZSN =

      • SERIAL_COMMIT =

      • STATUS_NOT_ALLOWED =

      TABLES

      SERNR = serno

      R_SERNR = e_serno

      CHANGING

      T_SMESG = t_msg

      EXCEPTIONS

      OBJECTLIST_NOT_FOUND = 1

      PARAMETER_ERROR = 2

      OTHERS = 3

      .

      Please Let me know if I am worng someware.

      Thanks a lot,

      Punit