cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid login username/password supplied in SAP CPQ 2.0

0 Kudos
542

Hi Experts ,

We are trying to replicate products from S4 to CPQ by using the "Simple Product Administration SOAP API" and as an input parameter we are passing the correct CPQ Admin username and password with action "ADDORUPDATE" , but in response we are getting the error as "Invalid login username/password supplied".

We have checked the username and password and its working fine when we are logging to system. We have tried by passing only username as well as by passing domain also (username # Domain).

Not sure whether we need to activate something or we are missing something.

so experts need your help in resolving this minor and silly issue .

attached screenshot for reference in which user has marked as admin and still getting the error

Regards

Prasanth

Accepted Solutions (0)

Answers (2)

Answers (2)

Fancy_Zou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

First of all, please use API ImportMaterialsFromERP instead of SimpleProductAdministration when doing the integration between SAP CPQ and SAP S/4HANA:

Make sure the field "isSyncedFromBackOffice" is set with value "TRUE" so that SAP CPQ will recognize the products from S/4HANA.

Secondly, please pass the username and password in the request header using basic authentication rather than send them via request payload.

Last, with the new SAP CPQ URL effective, please send request to the API address using the new host URL. With the new host URL, domain should NOT be maintained in the username any more.

Best Regards

Fancy

0 Kudos

Hi fancy.zou ,

I tried in the same way just as you mentioned above but still getting the same error.

Is there some kind of authorization changes which need to be done apart from assigning the user as administrator.

Regards

Prasanth

Fancy_Zou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi prasanth11

May you please post the xml content you are trying to post using the API?

Best Regards

Fancy

0 Kudos

hi Fancy

Please find the below XML file which we are passing here i have removed the username domain and password but in actual we are passing the correct credentials.

http://schemas.xmlsoap.org/soap/envelope/"; xmlns:web=" http://webcominc.com/">;

<soapenv:Header/>

<soapenv:Body>

<web:ImportMaterialsFromERP>

<web:username>"Username"#"Domain"</web:username>

<web:password>"Password"</web:password>

<web:xDoc>

<Products>

<Product>

<Identificator>ProductSystemId</Identificator>

<ProductSystemId>TNC_5G_GOLD1</ProductSystemId>

<PartNumber>TNC_5G_GOLD1</PartNumber>

http://www.w3.org/2001/XMLSchema-instance"/>;

<IsSyncedFromBackOffice>True</IsSyncedFromBackOffice>

<UnitOfMeasure>EA</UnitOfMeasure>

<Categories PreselectInCPQ="True"/>

<ProductName>

<USEnglish>TNC 5G Data</USEnglish>

</ProductName>

http://www.w3.org/2001/XMLSchema-instance"/>;

http://www.w3.org/2001/XMLSchema-instance"/>;

</Product>

</Products>

</web:xDoc>

</web:ImportMaterialsFromERP>

</soapenv:Body>

</soapenv:Envelope>

Fancy_Zou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi prasanth11 ,

Please share the complete API URL you're trying to call as well.

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

prasanth11

can you check that user can able to login to CPQ ? Also check if user has proper User Type and Company assigned ? If it doesn't work.. let me know

0 Kudos

yoganandamuthaiah

Yes i am able to login to CPQ and regarding user type i have selected "sales" and the company is also assigned, but still it is not working.