cancel
Showing results for 
Search instead for 
Did you mean: 

Error in retrieving/reading customer BO

Former Member
0 Kudos

Hi

I am wondering if anyone can help me with the below code


import ABSL;

import AP.FO.BusinessPartner.Global;

import AP.CRM.Global;

OR

Why this error is coming? How can I fix it, what additional qualifier should I use?

I also checked in repository explorer there is only one Customer BO

Thanks

Sunil Maurya

Accepted Solutions (0)

Answers (6)

Answers (6)

sunil1101
Employee
Employee
0 Kudos

Hi All,
I have received response from Cloud support here are the few things

1. As per the our request Cloud support has switched off PSM(it is required for our development)

2. As a side effect of PSM off, the above mentioned issue had occurred.

3.Cloud support has found another namespace http://abql.test/sbo. in system which is not visible in SDK repository, this namespace also has not started with sap.com like other SAP namespace.

4. They have told me to contact PDI developer(I don't know whom to contact).

I think , is a platform of PDI developer, you guys can help me.

Thanks

Sunil Maurya

Former Member
0 Kudos

Hi All,

Thank you for your help.

unfortunately I tried everything and nothing is working so I have raised an Incident.

I will keep you update with the cause and solution.

Regards

Sunil

Former Member
0 Kudos

Thank you Vinod and Hanumanth,

Yes I tried this too, it not helping.

It seems it is not recognising Customer BO itself

Regard

Sunil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sunil,

This is really strange: This message is raised, if an entity (BO, DataType, ...) is found in several places (= Namespaces).

But with a namespace any BO, DataType, ... is uniquely defined because "Namespace" + "Name" is the key.

Any succes with restarting the Studio?

Bye,

   Horst

Former Member
0 Kudos

Do you have any other local variable or Custom BO with the same name "Customer" in your tenant ???

Even in this case, alias should help actually.

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Sunil,

Also some times the error messages are not updated until you try to Save or Activate the BO. If you also tried this, probably you might need to raise an incident to see whats wrong with it.

Regards

Vinod

Former Member
0 Kudos

And also you can try to delete the project cache and reload all the metadata.

Former Member
0 Kudos

And most importantly, you can always...

  1. clean your bo where you are writing this action.
  2. make a dummy change in your bo def.
  3. activate the bo.
Former Member
0 Kudos

Hi Sunil,

Give a try using alias name for the namespace which imported by you.

import AP.FO.BusinessPartner.Global as bpartnr

using this alias name and try to aceess the Customer BO.

bpartnr.Customer. Hope this should work..

Regards..
Hanu K

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Sunil,

This should not happen, but you can try checking with some thing like below.

import AP.FO.BusinessPartner.Global as bp; 

and then use bp: Customer instead of Customer in your code

Regards

Vinod

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sunil,

Anything elese between the first 3 lines and the errornous ones?

Bye,

    Horst

Former Member
0 Kudos

Hi Horst,

No, import statement is like that

the word "Customer" has error and message says something strange for me..:(

Thanks

sunil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sunil,

That's strange, because - as you already verified - there is only one Customer BO, which is located in the namespace AP.FO.BusinessPartner.Global.

Maybe the Studio has an issue with the internal buffering.

You may restart it and check.

But to solve it for sure, just do what Vinod and Hanu suggested: Use an alias.

Bye,

    Horst