02-13-2009 12:46 PM
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
02-17-2009 7:57 AM
03-09-2009 10:03 AM
hi.
I have the same problem.
Can you please share how you solved it?
thank you
Bill