Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all 1333 articles
Browse latest View live

Currency Conversion

$
0
0

I am trying to do a currency conversion and get this error :

 

var convertedAllowedAmount = allowedAmount.ConvertCurrency(tempNodeResults.GetFirst().totalExpenseinOneCurrency.currencyCode);

 

parameter type currencyCode(Basis.global) is not valid.

 

In the above statement both allowedAmount and totalExpenseinOneCurrency are of type Amount.

Not sure what is the issue.

 

Regards,

Kapil Pokharna


SAP Cloud SDK : Custom Query not working

$
0
0

Hi Experts,

 

I have created custom business object and create custom query using custom business object.

In the custom business object i have some record but when i execute query from right-click and "Execute Query" and fill the value and click on "OK" i am getting below results or error.

 

Query1.JPG

 

In my custom business object i have below records.

 

Query2.JPG

 

 

Regards,

Mithun

Service Integration Only Working Once

$
0
0

Hello everyone,

 

I have a solution and created an XML file input service integration, which works --- once. Thereafter, running the same run with the same file again completes without processing the file, and in debugger the AfterModify script of the custom BO it's writing to isn't called at all. Same case if I try a different run for the same service integration, create a new service integration, or try a new file. If I create a new solution and recreate the system it then works, again only once. Anyone able to tell me what the hell is going on?

 

Lewis

Using soapUI on SAP outbound WSDLs give error "Found nothing to import in..."

$
0
0

When I export a SAP standard WSDL for an outbound webservice,  I get an error when I try to open it in soapUI.

 

An outbound webservice could be something like the 3PL Outbound Delivery Request webservice, which BYD calls the external system to send an order to start shipping.  Since it's an external API (that is, not in SAP BYD), there is probably not an endpoint in the WSDL.

 

When I create a project around this WSDL, soapUI complains "Found nothing to import in file ....<WSDL name>".

 

Has anyone figured out how to fix this ?  I assume probably something in the WSDL needs to be added or edited.

 

Appreciate your tips.  Thanks ahead !

Changing the data type of a default field

$
0
0

Hi Experts,

 

Say suppose when creating an Account, we have Communication details to be entered in the screen.

For eg: In Mobile Number field the system is accepting the Alphanumeric value.


But my requirement is to restrict with numeric value only because the customer gives only the numeric value for the mobile number.


Is there any way possible to change the data type?


Thanks in advance. 

Count total revenue of Customer

$
0
0

Dear all,

 

I want to count customer total revenue and Categories and also want to show on Account TI Screen.

For this -->

I have created one solution (Revenue Calculation ) under this solution I have created  two business objects

  1. Customer categories.
  2. Customer Revenue.

1 .Under Customer Categories I have created some element and define some revenue range and categories based on Revenue range.

My elements are-->

      

            [Label("Revenue From")] element fromRevenue:Amount;

        [Label("To Revenue")] element ToRevenue:Amount;

        [Label("Revenue From")]   element fromRevenue1:Amount;

        [Label("To Revenue")]   element ToRevenue1:Amount;

        [Label("Revenue From")]   element fromRevenue2:Amount;

        [Label("To Revenue")]   element ToRevenue2:Amount;

       

       

        [Label("Customer Categories")]   element customercategories:LANGUAGEINDEPENDENT_LONG_Description;

        [Label("Customer Categories")]   element customercategories1:LANGUAGEINDEPENDENT_LONG_Description;

        [Label("Customer Categories")]   element customercategories2:LANGUAGEINDEPENDENT_LONG_Description;

       

       

 

      

 

 

 

(Revenue from)      (To Revenue)           (Customer category)

   0                                10000                                  A

   10001                         20000                                  B

   20001                         30000                                  C

 

2.Under Customer revenue

 

I have created some element –

                              element totalRevenueResult:Amount;

                 element CustomerCTg:LANGUAGEINDEPENDENT_LONG_Description;

          

              association mycustomerinfo to CustomerRevenue;

              association myCustomer to Customer;

 

Now I want to count the customer total revenue based on all opportunity – Product – Negotiated Price -->

For this I have write the code –After modify event -

 

importABSL;

importAP.FO.BusinessPartner.Global;

importAP.CRM.Global;

varquery;

varsalparams;

varresult;

 

  query = Opportunity.QueryByElements;

  salparams = query.CreateSelectionParams();

 

  salparams.Add(query.PartyPartyKey.PartyID.content, "I","EQ",Customer.Retrieve(this.myCustomer.UUID).InternalID);

 

 

  result = query.Execute(salparams);

 

 

 

  vartemprevenuesum = 0;

 

                         

foreach( varOpportunity_Instanceinresult)

                          {

 

if(Opportunity_Instance.SalesForecast.ProbabilityPercent == 100 ){

temprevenuesum = temprevenuesum + Opportunity_Instance.SalesForecast.TotalExpectedNetAmount.content;

}

                                                                       }

 

// I have stored it in one field.

                                   this.totalRevenueResult.content = temprevenuesum;

                                   this.totalRevenueResult.currencyCode = ("INR");

 

Now I want to compare my customer  total revenue with my 1st  Business object (Customer categories) ->

For this I have write my code in same- After modify event->



if( this.totalRevenueResult.content>= this.mycustomerinfo.fromRevenue.content&& this.totalRevenueResult.content<= this.mycustomerinfo.ToRevenue.content)

{

  1. this.CustomerCTg = this.mycustomerinfo.customercategories;

}

 

elseif ( this.totalRevenueResult.content>= this.mycustomerinfo.fromRevenue1.content&& this.totalRevenueResult.content<= this.mycustomerinfo.ToRevenue1.content)

{

  1. this.CustomerCTg = this.mycustomerinfo.customercategories1;

}

 

elseif ( this.totalRevenueResult.content>= this.mycustomerinfo.fromRevenue2.content&& this.totalRevenueResult.content<= this.mycustomerinfo.ToRevenue2.content)

{

  1. this.CustomerCTg = this.mycustomerinfo.customercategories2;

}

 

elseif ( this.totalRevenueResult.content>= this.mycustomerinfo.fromRevenue3.content&& this.totalRevenueResult.content<= this.mycustomerinfo.ToRevenue3.content)

{

  1. this.CustomerCTg = this.mycustomerinfo.customercategories3;

}

 

elseif ( this.totalRevenueResult.content>= this.mycustomerinfo.fromRevenue4.content&& this.totalRevenueResult.content<= this.mycustomerinfo.ToRevenue4.content)

{

  1. this.CustomerCTg = this.mycustomerinfo.customercategories4;

}

 

elseif( this.totalRevenueResult.content>= this.mycustomerinfo.fromRevenue5.content&& this.totalRevenueResult.content<= this.mycustomerinfo.ToRevenue5.content)

{

  1. this.CustomerCTg = this.mycustomerinfo.customercategories5;

}

else {

 

raiseCustomerMSG.Create("I");

 

}

 

After this I have created one EC and take the element –

  1. Customer total Revenue
  2. Customer Categories

And bind with Account TI Screen.

But the values are not reflecting on Account Screen.

Please  help me .

 

Thanks,

Manoj Kannaujiya.

How enhance BO to provide form in oppotunity for C4C

$
0
0

Hi everyone,

I am little bit new in C4C Enhancement. So sorry for my question.

 

I would like to enhance the Opprtunity BO to provide a new form.

 

But I don't see any enhancement of form when I want to add new Item->Extension

 

I knwo that in standard these no such forms so it is the reason why I want to add this kind of extension

 

Regards

Remove things with the Extensibilty Explorer

$
0
0

Hello,

 

Is it in any way possible to remove things like Embedded Components, tabs, etc... from a screen of a standard Business Object using the Extensibility Explorer in Cloud Application Studio?

 

I know you can set the 'visibility' to 'false', but I'm just curious if there is a way to completely remove it.

 

Thanks!


How to create a custom table

$
0
0

Hi,

 

 

Can you please tell me how to create a custom Table to maintain the data and that can be modified by the user itself from UI screen itself.


Suppose i have requirement of maintain two field in table for multiple entries as shown:


 

Sales UnitEmployee ID
1001E111
1000E112
1010E113



Can you please suggest how to proceed with this requirement.


Thanks,

Malkit Singh


How to prevent change mode when using Embedded Components in BO?

$
0
0

Hi Experts,

 

We have added our Embedded Component to the Account TI. The moment our EC is shown on the screen, the screen will go into change mode.

 

In this scenario it is really annoying since we are only using our EC to display data.

 

Do you have a solution for this?

 

Thanks for your help!

 

Regards,

Roelof

OVS Adds '000' to Contact ID

$
0
0

Hello,

 

I've encountered a rather strange issue...

I'm using the public OVS "COD_Contact_SOVS.OVS" to select a Contact ID in the QC-screen of my Custom B.O.

For some reason this OVS adds 3 zero's to the beginning of the Contact ID, as you can see in the screenshot below.

 

QC_SkillsInterests_OVS[OVS ID ISSUE].png

This causes an Embedded Component on the Contact TI screen not to work.

I'm 100% sure this is the cause, because I uploaded some instances of my custom B.O. with XML, manually inputting the Contact ID.

For these records the Embedded Component on the Contact TI works perfectly.

(The Embedded Component is an OWL and I use a Query By Elements -> Contact ID to get the "SkillsInterests" linked to the contact.)

 

Anyone else encountered this issue? Any workarounds or solutions?

 

Thanks!

SAP Cloud SDK : How to Add Multiple Product ID in OVS fields

$
0
0

Hi Experts,

 

I have small requirement from SDK.

Current Scenario:

If i have using Product ID in element in custom business object.

also i have create object based screen and change the Field Type equal to OVS for that fields and assign the Product ID OVS path.

I am getting the OVS when we select the value option.

 

Current screen :

Displaying image.png

 

But in the above case i can only select single Product ID from the list.

 

Requirement:

 

How i can make product id fields as select multiple product id or enter multiple product id in the product field?

 

Regards,

Mithun

Using a SOAP Web Service [PHP]

$
0
0

Hello,

 

I created a web service in the Cloud Application Studio for a custom Business Object I made.

I now want to create a new instance of this B.O. by using an HTML Form and PHP.

 

I tested the web service using SOAPUI and successfully created a new instance of the object.

 

However, when trying to do this through a HTML Form using PHP, I get following error message:

 

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://my307371.crm.ondemand.com/sap/bc/srt/scs/sap/yygyhi4a8y_webtoleadservice?sap-vhost=my307371.crm.ondemand.com' : failed to load external entity "https://my307371.crm.ondemand.com/sap/bc/srt/scs/sap/yygyhi4a8y_webtoleadservice?sap-vhost=my307371.crm.ondemand.com" in C:\xampp\htdocs\WebToLead\sendToC4C.php:58 Stack trace: #0 C:\xampp\htdocs\WebToLead\sendToC4C.php(58): SoapClient->SoapClient('https://my30737...', Array) #1 {main} thrown in C:\xampp\htdocs\WebToLead\sendToC4C.php on line 58

 

I'm currently trying to use following PHP-code:

 

//Setup SOAP Client      $url = "https://my307371.crm.ondemand.com/sap/bc/srt/scs/sap/yygyhi4a8y_webtoleadservice?sap-vhost=my307371.crm.ondemand.com";   $client = new SoapClient($url);      //Create Header      $auth = new Authentication($username, $password);   $header = new SoapHeader("http://0003427388-one-off.sap.com/YGYHI4A8Y_", "Authentication", $auth, false);      //Call Funtion   $result = $client->__soapCall("Create", array(         "WebToLead" => array(              "LeadID" => $ID_in,               "ProductName" => $PRODUCTNAME_in,               "ContactName" => $CONTACTNAME_in,               "ContactEmail" => $CONTACTEMAIL_in,               "CreationDate" => $CREATIONDATE_in         )   ), NULL, $header);      //Result   echo "<pre>".print_r($result, TRUE)."</pre>";   if ($result->Create->Status == "Success") {          echo "Lead created.";          }

I think I might be using a wrong URL for the web service.

Does anybody know where u can find the correct URL for your created web service?

 

Thanks!

Limited Number of visible rows in Analytical Reports

$
0
0

Hi,  experts.

      What is the maximum number of visible rows that an analytical report can hold on a single screen?

      Where can I find that kind of setting?

      Can I configure it?

 

 

Regards,

Fred.

[Activate] Business object cannot be activated. Please refer to the documentation.

$
0
0

Anyone seen this error when trying to activate a BO...



[Activate] Business object cannot be activated. Please refer to the documentation.


SAP Cloud SDK : Bi-directional Custom Web-service Integration with PI

$
0
0

Hi Experts,

 

I need to check my scenario is possible or not.

 

Scenario :

I have ECC system integrated with C4C system via PI. In that ECC thay have custom web service and we need to consume in custom solution using External web service integration but Via PI not direct web service call. The above scenario we need to implement for bi-directional not unit-directional.

 

Inline image 1

 

In Step 1. if the External web service consume in cloud system and when we trigger action on C4C the request send to the ECC system Via PI after the using Step 2 the requested data from Step 1 execute the ECC web service with requested data and collect result in response data in Step 3 now the response coming back to C4C via PI and in step 4 the resultant data display on Cloud screen. 

 

Question

1) Is it possible custom bi-directional data using Web service integration via PI?

2) What is the steps we need to perform in ECC system?

3) What is the step we need to perform in C4C system?

4) What is the steps we need to perform in PI system?

 

Regards,

Mithun

Tracing cannot be prolonged as trace is not active anymore

$
0
0

I would like to trace afterModify event in extended BO. When I click on  "Start Tracing" Button on Cloud Application Studio Trace Explore view. I get "Tracing cannot be prolonged as trace is not active anymore" error.

 

Do I have to any additional setting for enabling the trace ?

 

 

Thanks & Regards,

Shrikant Kamble

Access Elements of Custom Business Object in XBO.

$
0
0

Dear All,

 

I have Created one Solution through  Cloud application Studio. In this solution i have created one Custom Business Object and One X business Object (Account). I have define some elements on my Custom Business Object . Now i want to access the elements of My custom Business object in (Account) XBO.

 

Is it possible to access the elements of any custom BO in XBO ?

if yes then Please help me

 

 

 

Thanks

Manoj Kannaujiya.

Extend standard web service for custom BO

$
0
0

Hello Experts,

 

I have a requirement where I have created a custom BO with some custom fields and added its embedded component as a new tab on the Lead TI.

Now we want to integrate these custom fields to the standard lead web service to replicate these custom fields into the backend CRM system.

I tried for Process Extension Scenario but it only works for the fields added to the extended bo. Could you please suggest on how this could be achieved.

 

Thanks and Regards,

Sumeet Narang

Event-BeforeSave and Validation-OnSave

$
0
0

Hello all,

 

Event-BeforeSave is executed before Validation-OnSave is executed

 

In Validation-OnSave - I have made a check to throw an error.

 

After throwing an error, the user fills up the mandatory field and click on save again.

However this time Event-BeforeSave is not executed anymore.

 

Is this the correct behavior in the system?

Viewing all 1333 articles
Browse latest View live


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