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

Send HTML email from C4C?

$
0
0

Hello Experts,

 

We are trying to email from the Event-BeforeSave of our BusinessPartner extension object. Emailing seems to work just fine (plain text or PDF attachment), until the moment we add HTML content.

 

This is the code that we currently are using:

 

// create email activity  elEmailRoot.Name.content = "Test HTML";   instEmail = EmailActivity.Create(elEmailRoot);   // add receiver  elEmailParty.PartyKey.PartyID.content = "<myemail>";  instEmail.MessageToParty.Create(elEmailParty);   //Create att folder  instEmailAttFld = instEmail.AttachmentFolder.Create();  //Add attachment (html body)  docName = "body.html";  doctype.content = "10001";  binaryObject.mimeCode = "text/html";  //binaryObject.content = Binary.ParseFromString( resultData.GetFirst().EmailTemplate );  binaryObject.content = Binary.ParseFromString("<html><head></head><body><div>test</div></body></html>");  instEmailAttFld.CreateFile(doctype, docName, docAltName, docDesc, binaryObject);  // send email  instEmail.Send();

 

Is there an error within my code or is it possible that the system is blocking HTML email? Thanks for your help!


Modifying Standard OWL

$
0
0

Dear Experts,

 

For a standard OWL like Opportunity OWL , is there a way to

 

1. Add default values to some search parameters like Category etc to MyActivities (Query Result) ?

 

2. Can we add new Query results  (like MyOpportunities can I add my custom QueryResult).

 

I could not find any option in extensibility explorer. Please let me know if there are any workarounds

 

Thanks & Regards

Raj

How to determine the solution's ID in absl?

$
0
0

Hello Community,

 

I have a simple question yet I fear there is no simple answer (possibly no answer at all).

 

The question is:

 

Does any body know ways how to determine the ID (e.g. Y123ABCDY_) of the solution the code is running in?

 

My use case is the following:

 

We have a solution template which will be deployed in different customer tenant.

 

Thus, each deployment will have a different solution ID.

 

Now, somewhere in code, we generat PDFs using the OutputManagementUtilities.GetPDF reuse library.

This method requires the form template code of the pdf to be generated as a parameter.

 

However, this PDF form template code is composed of the solution ID and a fixed suffix.

 

Thus, currently I need to modify the absl code in each customer installation to manually modify the form template code prefix to the solutions solution ID.

 

Therefore I'd like to construct the form template code in absl but for this I need a way to determine the solution's ID.

 

 

Any ideas?

 

 

Best regards,

 

Ludger

How to display action buttons on iPad app?

$
0
0

Hi all,

 

I'm trying to display "action buttons" in my custom BO's TI in advanced list panes. For each of these table I created LayoutStackPanel where inside I have icon with defined event handler. In web UI version everything works fine. "Action button" appears and event handler is triggered on click.

 

When I open same TI on iPad, first of all Table is displayed as grid, not table, but I assume that is how iPad player generates that. But my created icon is not visible in specific row (I haven't allowed hover option as I thought iPad can't handle hover event), and even switching TI into edit mode it's not appearing and event handler isn't triggered.

 

I wonder if there is around some detailed guide, best practice doc which covers how we can design our screens for iPads.

 

Thanks,

Uldis

PROBLEM WITH WEBI(2 scenarios)

$
0
0

I have two scenarios to be answered:

 

1)i have taken some of the objects in the webi with no restrictions and i tried to generate a report based on the objects.when i ran the query it is showing as "no data to fetch"?but connections are fine,joins are fine,cardinalities are fine but i am not sure where the problem is?

 

2)i have two dimensions employees and their gender

 

      employee         gender

             A                   M

             B                   F

             C                   M

 

OUTPUT SHOULD BE LIKE THIS:

 

      employee            gender

            A                   F

            B                   M

            C                   F

Thanks in advance.

SAP Cloud SDK : Embed Component With XML File Input

$
0
0

Hi Experts,

 

I have 1 requirement.

 

Scenario :  I have Custom Business object without any screen

 

businessobject customBO (

 

          [AlternativeKey] element AccountID : BusinessPartnerInternalID;

          element Field1 : ID;

          element Field2 : LANGUAGEINDEPENDENT_MEDIUM_Text;

          element Field3 : LANGUAGEINDEPENDENT_MEDIUM_Text;

 

          node (0,n)     {

                    element ProductID : ProductID;

                    element ProductName : LANGUAGEINDEPENDENT_MEDIUM_Text;

                    element Price: Amount;

          }

)

 

Create the embed component and under that make Table format as shown below

 

the Below Screen is Only Read-Only no access create record. 

 

Field1Field2Field3
Data1.1Data 1.2Data 1.3
Data 2.1Data 2.2Data 2.3
Data 3.1Data 3.2Data 3.3

 

I want to add this component under the Account_TI screen with New Tab.

 

Req#.

1) How to Add the above embed component(With Advance List Panel) on Account_TI screen attached to respective account?

2) How to Create the XML file input for the Same Custom Business object and once the XML file input upload the Data using XML file input data should be display in the Newly created tab with tabular form?

 

3) Under the Embed Component I want Hyperlink to Field1

 

Field1Field2Field3
Data1.1Data 1.2Data 1.3
Data 2.1Data 2.2Data 2.3
Data 3.1Data 3.2Data 3.3

 

Once the User click on Data1.1 the pop-up comes with respective value the below details

 

The below screen only read-only no access to edit.

 

Pop-Up

 

Root Level Details

 

AccountID : 123

Field1     :  Data 1.1

Field2     :  Data 1.2

Field3     :  Data 1.3

 

Node Level Details :

 

Product IDProduct NamePrice
Product1 Laptop1000 USD
Product2 LCD2000 USD

 

 

4) How to make the XML file input for the same above requirement ?

 

I know that how to create the embed component for simple single level element (Simple Screen) and add to Account_TI screen but here i want AdvanceListPanel and display the the multiple data.


Also here there is no other screen for creation of the custom data as show above.


I know the How to make XML file input for Root level simple screen but this is also Data List as well as node level value with single account level so i have no idea about this.


Can anyone have idea how to achieve the above requirements using SDK ?


Many Thanks,

Mithun

Custom query or implementing an association

$
0
0

Hi Folks!

 

I have an requirement to fetch data from multiple Business Objects (BOs). I am thinking of two approaches, whatever is possible:

1. Create a Custom BO with a Custom query...implement the query to fetch data from both BOs.

2. Extend standard BO1 with an association to BO2. Implement this association to fetch required data from BO2.

 

Kindly suggest if any of these is feasible or suggest another approach to fetch data from 2 BOs ( they have no standard association between them ).

 

Thank you!

How to retrieve/query composition association data

$
0
0

Hi guys,

 

I have requirement to query retrieve data from appointments Follow-Up table. What I see in UI designer Follow-Up data list is mapped to composition association

ActivityBOModelSnapShot.jpg

By structure I see that actually it is BusinessTransactionDocumentReference association, but in Apportunity's TI there is no query or other visible configuration how these following records are filtred out.

 

That why I have question - how can I access in my PDI coding to this FollowUp association so I could grab UUIDs and retrieve these appointments?

 

Thanks,

Uldis


SAP Cloud SDK : How to Make a Link on AdvanceListPanel and Open the QA or OIF

$
0
0

Hi Experts,

 

I have requirements with the below scenario.

 

Scenario : My Custom Business Object

businessobject myaccdet {

 

[Label("Contract ID")] [AlternativeKey] element ContractID : ID;
[Label("Contract Description")] element ContractDescription : AP.Common.GDT:MEDIUM_Description;
[Label("Customer")] element AccountID : BusinessPartnerInternalID;
[Label("Start Date")] element StartDate : Date;
[Label("End Date")] element EndDate : Date;

 

}

 

I have created the  below screen using embed component

 

3Capture.JPG

 

When i click on Contract ID from the table i can able to see the below screen QA screen but without data.

4Capture.JPG

I have make the OBN for this and assign to Contract ID property "Navigation"

 

Below is my OBN that i have created for this embed component.

5Capture.JPG

My BO Model for this embed component is like this.

6Capture.JPG

Can anyone help me what the missing in this configuration or if any wrong configuration in above steps .

 

What are the standard method to open the QA or OIF from other screen with all the Data same as above requirement?


Many Thanks,

Mithun

Passing values to custom OVS dynamically

$
0
0

Hi,

 

I am trying to select the Address from a list of addresses available for an Account while creating Visit for that account.

 

In Visit QC, I populate the Account field using the standard Account OVS. After this, I want to show the list of Addresses available for this selected account in my custom Address OVS.

Currently I have configured my OVS to Customer XBO. In this, I am passing Account ID as the parameter to the query and I am displaying the Account ID and the Addresses for that account.

But this OVS displays all the Account IDs and only 1 address for all the available Accounts.

 

As can be seen from the below screenshot, I have selected Account= ‘Lowes’ in Visit QC. But when I click on Addresses OVS, it displays me entire list of Accounts.

AddressOVS.png

Is there a way in which I can dynamically pass the Account ID of the account selected in the Visit QC to my custom OVS? I also need to display all the Addresses available for this AccountID.

 

Please suggest how this can be achieved.

 

Thanks,

Ambuja

How to use the Mass data Run Wizard for the standard Business Object Extension.?

$
0
0

Hi Experts,

 

I have to use the mass data run wizard for the one of the status of the ActivityTask. Will it possible to use this wizard for the extension of the standard Task?

If any one already used this wizard for the standard objects please share ..

 

Thanks ,

Mani

How to use $controller.DateTimeUtils.DateGet method ?

$
0
0

Hi everyone,

Can someone tell me how to use the $controller.DateTimeUtils.DateGet method ? I would like to know whether a date is a saturday or sunday but I can't figure out how to use the method.

Thanks in advance

Chris

calculations of forecasting models

$
0
0

Good Morning,

 

Does anyone know what kind of calculations are done   for forecasting models within the SAP Business byDesign such as:

 

1. Simple Exponential Smoothing with Optimization

2. Linear Exponential Smoothing

3. Seasonal Exponential Smoothing

4. Croston Procedure?

 

Many thanks,

Sylwia

Any event triggered when deletion happens

$
0
0

Hi guys,

 

I wonder is there any way how to handle following scenario:

 

We have custom BO which has association to Activity BO.

 

User deletes Activity's instance and here I want that my custom BO's instance would be deleted together with this activity, as we have 1:1 relationship between Activity BO and mine custom BO.

 

As I know, than none of events on activity could be triggered when row from Activity's OWL is removed, right? As possible work around I see MDR usage on my custom BO, but it won't be real time check if my custom BO instance still has association to activity. So another thought what I had, but I couldn't find the way how to get it working, is there any chance to trigger on my custom BOs OWL any actions (mass enabled action which checks if my instances has set association to activity)?

 

Thanks,

Uldis

How to use the URI in email activity?

$
0
0

Hello ByD experts,

 

I am trying to send an email to employees but the problem is the email activity use the Business Partner ID and not the Employee ID. And the customer does not want to maintain the Business partner data where the email comes from.

So I wanted to set directly the email in my code using the URI, but I did not succeed in that.

When I try to set the association insEmail.MessageToParty.....URI.Content = mailto:my@email.com, it tells me the mailto is not a viable alias.

And when I use double quotes, it tells me EmilURI can't be set to a String, which seems normal.

 

If somebody know how to set the email URI directly in ABSL, it would be awesome.

 

Thank you all for your attention.

Best regards.

Jacques-Antoine


traceability report

$
0
0

Hi All,

 

 

I am looking for traceability report on SAP Business ByDesign, which report I can use?

 

 

Many thanks,

Sylwia

Configurable Code lists Only CODE is appearing in UI:

$
0
0

Hi Experts

 

My use case is that we our customer requires some custom code lists to be added to Standard UI e.g. Accounts. This code list should also be extensible via Fine-Tuning process by key user in post implementation scenario.

 

Image 1.JPG

 

Image 2.JPG

 

Now I have created a Configurable code list in SDK using BCOs, it works fine and is also appearing in Fine-Tuning section. The issue I am facing here is that it only shows the “Code” and Not the Values inside the Extension field list on UI. I have added screen shots here.

 

Image 3.JPG

 

Please Guide me through.

 

Kind regards

Asad

Can't find Material Cost

$
0
0

Hi experts,

 

I'm looking on the repository costs material but I can't find the correct BO.

 

cost material.jpg

 

You can find cost material WC Product portfolio - View Material - Facet Valuation

 

Please some help to find the correct BO.

 

Thanks!

XML input: Node

$
0
0

hi experts.

          I can't create an XML input file for my custom BO with node items.

          When I export the XML file from the schema, a warning pops up showing that it is not exportable.

          Is it because of the schema that I created from Service Integration?

Regards,

May T.

Need a Main Indicator and assign it to a buttton!

$
0
0

Dear All,

 

I have multiple opportunites associated with my BO , user needs a provision where he can select any opportunity and make it a MAIN Opportunity!

 

I checked there's a similar a fucntionality is there with Contact Tab in Account TI where u can select a contact as main contact using a button. they have taken a dedicatedfield field and given in the properties of the button....

 

but i am not getting how do they link it to Bo model field!  i mean how that field know which contact has main indicator checked?

 

Please suggest how do i achieve this functionality in my cuystom TI with custom Advanced list pan

Viewing all 1101 articles
Browse latest View live


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