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: 

Serial number copy functionality when creating return orders from standards

Former Member
0 Kudos

Hi all,

Serial number is not copying when i create return order from the standard orders in below scenario.

I implemented one BADI for copying Serial number to Sales order when doing Post goods receipt.

So after doing inbound delivery and PGR, serial number is copied to the sales order but when i create return order with reference to the Standard order Serial number is not copying.

When i go VA02 for standard order and selecting the technical objects then if i create the return order serial number is copying.

Please help me in the above issue.

I used the following logic to copy serial number from inbound delivery PGR.

  • UPDATING THE SERIAL NUMBER TO THE RESPECTINVE SALES ORDER LINE ITEMS

CALL FUNCTION 'SERNR_ADD_TO_AU'

EXPORTING

sernr = lwa_sernr-sernr

profile = 'NEOP'

material = lwa_mseg-matnr

quantity = 1

document = lwa_mseg-kdauf

item = lwa_mseg-kdpos

debitor = lwa_mseg-kunnr

vbtyp = 'C'

sd_auart = lv_auart

sd_postyp = lv_pstyv

EXCEPTIONS

konfigurations_error = 1

serialnumber_errors = 2

serialnumber_warnings = 3

OTHERS = 4.

IF sy-subrc = 0.

CALL FUNCTION 'SERIAL_LISTE_POST_AU'.

IF sy-subrc EQ 0.

COMMIT WORK.

WAIT UP TO 2 SECONDS.

ENDIF.

Edited by: Rajesh Sanapala on Feb 16, 2009 12:48 PM

2 REPLIES 2

Former Member
0 Kudos

Solved on my own..

0 Kudos

hi.

I have the same problem.

Can you please share how you solved it?

thank you

Bill