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

Restrict OVS Entries Based on Field Value

$
0
0

Hello everyone,

 

I've had a look at this section of the SCN for help before posting here --- none seemed to quite fit the bill. Apologies if pre-existing help for this already exists.

 

I'm modifying the 'projects' WorkCentre for a customer: they have a Customer Contact field which I've added to both the project creation and project overview screens, and turned into an OVS which was easy. They now have an additional requirement --- filter that OVS based on the company named as the buyer on the project creation screen. In theory it's pretty simple --- only show those contacts who have the same company as field X --- but I can't figure out how to go about it. Is there a simple bit of Ruby script to filter this? Do I need to create a custom OVS and do some ABSL scripting? Any help would be appreciated.

 

Lewis


Cannot create AttachedFile for InboundDelivery with ABSL

$
0
0


Hi, experts.

       What I want to do is to transfer the attach files from my custom BO to InboundDelivery.

 

       I have created a custom BO with a BO action. I also have an AttachmentFolder node"ItemAttachement".

       In the BO action, I have written these codes.

 

instInboundDelivery = InboundDelivery.Create(elInboundDelivery_Root);

if(this.ItemAttachment.Document.Count()>0){

    dTypeCode=this.ItemAttachment.Document.GetFirst().TypeCode;

    dName=this.ItemAttachment.Document.GetFirst().Name;

    dAltName=this.ItemAttachment.Document.GetFirst().AlternativeName;

    docDescription=this.ItemAttachment.Document.GetFirst().Description;

    docBinaryObject.content=this.ItemAttachment.Document.GetFirst().FileContent.BinaryObject.content;

    docBinaryObject.mimeCode=this.ItemAttachment.Document.GetFirst().FileContent.BinaryObject.mimeCode;

    if(instInboundDelivery.AttachmentFolder.IsSet()){

     instInboundDelivery.AttachmentFolder.CreateFile(dTypeCode,dName,dAltName,docDescription,docBinaryObject);

       }else{

     var attFileInstance=instInboundDelivery.AttachmentFolder.Create();

      instInboundDelivery.AttachmentFolder.CreateFile(dTypeCode,dName,dAltName,docDescription,docBinaryObject);

    }

   }

 

But it is not working. The attach files cannot be saved in InboundDelivery.

 

Regards,

Fred.

How to Align the fields in the UI

$
0
0

Hi All,

 

I have a requirement that fields should be left aligned.

As in UI i have followed the same procedure, in the property i have disabled the right align but then also it is coming in the middle.

 

Can you please suggest.

 

Thanks & Regards,

Malkit Singh

SAP Cloud SDK : Assemble and Download Patch Solution and Upload into Production

$
0
0

Hi Experts,

 

I have create custom solution and i have Assemble and Download the solution and uploaded into production system.

After that I have some changes so I have created patch version in Test system and do changes.

 

I need to know how to upload patch version into production system.

 

Regards,

Mithun

C4C IPad App: Rendering multiple Advanced List Panes in one EC

$
0
0

Hello Experts,

 

we have implemented an Embedded Component with 2 Advanced List Panes. We added the Embedded Component to the Contact Person TI in SAP C4C. In the HTML5 UI the component works as expected. But unfortunately in the IPad App the UI is not rendered as expexted / as in SAP Standard.

 

Our own Embedded Component with the 2 Advandced List Panes is rendered in the IPad as displayed below:

 

17-04-2015 14-06-45.jpg

 

One Problem is, that we have only one "Add"-Button (but we defined one for each Advanced List Pane).

 

Additionally the UI is not rendered in the SAP C4C Standard look and feel. Below the Standard Facet "Activities" of the Contact Person TI is displayed, which has 4 Advanced List Panes (Appointment, Task, E-Mail, Phone Call).

 

17-04-2015 14-53-54.jpg

 

In the SAP Standard an Shuffler / DropDown is created which has one entry for each Advanced List Pane. The functionality of the "Add"-Button depends then on the selected entry.

 

Below you can find two Screenshots of the implementation:

 

  • We have set for the EC the Flags
    • Device -> Desktop
    • Device -> Tablet
  • The Advanced List Panes are linked to an Custom BO.
  • For the "Add"-Button functionality, we have used ListModifcationForms

 

17-04-2015 14-15-49.jpg

 

17-04-2015 14-27-26.jpg

 

 

 

What steps are necessary, that the Embedded Component behaves / is rendered as in the SAP Standard? Are there any examples, guides, etc. ?

 

 

I am grateful for any support.

 

Thanks and Regards

 

Steffen

Consume internal web service

$
0
0

Hello Everyone,

 

I need to consume an inbound C4C web service internally. Is it possible?

 

My requirement is to create Marketing Leads internally. I tried to use the Business Object "Lead" but there are a lot of fields that are marked as read-only, so I thought of using the web service "ManageMarketingLeadIn" which have more fields available to fill in.

 

Kind regards,

 

Bruno

SAP Cloud SDK : Read Product Description Using QueryByDescription

$
0
0

Hi Expert,

 

I have create custom solution with ProductID and Product Description.

I have assign public OVS productId to Product ID field and on event AfterModfy i have implemented code as below.

 

var query = Material.QueryByDescription;

var resultData = query.Execute();

// 2. Selection

var selectionParams = query.CreateSelectionParams();

selectionParams.Add(query.ProductID.content, "I", "EQ", this.ProductID.content);

resultData = query.Execute(selectionParams);

 

I have 22K product in system.

Can anyone help me what I can do because when i read the product description its Loading ......message and give exception.

 

Regards,

Mithun

Show ToBeInvoicedPeriod of InvoiceSchedule on Screen

$
0
0

Hello everyone,

 

i would like to show the fields StartDate and EndDate of the InvoiceSchedule Item on the SAP Screens for SalesOrders and CustomerContracts.

The detailed paths are

CustomerContract.InvoiceSchedule.Item.ToBeInvoicedPeriod.StartDate

CustomerContract.InvoiceSchedule.Item.ToBeInvoicedPeriod.EndDate

 

I tried to enhance the OIF-Screen for contracts with the extensibility explorer, but there is no anchor available for the invoice schedule.

 

Then i tried to create an embedded component with the detailed invoice schedule Information and show it in the oif, but the invoice schedule fields are always empty on the screen. Maybe there was something wrong with the mapping.

 

Has anyone an idea how to show these fields on the screen?

Is it possible to do that with an embedded component or is there another option, that i havn't considered yet?

 

Kind regards,

Christine Toblier


SAP Cloud SDK : Assemble and Download Patch Solution and Upload into Production

$
0
0

Hi Experts,

 

I have create custom solution and i have Assemble and Download the solution and uploaded into production system.

After that I have some changes so I have created patch version in Test system and do changes.

 

I need to know how to upload patch version into production system.

 

Regards,

Mithun

How to make Header fields enabled for the Restriction from UI

$
0
0

Hi All,

 

Although i have created anchor for the UI header fields but then also its coming as grayed out while working in the adaptation for restriction.

below is the screen shot:

 

Header Fields.png

 

Can you please suggest?

 

Regards,

Malkit Singh

How to trigger a custom webservice from C4C to ECC

$
0
0

Hi,

 

I want to add a button in Sales Quote and when clicking it, it has to trigger a webservice to ECC, pull the data from ECC and put in a field in sales quote.

 

I have found an are where i can add a button and now the question is how i can trigger a webservice from C4C using Development studio.

 

P.S. HCI is used for the integration and I am new to cloud development.

 

Thanks and Regards,

Ajith Jesuwaram

Update new entries in BCO View

$
0
0

Hello Experts,

 

I have created a Business Configuration Object (BCO) with a BCset and a BC view which I have added to the Fine Tuning.

However, the data which we have to enter is more. Is there any way to import the data in the BC view using an excel sheet?

I created another custom BO with same elements as the BCO and wrote the following code in the before_save event of the BO.

 

var building1:elementsof BUILDING1;  // This is the BCO

 

building1.BUILDNO.content = this.building;

 

building1.LOCNO.content = this.location.content;

 

building1.TEXT.content = this.description;

 

BUILDING1.Create(building1);


 

However I get the error "BCO Node Root is not part of the worklist".

 

Any Idea on why this error is coming up or is there any other way to do this.

 

 

Thanks and Regards,

Sumeet Narang

Using a SOAP Web Service [PHP]

$
0
0

Hello,

 

I created a web service in the Cloud Application Studio for a custom Business Object I made.

I now want to create a new instance of this B.O. by using an HTML Form and PHP.

 

I tested the web service using SOAPUI and successfully created a new instance of the object.

 

However, when trying to do this through a HTML Form using PHP, I get following error message:

 

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://my307371.crm.ondemand.com/sap/bc/srt/scs/sap/yygyhi4a8y_webtoleadservice?sap-vhost=my307371.crm.ondemand.com' : failed to load external entity "https://my307371.crm.ondemand.com/sap/bc/srt/scs/sap/yygyhi4a8y_webtoleadservice?sap-vhost=my307371.crm.ondemand.com" in C:\xampp\htdocs\WebToLead\sendToC4C.php:58 Stack trace: #0 C:\xampp\htdocs\WebToLead\sendToC4C.php(58): SoapClient->SoapClient('https://my30737...', Array) #1 {main} thrown in C:\xampp\htdocs\WebToLead\sendToC4C.php on line 58

 

I'm currently trying to use following PHP-code:

 

//Setup SOAP Client      $url = "https://my307371.crm.ondemand.com/sap/bc/srt/scs/sap/yygyhi4a8y_webtoleadservice?sap-vhost=my307371.crm.ondemand.com";   $client = new SoapClient($url);      //Create Header      $auth = new Authentication($username, $password);   $header = new SoapHeader("http://0003427388-one-off.sap.com/YGYHI4A8Y_", "Authentication", $auth, false);      //Call Funtion   $result = $client->__soapCall("Create", array(         "WebToLead" => array(              "LeadID" => $ID_in,               "ProductName" => $PRODUCTNAME_in,               "ContactName" => $CONTACTNAME_in,               "ContactEmail" => $CONTACTEMAIL_in,               "CreationDate" => $CREATIONDATE_in         )   ), NULL, $header);      //Result   echo "<pre>".print_r($result, TRUE)."</pre>";   if ($result->Create->Status == "Success") {          echo "Lead created.";          }

I think I might be using a wrong URL for the web service.

Does anybody know where u can find the correct URL for your created web service?

 

Thanks!

SAP Cloud For Customer Account 360 Setup

$
0
0

Hi Experts,

 

Please I Need Very Urgent Help regarding the Setup Account 360 Connection with CRM.

 

I have configured the Cloud System as well as CRM System mention in Account 360 Guide like ( Download Web Service From Cloud , Create Client Proxy in CRM , Create Logical Port In CRM , Create ZReport in CRM).

 

But When We check the Connection in SM59 with Connection Type "G" of Auto Generated RFC i am getting the below error in ICM trace.

 

So can you please check the below screenshot and anyone have idea how to resolved this error.

 

ICM error Trace :

 

1.JPG

 

RFC Connection Details with Error in Status bar :

 

2.JPG

Login & Security

 

3.JPG

Special Option

 

4.JPG

 

Please kindly anyone have idea about this error or Setup and Connection of Account 360 shared with me so i can resolved this issue asap...

 

Many Thanks

Mithun Suthar

HTML Mashup works fine in Silverlight, but not in UI5

$
0
0

Hello,

we are building an integrated Customer Service Management solution for a Client of ours, via the SAP Cloud for Customer platform (solution for Services).

 

Currently, we are trying to embed some external Business Process activities in our Service Tickets UI Screens, by using HTML Mashups. Our reference has been the standard Cloud Application Studio documentation, and some well-written articles here on the SCN, such as the following: http://scn.sap.com/community/business-bydesign/studio/blog/2014/02/24/html-script-mashup--launched-from-an-embedded-component by Vinita Sinha.

 

In our solution, the HTML Mashup has been connected via a Port Binding interface to the C4C UI Layer, in a way to pass it some relevant information such as the Ticket ID, the Customer ID and the Cause Category ID, as shown in the picture below:

 

message-1.png

 

We built a custom Port Binding object, but if you use the Standard "Ticket Information" port Binding (in category "Productivity & Tools"), the effect will be the same.


The Standard Port Binding we used in the Mashup Authoring configuration floorplan is the following:

2015-04-22 11_50_13-HTML Mashup Overview_ SEOD_PrototypeTab_HMU - SAP Cloud for Customer - Internet .png

 

In addition, we discovered that, in our case, this Mashup development works just in Silverlight Web Interface, but not in UI5. While in Silverlight we are able to consume and correctly interact with our Mashup, in UI5 we can see just an empty pane stuck at the initial "Loading..." screen, as shown below:

 

2015-03-31 17_47_01-91 - SAP Cloud for Customer.png

 

We opened an incident with the SAP Support for our system, and we have been told to try to build the Mashup can work just with no Port Binding specified. Indeed, if we remove the Input Port Binding from the Mashup configuration, the screen seems to work fine even in UI5, as shown below:

 

message-2.png

 

Unfortunately, this technical constraint does not cover sufficiently our Business Scenario, because the Mashup should be initialized with our Service Ticket (and Customer) data.

 

Has anybody ever experienced this kind of issue? And how did you solve it?


If it has no resolutions, is there available any possible workaround?

 


Thanks a lot for your contributions.

 

Cheers,

Davide


SAP Cloud For Customer "Account 360 Setup"

$
0
0

Hi Experts,

 

I have requirement of "Setup Account 360 Setup" .

 

I hav follow the guide on cloud help center and configure the on-premise system as well as cloud system.

 

but when i check for the connection from on-premise system to cloud using Ping Test (Connection Test From SM59) it gives error as shown below.

 

"SRT Framework exception: Service Ping ERROR: Error when calling SOAP Runtime functions: SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED"

 

1) What is the prerequisite step(configuration) in on-premise system ?

2) What is prerequisite step(configuration) on cloud tenant ?

 

kindly help me if anyone have already configure the Account 360.

 

Many Thanks,

Mithun

'Please activate and check in the object MM_05.xdp'

$
0
0

Hello everyone,

 

I've got a solution I want to deploy to a customer's live system. Unfortunately, during the check phase of the assembly it fails, stating the error 'Please activate and check in the object MM_05.xdp'. My solution involves a single extension field which has been placed onto a form --- my guess is the error related to this, as I know .xdp is a form object type. Initially I thought that maybe the solution had acquired some error or whatever over its not inconsiderable life, so I copied down the code and recreated the solution in a new one. However, this new identical solution also had the same error despite being only a couple of hours old so my guess is that there's some problem with it assembling a solution which has a field on a form in it.

 

Has anyone come across something like this? I don't think I can just assemble the solution without putting the extension field on the form, assemble it, stick it in the customer's live system and then tack the field on the form because as far as I'm aware code in live systems is read-only. I'd quite like to get this done and dusted, so any help would be appreciated, thanks.

 

Lewis

 

EDIT: Yes, I have checked in all files and activated them. Running the 'clean' command on all files and runtime objects produces the same error message.

How to configure Appointment, Phone Calls,Task and Emails

$
0
0

HI All,

 

I have requirement to build the Appointment, Task, Phone Calls and Emails as in the standard.

Same like it is available in the Opportunity Sales Activity.

 

Can you please suggest how to configure the same

 

 

Thanks & Regards,

Malkit Singh

SAP Cloud For Customer Account 360 Setup

$
0
0

Hi Experts,

 

Please I Need Very Urgent Help regarding the Setup Account 360 Connection with CRM.

 

I have configured the Cloud System as well as CRM System mention in Account 360 Guide like ( Download Web Service From Cloud , Create Client Proxy in CRM , Create Logical Port In CRM , Create ZReport in CRM).

 

But When We check the Connection in SM59 with Connection Type "G" of Auto Generated RFC i am getting the below error in ICM trace.

 

So can you please check the below screenshot and anyone have idea how to resolved this error.

 

ICM error Trace :

 

1.JPG

 

RFC Connection Details with Error in Status bar :

 

2.JPG

Login & Security

 

3.JPG

Special Option

 

4.JPG

 

Please kindly anyone have idea about this error or Setup and Connection of Account 360 shared with me so i can resolved this issue asap...

 

Many Thanks

Mithun Suthar

Disable Advanced Listpane button with Calculation Rule

$
0
0

Hello everyone,

 

I'm trying to disable a button on an Advanced Listpane using a Calculation Rule.

 

This is my advanced listpane:

 

AdvancedListpane.png

The button I'm trying to disable is the "Copy"-button.

It has to be enabled when the row is active, meaning "Inactive" = false and disabled when the row is inactive, meaning "Inactive" = true.

 

As you can see, the button is now always disabled, even for active rows.

I'm currently trying this Calculation Rule code, but obviously it doesn't work:

 

CalculationRule.png

Is what I'm trying even possible?

And if so, what am I doing wrong here?

 

Thanks & Regards,

Glenn

Viewing all 1333 articles
Browse latest View live


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