on 03-18-2011 11:14 AM
Hi Forum,
I am geting a short dump when trying to replicate one specific plant using report BBP_LOCATIONS_GET_SELECTED.
I checked in SLG1 and see the follwing error:
Location Already Exists, Partner: xxxxxxxxxx Plant: NK0K System: XXXCLNT100 The Plant is a Duplicate in the same System Plant: N
Detailed view:
Message Text
Location Already Exists, Partner: xxxxxxxxxx Plant: NK0K System: XXXCLNT100 The Plant is a Duplicate in the same System Plant: NKH2
Technical data
Message type__________ E (Error)
Message class_________ BBP_LOCATION (Location-Specific Messages)
Message number________ 004
Message variable 1____ Location Already Exists, Partner: xxxxxxxxxx
Message variable 2____ Plant: NK0K System: XXXCLNT100
Message variable 3____ The Plant is a Duplicate in the same System
Message variable 4____ Plant: NKH2 is not transferred
Message attributes
Level of detail_______
Problem class_________
Sort criterion________
Number________________ 1
What is the reason behind this error and how to rectify it ?
Thanks,
Anubhav
Location Already Exists, Partner: xxxxxxxxxx
Check this partner xxxxxxxxxx in BP transaction too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Function Module
BBP_LOCATIONS_GET_FROM_BACKEND
Check this code below
LOOP AT CT_REFERENCE_DATA INTO LS_REFERENCE_DATA
WHERE MC_NAME1 EQ LV_MCNAME1
AND MC_NAME2 CP LV_MCNAME2
AND COUNTRY CP LV_COUNTRY
AND LANGUAGE CP LV_LANGUAGE
AND SORT1 CP LV_SORT1
AND SORT2 CP LV_SORT2
AND MC_CITY1 CP LV_MCCITY1
AND MC_STREET CP LV_MCSTREET.
ENDLOOP.
IF SY-SUBRC IS INITIAL.
location already in place, we have to find out if this is ok
READ TABLE LT_LOCATIONS_ALL INTO LS_LOCATION
WITH KEY PARTNER_NO = LS_REFERENCE_DATA-PARTNER
LOGSYS = IV_LOGSYS.
IF SY-SUBRC IS INITIAL.
error: same data set, same system, different plant --> exit
CLEAR LS_MESSAGE.
MOVE GC_ERROR_MESSAGE TO LS_MESSAGE-MSGTY.
MOVE GC_MESSAGE_CLASS TO LS_MESSAGE-MSGID.
MOVE GC_4LINE_MESSAGE TO LS_MESSAGE-MSGNO.
CONCATENATE TEXT-019 LS_LOCATION-PARTNER_NO
INTO LS_MESSAGE-MSGV1
SEPARATED BY SPACE.
CONCATENATE TEXT-011 LS_LOCATION-EXT_LOCNO
TEXT-015 IV_LOGSYS
INTO LS_MESSAGE-MSGV2
SEPARATED BY SPACE.
MOVE TEXT-034 TO LS_MESSAGE-MSGV3.
CONCATENATE TEXT-011 <LFS_PLANT_DATA>-PLANT TEXT-035
INTO LS_MESSAGE-MSGV4
SEPARATED BY SPACE.
APPEND LS_MESSAGE TO ET_MESSAGES.
ADD 1 TO EV_ERROR_COUNT.
CONTINUE.
ENDIF.
Basically after the loop the first statement
MC_NAME1 EQ LV_MCNAME1
was TRUE hence the error is raised.
Thanks,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It clearly states that this plant already exists in your SRM system as a location. There is no need to replicate this plant again.
Kindly check table BBP_LOCMAP to locate this location in SRM.
Regards,
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
I checked in table BBP_LOCMAP and as you said an entry exists for this plant.
I tried with another plant for which there is no entry in table BBP_LOCMAP and below log is generated in SLG1
Message Text
Alle Selected Plants Already Exist
Technical data
Message type__________ W (Warning)
Message class_________ BBP_LOCATION (Location-Specific Messages)
Message number________ 001
Message variable 1____ Alle Selected Plants Already Exist
Message variable 2____
Message variable 3____
Message variable 4____
Message attributes
Level of detail_______
Problem class_________
Sort criterion________
Number________________ 1
What does that means....I mean I understand that the plant already exists but what is the difference or similarity in the earlier case(for which there is an entry in BBP_LOCMAP) and this case (for which there is no entry in BBP_LOCMAP)?
Thanks a lot,
Anubhav
Hi Anubhav,
This should not happen ideally.
The difference I can see in the 2 messages is that, this one is a Warning message and the earlier one was an error message.
Try another thing : Go to PPOMA_BBP -- Under the extended attributes of your Company code, under locations in the F4 help, are you able to find out this plant/location?
Regards,
Nikhil
Hi Anubhav,
Pl create another RFC from SRM to ECC. First create a dialog user in ECC and use this user in the RFC. Then maintain this RFC under 'Define System Landscape'.
Also as Muthu mentioned please check once again if that plant does not exist in one of those 2700 odd entries. It is highly improbable that this is happening. Are both these plants from the same backend?
Regards,
Nikhil
Hi Nikhil / Muthu,
Then maintain this RFC under 'Define System Landscape'.
Can you help me how to do this?
I got error (Location Already Exists, Partner: xxxxxxxxxx Plant: NK0K System: XXXCLNT100 The Plant is a Duplicate in the same System Plant: NKH2) for plant NKH2, there is no entery for plant NKH2 in BBP_LOCMAP but there is one for NK0K .
I got warning ( Alle Selected Plants Already Exist) for plant NKH1, there is one entry in BBP_LOCMAP for this plant.
Thanks a lot,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.