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

How to query clients with address but no GeographicalLocation?

$
0
0

Hello there!

 

Is there a way to query clients by elements and get all of them that HAVE address information but DONT HAVE geographical locations?

 

The objective here is to get these clients using an external service, use Google API to search the address, get the lat and long, then update it.


Thanks in advance,

 

Alexandre.


How to customize sending Email with different languages

$
0
0

Hi,

 

I am working on SAP Cloud fro Travel and Expense and i want to send the Email to Travel Agency with two different languages ( Englisg and German).

How can i do that ?

 

Thanks in advance.

 

 

Best Regards,

How to set ABC classification regarding YTD revenue field value under Customer Accounts

$
0
0

Hi friends, I want to set ABC classification of accounts regarding YTD revenue field under Customer Accounts.Is it possible to do so.

How can i do this using Cloud Application Studio(SDK).

Untitled.png

SAP Cloud SDK : Change Date format from YYYY-MM-DD to YYYYMMDD in XBO

$
0
0

Hi Experts,

 

We have created custom field in XBO with data type Date and we are sending this custom field to ECC from using replication.

When we select any date in Database it store YYYY-MM-DD format and it pass same format in HCI.

Now we need to change Date format to YYYYMMDD so is it possible to change date format?


Regards,

Mithun

How to retrieve a file (PDF) from a URL within SDK

$
0
0

Dear experts,

 

I'm calling an external web service in a customer extension for ByD. The response of this web service contains a URL to a PDF document.

Now the question would be how to read the PDF (base64 encoded) from that URL and store in ByD. Is there any get(URL) method available?

 

Any help is appreciated.

 

 

thanks in advance,

stephan

How to automatically print PDF document in the background?

$
0
0

Dear experts,

 

Let's assume you generate or retrieve a new file in a PDF format and you want to automatically print this PDF in the background without any user action on the UI.

Is there any way to automatically send such a PDF document to a pre-defined (hard-coded or configurable via UI) printer or printer queue and have it printed by just using coding in the SDK for ByD?

 

Any help on this issue would be highly appreciated.

 

 

thanks a lot in advance,

stephan

HTML Mashup Issue

$
0
0

Hello Experts,

 

While am trying to create a new HTML MASHUP am getting the below error .

"Failed to get the partner top folder due to wrong life cycle setting"

Any way how to fix this issue ? q9.jpg

Question on life cycle management

$
0
0

hello all,

 

for e.g. if a customer has went live, the solution is assembled.

 

We will need to patch the assembled solution if there are any changes.

 

In a case where the customer has went live, and they want to go into a phase two development. So the assembled solution is patched and developers start to work on the patch solution for Phase 2.

 

If there is an error in the production tenant and there needs to be a immediate fix in the solution, then how do we bring the fix into the production immediately? Because developers are still working on Phase 2 development in the patched solution.

 

Any ideas?


Edit Time Sheet

$
0
0

I am trying to add a Field to the Time entries Section of the Edit time sheet I can extend the EmployeeTime BO but cant seem to find the following screen for modification.

 

Capture.PNG

How to add a button to the advancelistpane of the standard screen

$
0
0

Hi Expert,

 

 

I have one  query about how to add a button to the standard screen(service request). In more detail I have to add a button to the advancelistpane of the standard screen(service request) but there is no option to add OBN button or custom action through extensibilty explorer by extending the object. So is there any other way to add a button to the advancelistpane of the standard screen.

 

Thanks,

Abhishek

XML Load is not working for Custom BO

$
0
0

Hi All,

 

Its Strange xml load is not working this time in my code....

 

I had developed a Bo and tried of loading the BO instance in mass using xml file input. To do this I followed the steps in this way.

 

1) Created a BO and the structure is as follows:

 

 

2) On above of this I had created a service integration and in this I had selected xml file processing. The created schema and others is as follows

 

 

 

 

3) After this I had imported this xml schema into an Excel sheet and that excel sheet looks in the following way. In thsi the creation date is today (2014-02-12) and for test purpose a single record is sent to the system as input.

 

 

These are the fields used from the xml schema for the columns shown above....

 

 

4) Next to this I have exported back this into xml schema after filling the excel with one record. After data the XML schema looks like as following

 

<MessageHeader>

        <CreationDateTime>2014-02-12T14:20:00Z</CreationDateTime>

    </MessageHeader>

    <List>

        <CatalogAssignment_Massload>

            <ID>1</ID>

            <ProductType>Raw Material</ProductType>

            <ProductID>RF_001</ProductID>

            <MaterialDescription>Test Product for MassLoad from Excel</MaterialDescription>

            <CatalogID>123456</CatalogID>

 

5) After this is done I went to the system and in the work center of Application and User Managment, the view File Input is selected and next to this

 

 

I have added the xml which is holding data and exported from excel sheet after filling with some test data.

 

 

Next I have scheduled a job immediately with this file and it is successfully done with no errors

 

 

 

 

Now after completing this I am unable to find the loaded instance through xml in my custom BO.

 

It is very strange for me why it is not working this time to me. Previously for one of my code I have processed it in same way and it worked for me there but now I am unable to see the instance. Kindly can any one help me out where I am going wrong by seeing my attached screens.

 

 

Regards..
Hanu K

How to customize sending Email with different languages

$
0
0

Hi,

 

I am working on SAP Cloud fro Travel and Expense and i want to send the Email to Travel Agency with two different languages ( Englisg and German).

How can i do that ?

 

Thanks in advance.

 

 

Best Regards,

Network Chart or Hierarchical Graph example

$
0
0

Hello colleagues?

 

Did anyone try to use NetworkChart or Hierarchical Graph component in Studio? Do someone have any example or tutorial?

 

I'm trying to visualize a custom object document flow, but the solution described here  - ByDesign 1508 Release: PDI enablement of Business Document Flow feature - works only for Business By Design but not for Cloud For Customer.   So, I'm looking for any example how I can use standard components.

 

Thank you!

 

Alexey

Reading value from standard field

$
0
0

Hello Experts,

 

I am relatively new in C4C and I start to learn the technical side. However I am having a problem to make a solution for this case where I need to find out whether the agent that is assigned to the service request is available or not. The availability will be determine from the schedule maintained in the appointment. If the agent is not free, then the ticket would be assigned to someone else.

 

My questions would be :

1. Logically I think I would have to write a method to get the processor of a ticket. How is the retrieve actually work? Is there an easy way to know which is the value of the standard field? I looked at the repository explorer and I am guessing that this is what I would need. So the main question is how would i write it so that I can get who is the ticket assigned to? The retrieve did not show me the option of the for the processor.

processor.PNG

 

2. If I could retrieve the value of the ID, then I would have to read his/her appointment. Do I use association for that? How would I link everything together for now? I am currently having 1 bo only, should I extend them?

 

Many thanks,

Martin

Storing PDF-File from Webservice-Result as Attachment

$
0
0

Dear communinty,

 

I invoked a REST web service call to get a PDF file from a server. The web service call itself works fine and I get a response.

Now I want to store this PDF file in an attachment folder of the Outbound Delivery. Getting the attachment folder, creating the file and all that stuff works fine as well.

But when I try to get the PDF file from ws_result and put it into the BinaryObject part of the file in the attachment folder, it seems that something breaks in the Cloud Studio.

For some reason I only get a blank PDF file.

 

Here's my coding:

 

var ScenarioName = "Scenario";

var ServiceName = "Service";

var HttpMethod = "GET";

var HttpResource = "";

var ContentType = "application/pdf";

var Body = "";

var HeaderParameter : collectionof NameAndValue;

var URLParameter : collectionof NameAndValue;

var URLParameterEntry : NameAndValue;

  1. URLParameterEntry.Name = "code";
  2. URLParameterEntry.Value = code;
  3. URLParameter.Add(URLParameterEntry);

 

var ws_result = WebServiceUtilities.ExecuteRESTService(ScenarioName, ServiceName, HttpMethod, HttpResource, URLParameter, HeaderParameter, ContentType, Body);

 

var attachmentFolder = this.ToRoot.AttachmentFolder;

if (attachmentFolder.IsSet())

{

var stdDoc : DocumentTypeCode;

stdDoc.content = "10001";

 

var binObj : BinaryObject;

binObj.mimeCode = "application/pdf";

binObj.content = Binary.ParseFromString(ws_result.Content); //ParseFromBase64String(ws_result.Content);

 

var desc : Description;

desc.content = "Label";

 

attachmentFolder.CreateFile(stdDoc, "Label.pdf", "label_to_print", desc, binObj);

}

 

I also tried Binary.ParseFromBase64String(ws_result.Content) instead ot ParseFromString, resulting in a file that can't be read at all. With ParseFromString at least the PDF file can be read, but since it's empty, I cannot make any use of it.

Also I checked the URL and the WebServer. The URL I'm using for the web service call works fine and it'll return the correct label as PDF in the browser as well as in SOAP UI.

Also I receive some content in the Cloud Studio, it just seems that either this content is already corrupted, or putting it into the binary object does some harm to it.

 

Is there anything I'm missing or doing wrong here?

Any help would be really appreciated.

 

 

Thanks a lot in advance,

Christine

 

PS: Just in case you wanna have a look at the URL or the PDF, or maybe even want to try it on your own, here's the URL I'm using: http://test-intraship2.dhl.com:80/cartridge.61_TZA/WSPrint?code=22B2158E295CC514791E78FB4E938A4A0BCF27D711096DBF. Since this is a test label, it may be invalidated in the next couple days.


How to deal with context dependant code lists?

$
0
0

Hi ByD studio forum,

recently one of the ByD solution partner raised an interesting questing regarding context dependant codelists. I create this thread to share the question and the answers (provided by Thomas Schneider) to it with the community.

Most of the ByD codelists are context independant and contain a list of unique values. Some of the codelists (i.e. WorkAgreementAdministrativeCategoryCode) are context dependant and the code value is only unique within a certain context, i.e. country, region.

 

Example - WorkAgreementAdministrativeCategoryCode:

 

List IDCode ValueDescription
AT1Hourly
AT2Salaried Employee
AT3Manager
AU1Hourly
AU2Salaried Employee
AU3Manager
BE1Hourly
BE2Salaried Employee
BE3Manager
BR1Salaried Employee

 

 

In a custom BO a element typed with an context dependant codelist is defined and should be placed on a custom UI.

 

import AP.Common.GDT as apCommonGDT;

 

businessobject CodeListMapping_Test {

 

             element CustomerWorkAgreementAdministrativeCategoryCode : WorkAgreementAdministrativeCategoryCode;

 

}

 

 


In UI-Designer however is the required ListID not available by default:

CodeList_UIDesigner.gif

 

 

 

So how can a ByD studio developer deal with context dependant codelist?

 

 

Best regards,

Ralf

SCM and PurchaseOrder Workaround

$
0
0

Hi,

 

Can I have some advice please? Our requirement is as below.

 

1.Create SalesOrder 1 (wiht Internal source of supply) and release.

2. Run Supply Planning for SalesOrder 1 ordered products.

3. Supply Control -> Process Purchase Proposal -> Release -> PurchaseRequest is created

When we create Purchase Order from that Purchase Request, is there has some workaround to know original SalesOrder 1.

 

Because we have some custom extension fields in SalesOrder and we need to take that fields to Purchase Order.

 

Thanks and Regards, May.

Web Service Attachment

$
0
0

Hi,

 

I've created a web service using the BO CompanyPaymentFileRegister, this allows me to upload bank statements and other bank documents into ByD.

Unfortunately I can't get it working, if I send this request

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">   <soapenv:Header/>   <soapenv:Body>      <glob:CompanyPaymentFileRegisterCreateRequest_sync>         <CompanyPaymentFileRegister>            <IncomingFile>               <HouseBankInternalID>10000210</HouseBankInternalID>               <ContentTypeCode>1</ContentTypeCode>               <BankStatementFormatCode>HT</BankStatementFormatCode>               <AttachmentFolder DocumentListCompleteTransmissionIndicator="false" ActionCode="01">                  <Document DocumentListCompleteTransmissionIndicator="false" ActionCode="01">                     <CategoryCode>2</CategoryCode>                     <TypeCode>10001</TypeCode>                     <MIMECode>text/csv</MIMECode>                     <Name>Bank Statement</Name>                     <FileContent ActionCode="01">                        <BinaryObject mimeCode="text/csv">Base64 Encoded CSV Bank Statement</BinaryObject>                     </FileContent>                  </Document>               </AttachmentFolder>            </IncomingFile>         </CompanyPaymentFileRegister>      </glob:CompanyPaymentFileRegisterCreateRequest_sync>   </soapenv:Body></soapenv:Envelope>

Then I get this response.

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">   <soap-env:Header/>   <soap-env:Body>      <n0:CompanyPaymentFileRegisterCreateConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:K7Q:/1SAI/TAS4B7E7609F6E83618F23B:804">         <Log>            <MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>            <Item>               <TypeID>006(/FOP_CPFR/)</TypeID>               <CategoryCode>INC.BOI</CategoryCode>               <SeverityCode>3</SeverityCode>               <Note>Company missing</Note>            </Item>         </Log>      </n0:CompanyPaymentFileRegisterCreateConfirmation_sync>   </soap-env:Body></soapenv:Envelope>

 

I am using a custom bank statement format (format code HT) which works fine when I upload a bank statement in ByD.

The CompanyID is determined by ByD when you upload it apparently.

 

Anyone got any suggestions?

 

Many Thanks,

Will

Approval process workflow for Customer XBO

$
0
0

Hi experts,

 

We have a client requirement which asks for multilevel approval process for Accounts (when a new Account is created/ existing Account is changed). As per my knowledge, there is no standard approval process defined for Customer XBO as of now by SAP.

Also, if the Account creation/modification is 'Rejected' by any manager, then how will the Account be reverted back to its original version? (kind of a rollback)

 

I had raised an incident for this asking the SAP team whether they will be adding any approval processes for Customer BO in the near future C4C releases. But they do not have any plans of implementing it sooner.

 

They suggested a workaround as follows:

Add 1 extension field "approval status code" in Account with code values:

1 - To be approved by L1 manager

2 - Approved by L1

3 - Approved by L2......etc for more levels of approval

 

Reverting 'Rejected' Account to previous state is not possible via PDI. In principle you would have to read the changehistory data and revert to the state before the change was done. But the changehistory BO is/will not be PSM released.

 

Any workaround or suggestions on how can I go about implementing this requirement? I need to put validations like L2 can approve only after L1 approval.

 

Please guide and help.

 

Thanks,

Ambuja Prabhudessai

Persistent Systems Ltd.

How to access Header of a SOAP call in SDK?

$
0
0

Dear community,

 

I want to access a SOAP web service from DHL via SDK in ByD. I uploaded and activated the WSDL and XSD files, I created the Communication System and Communication Arrangement and I can add content to the request.

Now the issue is, that the web service has 2 pieces of authentication. The regular username/password for the web service endpoint. This I provide in the Communication Arrangement. But in addition, I need to add 3 entries to the header of the request that will carry additional information about the user.

 

The request would in the end look like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cis="http://dhl.de/webservice/cisbase" xmlns:de="http://de.ws.intraship">
<soapenv:Header>
   <cis:Authentification>
     <cis:user>geschaeftskunden_api</cis:user>
     <cis:signature>Dhl_ep_test1<cis:signature>
     <cis:type>0</cis:type>
   </cis:Authentification>
</soapenv:Header>
<soapenv:Body>
   <de:CreateShipmentDDRequest>
     <ShipmentOrder>
...
   </ShipmentOrder>
</soapenv:Body>
</soapenv:Envelope>

 

My problem is now, how can I add the header fields? The web service definition in the ByD SDK seems to only grant access to the Body, starting with CreateShipmentDDRequest.
Is there any way to access the SOAP header before I send the request? And how would I do that?

 

Any help on this issue would be really appreciated.

 

 

Thanks a lot in advance,

stephan

Viewing all 1101 articles
Browse latest View live


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