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

Create OVS for a standard BO

$
0
0

Dear All,

 

I need to create OVS for account , because i want some conditions to add.

 

Is it possible to create custom OVS for a standard BO if yes! please suggest steps or link or vid!

 

Thanks in advanced!

 

Regards,

Dhruvin


Make mandatory fields in account, ABSL (In silverlight)

$
0
0

Hi experts,

I created an incident in my customer tenant test because mandatory fields don't work. And they answered me following:

 

"it's not sufficient to set the field to mandatory in SDK (this only creates the red star), you also have to implement a check using ABSL (i.e. in BeforeSave event).

Hope this clarifies your issue if not please revert back to us.

Thank you for your consideration and cooperation."

 

But when I tested using ABSL I created an extension called AccountEXT.xbo using the code that you can see in the following image:

 

ABSL.png


The test field was "Country", and when I tried to save the new account, appeared the error that you can see in the following image:


ABSL ERROR.png


There are someone that know if it exsists another way to set a field (or an extension field) into a mandatory field?

If anyone can help me with this issue, I will be really grateful

Data type for duration

$
0
0

Hello everyone,

Is there any data type we can use to denote duration?

The scenario is that a user will need to enter hours and minutes and we should be able to use this information in reports.

 

thanks

Mahesh

Dump if i try to access Contact party of opportunity

$
0
0

Dear All ,

 

I am creating Quick create ( where i want to access contact party )

 

I m writing below code :

 

var Prospect = MO.ProspectParty;

  if ( Prospect.IsSet())

  {

       Prospect.PartyKey.PartyID.content = this.account;

 

       var ProsParty = Prospect.MainPartyContactParty.PartyKey.PartyID.content;

       if (!ProsParty.IsInitial())

       {

            var Query = BusinessPartner.QueryByIdentification;

            var selpara = Query.CreateSelectionParams();

            selpara.Add(Query.InternalID,"I","EQ",ProsParty);

            var results = Query.Execute(selpara);

       foreach(var result in results)

       {

            this.maincontactpartyname = result.CurrentCommon.BusinessPartnerFormattedName;

       }

  }    

 

  }

 

Variable MO will have the instance of opportunity.

 

Hence i am trying to fectch contact party id to fetch its namebut i am getting dump in line

 

       var ProsParty = Prospect.MainPartyContactParty.PartyKey.PartyID.content;

 

what could be the issue!

traceability report

$
0
0

Hi All,

 

 

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

 

 

Many thanks,

Sylwia

How to set up access control/ define access context

$
0
0

   You can find more specific information about Define Access Control in the documentation at this path: http://help.sap.com/saphelp_byd_studio/fp40/ktp/products/a1s_pdi/devtasks/business_objects/ht_defineaccesscontrol.html

 

 

I. Define Access Control for a standard Business Object (Customers) 

If we need for a user to see only specific data for example from Customers we want to see only those that are from territory UK (United Kingdom).

We logged on to the system with a user that has Administrators Rights.

·    Go to Application and User Management -> Business Users;

 

1.png

  Search for the Employee that we need to restrict access

        Click on Edit Access Rights

  • Go to the Access Restriction and there for the Customer’s Work Center we have Access Context: 1015 Employee or Territory, that means we can restrict data to be seen for a specific territory or employee.

2.png

Scroll down and we select the respective territory which this employee will see  all the customers that  are assigned to this territory.

 

3.png

     Save and activate and logged on with this user and see only the Customers from UK territory.

4.png

 

  II.Create your own custom Business Object and Define Access Rights for your custom WCVIEW.

 

 

  • Create your own Business Object with your elements and define an association to CUSTOMERS with syntax [RelevantForAccessControl].

5.png 

    This syntax will take the Access Code List(ACL) from the Customers, this means that we can use an Access Context for our WCVIEW and we can display only specific data from CUSTOMERS for example like we explain above. (In this case we have a custom BO).

  • Create Thing Based UI for this BO
  • Open the WCVIEW that was created and:

            -Select Access Context 1015 Employee or Territory

            - At the Assigned Objects add also the OWL(Object Work List screen) that was created

        - Authorization Classification Code should  be Application Container

 

6.png

Save and Activate.

 

  • Open the Object Work List screen (OWL)

-             - Select Properties and the OWL component and choose Privileged Except Access Controlled Business Object

-            - At Access Controlled Business Object verify if the Custom Business Object has unmarked the Unrestricted Access like in    the bellow picture.

7.png

       -  Go to the Data Model and right click on the Queries and create a SADL query

8.png

     -  Select the List from the OWL Designer for displaying the values and also marked the parameters that we need in the query

9.png

Important

The SADL query replace the custom query that is used in the documentation.

10.png

  •   Open the Quick Create Screen (QC) and verify if at the Access Controlled Business we have unmarked the Unrestricted Access for our BO

11.png

Save and Activate.

 

· Open the Thing Inspector Screen (TI) and verify if at the Access Controlled Business we have unmarked the Unrestricted Access for our BO

12.png

 

Save and Activate.

 

Please make sure that also the Quick View screen has unmarked the Unrestricted Access.

 

  • Now Logon with a Business User and  go to Application and User Management -> Business Users

          Search for the Employee that we need to restrict access

                Assign the Work Center with the WCView from our Business Object

13.png

·  Go to Access Restriction and find our Work Center View for which we defined the Access Context 1015 Employee or Territory

   Both Read and Write Access will be restricted

 

14.png

  • Scroll down and marked the relevant territory for which we want that user to see values from the CUSTOMERS.

      This user will see data for the Customers that are in the Territory United Kingdom (UK), the association that we are using in our    Business Object will contain the respective data.

15.png

Save and Activate. 

Log off and Log on with this user that we Restrict Access.

 

  • We have on the Quick Create (QC) a field that his data type is Business Partner Internal ID and we have assigned to this field the standard OVS for Account.

       This user sees only data from UK Territory.

16.png

SAP Cloud SDK : AdvanceListPanel Default blank Row Display end of all record

$
0
0

Hi Experts,

 

I have created the embed component using custom object and display under the Account_TI screen.

That embed component working fine in Account_TI screen.

 

Under embed component i have add 1 AdvanceListPanel and Display the data based on the Account ID respectively.

 

12Capture.JPG

The above screen is Account_TI screen with embed component and under the Contract_Product tab we can able to see the record under th AdvanceListPanel but at the end of every time  display the blank row.

 

I want to remove that blank row then how to achieve this using SDK or any configuration require under the embed component or any ABSL code to remove the blank row under the AdvanceListPanel.

 

Please help me to resolve this issue.

 

Many Thanks,

Mithun

Calling BO Action while InPort is triggered issue

$
0
0

Dear All,

 

I have created an Embedded component and I a have binded the embedded component to a view with its inport.

 

With the inport i have given the Event on fire "ReadActivities"  .

 

In the Event Handler We have used Type : BOAction  , please refer below image.

                                         2014-09-04_154655.png

But I dont know why it is not getting called every time when my EC is getting called!

 

Can you please tell me how do i call my BO action as soon as my EC's Inport is getting called?


Add additional elements to a Custom BO

$
0
0

Hey,

 

I´m facing the following problem in my Custom BO. I want to add other elements to my existing Custom BO.

In order to achieve this, I defined two elements in the Custom BO and activated the Custom BO.

Then I add the two elements to my existing Webservice and activated it too

 

Now when I execute my webservice, I get the following error message:

 

error.JPG

 

Can anybody help me to solve my problem?

 

Best regards

 

Sebastian

Creating a Basic Cloud Application no visible Button

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

Dynamic code list in a business object extension

$
0
0

I created a business object extension for Opportunity and added two new fields with code lists via BCO. The values of the second field should be dynamic, depending on the selected value of the first field.

 

But when I enhance the screen COD_OPPORTUNITY_TI and add the two fields to the Header entity, it is not possible to use the function ‘Codelist Context Mapping’ for the second field. Also the property ‘CodelistType’ of this field is ‘static’ and when I want to change it to ‘dynamic’, an error occurs: “Component which you are trying to edit comes from a lower layer. Please use Extensibility Explorer to edit.” But the Extensibility Explorer does not show any useful function.

 

Is it not possible to use Codelist Context Mapping in default UIs?

 

The BCOs look like this.

 

Field A:

ID_A (Field Type: Key; Data Type: Code)

VALUE_A (Field Type: Description; Data Type: Text Short)

 

Field B:

ID_B (Field Type: Key; Data Type: Code)

ATTRIBUTE_A (Field Type: Attribute; Data Type: Codelist Type of A)

VALUE_B (Field Type: Description; Data Type: Text Short)

 

Does anybody have an idea?

 

Many Thanks,

Fabian

SAP Cloud For Customer : Code List Mapping For Material or Product

$
0
0

Hi Experts,

 

I wnat some information about the SAP cloud code list mapping.

 

If i want to replicate Material / Product from SAP ECC / SAP CRM to SAP cloud for customer then any code list mapping entry we need to maintain in cloud side?

 

Or

 

Any Code list mapping for Material or Product in Cloud?

 

If yes anyone have list with SAP ECC / SAP CRM table details?

 

Many Thanks

Mithun

 

  .

Issue after adding an SADL Query in OWL ( Thing type genrated )

$
0
0

Dear All,

 

I have created a custom BO and its screen using thing type navigation. In OWL genrated we alreade have a query ( Querybyelements) now which is defaultset, now as we needed to use SADL as we required a search text , we created an SADL query with its FindForm and all,

Now issue is when i query the data using SADL Query ( Default set 1) no data is coming and when I use Querybyelemnt query system throws exception.

 

If i delete the SADL Query and keep only normal one system displays all data.

 

I am confused now , frankly I only want to use SADL query but data is not coming ( its not able to fetch the data) , is there something i m missing?

 

This is very frustrating when a simple SADL query doesnt return the values and you have to raise the issue on scn

 

Help is appriciated

 

Thanks in advanced

Dhruvin

Buttons in Quick View ( for custom BO's Thing based Screens ) same as standard

$
0
0

Dear all,

 

I have created a BO and the screens.

 

But I noticed that we have not the buttons for Flag ,Follow and  Add to Favourites!  How Can i Get those buttons and the functionality?

 

Please look in Standard QV of account below

AccountQV.jpg

Below is the QV of my custom BO

Trade QV.jpg

please suggest!


Error opening Custom Business Configuration View in Fine Tuning "Target Not Available"

$
0
0


I'm doing a custom solution in C4C 1408 around a  Business Configuration Object..

 

I create my business configuration view  (*.QA.uicomponent), and assigned as per Studio guide so it can appear in Fine Tuning:

 

9-11-2014 12-32-53 AM.png

 

However, when I go to Fine Tuning, and open my BC set, I get this error "Target Not Available" - "Target UI could not be determined".

 

 

9-11-2014 12-34-50 AM.png

Appreciate any help on this.

 

Thanks !

Exception in Approval Process

$
0
0

Hi,

 

I am working on creating an approval process. To block an account I need it to go through some approval first.

I have followed all the steps as mentioned in the help doc but I am facing some issues.

 

I have created a custom BO (CustomerBlock.bo) and an EC. I have embedded the EC in Account TI. This contains some fields which need to be filled and then submitted for approval. I have provided a button which invokes submitForApproval action on click.

For the custom BO i have created the approval process, approval and notification tasklist views are added to Account workcenter view.

CustomerBlockBO.png

In submitForApproval action, I am assigning EmployeeIDs to requester and RM approver.

submitForApproval.png

SubmitForApproval action is executed successfully, but on saving the Account I am getting an exception. The exception is not thrown if I remove the tasklist views from the account workcenter view.

exceptionOnSave.png

 

Any Idea what could be the issue here? Please help.

 

Regards,

Ambuja

How to access the ID of a PurchaseOrder before saving it?

$
0
0

Dear community,

 

I need to implement a REST call to an external system passing through some data of PurchaseOrders.

The PurchaseOrders are part of a third-party process and created automatically by ByD from released SalesOrders.

 

The PurchaseOrders are created and automatically sent by ByD and afterwards saved by the system. The problem I'm facing is that at the time of the calls to AfterModify and BeforeSave, the ID field of the PO is not yet set.

 

Is there a way to get the ID in the AfterModify or BeforeSave before the PO is saved for the first time?

 

The only possible solution I came up with is to use internal communication to create an object. This message would be sent after the save and with the ID of the PO. Is another way to do it?

 

Thanks for your help and best regards,

Georg

Enhance picklist with lot size rounding quantity

$
0
0

Hello,

 

I want to add the rounding value of the material master data to the picklist form template. We use the lot size rounding quantity as measurement for the Masterbox. Is it possible to extend the FormSiteLogisticsTaskExecutionRequest container with this field in PDI or UI?

 

Thanks & Best regards

Thomas

Custom BC set - easiest way to add 4,000 rows ?

$
0
0

I have a custom Business Configuration (BC) Set that needs 4000 values.

In the Studio, it's manual.  Likewise in FineTuning.

 

Is there an easy way to enter 4000 values in the BC Set ?

 

Thanks ahead for your help !

Viewing all 1101 articles
Browse latest View live