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

List Modification Form in EC is not working.


How to create custom OVS from Custom Business Object ??

$
0
0

Hi cloud experts need help,

 

I got a requirement for creating custom ovs from custom business object for a node level element i have followed various steps from the related posts on this but not able to achieve the requirement.

followed this links also.

 

SAP Cloud SDK : Create Custom OVS from Custom Business Object

 

http://help.sap.com/saphelpiis_studio_1502/studio_od_1502.pdf

 

 

businessobject Custom_OVS {

 

  element id : ID;

 

  node OVS [0,n]

  {

  element chainID : ID;

  }

 

i have multiple values for the ChainID element like

 

123

124

125

 

i have created ovs uicomponent for the solution and linked the chainid to the Objectid. now my requirement is if i select Objectid field then i should get all the values of ChainID as a dialog box popup.

 

Kindly check the screen shot of my OVS attached.

 

Thanks.

Debugging Script defined under a event on the UI Designer

$
0
0

HI,

 

small (noob) question: Is there any way to debug an scrip defined under a event on the UI designer?

 

Script Debug.png

 

I dont see any way to set a breakpoint in this kind of scripts, even when I start "Debuggin mode" on the studio.

 

kind regards,

 

Andres

Embed multiple embedded components in the single tab

$
0
0

Hi,

 

I've created a single BO extension for customer and created an embedded component for it.

At the same time, i also have several custom BO that linked to customers and had created embedded components for each of the custom BO.

Now, I wanted to included all these embedded component in a single tab for customer and can create or view it in that single tab, just like customer->activities.

So far, i'm able to embed only 1 embedded component to the Account (COD_ACCOUNT_T1).

Any idea?

 

 

Thanks.

 

 

cheers,

julius

Custom Development in Cloud Application Studio

$
0
0

Hi Guys,

 

I am new to SAP c4c, I have asked to create one business object which will display respective customer orders. I need to create search/result screen where in search Customer ID would be the input parameter with Search button and respective order will be displayed in Result area.

 

Can anyone please let us know the step by step procedure with example code.

 

Regards

Nitin

Issue - Navigation from OWL UUID to OIF floorplan

$
0
0

Hi Guys,

 

I have created one OWL screen where it displays all available data with UUID. I have created OIF screen with General Tab and Item Tab. Now problem is that when I click on UUID hyperlink then it opens OIF screen but it does not display the respective UUID data.

 

Can anyone please suggest why clicked UUID data is not displaying on OIF screen?

 

If I click any of the UUID then it display below blank fields:

 

 

Please advise.

 

Regards

SAP Cloud SDK : Custom OVS for Custom Business Object and Add Into Extension Fields

$
0
0

Hi Experts,

 

I have created custom business object Called ChainAccount

 

businessobject ChainAccount {

     element ChainAccount : BusinessPartnerInternalID;

     element Description : LANGUAGEINDEPENDENT_MEDIUM_Text;

     element CheckFlag : Indicator;

}

 

I have created Object Based Navigation screen and upload data through XML file Input

When I am going for creating custom OVS using right click on Custom Business object and Select OVS screen I have followed below steps :

1) Select Query

2) Select Element from Custom BO

3) And Click on OK button and added new screen under my Custom Solution (OVS screen).

 

Requirement:

1)  How to make filter in Custom OVS based on ChainAccount mean how to search ChainAccount in OVS screen.

2)  How Make this OVS as public OVS

3)  How to Add this custom OVS into standard business object extension fields.

4)  How to selected valued from custom OVS populated in extension field.

 

Please let me know how to achieve this above requirements.

 

Regards,

Mithun

Query master data into custom business object

$
0
0

Dear Expert,

 

I need to create custom business object for query Price List from account id and product code.

Just query, not create new one.

Now I've ABSL code to query already but I can't set sales price list master data to my OWL.

 

1. How to call my custom query to get standard data into my OWL?

2. How to binding data in OWL?

 

Please tell me some advice or another solution?

 

Best Regards,

Nuttha s.


Cloud Studio SDK: Can we create embedded reports

$
0
0

Hi All

 

Hopefully someone can just let me know if this is possible or not. If not possible then hopefully this requirement will be noticed for a future release.

 

 

Requirement:

We need the ability to embed our custom data source report into the Account TI screen and pass account number to the report so we can display customer sales data.

 

Background Info:

I have created a report we wish to embed in the Accounts TI screen. Report was defined as follows.

EmbedReport1.png

I have extended the COD_Account_TI and created an embedded component called Report_EC in the charts tab.

EmbedReport2.png

I have used extensibility explorer and passed AccountID to my Report_EC as follows:

EmbedReport3.png

OK now that my component is successfully embedded, I need to attempt to call the Analytics components.


ATTEMPT #1 - Using ANA_ICP.EC

1. I have embedded the ANA_ICP.EC component inside the Report_EC:

EmbedReport4.png

2. I entered all the report details as follows:

EmbedReport5.png

Result 1: Report starts loading but never opens as below... (Loading Forever)

EmbedReport6.png

I then removed the references to Variant and View ID.

EmbedReport7.png

Result 2: Report loads with default variant, however I can't pass an account number to the report?

EmbedReport8.png

 

ATTEMPT #2 - Using ANA_ICP_Embedded.EC

 

  1. I have created an ANA_ICP_Embedded.EC component inside the Report_EC:
    EmbedReport9.png
  2. I created an outport on my Report_EC and configured as follows:

EmbedReport10.png

 

3. Data Model structure was added 'StructureForNavToSalesCycleReport'.

EmbedReport11.png

When I check the standard ACCOUNT_TI page, the following values are defined for the sales cycle report navigation:

EmbedReport12a.pngEmbedReport12b.png

 

EmbedReport13a.pngEmbedReport13b.png

4. I tried to replace __ROOT with Report_ID below and __TARGET with Report View ID below.

EmbedReport14.png

EmbedReport15.png

EmbedReport16.png

5. I clicked on the bind button in designer view from Report_EC and created a navigation link as follows:

EmbedReport17.png

EmbedReport18.png

6. I configured my Inport AccountID and bound to my data structure 'StructureForNavToSalesCycleReport' field (AccountID_ANA). Now I don't really expect this to work but I just followed the standard SAP configuration.

Note that I configured "Onfire" to eventhandler EV_ToSalesReport

EmbedReport19.png

7. EV_ToSalesReport has the following configuration:

EmbedReport20.png

EmbedReport21.png

Result: Report will not open

EmbedReport22.png

Question:

Is there any way I can achieve the requirement using the SDK tools available. None of this is documented and I am just trying to mimic the standard solution. What should be passed to __ROOT and __TARGET for this to work with a custom report/data source?

 

I changed the __ROOT and __TARGET (In data model) to the standard sales cycle report values and the embed works... as below:

EmbedReport23.png

 

This makes me think that everything I have done is correct except the data values passed.. however something happens behind the scenes I think.. maybe a SAP employee can help how I might pass to custom?

Slow Performance - External Web-Service Call in BeforeSave Event of Customer

$
0
0

Dear Experts,

 

currently, we have a customer specific solution which invokes an external webservice when a customer is saved or updated (BeforeSave & AfterModify Event). The customer data is transfered to SAP Netweaver PI which then forwards the message to MS Navision.

Unfortunately, it makes the creation of a new customer via frontend very slow. Do you have  idea how to improve the performance by improving code? Or maybe other optimizations are possible.... I already created an incident in the tenant.

 

SampleCode in BeforeSave Event

 

createRequest.CustomerData.No  = this.InternalID;

createRequest.CustomerData.Customer_Status = this.Status.LifeCycleStatusCode;

 

 

//check if customer is a person or organisation

if (this.CategoryCode == "Person"){

createRequest.CustomerData.Customer_is_a_Person = true;

}else{

createRequest.CustomerData.Customer_is_a_Person = false;

}

 

if (this.AddressSnapshot.IsSet()){

//Name & Address Snapshot information

createRequest.CustomerData.Name = this.AddressSnapshot.Name.GetFirst().Name.FirstLineName;

createRequest.CustomerData.Name_2 = this.AddressSnapshot.Name.GetFirst().Name.SecondLineName;

createRequest.CustomerData.Address = this.AddressSnapshot.FormattedAddress.GetFirst().FormattedPostalAddressDescription;

}

 

// execute the web service 

createResponse = Library::CustomerDataWebServInt1.Create(createRequest, "", "CustomerDataCommSc");

 

var commFault = createResponse.CommunicationFault;

var commFaultItem = createResponse.CommunicationFault.Item;

 

var CustomerInternalID = createResponse.CustomerData.No;

raise MsgExternalResponse.Create("S", CustomerInternalID);

}

 

Thank you in advance!

 

 

Best regards,

Rufat Gadirov

Error when more than 1 BOs in the EC

$
0
0

Hi,

 

I have created a BO extension of customer and create the embedded component for it.

I've successfully display in the customer tab (under the undefined).

I've further test to include another custom BO into this same embedded component with AdvancedListPane. 

When i test it, i've encountered the following error upon the loading of the tab.

Any idea?


Thanks.

Another.png

 

 

 

cheers,

julius

Embed multiple embedded components in the single tab

$
0
0

Hi,

 

I've created a single BO extension for customer and created an embedded component for it.

At the same time, i also have several custom BO that linked to customers and had created embedded components for each of the custom BO.

Now, I wanted to included all these embedded component in a single tab for customer and can create or view it in that single tab, just like customer->activities.

So far, i'm able to embed only 1 embedded component to the Account (COD_ACCOUNT_T1).

Any idea?

 

 

Thanks.

 

 

cheers,

julius

Custom Approval Process for Customer Invoice

$
0
0

Hi experts,

       

As far as I know, there is no standard approval process for Customer Invoice.

I am trying to implement Custom Approval Process for Customer Invoice by using a custom BO.

The result is not as expected.

Please give me some advise on how to approach the process.

Any tip is super appreciated.


Best Regards

Fred  

Data Type: BusinessPartnerBankDetailsElements? Usage Category: Node?!

$
0
0

Hi,

 

does anybody know how to handle the Data Type "BusinessPartnerBankDetailsElements" with the Usage Category "Node"?

2015-08-04_1133.png

 

If I try to use this Data Type in BODL the following Error occurs:

2015-08-04_1134.png

2015-08-04_1134_001.png

 

In the documentation this Usage Category is not specified.

 

Any Ideas about that?

 

Best regards,

Tobias

Need help in user interface designer

$
0
0

Hi Experts,

 

Hope all are doing Good..

 

I am in search of practical documentation related to user interface designer. I have gone through the 1505/1508 documentation but i dint find much practical information regarding Data model, Controller, properties explorer. This tabs has different attributes where can i find the information related to this tabs. Please find the below images for clear info.

1.png

 

2.png

3.png

 

Please help me. I would be glad for your help.

Thanks,

Quddus.


Populating custom node in a standard object

$
0
0

Hello experts,

 

I have a custom node in Opportunity BO as follows.

 

node SegmentCombos[0,n]{

        

            element ZSLBProdFCItm : LANGUAGEINDEPENDENT_LONG_Description;

 

        }

 

I am trying to populate this node in the following way.

 

var thissegmentsobj : elementsof this.SegmentCombos;

        thissegmentsobj.ZSLBProdFCItm = "Some";

        this.SegmentCombos.Create(thissegmentsobj);

 

 

 

When I activate i get error : Syntax error in run time and ABAP objects.

Anyone faced similar issue?

Scripting the Creation of a Customer Invoice Request

$
0
0

Hello everyone,

 

I've been trying to follow the SAP example of how to create a Customer Invoice Request (CIR), but it's not working. Their version of the code is taken from the repository explorer; if one clicks on the CIR object then there's an example of how to create a CIR with a non-product item line. Using that verbatim didn't work, and neither does my current code given below. Can anyone help? When looking in Application and User Management > Process Communication Errors, it says that there are three errors, which I'll give comments on:

 

1) 'Sales data or pricing terms not found for account' --- I don't think this is true, as there are consistent CIRs in the system using the same buyer party and sales unit;

2) 'Payment terms not determined, maintain sales arrangement' --- it doesn't say anything about this being necessary in the repository;

3) 'Mandatory list price missing' --- it's clearly not, as you can see from my code.

 

Script file is mass-enabled, in case anyone's wondering why there's a 'foreach (var plan in this)' loop --- the idea is, eventually, to have it read in data from an uploaded XML file and create invoices based on that data, but for now I'm just trying to get a proof of concept.

 

 

CIR Creation.png

Mass reassignment of Activities

$
0
0

I would like to develop a solution to allow the mass reassignment of activities in a similar way to "Assign to agent" action works on tickets. Is this possible within the SDK?

 

Thanks,

John

Checking connecion to OData URL fails (Ping fails)

$
0
0

Dear Experts,

 

after an external rest service integration via SDK and creation of a communication scenario and arrangement, I am not able to successfully ping this service. Via browser I don´t have any problems, I enter my user and my PW and get the odata result. The odata url has been generated from a custom sap hana database table. My goal is to replicate Service Products from SAP ByD into SAP HCP.

 

But when checking the connection to rest service, I get the following error message:

- Checking Connection failed

- Ping failed

- Anonymous

CheckConnection.jpg

 

I tried it with other REST-URL´s and every time I get the mentioned errors. No API Key is needed in this case, only User and PW.

Do you have any idea what the problems could be?

 

Best regards,

Rufat Gadirov

Calling REST Webservice - Native SSL Error

$
0
0

Dear community,

 

I would like to call a REST webservice form ABSL code.

 

I followed the instruction in the example from the Cloud Application Studio Guide: "8.14.5.7 Example: Consume REST Service"

 

When I execute the code I can see that there is a response with this content: "500 Native SSL Error - Error is logged with Tag: {00f7b5a7}"

 

I entered a trace Statement to log the request URL and I can call exactly that URL in a browser without getting an error.

 

The REST webservice is configured to use HTTS and do not use any authentication. Username and Password are delivered as URL Parameters.

 

It would be great, if someone has an idea what might be the problem.

 

Kind regards,

Christine

Viewing all 1333 articles
Browse latest View live


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