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

Custom OVS is not working correctly

$
0
0

Hi,

 

for my custom BOs I create OVS controls by right clicking on the BO, choosing "Create Screens" and selecting the OVS checkbox.

 

In the target floorplan I configure the OVS as described in the studio documentation.

 

The only thing that does not work is the suggest-function.

 

While typing any text for getting suggestions the following warning is displayed:

 

SCREEN01.PNG

 

How is the outport to be configured correctly? Perhaps there exists a documentation?

 

Thanks for your help in advance!

 

Kind regards,

 

Markus


SAP Demo Cloud Access portal

$
0
0

Hello good people,

 

I am new to the cloud platform. Every time I click on an icon in the cloud platform, it downloads a file with the name launch.ica which my computer cannot open after the automatic download. What do I need to do to be able to use the full features of the cloud portal?

SAP Cloud SDK : Copy PhoneCall Activity Notes fields into Custom Notes fields

$
0
0

Hi Experts,

 

Scenario : I have requirement to copy some fields ( Activity ID , Subject , Notes etc)  from standard activity ( Phone Call , Appointment , Task etc) into my custom business object node level data .

 

Issue : How to Copy Notes field from standard activity into my custom activity Notes fields my custom business object sample definition

 

businessobject BOCustomActivity {

 

[Label("Description")] element Descr : LANGUAGEINDEPENDENT_LONG_Text;

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

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

 

node Cust_Act_send [0,n] {

     [Label("Activity ID")] element ActID : BusinessTransactionDocumentID;

     [Label("Activity Subject")] element ActName : EXTENDED_Name;

     [Label("Activity Type")] element ActType : LANGUAGEINDEPENDENT_MEDIUM_Text;

     [DependentObject(TextCollection)] node myNode;

  }

action UpdateData;

}

 

In the above business object under the node level i can assign the Activity ID,  Activity Subject , Activity Type from standard activity using Query and update the node level records,

But I want to assign Notes ( TextCollection Text ) from standard activity notes fields.

 

In the below screen we have 2 records from standard phone call activity.

 

121Capture.JPG

 

I am using the below code to get the record from standard phone call activity.

 

import ABSL;

import AP.FO.Activity.Global;

 

var noderef : elementsof BOCustomActivity.Cust_Act_send;

var nodeins;

 

var query = PhoneCallActivity.QueryByElements;

var resultData = query.Execute();

 

// 2. Selection

var selectionParams = query.CreateSelectionParams();

selectionParams.Add(query.ID.content, "I", "BT", "2551", "2555");

// Result

resultData = query.Execute(selectionParams);

 

 

foreach ( var record in resultData)

{

  noderef.ActID = record.ID;

  noderef.ActName.content = record.Name.content;

  noderef.ActType = record.TypeCode.GetDescription();

                   (?)       = record.TextCollection.Text.TextContent.GetFirst().Text.content

  nodeins = this.Attachment.Create(noderef);

}

 

in the above code the Activity ID , Activity Name , Activity Type but how to copy the Notes ( TextCollection Text ) into the node element myNode (TextCollection) and assign and update on node level element .

 

I have check the post : Copy DependentObject TextCollection or AttachmentFolder

 

But did not solve the issue.

 

Please anyone have idea about the above requirement.

 

IF anyone want more explanation kindly let me know.

 

Many Thanks,

Mithun

Hierarchical Tables (UI Designer)

$
0
0

How can the hierarchical table be implemented with the UI Designer? Iu2019ve seen several evidences, that the hierarchical tables are possible.

1)     UI Designer Style Guide 3.5

-     A hierarchical List Pane (HLP) can appear instead of an ALP within an OWL. It is read-only.

-     

2)     FP3.5 Studio Library:  Working with Lead Selection in Hierarchical Lists

-     Description

-     Obtains a reference to the selected row in a hierarchical list.

-     Example row = $data.MyList.LeadTreeSelectedRow

3)     Hierarchical Maintanance Buttons in UI Designer for the toolbar

4)     There are at least two standard SAP-workspaces where the hierarchical tables are implemented: Manage Access Rights in User and Application Management and Browse Business Objects in Partner Development Test Shell

 

But i havenu2019t found any further information on how the hierarchical table can be declared (what element of the UI designer it is and where in the pane hierarchy it has to be placed) as well as how the Advanced List Pane can be adapted to be a HLP (what bindings have to be set, how the control elements like sparrows has to be established).

 

Does anybody have an experience imlementing hierarchical tables?

Report Maintenance in patch solution

$
0
0

Hi

Can we make changes in report in patch solution?

I have added few fields in Datasource, now I want to add these fields(Characterstics) in report but it does not seem to allow any changes.

Changes are getting saved, As per the SDK document we can delete the report in maintenance mode but nothing about change(adding new charc.)

 

As per my current understanding I can say we can not add new fields in report but want confirmation.

 

Thanks

Sunil

SalesOrder - overwrite item price with calculated value.

$
0
0

Hi,

 

I'm working on an extension to the SalesOrder BO and I need assistance with one issue.


     My SalesOrder extension has a couple of extension fields (Item node) that are used to enter price and margin information for some particular products. The calculations are triggered by the After-Modify event and are working fine. The result of the calculation is stored in a custom field called ExtPrice.  Here is the problem, when I release this SalesOrder I would like the ExtPrice to overwrite the NetValue on the PurchaseRequest. (see the attached screen).


      Normally the Purchase Request pickups up the price from the Lists Price, but since my field is an extension I'm not sure what would be the best way to do this.


Below, the PurchaseRequest field that I would like to be overwritten by the value from by extension filed in my SalesOrder.

Screen Shot 2015-02-09 at 10.36.03 AM.jpg 

Appreciate any input on this


Cheers,

Paul

Is it possible to enhance the items in sales quotes with addional information that is showen below the items list?

$
0
0

Hi to all,

 

is it possible to enhance the details for product items in the sales quote? For example there are currently fields like External Note and Internal Note, that show information regarding to the item seleted. I would like to enhance that view with an embedded component (including details for items) that is bind to the item selected, like it is for External and Internal Notes.

 

Thanks in advance and br,

Patrick

Custom BO for each Employee

$
0
0

Hello all.

 

I´m trying to develop a custom BO to record two dropdown lists and two dates using Screen Scenario with Object-Based Navigation.
I created all screens and I´ve embedded de OWL into an embedded component and this in COD_Employees.TI
With this I can save this datas but are common for all Employees. But what I wantis to createfor each employeetheir own records and display only this.
Someone couldtell mewhichway I should to follow


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 !

Can't Add Purchase Order Item

$
0
0

Hello everyone,

 

I'm trying to create a new purchase order (or modify an existing one) with ABSL coding, and I've come to a problem. I can create the actual purchase order fine --- however, I can't create an item. Using 'var poItemElements: elementsof PurchaseOrder.Item;' I can write to the description and other fields, but the ID is marked as read-only and throws an error when I try to assign a value to it. As such, when I try to create an item using 'var newItem = existingPurchaseOrder.Item.Create(A);' it doesn't work, with the debugger giving the error as in the screenshot below. I can create elements of the item product using 'var poItemProductElements: elementsof PurchaseOrder.Item.ItemProduct;' as in the screenshot, but it won't let me call 'var newItem = existingPurchaseOrder.Item.Create(poItemProductElements);', and Item.ItemProduct has no Create() method. Anyone able to help? Many thanks.

 

PurchaseOrderFailureCutDown.png

Does publish (not consume) SOAP-WS support WS-Security?

$
0
0

I reviewed the documentation and stepped through the SOAP Web Service guided procedure in my tenant, but couldn't seem to find a way to configure WS-Security to sign (and or encrypt) the contents of the XML message (separate from the authentication to connect to the web service).

 

I see that I can consume an external SOAP web service that utilizes WS-Security. Is the reverse not possible? Will it ever be? Is it on the roadmap?

 

Cheers,

Greg

SAP Cloud Application Studio 1502 UI Designer proxy error

$
0
0

Hi,

 

When starting the UI Designer in SAP Cloud Application Studio 1502 I got the following error:

Exception Message: XRepositoryException (0)The remote server returned an error: (407) Proxy Authentication Required.

 

 

InnerException Message:XRepositoryException (0)The remote server returned an error: (407) Proxy Authentication Required.

 

 

Source Type: SAP.BYD.LS.UIDesigner.Connector.XRepositoryProxy

Machine Name: DEHEDEV1

TimeStamp: 10.02.2015 16:42:42

Application Version: 25.0.555.1045

Windows Identity: GLOBAL\p-baurf

Stack Trace:    at SAP.BYD.LS.UIDesigner.Connector.XRepositoryProxy.QueryFolder(String FolderName, List`1 Filter, String RecursiveMode)

   at SAP.BYD.LS.UIDesigner.Connector.XRepositoryProxy.QueryFolder(String FolderName, List`1 Filter)

   at SAP.BYD.LS.UIDesigner.Model.RepositoryLayer.ProjectWorkspaceManager.ExpandXRepositoryNode(FolderNode parentNode, List`1 componentFilter)

   at SAP.BYD.LS.UIDesigner.Model.RepositoryLayer.ProjectWorkspaceManager.GetRepositoryRootNode()

   at SAP.BYD.LS.UIDesigner.UICore.Toolwindowcontrols.VisualConfigurationExplorerControl.Init(Dictionary`2 DesignerProviders)

 

So my question is, where can I configure the proxy settings for UI Designer? It seems that the general proxy settings in the studio (Tools -> Options -> SAP -> General) aren't used by the UI Designer.

 

Kind regards

Florian Baur

Use of BO ProductCategoryHierarchy

$
0
0

Hi,

 

my solution is placed in tte "Foundation" deployment unit; in one of my custom BOs I want to use SAP's ProductCategoryHierarchy object.

 

To let the user choose a product category, I want to use the productcategoryid reuse OVS.

 

 

I am not sure which field and datatype to bind to the value property of the OVS, so that my BO can save the ID of the chosen product category. Next thing is, that I want to show the chosen product category with its name and ID for every of my BOs in another view.

 

To get this data from the other deployment unit, I have to do something like "ProductCategoryHierarchy.Retrieve(saved product category ID from my BO)"; at this point I am not quite sure if it is possible to get the right product category out the hierarchical tree.

 

 

Could anyone give best practice hints how to work with the ProductCategoryHierarchy object?

 

 

 

Thanks in advance!

 

 

Markus

SAP Cloud SDK : Custom Business Object Delete all the existing record before new record created

$
0
0

Hi Experts,

 

I have scenario to create custom business object and implement the below functionality.

 

i have created business object with custom action and under the custom action i have write the code for

 

1) Create Root level data.

2) After Root level data create node level data under root level.

3) Based on Root level and node level data generate PDF.

4) and at last send the generated PDF to user using Email send functionality.

 

I have created the Mass Data Run and assign this custom event to scheduling background job for weekly.

But the problem is when this event trigger getting email fro each existing records under the custom business object.

So i need to first delete all the existing record before creation of new record so when the job run only newly created record or PDF send it to the user not all records.

 

so i need to check how to delete the entry from custom business object from custom action.

 

Regards,

Mithun

SAP A2X Web Service !!

$
0
0

Dear All,

 

I am trying to create a A2X Services in SAP Business ByDesign, but i have no idea how to do this.

What are  the basic requirement for this service ?

Please provide a documentation of it.

 

Thanks,

Manoj Kannaujiya.


C4C: Programmatically read submitted Survey questions and answers

$
0
0

Hello Community,

 

in a Cloud for Customer solution, Service Scenario, we are defining the submit of a Survey for Tickets/ServiceRequest. Contextually, we are enhancing the Service Request Business Object with additional controls and logics.

 

Once that the Survey has been submitted and saved, is there available any way to read the couples of questions and answers via the ABSL code?

 

we noticed that the node WorklistItem for the ServiceRequest BO has the following inner proprieties:

 

WorklistItem.ItemTextCollection.GetFirst().TextByTextTypeCodeAndLanguageCode.GetFirst().TextContent.Text.content;

 

Is is the right place to look for, or is there any other better (and more effective way) to access single Questions and Answers texts?

 

Thank you for your support.

 

Cheers,

Davide

How to get "Parties Involved" data in Opportunity flowing from C4C to ECC?

$
0
0

Hi Experts,


 

I am Deepak from the SDK training in SFO. Hope everyone is doing good. I have come across a challenge in SAP cloud development and need your suggestion.

 

 

 

Issue Description

 

As per the C4C standard functionality the following ECC integration processes, the parties involved information is not flowing to ECC. Only the main sold to party account is communicated.

 

* Request for pricing  from C4C opportunity (External pricing in ECC)

* Request for pricing is a synchronous call from C4C-> SOAP CALL to HCI -> SOAP CALL to ECC

* Relevant HCI iflow and ECC service has options/fields handling this but the outbound

* But the Outbound communication scenario 'Opportunity with Sales Order Pricing in ERP' does not have parties involved information.

 

 

 

Our Solution approach

1) Create new extension fields in Adapt mode for the addtional partners that have to be sent to ECC

2) Using further usage option add the field to the outbound service "SalesOrderPricingInformationRequestingOut"

3) Using SDK write script to get the External ID of the partner from involved parties and save it in the extension field.

4) Download the WSDL from the communication scenario "Opportunity with Sales Order Pricing in ERP"

5) Upload the WSDL in HCI Iflow source structure of Message mapping

6) But the target structure (WSDL of ECC service) accepts the additional partner in a nested structure (0:N) so that it can access multiple partners. Is C4C we are not able to create a node which can be added to process extension scenario.

7) So for mapping the extension field from C4C we can add new field in ECC service too.

 

 

Let us know if this is the best approach or any other alternate solution is available

 

Is there any way we can add a node to process extension scenario ( Currently I am able to add only element)

 

In HCI iFlow mapping Is there a possibility to map a field from a root node of source structure to the field in a nested level/structure?

 

Regards,

Deepak

SAP Demo Cloud Access portal

$
0
0

Hello good people,

 

I am new to the cloud platform. Every time I click on an icon in the cloud platform, it downloads a file with the name launch.ica which my computer cannot open after the automatic download. What do I need to do to be able to use the full features of the cloud portal?

Elements locked

$
0
0

I am developing some testing solution. When I use scripts I can access and modify my elements. But in one of my solution I can not and I do not know why.

Using this.

 

elementLocked.jpg

I noticed that all my elements have a lock on them.

 

If I assign a value this.FileName = this.DefaultFileName;

I get the error: Identifier 'FileName' is read-only and cannot be changed.

 

How can I solve this?

 

Thank you

Custom OVS is not working correctly

$
0
0

Hi,

 

for my custom BOs I create OVS controls by right clicking on the BO, choosing "Create Screens" and selecting the OVS checkbox.

 

In the target floorplan I configure the OVS as described in the studio documentation.

 

The only thing that does not work is the suggest-function.

 

While typing any text for getting suggestions the following warning is displayed:

 

SCREEN01.PNG

 

How is the outport to be configured correctly? Perhaps there exists a documentation?

 

Thanks for your help in advance!

 

Kind regards,

 

Markus

Viewing all 1333 articles
Browse latest View live


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