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

Adapt an Extension Field in OWL

$
0
0

Hi Developer,

I have a problem:

1.)      I add an extension field in the Material BO:

         

           node Common {

            [Label("Aufteilung")] element Aufteilung:DecimalValue;

           }

2.)      I enhanced the screen centralmaterialqaf.QA.xuicomponent and added the extension Field Aufteilung in the QA. This works perfect. I´m able to see the Field in my Front End and I´m also able to save the Amount in the field:

3.) Now i wana to add those field in the OWL: I opened the UI Designer and add the Extensionfield in the List. Now I opened the FrontEnd and there is no amount in the List:

 

 

Just an empty field!!! WHY?

Could anyone give me a hint or a sinpped?

 

Regards Manfred


C4C ERP data validation and initial data load

$
0
0

Hello,

 

We have a C4C system integrated with ERP over HCI. We have certain validations that we need to be in place for the Account data to be created correctly from C4C and sent to ERP.

 

However this script is in conflict with the initial data on the ERP system. ERP system has certain data fields which have become mandatory over time but then we need to move all the data from ERP to C4C without performing any validations.


Is there any field that tells me that this record is already created on ERP and hence I could guide my script to not perform any validations.

 

I was trying to use the following script but then it fails. I have this piece on the Validation_OnSave

 

var query_mapping;

            var sel_param_mapping;

            var result_mapping;

            var CustomerExternalId = "";

            query_mapping = ObjectIdentifierMapping.QueryByElements;

            sel_param_mapping = query_mapping.CreateSelectionParams();

            sel_param_mapping.Add(query_mapping.LocalObjectNodeReference.UUID.content, "I","EQ", this.UUID.content);

            result_mapping = query_mapping.Execute(sel_param_mapping);

            if (result_mapping.GetFirst().IsSet())

            {

                         CustomerExternalId = result_mapping.GetFirst().RemoteObjectID.content;

            }


I try to use the RemoteObjectId which I assume should already be set when the data is coming from the ERP to C4C


if(this.CurrentCommon.KNA1_KTOKD == "" || this.CurrentCommon.RF02D_BUKRS == "" || this.CurrentCommon.KNVV_VKORG == "" || this.CurrentCommon.KNVV_VTWEG == "" || this.CurrentCommon.KNVV_SPART == "")  && (CustomerExternalId == ""))

          {

                         if(userLanguage == "FI") { raise MsgERPData_FI.Create("E");}

                         else { raise MsgERPData.Create("E");}

                         //raise MsgERPData.Create("E");

                         return false;

            }


My expectation is that because the CustomerExternalId will have a value, the validation should not tirgger. This is unfortunately not happening


Can someone advise what am I doing wrong or a different approach


Thanks and Regards,

Vikram


Accessing Account Marketing Attributes data in the studio

$
0
0

Hello Experts,

 

There is a tab "Marketing Attributes" on the Accounts contains an embedded component. When I look at the embedded component it consists of a HTML Custom Components link. I want to access this data in the studio and copy it on a custom field on the customer extended BO.

Could you please help on how this could be achieved.

 

Thanks and Regards,

Sumeet Narang

How to personalize one Embedded Components on two screens

$
0
0

Hi Cloud Crowd,

 

I have an issue where I currently am stuck.

 

We have created an embedded component placed on two different SAP floorplans (Service Order and Service Request).

 

Now the customer wants to personalize the fields of the embedded component differently depending on the floorplan.

 

Now my question:

Can this be done and how?

 

So far I found that when one embedded component is changed by personalization, the embedded component on the other floorplan is adapted the same way.

 

From my understanding, this is not an unreasonable request and I am struggling to provide a solution (well, besides the obvious one I'd like to avoid: duplicating the embedded component).

 

Best regards,

 

Ludger Bünger

SAP Cloud SDK : Enable disable Textbox based on Radiobutton

$
0
0

Hi Experts,

 

We have developed the embed component as shown below.

 

RadiobuttonUntitled.png

 

Now we have requirement to enable / disable or Visible true /false Inputbox based on Radio button.

How i can achieve this.

 

Initially both inputbox disable by default.

My requirement is when user click on Radiobutton "InputBox 1" the Inputbox 1 enable for input.

and when click on radiobutton "Inputbox 2" Inputbox 2 enable for input and Inputbox 1 disable.

 

Anyone have idea how to achieve it.

 

Regards,

Mithun

SAP Jam Integration With SAP Cloud For Customer

$
0
0

Hi Experts,

 

Can anyone have idea about how we can integrate the SAP JAM with SAP Cloud For Customer .

 

Any document or any guide please share with me.

 

Appreciate your help.

 

Many Thanks,

Mithun

Filter OWL by Group Count

$
0
0

Hello everyone,

 

As you may know you can group records by a certain element in an OWL.

When you do this, it looks like this (in my example):

 

Skills_OWL[OrderByGroupCount].png

 

As you can see next to the group a count for the amount of records in that group is shown (circled in red).

 

I was wondering if it is in anyway possible to filter or order by this count?

 

For example:

 

Would it be possible to only show groups where the group count is greater than 1?

 

I've read this thread: Group by any field (SDK), but I'm not sure this is what I need...

 

Thanks & Regards,

Glenn

1502: OData for Custom BOs

$
0
0

Hi experts,

 

with 1502 we now have the possibility of using OData on Custom BOs.

 

Under "ADMINISTRATION", we can now find the "ODATA SERVICE EXPLORER" WC-View. (pre-req. you have added the WC-View to your user)

 

Via Show "Custom OData Services" we can now create custom OData Services. After the creation and activation of the service you can get the metadata info via the following link:

 

https://xxxx.crm.ondemand.com/sap/byd/odata/cust/v1/customBO/$metadata

 

Getting data works fine for me:

 

 

 

Problem with Update / Delete / Create:

I am now struggling with Update / Delete / Create. With the chrome plugin POSTMAN I am always receiving "CSRF-Tokenvalidation failed". Is someone aware, how I would need to set up the configuration to get Update / Delete / Create running or is this maybe not supported? I did not find much information in the Admin-Guide and SDK-Guide around that topic.

 

Example for DELETE failing:

https://xxxx.crm.ondemand.com/sap/byd/odata/cust/v1/customBO/customBORootCollection('UUID') - sent with http-"DELETE" leads to "CSRF-Tokenvalidation failed"

 

And a general question:

For which cases would you prefer using OData instead of SOAP-WebServices?

 

Thanks for your input

 

Best regards

Tom


DId you succeed in using the BO AccountingBlockDistributionSupplement?

$
0
0

Hello dear SAP friends,

 

One of our cusotmer need to extend the AccountingBlockAssignment in its Purchase Orders with new fields.

 

I did find in the repository explorer that a BO has been create by SAP in order to fulfill that:

AccountingCodingBlockDistributionSupplement in AP.IS.CodingBlock.Global namespace.

 

Documentation:

A technical container in which partners define their own extensions to the Accounting Coding Block Distribution.

 

This documentation cannot be clearer. However I just cannot make this work.

 

I did create the .xbo for CodingBlockSupplement as follows:

import AP.Common.GDT;
import AP.IS.CodingBlock.Global;
[Extension] businessobject AP.IS.CodingBlock.Global:AccountingCodingBlockDistributionSupplement {        // You must activate this business object before you can access the extension fields        // or messages in script files, forms, and screens.        element MyDate: Date;        element MyTest: LANGUAGEINDEPENDENT_EXTENDED_Text;       
}

I did activate it and the SDK tells Item Activation successful.

 

 

However, when I try to reach this fields from any code, I just never find them:

- In the Before-Save of the CodingBlockSupplement.xbo, no extension fields found, neither in the script files of my PurchaseOrder.xbo

My Extension fields in CodingBlockSupplement.jpg

 

It seems that SAP did not finish to integrate this supplement totally but I was wondering if one of you already made it work.

 

If somebody has any clue on this matter it would be very appreciated.

 

Best regards.

Thank you for your attention.

Jacques-Antoine

REST Service call in Studio

$
0
0

Hi,

 

I am trying to consume a web service call (from hybris) in a script file in Studio. I have created the communication arrangement, scenario and even tested the arrangement's connection ping and it was successful. My code as shown below:

 

var URLParameter : collectionof NameAndValue;

var headerParam : collectionof NameAndValue; //

var URLParameterEntry : NameAndValue;

//XX.XXX.XX.XXX:9001/ws410/rest/catalogs/powertoolsProductCatalog/catalogversions/Online/products/2116275

URLParameterEntry.Name = "products";

URLParameterEntry.Value = "2116275";

//URLParameter.Add(URLParameterEntry);

var httpResource = "powertoolsProductCatalog/catalogversions/Online/products/";

httpResource = httpResource + "2116275";

var httpMethod = "PUT";

var body = "<product code=\"2116275\"><catalogVersion version=\"Online\"><catalog id=\"powertoolsProductCatalog\"/></catalogVersion><name>Prashanth</name></product>";

var httpformat = "text/xml; charset=UTF-8";

var result =    WebServiceUtilities.ExecuteRESTService("CloudhybrisProdUpdate","CloudhybrisProdupdate",httpMethod,httpResource,URLParameter,headerParam,httpformat,body);

 

var position = result.Content;

var res = result.RequestURL;

var resp = result.HeaderParameters;

 

in this code, instead of PUT method, if I pass "GET", I am getting the response. However, for "PUT" the result variable is completely blank. Please can you help?

Issue with Embedded Component on Purchase Order Items

$
0
0

Hello all,

 

I am trying to put a new tab with a custom EC in the Items of my purchase order.

 

You can see I did not have any trouble to add it:

2015-03-19_18-18-19.jpg

 

When the first initialization is done, I do get the first ItemUUID in Inport to my custom UUID field.

 

However, if I click on another Item in the list, my Custom EC stays the same and is not reseted as it should be. The binding is on Items, not on the PO Header.

 

I do not understand why another instance of my custom BO (the one in the EC) is not created again when I select another Item. Which would be the awaited behavior.

 

If anybody has any clue on this it would be greatly appreciated.

 

Thank you very much for your attention.

Best regards.

Jacques-Antoine Ollier

Pass values from OVS

$
0
0

Hello all,

 

I have custom BO with these declarations

1.png

 

In the quick create I have link MaterialID to the ProductOVS

2.png

 

How can we get Product Description and UUID fill up automatically when the user chooses the material from the OVS?

 

I have link the ProductDescription and UUID as shown here.

3.png

Delete or remove a Solution - possible?

$
0
0

Hi,

 

We have a CSL deployed to a customer tenant that I believe is causing problems and errors.

 

How can I remove it?

 

I logged into their tenant in Cloud Applications Studio and deleted the solution which seemed to succeed but the errors are still there.

 

Is there any way in the tenant to see what bespoke solutions are active in it and delete them?

Embedded component on account TI : Short dump

$
0
0

Hi all,

 

I am getting runtime exception on opening my embedded component.

 

I have followed below steps.

 

Step 1 : Added Embedded component in my solution.

 

Step 2 : Opened its UI Designer and added Advanced list pane with Two static text column init.

 

Step 3 : Binded Two columns from adavanced list pane data on "BuildingList" structure. please check below screen.

1.jpg

 

Step 4 : Created a Structure in Data model : InportParameters , added two parameters. please check below screen.

2.jpg

Step 5 : Created an INPORT in controller of my EC , added two parameters in it and binded it with the above created parameters.

3.jpg

Step 6 : Did connection Between standard TI ( Where i wanted to put my EC , in my case Account TI )

. please check below screens.

4.jpg

5.jpg

as you can see in above screen , I have binded my Parameters of my Inport to Outpurt of PublicOutportECCCustomerroot's parameter.

 

Step 7 : Finring Event and Handling the same in custom event handler, InportEvent which i have created ( Check step 8 & 9 ).

6.jpg

Step 8 : Event handler for Inport.

7.jpg

Step 9 : adding another operation for firing another event handler , QueryHandler.

8.jpg

Step 10 : Added a Query : QuerybyIdentification , binded its parameter to a custom structure in datamodel ,Query parameter.    

 

Step 11 : Given resultlist in Query which i created in step 3.

 

Hence i suppose all things are connected .

Standard TI to my EC via inport which triggers query and give data in result list.

But due to very "POOR" error management in cloud application studio i am not able to figure out where i have made a mistake, any pointer would very helpful.

 

For Error screen shot :

 

9.JPG

Adding new value to the dropdown list of standard business object

$
0
0

Hi All

 

I am trying to add new value in the drop down list of standard business object. As of my knowledge, any changes to the standard bo can be done using extensibility explorer only. If it is so, how to add new value to the dropdown of status or any standard field.

 

Is this possible using cloud application studio? Kindly provide me with your inputs.

 

Regards

Swadini Sujanaranjan


Using QueryByTypeCodeAndPropertyIDAndPropertyValue in SalesPriceList BO

$
0
0

Hello All,

 

I have a requirement to fetch the Customer Group Specific Price List from the SalesPriceLsit BO but there is no query in the BO which gives you all data.

I am using QueryByTypeCodeAndPropertyIDAndPropertyValue query which needs to be written in a proper way which I got to know from Query Service documentation.

Even after structuring the query as required I am not able to get data. Whenever the query is executed I get an error saying "(PRC_SALES_PRICE_LIST, ROOT) A technical error (Mandatory initialization missing) occurred: PRC_ESF_CND_MAINT 502. Report an incident."

 

Following is the code that I have written:

 

QuerySalesPriceList1.pngQuerySalesPriceList2.png

By any chance if anyone have worked on it and can help me?

 

Thanks & Regards,

Meghna

Support for mathematical functions such as sin, cos etc.

$
0
0

Hi all,

 

I was just wondering if pdi is supporting mathematical functions such as sin, cos etc. .

I could neither find any information on that in the administration guide nor in the reuse libraries.

So in case anyone of you have some top secret inside information, I would really appreciate if you let me know.

 

Best regards,

Jan-Thomas

SAP Cloud SDK : Default Check in Marketing Lead for Field "Use Existing Account"

$
0
0

Hi Experts,

 

I have requirement to enhance the standard business object Marketing Lead screen. In that screen i need to make default check on "Use Existing Account" checkbox when user click on New Marketing Lead or QC option.

 

I have tried using Application studio but the field "Use Existing Account" not exist in cloud repository its on Front-end UI screen.

How i can make default value check to this checkbox in UI designer for standard screen

Or

How i can make default value check to this checkbox using ABSL code.

 

Please refer the screen as shown below.

MLeadCapture.JPG

 

Regards,

Mithun

Data is not populated in Advanced List based on ABSL query

$
0
0

Hi,

 

I have one requirement that i have to create two advanced list pane in one Tab as shown package and opportunities:

 

Untitled.png

I have to perform some calculation on opportunities and populate the result in the package Advanced list pane.

Can you please suggest something why the data is not coming although data is flowing. i have checked using debugger data is coming but visible.

 

Can you please suggest whether i have to create any event handler for the same?

 

Thanks,

Malkit Singh

Insert an existing Item in the Overview of an BO Extension

$
0
0

Hi Guys,

My Problem: I wanna to insert existing Fields in the Overview but how:

I have this Opportunity with the external Parties:

 

inv2.PNG

 

I wanna to add those Party Role, Name and Adress in the Overview of the Opportunities:

invol.PNG

Has anyone an Idea or a Solution for this Probelm?

Regards Manfred

Viewing all 1333 articles
Browse latest View live


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