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

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


SOAP service response need to be modified and should update a value in the ByD system

$
0
0

Hi All,

 

I have a requirement, when the provided custom service is read on the other end of the non-SAP system I need to get the response back saying that XYZ user has read the record 123 from ByD system and this 123 record in the system has a indicator value which should set to true to identify what all the records are read from the ByD to other system.

 

Right now we planned to do this through a Update service provided on this BO to them so that they can update the value back in the system for the specific Indicator.

 

Now client is denying to do a second time WS execution for updating this info and he is looking for to have this info updated back in the ByD system as soon as he read the record details from the ByD.

 

How I can achieve this and what the WS configuration I have to do for getting this done.

 

 

Regards

Hanu K

SAP Cloud SDK : Create Entry from ABSL (Root and Node Level) in Custom BO

$
0
0

Hi Experts,

 

Scenario: I want to create the data from ABSL code with root as well as node level data.

I have created the Custom BO with the below elements:

 

businessobject CustomAllActivity {

 

[Label("ID")] [AlternativeKey] element ID : ID;

[Label("Description")] [AlternativeKey] element Desc : LANGUAGEINDEPENDENT_Text;

[Label("Start Date")] element StartDate : Date;

[Label("End Date")] element EndDate : Date;

 

Node allActivity [0,n]  {

          element ActivityID : BusinessTransactionDocumentID;                              // Activity ID from Standard BO

          element ActivityName : EXTENDED_Name;                                              // Activity Name / Desccription  from Standard BO

          element ActivityType :  LANGUAGEINDEPENDENT_Text;                    // Activity Type(PhoneCall, Task, Email etc...) from Standard BO

          [DependentObject(TextCollection)] [MultipleTexts] node MyNote;             // Activity Notes from Standard BO

     }

}

 

I want to get all the Activity ( Phone Call , Task , Appointment , Email ) and Store into the Custom BO node entry based on the Date..

I have created the Object-based screen for this business object.

I want when user click on New from OWL under the QA screen user can able to enter the "Description , StartData and EndDate" and save the entry based on start date and end date i need to fire a query on date of creation in activity and based on that store data under the custom entry in node allActivity 

 

Readandupdate.png

Please refer the above screen for more details.

 

at last i want the code to save the root level as well as node level data in same time on custom action or standard event(AfterModify , OnSave etc....)

 

Kindly help me to solve this issue.

 

Many Thanks,

Mithun

Calling popup in scripts

$
0
0

Dear experts,

 

I have a requirement to display a pop up when a user click on "Set as won" standard button in standard customer quote. Since I can just link a button to an action and not to an event handler, I wonder if it is possible to call a popup directly in scripts?

 

Thanks in advance for your help.

 

Best regards.

Maurin

Clear cache data problem

$
0
0

Hi All..

 

I'm developing an Add-On to save SalesOrder items.

The process of creating data to Add-on is done in the SalesOrder Items Before-Save event.

But, if there has errors in SalesOrder on-save event, after the correction and re-save again that SO, same data are created repeatedly in the Add-On.

We can't check by Add-On Query Execute method for created data because these instances have not been created yet.

It is caused because created instances are remained in Add-On memory although on-save event is failed.

If the on-save event is failed, I think these instances in memory should be cleared.

Is there any advice how to solve this.

 

P.S : I can't declare alternative key in Add-on for some reason.

 

Best regards, May.

Where to download Cloud Application Studio

$
0
0

Hi Exports,

I try to download cloud application studio in Market Place, but nothing has been found. Always I got 'No search results have been found'.

Could anybody tell me where to download that application? Many thanks.

error Custom BO - text field / LANGUAGEINDEPENDENT_EXTENDED_Text

$
0
0

Hi,

 

I got a problem by compiling my custom BO - because i use the TEXT element (for TextEdit) - but should use the

LANGUAGEINDEPENDENT_EXTENDED_Text - only 255 CHAR. It looks the Text - is now deprecated !!

 

Is this normal behaviour ? It looks i can not add any new fields to my custom BO.

 

Only with // i can compile - the old fields - but any new fields are not possible ? to add which is very annoying.

 

 

Regards,

Jeroen

Data type allowed in BO but not in XBO

$
0
0

Dear experts,

 

It's kind of strange but I use a data type in a BO (AP.Common.GDT:Percent) that I can not use in an XBO whereas I use same import and autocompletion. Do you know if there is some restrictions in use of data type in XBO?

 

Capture.PNG

 

Thanks in advance.

 

Best regards.

Maurin


How to generate alphanumeric /unique ids

$
0
0

Hello,

 

I wanted to create a set of alphanumeric codes for a given length .

I do not find any custom function to generate .We don't need numbers which are in consecutive series it will be easy to imagine the next code after that which we want to restrict . So an alphanumeric may help.

Below are the input parameters

CouponCount  : Total coupons to generate

CouponLength: Length of the coupon.

 

How can I achieve this?

 

 

Thanks,

Resmi

Decimalvalue - Zero value

$
0
0

Hi All,

 

Could it be that a extension field typed DecimalValue dont allow the "Zero" (0) value?

 

DecimalValue.png

 

I defined an extension field type as DecimalValue. however when an user enters the value "0" or by coding the value "0" is assigned, on the UI the field is displayed as empty.

 

Empty.png

 

thanks in advance for any tip/suggestion/solution.

 

kind regards,

 

Andres

CodeList issue - Read Description

$
0
0

Hi all,

 

I'm facing a really extrange situation and I was wondering whether someone could explain to me the reason.

 

I implemented certain coding that it's responsible for reading the value of a material/product extension field and assign this value to an opportunity item when the material/product is selected. On the material level, this extension field was defined on the front-end as an code list. I access this field on the SDK by means of "References to Customer-Specifics fields" object.

 

Now my coding/solution works perfectly on the Development tenant BUT when I deploy the solution on the Test/Configuration tenant, my solution only worked for about 30 minutes .  Happily for me, I took an screenshot for my documentation after the deployment, so i have a proof it worked during certain time after the deployment.

 

Please refer to my screenshot/proof below. When I selected/added a product to the opportunity, the "Brand" and "Product Segment" information was correctly copied from the material/product into the opportunity product/item.

 

Product material issue.png

 

Now this copy functionality it's not working anymore.

 

By debugging my solution on the configuration tenant, I found out that the system fails to get/find the description of the CodeList value/key.

 

Please refer to the following screenshot:

  • The system retrieves the material/product information by means of query. As you can see, the product material have value "KOM" assigned to field "Brand" (See common node assigned to variable "MaterialCommon").
  • I request the system to get the description of the assigned value (code line 52). This result on an empty result.

 

Debug - List - Issue.png

 

Now if we check the field definition (see previous screenshot), we can confirm that there is an entry for key value "KOM".

FYI: I'm logged on the same language as the values were defined for the codelist.

 

 

could anyone explain why is this happening and how to solve my problem.

 

kind regards,

 

Andres

How to modify Copy function?

$
0
0

Hi Experts

 

I am new to SAP C4C.

I have a requirement to modify the standard copy functionality present in the standard products table, present in the TI screen of the sales quote.

I need to copy only the product id for the product which is selected.

Untitled.jpg

for this I have added a custom "Copy ID" button. But I am not able to fetch the instance of the product selected.

 

Request you to help me with this or achieve this functionality with any other way.

Please let me know if the requirement is not clear.

Calculate Difference of two fields in tickets

$
0
0

Hi Friends,

 

Someone plz. help me to explain me the process to calculate difference between two fields(Created on and Completion date) in tickets and show the difference in a new field in ticket view itself. Is it possible to do this?

 

 

 

Regards,

Saurabh

 

Attached screenshot

 

ab.PNG

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

Retreiving extension field from standard QueryAccounts service

$
0
0

Hi guys,

 

We have created couple of extension fields in standard customer.xbo. Using QueryAccounts although we could able to retrieve all standard fields for external systems. But none of the extension fields are being retrieved over service.

 

We have in place the process extension scenarios and checked all "QueryAccounts-General Information" option. Still none of the extension fields are not able to retrieve over QueryAccounts Service.

 

 

Thanks

Shridhar


Link Employee to OrganisationalUnit via code

$
0
0

Hello C4C heroes,

 

I'm receiving some Employees via WebService, as part of a employee integration. PI sends me requests like this one:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

  <soapenv:Header/>

  <soapenv:Body>

      <glob:EmployeeWSCreateRequest_sync>

         <BasicMessageHeader/>

            <EmployeeWS>

               <WS_EmployeeID>996000</WS_EmployeeID>

               <WS_RegionalCodigo>505</WS_RegionalCodigo>

               <WS_LojaCodigo>996</WS_LojaCodigo>

            </EmployeeWS>

      </glob:EmployeeWSCreateRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>


There are some other fields that were ommited for brevity. So I have this WS_LojaCodigo, that is the code of a specific store. Based on that, I need to retrieve the OrganisationalUnit with the same code and link the Employee to this Unit.


I'm attempting to do this on the Employee's Event-BeforeSave.absl.


How can I achieve this on the Employee's BeforeSave event? Or is it possible at all?


Thanks in advance!


Best Regards,

Fernando Alves

CodeList issue - Read Description

$
0
0

Hi all,

 

I'm facing a really extrange situation and I was wondering whether someone could explain to me the reason.

 

I implemented certain coding that it's responsible for reading the value of a material/product extension field and assign this value to an opportunity item when the material/product is selected. On the material level, this extension field was defined on the front-end as an code list. I access this field on the SDK by means of "References to Customer-Specifics fields" object.

 

Now my coding/solution works perfectly on the Development tenant BUT when I deploy the solution on the Test/Configuration tenant, my solution only worked for about 30 minutes .  Happily for me, I took an screenshot for my documentation after the deployment, so i have a proof it worked during certain time after the deployment.

 

Please refer to my screenshot/proof below. When I selected/added a product to the opportunity, the "Brand" and "Product Segment" information was correctly copied from the material/product into the opportunity product/item.

 

Product material issue.png

 

Now this copy functionality it's not working anymore.

 

By debugging my solution on the configuration tenant, I found out that the system fails to get/find the description of the CodeList value/key.

 

Please refer to the following screenshot:

  • The system retrieves the material/product information by means of query. As you can see, the product material have value "KOM" assigned to field "Brand" (See common node assigned to variable "MaterialCommon").
  • I request the system to get the description of the assigned value (code line 52). This result on an empty result.

 

Debug - List - Issue.png

 

Now if we check the field definition (see previous screenshot), we can confirm that there is an entry for key value "KOM".

FYI: I'm logged on the same language as the values were defined for the codelist.

 

 

could anyone explain why is this happening and how to solve my problem.

 

kind regards,

 

Andres

Activation failed while tagging /SAP_BYD_APPLICATION/Reuse.MD.uicomponent for Tablet Device

$
0
0

Hello Experts,

 

We have requirement to create Account Summary PDF for Standard Account.

We have successfully created the Account Summary PDF and assigned it to the Embedded Component.

This Embedded Component we have included in the Standard Account Screen.

But the problem is, in the Embedded Component for the Account Summary PDF,  when we do Tagging for Desktop it is working fine.

But when we do Tagging for Tablet Device and activate the Embedded Component it is giving the error as shown in the image below.

 

Capture.JPG

Kindly help asap.

 

Thanks in advance,

Komal

How to modify Copy function?

$
0
0

Hi Experts

 

I am new to SAP C4C.

I have a requirement to modify the standard copy functionality present in the standard products table, present in the TI screen of the sales quote.

I need to copy only the product id for the product which is selected.

Untitled.jpg

for this I have added a custom "Copy ID" button. But I am not able to fetch the instance of the product selected.

 

Request you to help me with this or achieve this functionality with any other way.

Please let me know if the requirement is not clear.

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 !

Viewing all 1333 articles
Browse latest View live


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