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

How to disable/enable extension fields dynamically using logic

$
0
0

Hello all,

 

I have created some extension fields in CoD using KUT. I want to disable these fields based on some logic. How can I achieve this?

I have tried using SDK by creating reference to these fields but they are not seen in the UI desiner or extensibility explorer.

 

Any help is appreciated.


How to see ADAPT created field in Studio

$
0
0

Hi.

 

I have a beginner question however i spent 6 hours and couldn't locate.

 

The scenario is that i added a field on Std. lead Quick create page in ADAPT mode and published it.

 

How do i locate that field when i connect from cloud studio in the configuration explorer ? Plz. guide.

 

Regards

apoorva

Excel Upload button for Custom Business Object.

$
0
0

Dear All,

 

I want to add a Excel Upload Button in my Custom Business Object.But i have no idea.

 

Please Help .

 

Thanks,

Manoj

Dynamic URL on click of Link UI element

$
0
0

Hello,

 

I'm trying to launch an URL in EventHandler on click of a Link UI element. I tried using OpenLink operation in EventHandler and it works fine if I enter hardcoded URL. But I would like to have dynamic URL based on the system. I've even tried writing code in AfterModify to generate dynamic URL and bind with the Data field in screen and bind that in operation. It does not work. The value comes as blank as I believe the AfterModify only triggers when there is any Changes in the screen.

 

I tried using Operation 'Script' to open url by giving the script code as shown below

$controller.OpenLink('https://www.sap.com')

 

When I use above controller method, even static URL also does not work when I click on the Link.

 

I've attached the screenshot. Could you please help me which approach can I follow to use dynamic URL launch?

 

Thanks.

 

Regards,

Mohan Babu

SAP Cloud SDK : Error While Save And Activate the Custom Action Code

$
0
0

Hi Experts,

 

I have create custom solution and create the business object sample as below:

 

import AP.Common.GDT as apCommonGDT;

import AP.FO.Activity.Global;

import AP.PC.ActivityManagement.Global;

import AP.CRM.Global;

 

 

 

businessobject TotalActvity  raises DateError, NotNull, NodeMsg , GenePDF , SendMail{

 

 

 

  message DateError text "Start Date &1 Not Greater than End Date &2 .": Date, Date;

  message NotNull text "Start Date and End date should be not inistal.";

  message NodeMsg text "Node Level Data Successfully Updated.";

  message GenePDF text "PDF Successfully generated with data.";

  message SendMail text "Email Send successfully with genetated PDF.";

 

 

 

  element Description : LANGUAGEINDEPENDENT_LONG_Text;

  element Start_date : Date;

  element End_date : Date;

  element All : Indicator;

  element Task : Indicator;

  element App : Indicator;

  element Phone : Indicator;

  element Email : Indicator;

 

  node AllAct [0,n] {

  element ActID : BusinessTransactionDocumentID;

  element ActDesc : EXTENDED_Name;

  element ActType : LANGUAGEINDEPENDENT_MEDIUM_Text;

  element ActStatus : ActivityLifeCycleStatusCode;

  element Actdate : GLOBAL_DateTime;

  element ActAcc : PartyID;

  element ActOwn : PartyID;

  [DependentObject(TextCollection)] node myNode;

  }

  [DependentObject(AttachmentFolder)] node Attachment;

  action AutoSendMail;

  action GenerateODF;

  action SendEmail;

  action UpdateActivity;

}

 

I have created the scripting file for the above custom action mentioned under the business object. I have write down the logic and when i save and activate i am getting the below error in each custom action :

 

Error:

 

Error13[Activate] Root: Error in activation of runtime objectTotalActvity-Root-Action-AutoSendMail.absl
Error14[Activate] Root: Error in activation of runtime objectTotalActvity-Root-Action-GenerateODF.absl
Error15[Activate] Root: Error in activation of runtime objectTotalActvity-Root-Action-SendEmail.absl
Error16[Activate] Root: Error in activation of runtime objectTotalActvity-Root-Action-UpdateActivity.absl
Error17[Activate] Root: Error in activation of runtime objectTotalActvity-Root-Event-BeforeSave.absl
Error18[Activate] Syntax error in generated ABAP methodTotalActvity-Root-Action-UpdateActivity.absl

 

I am using the SAP SDK 1411 version.

 

Can anyone help me how to solve this issue or whats wrong solution or code?

 

Many Thanks,

Mithun

Dynamic PDF generation using Adobe LiveCycle

$
0
0

Hi,

 

I have a table containing only rows. But Can I generate a pdf  with dynamic rows that is a row should get added at runtime if the data varies.

 

 

 

 

 

 

 

Regards,

 

Vijaya Chavan

How to use the URI in email activity?

$
0
0

Hello ByD experts,

 

I am trying to send an email to employees but the problem is the email activity use the Business Partner ID and not the Employee ID. And the customer does not want to maintain the Business partner data where the email comes from.

So I wanted to set directly the email in my code using the URI, but I did not succeed in that.

When I try to set the association insEmail.MessageToParty.....URI.Content = mailto:my@email.com, it tells me the mailto is not a viable alias.

And when I use double quotes, it tells me EmilURI can't be set to a String, which seems normal.

 

If somebody know how to set the email URI directly in ABSL, it would be awesome.

 

Thank you all for your attention.

Best regards.

Jacques-Antoine

Name custom BO, BO attribute and floorplan names as Z*

$
0
0

Dear All,

 

I've seen these practices in one partner's SDK solution. I'm wondering if this is going to cause any issues in the future.

Is there any guidance on this?

 

Thanks,

Weiqiang


A linked image to an object

$
0
0

Hi,

 

I need to upload a picture at the moment an object is being created from the QA. I'm using a "File upload" component, but i can't see the file in the OWL when I create the instances.

 

This is because i need to create objects with a linked image.

 

Regards

Extension Field Through SDK

$
0
0

Hi team ,

 

I want to create a extension field in the sales quote screen through SDK .

And when i  will do the followup to the sales Order, the created extension field will Have to show on the sales order screen also.

is it possible ..?

 

please help me ..................

 

 

 

 

 

thanks,

 

Manoj Kannaujiya.

manoj@csplglobal.com

How to check the Object is locked or not in Code or in UI Designer

$
0
0

Dear Experts,

 

Is there any option available to check to that weather if current object is locked by another user by code or some ui designer event?

 

If it is there kindly suggest code or the event screen shot.

 

Regards,

Dhruvin

LanguageCode data type

$
0
0

Hello experts,

 

I am trying to create a Language dropdown as part of my customization on the Cusotmer BO. I need a new field where we could specify the Customer's langauge for communication. When I try to create this field I get an error.

 

"Error    3    Definition of data type 'LanguageCode' not found. Add an import statement for the missing namespace or use a fully qualified name."

 

Here is how my code looks like

 

import AP.Common.GDT as apCommonGDT;

import AP.FO.BusinessPartner.Global;

 

[Extension] businessobject AP.FO.BusinessPartner.Global:Customer raises MsgERPData, MsgERPData_FI, MsgIndividualCustomer, MsgIndividualCustomer_FI {

 

        // You must activate this business object before you can access the extension fields

        // or messages in script files, forms, and screens.

       

           node AddressInformation {

           }

   

        message MsgERPData text "Fill mandatory data required for promoting the Prospect to Customer";

             

        node Common {

               

       

        [Label ("Language")] element KNA1_LANGU:LanguageCode;

        [Label ("E-mail")] element ADR6_SMTPADDR:LANGUAGEINDEPENDENT_EXTENDED_Text;

        //[Label ("Region")] element KNA1_REGIO:LANGUAGEINDEPENDENT_EXTENDED_Text;

 

Should it be possible to use this datatype or should we create a custom codelist for this?

BW Report in SAP C4C (mashup)

$
0
0

Hi everyone!

 

I´m trying to get some BW Reports in our customer´s SAP C4C. These SAP BW reports show info from the SAP ERP they have. In that ERP they have indicated the employees (Sales Representatives) in the business partners tab (as partner function ) in each client.

 

I could create the mashup of the report without any problem. But our customer would like that the info shown in the report would be prefiltered by the user (SAP C4C User), and therefore he/she can see only the info about the customers he/she is indicated to in SAP ERP customer master data.

 

As example:

 

we suppose that there is a Customer (X00001) in SAP ERP, which has indicated as a partner function a Sales Representative called Peter with ERP employee ID 0001. Peter  is indicated also in some other customers  (X00002 & X0010) as Sales Representative. But he is not indicated as Sales Representative in the customer X00003.

 

Suppose that Peter has a C4C User with internal ID U00432.

 

Imagine that there is a BW Report integrated in C4C via Mashup. (don´t know if this is the best option).

 

How could Peter see in one BW Report in C4C only the info for those customers where he is indicated in ERP as Sales Representative? Do I have to create any internal table in BW infocube to relate C4C Users and ERP Users? How could I pass to the Integrated Report the user of C4C? Any special parameter?

 

Does anyone know if there is any parametre which could help us with that?

 

Would be better to integrate the report with any other way instead of mashup?

 

Hope some one could help me with this.

 

Thank you very much in advance.

 

Best Regards!

 

Paco.

Using soapUI on SAP outbound WSDLs give error "Found nothing to import in..."

$
0
0

When I export a SAP standard WSDL for an outbound webservice,  I get an error when I try to open it in soapUI.

 

An outbound webservice could be something like the 3PL Outbound Delivery Request webservice, which BYD calls the external system to send an order to start shipping.  Since it's an external API (that is, not in SAP BYD), there is probably not an endpoint in the WSDL.

 

When I create a project around this WSDL, soapUI complains "Found nothing to import in file ....<WSDL name>".

 

Has anyone figured out how to fix this ?  I assume probably something in the WSDL needs to be added or edited.

 

Appreciate your tips.  Thanks ahead !

When does the after modify absl script get triggered?

$
0
0

Hello,

 

I have a question about the after modify script.

When does he get triggered?

When I change a value in the related BO, the script is not triggered, even if I push the enter key.

 

My target goal is to implement logic dynamicaly in the BO. If I select value X in field A then field B automaticaly gets the value Y.

 

Best regards,

Benjamin


Error in opening SDK

$
0
0

Hi

I have just installed latest  version of studio,

after Installation while opening it gives an error

error_sdk.JPG

 

I dont understand this issue, dont know how to resolve.

Kindly let me know any fix to resolve this issue.

 

 

Thanks

Sunil

Dynamic PDF generation using Adobe LiveCycle

$
0
0

Hi,

 

I have a table containing only rows. But Can I generate a pdf  with dynamic rows that is a row should get added at runtime if the data varies.

 

 

 

 

 

 

 

Regards,

 

Vijaya Chavan

Expense report BO, Receipt Node problematic in SDK

$
0
0

Hello dear SDK community,

 

More than a question, I would like to know if the issue I am facing is specific to me or if everybody had the same problem.

 

The thing is I find the Expense Report BO very slow to read and my issue is I cannot Query it on the Receipt Node.

So I would like to know if everybody is getting this issue with the QueryByElements on ExpenseReport BO.

 

Sometimes the QueryByElements is not even working and is crashing my SDK; error message: underlying connection was closed by server. A connection that was supposed to be maintained has been closed.

 

Sometimes the query is working, but as soon as I try to Navigate By Association to the Receipt Node (in order to check the expenses), my SDK crashes: 100% chance!

 

Do anybody has encountered this issue with the Receipt Node?

 

My context:

  • 1411 SDK and 1411 systems
  • Issue is occurring in EVERY customers' test tenants, in our own partner Dev and Test tenants
  • Issue is occurring in my SDK but also in my colleagues' SDK

 

This issue is quite disturbing as I need this node in order to create expenses through an external web service.

 

Any clue or any people encountering this issue, feel free to participate.

 

Thank you all for your attention.

Best regards.

Jacques-Antoine Ollier

PSM Release for Custom BOs

$
0
0


Hi, experts,

   

      I want to  know whether it is possible to make a custom BO  act  like a standard BO.

      We only create it once, and we will be able to add extension fields as we do to standard BOs.

      So, my question is "Can I ask for a PSM Release for my custom BO?". Or is there any other workaround.

 

Regards,

Naing

How to use CreateWithReference

$
0
0

Hi, experts,

   

      1. Can somebody please explain what is the usage of CreateWithReference in studio and how to use it? I still can't figure out how to use it.

    

      2. Does the target BO need to have a CreateWithReference BO Action to be able to use CreateWithRef feature?

 

      3.  In the repository explorer, I find some standarad BOs have CreateWithReference BO Action (e.g CustomerInvoice).

     CustomerInvoiceREBOAction.png

And I can see it in UI designer.

        CustomerInvoiceBOAction.png

But some do not have CreateWithReference action (e.g InboundDelivery) .

            InboundDeliverRSBOAction.png

But the UIs (QAF, OIF) have a CreateWithRef inport.

.

             InboundDeliveryBOActio.png

The inport fires an event handler that calls a BO Action ( I can't find which BO Action they call because it is not allowed)  with some action parameters.

              InboundDeliveryEventHandler.png

          So, number 3  question, how can I use CreateWithRef for Inbound Delievery.

 

Thanks in advance.

Regards,

Fred

Viewing all 1333 articles
Browse latest View live


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