Hi expertise,
In me21n there is an issue when we are going to refer RFQ number of a service and create PO the loaded RFQ details are not belong to the given FRQ number. As I identify they are belong to last updated RFQ of that PR number. Using following function program takes last updated RFQs packno
in SAPLMLSP.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = T165-NUMKI
OBJECT = 'SERVICE'
* QUANTITY = E03
* SUBOBJECT = E04
* TOYEAR = E05
IMPORTING
NUMBER = NUMMER
* QUANTITY = I02
RETURNCODE = RCODE
EXCEPTIONS
INTERVAL_NOT_FOUND = 01
NUMBER_RANGE_NOT_INTERN = 02
OBJECT_NOT_FOUND = 03
QUANTITY_IS_0 = 04.
I have tried to change the packno in comsrv to the given RFQ number's packno. then correct data will load to the PO. Then i'm going to save the PO successful message display. But after that mail recieved as follow.
"Update was terminated
Transaction.. ME21N
Generated.... 13.01.2014, 09:45:48
Completed.... 13.01.2014, 09:45:49
Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC"
Are there any way to solve the issue..
Thanks,
Pavi