Quantcast
Channel: SCN : All Content - SAP Cloud Applications Studio
Viewing all 1101 articles
Browse latest View live

Get User ID of the user in C4C ERP integration

$
0
0

Hi all,

 

I have an issue while integrating C4C to ERP system.

While creating a Sales Quote in ERP from C4C, the 'Technical User ID' is being sent to ERP from C4C system in 'Created By' Field.

My requirement is to send User ID field instead of Technical User ID.

 

Our Proposal is to create a new Opportunity extension field which will hold the current C4C User ID field value.

 

Issue:

I'm not able to get the user id of the current logged user in SDK with ABSL . Need your help to get the user id of the currently logged in user.

 

Below thread is having similar issue but it doesn't have the complete solution.

C4C to CRM | Idoc CREATED_BY contains Cloud Tech ID and not User ID

 

Your ideas are very much appreciated.

 

Thanks & Regards,

 

Ashish


Update Account field that is used in embedded component

$
0
0

Hi i have requirement, That i am using account field "Relationship" in my embedded component , i want whenever i will update relationship field value,

it will automatically update Relationship Field in Account Master data, I need ABSL code i mean code for action and vice versa.Please suggest.

How to create custom Query using Search criteria of logged-in user ?

$
0
0

How do I create a New Query that has pre-filled values of  the current user as the Search Criteria ?

 

For example, in the Service WC, there are multiple queries for search Tickets.  (See screen shot at bottom)

 

I want to replicate the functionality of "My Tickets".   The trick is that "My" is dependent on user logged in, not a hardcoded value.

 

To save time, is this even doable in KUT ?

 

If not, is there a way in SDK to put a system variable in the query ?  How can do I something like that for a custom BO or a standard BO ?

 

2016-03-21 Ticket Query Screen.png

SAP Cloud SDK : How to Pass More than 1 Opportunity Status Code in OVS on Embed Component

$
0
0

Hi Experts,

 

We have created embed component on Account screen with ALP.

We have added Opportunity Field in that ALP and we have assigned Standard OVS COD_Opportunity_SOVS.

 

Now we need to pass Status Code Open and In Process in this OVS via SDK than how we can pass this value in it so once user can click on Opportunity only Open and In Process Opportunity comes in List.

 

Kindly help me if someone know about this passing multiple value in Standard OVS.

 

Regards,

Mithun

How to add an Activity in a Sales Quote through a Web service.

$
0
0

Hi Experts,

 

I need to update a Sales quote from a Web Service to add an Activity. I Tried with a Web Service for the Sales Quote but i don´t recognize the node to fill the Activities.

 

Activities.jpg

 

In the UI Designer shows that Table like an association called [AppointmentReference] but i don´t cannot to identified in the WS.

 

Maybe i need to execute another WS?

 

I am using a WS created in the PDI for the CustomerQuotes.

 

 

Another problem i have, I don´t know the typeCodes for the Activity.

 

 

thx!!

How to get changes reflected in Custom PDF

$
0
0

Hello Experts,

 

I have created one Custom BO.

From that BO I have created one PDF.

Now I want one more Extra element to be added in my PDF so for that I added that element in my Custom BO.

[Transient] element Function_Txt :LANGUAGEINDEPENDENT_LONG_Text;

But that element is not reflected in the PDF.

So How is this possible so that i can view this newly defined element in my PDF.

 

Please help out

 

Thanks in advance,

Komal

Show Ecc ALV report result on Cloud

$
0
0

Hi experts,

 

I have a very special needs. Customer want to see a ECC ALV report (eg. Billing list) on the Cloud.

My idea is

1、create custom BO, define all alv field

2、upload(insert/modify data) all ALV result to Cloud (system auto upload)

3、create data source and define analysis report, let user to customize fields and conditions

 

Will this way, it is good?

Or other ways and steps to achieve?

 

 

Best regards,

Daniel.

Fore colour to be changed in custom developed field

$
0
0

Hi Experts,

 

I am looking for one new feature for my custom developed BO and XBO solutions, if I leave any field blank which I have made mandatory using custom script on “On Save” event.


It should be highlighted as some foreground colour in it. (This functionality is already there for system’s standard field. Now, I want to pull this in custom development as well).


In case any further information for this please revert.


Thanks

Ashish Sharma


How to pass the body content which is in Json format in Rest API's Post method?

$
0
0

Hi Experts,

 

We are building a connector with markto and SAP C4C by using the REST API's and i have some queries regarding the ABSL.

 

1. How to pass the Body content in the post method of the API in Json format?

2. And how to parse the response that is in JSON format string?

 

Below are some screen shots.

 

Rest_Body.PNG

 

Body Should be in Below Json Format how to send it through our ABSL?

 

JSON Format.PNG

 

Below is the response we get in Json format(Requested the API from online Tool).

 

How to parse this response in ABSL.

 

JSON Response.PNG

 

Kindly help me in this issue.

 

Regards,

Siraj.

Providing Sales Territorry details to external Application

$
0
0

Hi All,

 

The third party application needs to get complete details of Cloud for customer Sales Territory information. Although I find Manage and Check Territory services part of Service Explorer, these are basically allows create or manipulating existing C4C Data. I need to get complete list of C4C Sales Territory information for external/third party Application. Are there any solutions in PDI to get this done? Please provide clarity.

 

Thanks

Sridhar

Message Xxx in namespace 'Nnn' is not unique in WSDL document

$
0
0

Dear,

I'm trying to import a wsdl file into Application studio in order to Create an External web service. During the activation I receive following message error:

 

Message 'IExternSysService_GetToken_InputMessage' in namespace 'http://tempuri.org/' is not unique in WSDL document.

 

Here the wsdl file that I'm using .

<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="ExternSysService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">  <wsdl:types>  <xsd:schema targetNamespace="http://tempuri.org/Imports">  <xsd:import schemaLocation="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc?xsd=xsd0" namespace="http://tempuri.org/"/>  <xsd:import schemaLocation="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>  <xsd:import schemaLocation="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ExternSysWcf"/>  </xsd:schema>  </wsdl:types>  <wsdl:portType name="IExternSysService">  <wsdl:operation name="GetToken">  <wsdl:input wsaw:Action="http://tempuri.org/IExternSysService/GetToken" message="tns:IExternSysService_GetToken_InputMessage"/>  <wsdl:output wsaw:Action="http://tempuri.org/IExternSysService/GetTokenResponse" message="tns:IExternSysService_GetToken_OutputMessage"/>  </wsdl:operation>  </wsdl:portType>  <wsdl:binding name="CustomBinding_IExternSysService" type="tns:IExternSysService">  <wsp:PolicyReference URI="#CustomBinding_IExternSysService_policy"/>  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>  <wsdl:operation name="GetToken">  <soap12:operation soapAction="http://tempuri.org/IExternSysService/GetToken" style="document"/>  <wsdl:input>  <soap12:body use="literal"/>  </wsdl:input>  <wsdl:output>  <soap12:body use="literal"/>  </wsdl:output>  </wsdl:operation>  </wsdl:binding>  <wsdl:service name="ExternSysService">  <wsdl:port name="CustomBinding_IExternSysService" binding="tns:CustomBinding_IExternSysService">  <soap12:address location="http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc/ExternSysWcf/ExternSysService.svc"/>  <wsa10:EndpointReference>  <wsa10:Address>http://XXX.XXX.XX.X/ExternSysWcf/ExternSysService.svc/ExternSysWcf/ExternSysService.svc</wsa10:Address>  </wsa10:EndpointReference>  </wsdl:port>  </wsdl:service></wsdl:definitions>

Is it necessary elaborate the content of wsdl file before importing it?

 

Best Regards,

Daniele

How to get full description of standard Code Datatype

$
0
0

Hello Experts,

 

I have one requirement to display the full description of standard code datatype i.e.

 

[Transient] element Function :BusinessPartnerFunctionTypeCode;

 

for this I have written the below code.

 

if(!bcont.BusinessPartnerFunctionTypeCode.IsInitial()){

  nodecont.Function.content = bcont.BusinessPartnerFunctionTypeCode.GetDescription(); }

 

But the output is as shown below

Capture.JPG

It is not showing the entire description.

 

So please help.

 

Thanks,

Komal

Calculating columns in advanced list panes

$
0
0

Hi All,

 

I recently started working with the SAP Cloud Application Studio and for the most part have found it easy to work with. However, I can't seem to get my head around this particular issue. I was hoping that someone could point me in the right direction when it comes to calculating the total of columns in an advanced list pane in an OIF screen.

 

 

As a novice user of the Cloud Application Studio I would appreciate if someone could outline the correct process for achieving this. Ideally I would like to output the total of this column to a field in the General tab of the OIF.

 


Thanks

 

John

How to assign string value to [DependentObject(TextCollection)]?

$
0
0

Hi Experts,

 

            I have a custom BO with a dependent field TextCollection.

//Notes

[DependentObject(TextCollection)] node TextCollection;

 

I have to assign some text for eg.." This is test value" to this TextCollection  from the PDI ( .absl code.).

 

How do I achieve this?

 

I tried couple of things like,

 

TextCollection.ActionCode="04";

TextCollection.Text.GetFirst().LanguageCode ="EN";

TextCollection.Text.GetFirst().TextContent.Text.content = "This is Testing notes from upload";

 

But this didn't worked. Any suggestions?

 

 

 

 

Thank you for the Help in advance.

 

 

Praveen

Creating a Down Payment

$
0
0

Hi,

 

We are currently looking for a way to create an invoice of type Down Payment, but did not find success so far.

 

There are two options that I've investigated :

  1. use standard ABSL coding such as what is described in the Repository Explorer documentation, along with this helpful thread: Generating a Customer Invoice through SDK
  2. use the ManageCustomerInvoiceRequestIn inbound webservice

 

None of them allowed me to create an actual down payment. I was able to create a standard invoice though.

 

When using the webservice, I tried setting the PricingProcedure to PPGDP1 or PPNDP1, but got the error "could not copy tax details and price components". There was obvisouly a discrepancy somewhere, even when setting the price component type code to 7GDP or 7NDP. (gross down payment or net down payment). Using the standard PPSTD1 with a price component of type 7PR1 was working as expected.

 

When using standard ABSL coding, I tried setting the InvoiceProcessingType to "CDP" instead of the recommended "CI". This resulted in an error of type "invoice processing type missing".

 

Please note that in both cases I only use one item without a product reference (I added General Ledger and Taxation characteristics as instructed), and only one price component with the amount of the down payment.

 

Does anyone here have experience making this work? There is a painful lack of documentation on this particular type of invoice. I tried reproducing the values that I read in an existing, hand-created down payment (processing type, price and tax settings, etc.) but it got me nowhere.

 

Thanks !


How to add “Item/ListUnitPrice/Amount” field in “Purchase Order” business object to “Purchase Order” print form?

$
0
0

Hi ,

 

How to add “Item/ListUnitPrice/Amount” field in “Purchase Order” business object to “Purchase Order” print form?

 

I am modifying “Purchase Order” print form, but I cannot show the “Gross Price” amount in “Purchase Order” item screen.

 

 

I found the “Gross Price” value from query of “Purchase Order” business object in “Item/ListUnitPrice/Amount” field that contain the value of “Gross Price”.

This picture is “Purchase Order” item query result.

 

 

 

This picture is “Item/ListUnitPrice/Amount” field in “Purchase Order” business object.

 

 

 

So I want to add “Item/ListUnitPrice/Amount” field in “Purchase Order” business object to “Purchase Order” print form.

 

This picture is “Purchase Order” print form data source.


 


Please suggest me if you have any idea.


Thank you very much.

Hiranya

How to fetch the parent of a dependent object?

$
0
0

Hello Cloud Application Studio developers,

 

we're currently implementing a custom address validation in C4C, version 1602.

 

Basically we're extending the business object PartnerAddress:

 

  • An address of an organization or a group, or the address of a person.

 

We will call a web service which will perform the desired validation. Now besides the address fields, further information is required: e.g. whether the address to check is a company or individual address.

 

But for the dependent object PartnerAddress, unfortunately the associations ToParent or ToRoot  don't exist in the PSM. So how can be determined, from which BO the dependent object was used? How to navigate backwards?

 

Is there any runtime call which could help?

 

Or would you suggest a different approach for address validation?

 

Thanks in advance for any hints and assistance.

 

Best regards,

Christian.

Except Extension fields rest all Read-Only on Standard BO

$
0
0

Hi All,

 

In our Business Scenario, Sales Orders will be replicated from ERP and read-only in C4C. But users need to maintain a flag in C4C by Sales Order Item.

 

Is it possible to allow users to change only extension field and rest all standard fields should be in Read-Only?

 

Thanks and regards,

Raju

SAP Cloud SDK : Create Export to Excel button on Advance List Pane in QA

$
0
0

Hi Experts,

 

I have requirement:

Scenario : I have created the Advance List Pane in QA screen and I want to add Export to Excel button for this Advance List Pane.

I have checked the OWL standard button "Export to Excel" but How to make Group ID for QA -> Advance List Pane" and what are the steps require to achieve it.

 

Regards,

Mithun

Delete Function in OWL dont seem to work.

$
0
0

Hi All,

 

Im trying to do Delete Function in my OWL that is Embedded to the EC. I've followed the YouTube tutorials and a few Discussion, as per below:

 

1. SAP Cloud Dev: Thing-Based UI - 3. Delete Icon - YouTube

2. https://scn.sap.com/thread/3466203

3. On OWL Delete Button is not working....

 

My steps is as Below:

 

Action File: Delete function

 

1. In the Action File, I entered “this.Delete()

     Delete Action.png

 

2. Create a DeleteRow Operation for Delete Function, Binding the DeleteInstances as shown

     Delete BO Action.png

3. DeleteHandler

     DeleteHandler.png

 

4. Delete Button’s Properties à Onclick assign the Delete Event Handler to it.

     DeleteButton Properties.png

 

 

This is how my EC looks like.

OWL.png

 

However, It dies not seem to work.

Requesting all kinds of help to delete a selected row in the OWL.

 

Thanks in advance.

 

Best Regards,

 

Richie

Viewing all 1101 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>