Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Removing Serial Number from Delivery

Former Member
0 Kudos

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

2 REPLIES 2

former_member480923
Active Contributor
0 Kudos

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

Hope That Helps

Anirban M.

0 Kudos

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