cancel
Showing results for 
Search instead for 
Did you mean: 

Error while replicating one plant Message Class BBP_LOCATION No. 004

former_member184111
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member183819
Active Contributor
0 Kudos

Location Already Exists, Partner: xxxxxxxxxx

Check this partner xxxxxxxxxx in BP transaction too.

former_member184111
Active Contributor
0 Kudos

Hi Muthu,

Yes that partner exists in transaction BP.

Should I check for any specific information ?

Thanks,

Anubhav

former_member183819
Active Contributor
0 Kudos

BBP_LOC*map TABLE stores all the plant .

how many values are there inside the table?

Is it quality box?

former_member184111
Active Contributor
0 Kudos

Hi Muthu,

This is a DEV box and total entries in BBP_LOCMAP is 2,730 .

Thanks,

Anubhav

former_member183819
Active Contributor
0 Kudos

in all 2730 entries, NK0K dont you see ?

i think this table has logical system entry too .

are they pointing all the plant entries poiting to dev log system.

As nikhil said it is inscrutable ..why u get this error

?

Answers (2)

Answers (2)

former_member184111
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member184111
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member184111
Active Contributor
0 Kudos

Hi Nikhil,

Message text is also different.

No both plants (one that exists in BBP_LOCMAP and one that does NOT exists in BBP_LOCMAP) are not available in the F4 help.

Thanks,

Anubhav

Former Member
0 Kudos

Anubhav,

Have you defined a second RFC connection from SRM to ECC with a dialog user? Also this needs to be maintained in the 'Define System Landscape' entries. This is needed to be able to see the items in F4 help.

Regards,

Nikhil

former_member184111
Active Contributor
0 Kudos

Hi Nikhil,

There is only one RFC connection defined....ALEREMOTE...from SRM to ECC.

Thanks,

Anubhav

Former Member
0 Kudos

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

former_member184111
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Anubhav,

Navigate to SPRO -- SRM Server -- Technical Basic Settings -- Define System Landscape. Here you need to define your second dialog RFC connection under RFC_DIA.

Regards,

Nikhil