cancel
Showing results for 
Search instead for 
Did you mean: 

Launch C4C UI via URL

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello All,

After searching through SCN and coming across the following 2 threads/blogs -

http://scn.sap.com/docs/DOC-27476

http://scn.sap.com/thread/3469799
my objective still lies unaccomplished.....

My requirement is simple enough, and I tried with several parameters inorder to launch a QUICKCREATE (QC) view of OPPORTUNITY BO with ACCOUNT DETAILS PREPOPULATED (to create Opportunity with Reference to an Account) and I get a dump in HTML5/SL eventhough in SL it does open up the QC View but with no prepopulated details.

The URL I am using is :-

https://<Tenant URL>/sap/ap/ui/repository/SAP_BYD_UI/HTML5/client.html?sap-client=005&sap-language=E...


Request the experts to suggest on how to parametrize the URL correctly inorder to accomplish - launching a Opportunity Quick Create View with Account Details prepopulated.


BR

Dedeepya

Accepted Solutions (0)

Answers (2)

Answers (2)

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Tried an additional link -

https://<tenant URL>/sap/ap/ui/repository/SAP_BYD_UI/HTML5/client.html?sap-client=005&sap-language=EN&app.component=%2fBYD_COD%2fSalesOnDemand%2fOpportunity%2fUI%2fCOD_Opportunity_QuickCreate.QC.uicomponent&app.inport=QuickCreate_WithAccount&param.BO=Customer&param.ESRNamespace=http://sap.com/xi/AP/FO/BusinessPartner/Global&param.Node=Root&param.KeyList.Key=<Account UUID>

Here in, I have passed all the parameters of the Inport "QuickCreate_WithAccount" of Opportunity BO.

But it still does not seem work.

Experts would appreciate suggestions/inputs.

BR

Dedeepya

TomK
Advisor
Advisor
0 Kudos

Hi Dedeepya,

from where are you trying to launch the URL? From an external UI5 application or do you mean from the C4C HTML5 client?

If: External UI5 application: Did you consider to use the standard WebService "ManageOpportunityIn" to send your create-request to C4C?

If: C4C HTML5 client: You would need some PDI development in order to build a custom QC for creating Opportunies (because you cannot call the standard QC via PDI). To get an idea: see for example http://scn.sap.com/community/business-bydesign/studio/blog/2014/11/24/how-to-make-a-custom-quick-cre...

I am not sure, if your approach is possible.

Best regards

Tom

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tom,

Thanks for responding.

It is from a UI5 portal. I did consider using a WebService, but I need the screen to be launched, using WebServices we can pass data only and not screen information.

Since the need is to navigate to the C4C Opportunity Quick Create Screen hence the parametrized URL formation which will be shared with the UI5 team.

I am well aware of the PDI studio, and from my analysis and understanding there is no scope for PDI or WebService development.

What I am trying to understand is when I can launch a TI Display of an Opportunity/Account/etc.. BOs successfully why am I not able to launch a QC.

Hope you understood what I am trying to achieve.

Below is a sample URL for launching a Opportunity TI which works:-

https://<hostname>.<domain>/sap/byd/nav?bo=COD_OPPORTUNITY_THINGTYPE&nav_mode=TI&param.Key=<Opportunity UUID>

https://<hostname>.<domain>/sap/ap/ui/repository/SAP_BYD_UI/HTML5/client.html?sap-client=005&sap-language=EN&app.component=%2fBYD_COD%2fSalesOnDemand%2fOpportunity%2fUI%2fCOD_Opportunity_TI.TI.uicomponent&param.Key=<Opportuntity UUID>

BR
Dedeepya

TomK
Advisor
Advisor
0 Kudos

Hi Dedeepya,

thanks for further explanations.

I am aware that the launching the TI via URL is possible. It is also described in the admin guide I guess.

Unfortunately I have not yet heard about directly launching an QC via URL with parameters. The URL to the QC that you posted seems to be valid. Maybe someone else knows, if this is possible. I will keep my ears open 🙂

----

Just some thoughts:

I was just wondering, if you could build your own "QC mask" in UI5.

1. Use a WebService against C4C to find the relevant account - set it on your custom UI5 "QC mask"

2. Fill in other information that you want  - set it on your custom UI5 "QC mask"

3. Create the Oppy via "ManageOpportunityIn"-WS - Post against C4C

4. Use the returned UUID to build up the direct navigation link

5. Provide the user the link or directly open up the TI of the newly created Oppy in a new browser window/tab.

This might also be nicer integrated in your UI5 frontend.

Best regards

Tom

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tom,

I am not well versed with UI5 concepts yet.. What is a QC Mask ?

Could you please explain if you dont mind?

Also, the requirement is not to create the Opportunity directly but to Navigate to the creation screen and leave it to the user for creation or cancellation.

I did make a breakthrough in getting the launch of QC with prefilled Account Parameters working but in SL (silverlight), it fails to launch so in HTML5.

Here's the URL for silverlight & HTML5 respectively -

SL

https://<host>.<domain>/sap/public/ap/ui/repository/SAP_BYD_UI/Runtime/StartPage.html?client_type=sl&sap-client=045&sap-system-login-basic_auth=X&sap-language=EN&app.component=/BYD_COD/SalesOnDemand/Opportunity/UI/COD_Opportunity_QuickCreate.QC.uicomponent&app.inport=QuickCreate_WithAccount&param.BO=CUSTOMER&param.ESRNamespace=http://sap.com/xi/AP/FO/BusinessPartner/Global&param.Node=ROOT&param.KeyList.Key=<Account UUID>

HTML5

https://<host>.<domain>/sap/public/ap/ui/repository/SAP_BYD_UI/HTML5/client.html?client_type=html&sap-client=045&sap-system-login-basic_auth=X&sap-language=EN&app.component=/BYD_COD/SalesOnDemand/Opportunity/UI/COD_Opportunity_QuickCreate.QC.uicomponent&app.inport=QuickCreate_WithAccount&param.BO=CUSTOMER&param.ESRNamespace=http://sap.com/xi/AP/FO/BusinessPartner/Global&param.Node=ROOT&param.KeyList.Key=<Account UUID>

As I said the URL for HTML5 does not work, I am still trying to figure out why so and if its possible in HTML5 what might the changes I need to bring into the URL

BR

Dedeepya

TomK
Advisor
Advisor
0 Kudos

Hi Dedeepya,

cool that the SL URL is working. I just tried it out.

The HTML client throws following error: "sap.client.request.Response.GET_CONTENT.unknown : SyntaxError: Unexpected number" for me.

---

What I ment with your own "QC mask" was to build a html-form with fields like you have them in the C4C. In this HTML form you could add fields like "Account" with a value help based on the C4C data (accounts consumed via a WebService/oData). After filling the form you could send the create request via "ManageOpportunityIn"-WS into C4C and provide a link to the Oppy-TI afterwards.

For sure this would be more effort than your approach, but maybe also better integrated.

Best regards

Tom


HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

HelloTom, Dedeepya,

Do not expect that Silverlight and HTML5 has exact the same functionality.

It's different code, developed by different teams at different time ->

Bye,

   Horst

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Horst,

True SL and HTML5 screen behave differently.

But is there absolutely no definitive answer to this ?

BR

Dedeepya

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Dedeepya,

From what Tom wrote I assume that is is possible in SL but not in HTML 5 to perform this call with parameters.

As HTMl 5 is the current UI methodology you can expect to get this done soonet or later.

Sooner if you raise a ticket.

HTH,

   Horst

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

I raised a ticket

Hopefully should get going on that now..

Thanks a lot Horst and Tom for your inputs on this topic.

BR Dedeepya

Former Member
0 Kudos

Dedeepya,

What exactly are you trying to do?

1. Use C4C SDK to configure a C4C button/link to display the Opportunity Quick Create?

2. Use some other IDE to create a parameterized URL to display the Opportunity Quick Create?

Thanks,

Rei

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rei,

We have a requirement to trigger Opportunity Quick Create View from a UI5 screen.

So, I would be providing a C4C URL for Opportunity Create with Reference to Account.

So far the URLs I have tried out are -

1) https://<tenant URL>/sap/ap/ui/repository/SAP_BYD_UI/HTML5/client.html?sap-client=005&sap-language=EN&app.component=%2fBYD_COD%2fSalesOnDemand%2fOpportunity%2fUI%2fCOD_Opportunity_QuickCreate.QC.uicomponent&app.inport=QuickCreate_WithReference&param.Key=<Account UUID>

2) https://<tenant URL>/sap/public/ap/ui/repository/SAP_BYD_UI/Runtime/StartPage.html?sap-client=005&sap-system-login-basic_auth=X&sap-language=EN&app.component=/BYD_COD/SalesOnDemand/Opportunity/UI/COD_Opportunity_QuickCreate.QC.uicomponent&app.inport=QuickCreate_WithReference&param.Key=<Account UUID>

3) https://<tenant URL>/sap/byd/nav?bo_ns=http://sap.com/thingTypes&bo=COD_OPPORTUNITY_THINGTYPE&node=Root&Operation=QuickCreate_WithReference&param.Key=<Account UUID>

4) https://<tenant URL>/sap/ap/ui/repository/SAP_BYD_UI/HTML5/client.html?sap-client=005&sap-language=EN&app.component=%2fBYD_COD%2fSalesOnDemand%2fOpportunity%2fCOD_opportunity_create_qaf.QA.uicomponent&app.inport=OpportunityRootCreateWithReferencefromBPIn&param.Key=<Account UUID>

BR

Dedeepya