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

Call Modal Dialog Box from SDK

$
0
0

Hello,

 

Is it possible to call modal dialog box via ABSL scripting?

 

My scenario is to have a modal dialog box on Save of standard BO based on some condition. The Modal dialog box will have "Yes" or "No". Based on "Yes", I have to do some logic around it before Saving.

 

Or Is it possible to call popup on change of dropdown value?

 

Any help would be appreciated.

 

Thanks.

 

Regards,

MB


complete list of objects in libraries - where?

$
0
0

Hello

 

can you please point me where can I find a complete object hierarchy / tree of objects such as:

AP.FO.*

AP.Common.*

AP.PC.*

 

To be more specific, I have to extent "Opportunity" object and need to import appropriate object hierarchy.

 

Thanks!

SAP C4C SDK - Dynamic notes field for Accounts

$
0
0

Hello All

 

I am trying to add new notes field in standard Accounts screen as an EC. And trying to pass the notes field from script. I m stuck with the below things pls assist me.

 

1. I have used TextEdit as notes field in EC. Here I dono how to add newline separator through code or through properties

2. I m trying to add sticky notes dynamically from script - is this possible?

3. I m trying to have my notes in advancedlistpane and tried to group it - is grouping helpful only for mathematical operation?

 

Please help me

 

Thanks & Regards

Swadini S

Cretae Event-afterModify at Business Object Extension Activate Error

$
0
0

Hi, experts

 

I Extend custom field on Customer, I create script file AfterModify

activate Event-AfterModify is OK

but activate XBO show error

 

 

2016-2-26 下午 05-55-06.png

 

Excuse me, How can I do to use aftermodify.absl at customer's XBO object

 

 

regard,

Daniel.

Dynamic dropdown change value, child dropdown list still old value

$
0
0

Hi experts,

 

I create two BCO(city, town), then define two element use it.

 

city

A

B

C

 

town

A1     A

A2     A

A3     A

B1     B

B2     B

C1     C

C2     C

C3     C

C4     C

 

I set codelist context mapping,

 

I chose A, then A1,A2,A3 only see, I chose town is A2.

Then I changed the city B, but the town is still A2. (direct click save is ok)

I think it is not the correct control.

 

Q1、It can be set to null or B1(the first data)

 

Q2、Also, can I write absl(event-afterModify) to control custom field properties(ex. Visible, Mandatory, Readonly...)

 

 

Regards,

Daniel

How to Query by KUT Field in an Stand. BO.

$
0
0

Hi experts,

 

I have the following situation,

 

I am extending a Customer Quote and Referencing Field from KUT.  The problem is with a Field what is necessary to check for duplicity.

 

The Field was defined like Text and not like ID, i am trying by ABSL code to query by this field but is not shown.

 

Problema de campo docuemnto.png

 

There is a way to check by a KUT field for duplicity ?

 

Thx!!!.

 

Regards Pablo.

Custom OVS - Field Groups in two columns

$
0
0

Dear SCN-Experts,

 

I have created a custom object value selector (for registered products) which works fine.

The only issue I have is the adaptation of the advanced search/find form panel. I need to create two different columns for my field-/section groups.

I have looked at the SAP Public OVS examples and those have these sections in two columns: Here is a screenshot:

RegProductOVS.jpg

 

This is my OVS where you can see only one column. Adding a further column doesn´t work here....

CustomOVSRegProduct.jpg

 

Thank you for your help!

 

Best regards,

Rufat Gadirov

ABSL library overwritten by Date

$
0
0

Hello SAP community,

 

In one of my event scripts, I created varDate and activated this.

Now my script complains with this error:

 

Identifier 'Date' is available in multiple namespaces or object types. Use an additional qualifier to make the identifier unambiguous.

 

Therefore now I have to explicitly define the namespace when I use Date functions as a workaround.

 

var formatDate2 = ABSL:Date.ParseFromString("20160225");

 

 

Is there any way to correct this?

 

 

Thanks in advance,

Vincent


Extend Custom Field (similar Account), but can't only display value

$
0
0

Hi experts,

 

I extend field at Opportunity, similar Account, can use OVS select Account data

Code:

2016-3-1 下午 02-25-16.png

 

and on TI Screen


2016-3-1 下午 02-26-57.png

 

 

then 「Change ID-Field Configuration」

set OVS Comonent, Presentation Mode = DescriptionOnly, Configure OBN


2016-3-1 下午 02-28-53.png

 

Now, I can use OVS select Account data, the field can click link Account Screen

2016-3-1 下午 02-31-40.png   2016-3-1 下午 02-35-51.png

 

But I hope to see the customer name, rather than the customer ID.

How to do to achieve my needs?

 

Best regards,

Daniel.

SAP ByD - Enhancement PDISetLegalClassCode

$
0
0

Dear experts,

 

 

I would like to set up number range format of invoice document base on my Thailand localization requirement. I have digged into the document to do the

 

Enhancement with  PDISetLegalClassCode  for accomplish this task. However when I have to write a code in

 

SET_LEGAL_CLS_CODE.absl which was generated from enhancement object creation. I can not use BusinessTransactionDocumentLegalClassificationCode  as it said there are other data type with the same name in different package.

 

 

2-28-2016 2-56-18 PM.jpg

 

Then I try to add a prefix to indicate that the data type should come from which package.

 

But It said  prefix AP is not found.

 

2-28-2016 2-58-02 PM.jpg

 

 

Could someone please share the way or an exmple of using this BADI Enhancement option ?

 

 

Best Regards,

Krit R.

Show Ecc ALV report result on Cloud

$
0
0

Hi experts,

 

I have a very special needs. Customer want to see a ECC ALV report (eg. Billing list) on the Cloud.

My idea is

1、create custom BO, define all alv field

2、upload(insert/modify data) all ALV result to Cloud (system auto upload)

3、create data source and define analysis report, let user to customize fields and conditions

 

Will this way, it is good?

Or other ways and steps to achieve?

 

 

Best regards,

Daniel.

SRTUTIL Tranaction

$
0
0

Hi all,

I have two activated services one for consumer an other like a service.

I am receiving :

 

Unable to connet to webservice SOAP:1.048 SRT: HTTP error: ("HTTP Code 500: SRT: Unexpected failure in SOAP processing occurred: ("No Web service configuration for this access path: "/sap/bc/srt/scs/sap/xxx_xxxclasifi"") - Details see in error log of transaction SRTUTIL

Any clue what is SRTUTIL and how can I use it.

Cheers Ognian

No WSDL for service Y01DE0AB5B90B21CE available.

$
0
0

Hi I have created , web service with communication scenario in application studio, and set agreement in C4C. I was working. but for some unknown reason it stops.

Everything is activated correctly but whenever I try to get the wsdl form communications agreements No WSDL for service II_Y01DE0AB5B90B21CE available.

Any clue?

Cheers Ognian

No "create screens" in context menu in Studio 1602 for BO and XBO

$
0
0

Hi, I took C4C30 in November and am now after a break trying to get back into Cloud For Customer development. And I am hitting a roadblock, as I cannot create anything "interesting" in the Studio. If I right click on a .bo or .xbo in the Solution Explorer, I can activate, and create script files, but the middle block of the menu I know from the course and from screenshots with entries like "Create screens" is missing. Do I have to activate something for that? I cannot find any info on a missing step...

 

Regards

Thomas

How to set color of individual cell of a column through absl script

$
0
0

Hi

 

I would like to know how to set color of individual cell of a column through 'absl script'.

 

What data type can be used to store color in the Business Object.

 

I tried it though ruby scrip using calculation rule. I was able to do so. But ruby scrip does not work on HTML 5.So couldn't continue with the same.

 

Regards,

Vandita


Embedded Component visibility based on UI Switch?

$
0
0

Is there an easy to setup visibility/Permissions on an embedded component based on a UI switch?

 

(other than binding to a Transient value set in code on the BO loading which will hide the Sections but not the complete EC)

Does anyone have sample code to auto generate Alternate key/ID field data

$
0
0

I looked through the reuse libraries and could not find a simple library to automatically generate alternate key (simple front end Alpha numerical ID field data).

 

I am looking for something similar to the identity function in SQL and then post processing/storing the value in the alternate key field.

 

http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server

 

Does anyone have an example/sample to auto create an alpha-numerical value and increment the numerical part by one for the alternate key field every time an instance of the BO is created? I know we have this in ABAP for core development but did not see this in Studio. Any work arounds with ABSL is ok with me.

 

Thanks,

 

Rei

Where to download Cloud Application Studio

$
0
0

Hi Exports,

I try to download cloud application studio in Market Place, but nothing has been found. Always I got 'No search results have been found'.

Could anybody tell me where to download that application? Many thanks.

Mass Update of Sales Quotes

$
0
0

Hi experts

 

I have a problem with sales quotes update.

 

I need to update 30,000 sales quotes, but using the migration tool is not possible to update and Mass data Maintenance functionallity has not option for sales quote.

 

We tried to use the migration template but i cannot know the SalesQuote  UUID.

 

I need to add a new party involved (approver role) in the parties involved  tab for these 30,000 sales quotes.

 

involucrados en la venta.png

 

 

 

There is another way to update the Sales quote?

 

I tried with a MDR but the BO dont´s appears.

 

 

Appreciate your help.

 

Thx.

How to retrieve “ProductTypeCode” by customer invoice UUID from “InputData.content” in BADI SET_LEGAL_CLS_CODE.absl ?

$
0
0

Hi

 

How to retrieve “ProductTypeCode” by customer invoice UUID from “InputData.content” in BADI SET_LEGAL_CLS_CODE.absl ?

If anyone have idea about this issue then please suggest me.

 

I am trying to develop BADI implementation of legal numbering for customer invoices

that I follow “How-To Configure Legal Numbering for Customer Invoices for a Non-Localized Country” document.

URL Reference: https://www.sme.sap.com/irj/sme/solutions?rid=/library/uuid/f0758deb-b6bb-3010-8888-fedbe49079dd

 

But I found an issue from step number 2.7 (Create new BADI implementation),

I cannot retrieve “ProductTypeCode” by UUID from the “CustomerInvoice” business object when I create customer invoice.

 

My source code of SET_LEGAL_CLS_CODE.absl.

/*

       Add your SAP Business ByDesign scripting language implementation for:

              Enhancement Option: PDISetLegalClassCode

              Operation: SET_LEGAL_CLS_CODE

 

              Script file signature

              ----------------------------

              Parameter: InputData of type UUID

              Returns: BusinessTransactionDocumentLegalClassificationCode

 

       Note:

         - To use code completion, press CTRL+J.

*/

importABSL;

importAP.CustomerInvoicing.Global;

 

varinput_uuid = InputData.content;

varqry = CustomerInvoice.QueryByElements;

var_sel = qry.CreateSelectionParams();

_sel.Add(qry.ID.content,"I","EQ","XX*");

 

varinv = qry.Execute(_sel).GetFirst();

 

varproduct_type_code;

if(inv.Item.OrderBy(n => n.ID).GetFirst().ItemProduct.IsSet())

{

product_type_code = inv.Item.OrderBy(n => n.ID).GetFirst().ItemProduct.ProductKey.ProductTypeCode;

 

}

else

{

product_type_code = "";

 

}

 

 

 

varresult : DataType::BusinessTransactionDocumentLegalClassificationCode;

 

if(product_type_code == "2" || product_type_code == "6")

{

  1. result.content = "32";
  2. result.listID = "TW";

}

elseif(product_type_code == "1" || product_type_code == "3")

{

  1. result.content = "31";
  2. result.listID = "TW";

}

else

{

  1. result.content = "36";
  2. result.listID = "TW";

}

 

returnresult;

 

 

Thank you in advance.

Viewing all 1333 articles
Browse latest View live


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