Quantcast
Channel: SCN: Message List
Viewing all 8594 articles
Browse latest View live

.refresh not working when navigating back and there again (odata, xml views)

$
0
0

Hi!

 

I'm really puzzled and have not the faintest idea how to solve this. I hope, the community here might be able to help.

The problem is also somewhat complex, so please bear with me and my lengthy descriptions.

 

I use xml views and the odata model.

The odata structure contains data on a basic level and several collections/entity sets/lists.

In order to get at any data from the server, I need to create an order from certain parameters. This gives me an id. This id I use to read some general data, createBindingContext and setBindingContext.

That all works fine and I get my basic data and all the data from the collections.

But. When I update the model with new information (user input), and read again and call refresh with true, nothing changes in the view, although the data I receive in the callback changed.

 

So, how can I force the xml view to update its bindings?

Do I need to update the bindings manually? And how can I do this, when there is a list involved?

 

In my one page example for testing purposes I do the following (sorry, no working example as the data server is in our development environment and thus not accessible from remote):

The id has already been created in this example. It's called IdentNr.

 

In this example the page title does not change, after pressing a button.

I expect Preset: {modelAuftrag>Schnell} to be different after pressing the button myButton2. But the value does not change. Although oData in the callback in _readAuftrag contains the correct updated value.

 

XML:

<Page title="Title, chosen Preset: {modelAuftrag>Schnell}, Identnr: {modelAuftrag>IdentNr}">

[...there's a list here which does not concern us right now...]

<Button text="Change IdentNr, get new Preset Gestaltete Anzeige - Preset1" press="onButtonPress1" id="myButton1"/>

<Button text="Change IdentNr, get new Preset Angebot gestaltete Anzeige - Preset2" press="onButtonPress2" id="myButton2"/>

 

Controller:

Init:

   var oModelAuftrag = new sap.ui.model.odata.ODataModel(sServiceUrl, true, sUsername, sPassword);

  oView.setModel(oModelAuftrag, "modelAuftrag");

 

  var oModel = oView.getModel('modelAuftrag');

 

  this.IdentNr  = "4711";

  this.Kennung1 = "Preset1";

this.Kennung2 = "Preset2";

 

  this.AuftragBindingPath = "/Orders('" + this.IdentNr + "')";

 

var tmpPath = this.AuftragBindingPath;

oModel.read(tmpPath, null, null, false,

   jQuery.proxy(function(oData, oResponse){

      // success

       this._createBindingContextAuftrag(this.AuftragBindingPath);

     },this),

   jQuery.proxy(function(oData, oResponse){

      // fail

     },this)

);

 

_createBindingContextAuftrag : function(sBindingPath){

   this.getView().getModel('modelAuftrag').createBindingContext(sBindingPath, null, null, jQuery.proxy(function(oContext){

       this.setBindingContext(oContext, 'modelAuftrag');

   }, this.getView()));

},

 

handleUpdateKennung : function(sKennung){

  var sPathUpdate      = "/Presets(IdentNr='" + this.IdentNr +  "',PresetID='" + sKennung + "')";

  var oModel          = this.getView().getModel('modelAuftrag');

 

  var oPayload       = { "IdentNr" : this.IdentNr, "PresetID" :  sKennung };   

  var oEntry        = oPayload;

 

  oModel.update(sPathUpdate,

      oEntry, null,

          jQuery.proxy(function(oData, oResponse){

         // update success

            // oData is null, oResponse should be status code 204

            this._readAuftrag();

          }, this),

          jQuery.proxy(function(oSome, someOther){

         // update failed

          }, this.getView())

  );

},  

 

_readAuftrag : function(){

var sPath = this.getView().getBindingContext('modelAuftrag').getPath();

this.getView().getModel('modelAuftrag').read(sPath, null, null, false,

      jQuery.proxy(function(oData, oResponse){

          this.AuftragBindingPath = "/Orders('" + this.IdentNr + "')";

          this.getView().getModel('modelAuftrag').refresh(true); // this does not work: no bindings are updated

      }, this),

      jQuery.proxy(function(oError){

      }, this));

},

 

onButtonPress1 : function(oEvent){

this.handleUpdateKennung(this.Preset1);

 

},

onButtonPress2 : function(oEvent){

this.handleUpdateKennung(this.Preset2);

},

 

Many thanks in advance!

 

Regards,

Anja


Re: Error during activation of decision table based on analytic view

$
0
0

I had a calculated column in my view which was causing the issue, I removed it, Now "Decision table" is working fine. Not sure if it is the limitation of Decision Table.

 

Regards,

Vijay.

Re: CASE statement not working as desired!

$
0
0

David,

 

In your query you have:

 

CASE WHEN T0.Currency <> 'AUS' THEN T0.Currency ELSE 'N/A' END AS 'Currency'

 

 

Try to change     <> 'AUS'      to    <> 'AUD'

 

 

Best regards,

 

JC.

Re: RSPC_API_CHAIN_START in background how to get the e_logid

$
0
0

Hello Christopher

 

The beginning issue is, that my customer was suddenly faced with pop-ups. And nobody changed anything in the system. ( ?)

 

I didn't find out the reason yet of the changed behaviour.

 

My customer uses the SAP BI 7.0.

 

Actually I am working with another customer, where the pop-ups doesnt appear, if the paramater is "I_SYNCHRONOUS" = ABAP_FALSE. But it is Version SAP BW 7.3

 

I will test neyt week your input.

 

Best regards

Christian

Unable to login to NWA :-(

$
0
0

Hi All,

 

Need your help to understand if these are known issues with our Java stack and if there is any solution documented.

I checked for logs and could find only below, please assist on below issues

 

1.   Java stack– Able to login to UME, access System information – However, not able to login to NWA

Ending up in the same screen after entering credentials – Not able to access NWA.

 

Env:  Java - 7.02 SP11

Path:

/usr/sap/../j2ee/cluster/server0/log/system

security.2.log

 

 

#1.#00505698776800970003D5D60000B8A40005071E674C10F8#1415202047004#/System/Security/Authentication#sap.com/com.sap.security.core.admin
#com.sap.engine.services.security.authentication.logincontext#J2EE_ADMIN#711089##1C73E8C7650211E496E40000003CF032#1c73e8c7650211e496e4
0000003cf032-0#1c73e8c7650211e496e40000003cf032#SAPEngine_Application_Thread[impl:3]_34##0#0#Info#1#com.sap.engine.services.security.a
uthentication.logincontext#Plain###LOGIN.OK
User: J2EE_ADMIN
Authentication Stack: ticket

Login Module                                                                                              Flag            Initialize  Login      Commit  
1. com.sap.security.core.server.jaas.EvaluateTicketLoginModule                    SUFFICIENT  ok          false      false
2. com.sap.security.core.server.jaas.CreateTicketLoginModule                       SUFFICIENT  ok          false      false
3. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   REQUISITE   ok          true       true
Central Checks                                                                                                                                         true      

 

 

 

Thanks

Ram

Re: selection based on latest records..

$
0
0

Hi Anitha,

 

Clarify the query:

 

1. Is there a possiblity to have more than one future record.

 

If no , get all the records, then sort and read based on the index 1 and 2. Check it with sy-datum.

 

With Regards,

Giriesh M

Re: SAP Forms by Adobe with Zebra Printers for printing Barcode Labels?

$
0
0

Thanks for response.

Currently we are using printer ZEBRA 105 SL and developing our lables using BARONE software.

We are planning use ADOBE for Label printing instead  of BARONE.

 

Usually Zebra printer under stand  special like zebra code.JPG

 

So if we develop new Label in ADOBE,.. How the printer will understand . That's why I was asking do we need to install any soft at printer or any place?

Re: Table TIH01


Re: Formula to compute average based on current month?

Re: Not Able to Create Model

$
0
0

Hi Vijay,

Previously it was working fine. Two recent updates have been made. 1. SP12 upgrade and second for some other change I reimported the Models.

 

In our case we have two Adaptive RFC models : UH and UH functions. Please find below mentioned code from the method onclick of which we are getting this error.

 

 

public void fillListOfModality( )  {

    //@@begin fillListOfModality()

  IWDMessageManager msgmanager = wdComponentAPI.getMessageManager();

 

 

  __Sie__Med_Ps_Uhd_Statistics_Input input = new __Sie__Med_Ps_Uhd_Statistics_Input();

  wdContext.nodeListOfUpdates().bind(input);

 

 

  IPublicCompGeneral.IModalityElement modalityElement = wdContext

  .currentModalityElement();

  IPublicCompGeneral.IUpdateTypeElement updateElement = wdContext

  .currentUpdateTypeElement();

  IPublicCompGeneral.ISearchParameter_ModalitiesElement searchElement = wdContext

  .currentSearchParameter_ModalitiesElement();

 

 

  String sparte = "";

  String updatetype = "";

  String yearsearch = "";

  String servicepartner = "";

 

 

  // *****************************************************************

  // set Sparte

  com.siemens.med.ivcuh.ui.model.uh.__Sie__Med_Ps_Spart.__Sie__Med_Ps_Spart_List spartlist = new com.siemens.med.ivcuh.ui.model.uh.__Sie__Med_Ps_Spart.__Sie__Med_Ps_Spart_List();

 

 

  for (int i = 0; i < wdContext.nodeModality().size(); i++) {

  if (wdContext.nodeModality().isMultiSelected(i)) {

  IPublicCompGeneral.IModalityElement elementModality = wdContext

  .nodeModality().getModalityElementAt(i);

 

 

  sparte = sparte + elementModality.getBUs() + "; ";

 

 

  // Loop at node of function to get key

  for (int j = 0; j < wdContext.nodeBu_List_Output_IN().size(); j++) {

  IPublicCompGeneral.IBu_List_Output_INElement elementResult1 = wdContext

  .nodeBu_List_Output_IN()

  .getBu_List_Output_INElementAt(j);

  String key = "";

  if (elementModality.getBUs().equals(

  elementResult1.getBu_Appli())

  && elementResult1.getAppli().equals("WEB")) {

  key = elementResult1.getBu_Sap();

 

 

  // Get UH values depending on key

  for (int k = 0; k < wdContext.nodeBu_List_Output_IN()

  .size(); k++) {

  IPublicCompGeneral.IBu_List_Output_INElement elementResult2 = wdContext

  .nodeBu_List_Output_IN()

  .getBu_List_Output_INElementAt(k);

 

 

  if (elementResult2.getAppli().equals("UPDATE")

  && elementResult2.getBu_Sap().equals(key)) {

  String text = elementResult2.getBu_Appli();

  __Sie__Med_Ps_Spart spart = new __Sie__Med_Ps_Spart();

  spart.setSpart(text);

  //spartlist.add__Sie__Med_Ps_Spart(spart);

 

 

  }

 

 

  }

  }

  }

 

 

  }

  }

  input.setSpart(spartlist);

  searchElement.setModality(sparte);

 

 

  // *****************************************************************

  // Set Update Type

  __Sie__Med_Ps_Mod_Type_List updatelist = new __Sie__Med_Ps_Mod_Type_List();

 

 

  if (updateElement.getSafety() == true) {

  __Sie__Med_Ps_Mod_Type update = new __Sie__Med_Ps_Mod_Type();

  update.setMod_Type("S");

  updatelist.add__Sie__Med_Ps_Mod_Type(update);

  input.setMod_Type(updatelist);

  updatetype = updatetype + "S" + "; ";

  }

 

 

  if (updateElement.getEvolveandEndhancement() == true) {

  __Sie__Med_Ps_Mod_Type update = new __Sie__Med_Ps_Mod_Type();

  update.setMod_Type("E");

  updatelist.add__Sie__Med_Ps_Mod_Type(update);

  input.setMod_Type(updatelist);

  updatetype = updatetype + "E" + "; ";

  }

 

 

  if (updateElement.getPerfomance() == true) {

  __Sie__Med_Ps_Mod_Type update = new __Sie__Med_Ps_Mod_Type();

  update.setMod_Type("P");

  updatelist.add__Sie__Med_Ps_Mod_Type(update);

  input.setMod_Type(updatelist);

  updatetype = updatetype + "P" + "; ";

  }

 

 

  if (updateElement.getRefinement() == true) {

  __Sie__Med_Ps_Mod_Type update = new __Sie__Med_Ps_Mod_Type();

  update.setMod_Type("R");

  updatelist.add__Sie__Med_Ps_Mod_Type(update);

  input.setMod_Type(updatelist);

  updatetype = updatetype + "R" + "; ";

  }

 

 

  searchElement.setUpdateType(updatetype);

 

 

  // *****************************************************************

  // Set Year

  __Sie__Med_Ps_Year_List yearlist = new __Sie__Med_Ps_Year_List();

 

 

  for (int i = 0; i < wdContext.nodeYears().size(); i++) {

  if (wdContext.nodeYears().isMultiSelected(i)) {

  String text = wdContext.nodeYears().getYearsElementAt(i)

  .getYearName().substring(2);

 

 

  __Sie__Med_Ps_Year year = new __Sie__Med_Ps_Year();

  year.setYear(text);

  yearlist.add__Sie__Med_Ps_Year(year);

  input.setYear(yearlist);

  yearsearch = yearsearch

  + wdContext.nodeYears().getYearsElementAt(i)

  .getYearName() + "; ";

  }

  }

 

// Set years older than five years from system time

  if (wdContext.currentContextElement().getSelectedOlderFiveYears() == true) {

 

 

  for (int i = 0; i < wdContext.nodeOlderThanFiveYears().size(); i++) {

  String older = wdContext.nodeOlderThanFiveYears()

  .getOlderThanFiveYearsElementAt(i).getOlderFiveYears()

  .substring(2);

  __Sie__Med_Ps_Year years = new __Sie__Med_Ps_Year();

  years.setYear(older);

  yearlist.add__Sie__Med_Ps_Year(years);

  input.setYear(yearlist);

  yearsearch = yearsearch

  + wdContext.nodeOlderThanFiveYears()

  .getOlderThanFiveYearsElementAt(i)

  .getOlderFiveYears() + "; ";

 

 

  }

  }

  searchElement.setYear(yearsearch);

 

 

  // *****************************************************************

  // Set deadline

  String deadline = wdContext.currentDeadlineElement()

  .getDeadlineValues();

  if (deadline.equals("All")) {

  input.setDeadline_Exp("N");

  searchElement.setDeadline("All");

  } else {

  input.setDeadline_Exp("Y");

  searchElement.setDeadline("Deadline expired");

  }

 

 

  // *****************************************************************

  // Set Extratime always to Y

  input.setExtratime("Y");

 

 

  // *****************************************************************

  // Set Service Partner

  __Sie__Med_Ps_Debitor_List deblist = new __Sie__Med_Ps_Debitor_List();

 

 

  for (int i = 0; i < wdContext.nodeServicePartner().size(); i++) {

  if (wdContext.nodeServicePartner().isMultiSelected(i)) {

  String text = wdContext.nodeServicePartner()

  .getServicePartnerElementAt(i)

  .getServicePartnerValues();

  __Sie__Med_Ps_Debitor debitor = new __Sie__Med_Ps_Debitor();

  debitor.setDebitor(text);

  deblist.add__Sie__Med_Ps_Debitor(debitor);

  input.setDebitor(deblist);

  servicepartner = servicepartner + text + "; ";

  }

  }

  searchElement.setServicePartner(servicepartner);

 

 

  try {

  input.execute();

  wdContext.nodeListOfUpdates_Output().invalidate();

  input.modelInstance().disconnectIfAlive();

 

 

  } catch (Exception e) {

  // TODO Auto-generated catch block

  msgmanager.reportException(e);

  e.printStackTrace();

  }

 

 

    //@@end

  }

ActiveX Viewer Export Problem

$
0
0

We have been successfully using the Crystal Reports ActiveX viewer to display and export reports for many years.  When the viewer was installed on a Windows 7 PC with Internet Explorer 11, we can view the reports but when clicking on the Export button, we get the error, "Couldn't initialize the export control".  Any suggestions in trouble-shooting this problem would be much appreciated.

Re: BSI Tax Factory 10.0

$
0
0

Hello,  In our PreProd environment, we're getting an error message "Program error in remote function call of RFC_HRUS_TF_VERSION_10" inconsistently.  Sometimes our calculations run fine, and other times we get the error message.  We're in a cluster server environment in PreProd with six App servers.  Has anyone experienced RFC issues with cluster server environments?

Thanks,

Lou Ann Allison

What CAL offerings feature SAP ERP HCM?

$
0
0

I have seen that SAP ERP HCM (component HRGXX) is available in the SAP ERP 6.0 EhP7 on SAP HANA offering, but is it available in any others? We'd like to get SAP ERP HCM on a non-SAP HANA system.

Re: Automatic Data Replication in MDG-S using BRFplus

$
0
0

and MDG - S does not have this ?

Re: SAP PI Polling blank with NFS Folders.

$
0
0

Hi Uma,

 

As Nabendu said, you have to make sure that the File Permission at unix level should be rw*r**r**. This is equal to 644. But if you want a file with 644 to be processed make sure that Processed Read-Only file are checked.

Capture.jpg

Otherwise, make sure, the file is having access as 777.

 

Regards,

Anupam


EBS Intraday import

$
0
0

Hello All,

 

I have a requirement to import current day bank statements as often as needed ( for ex: twice a day) and have system automatically exlcude transactions posted with first import from the second import.

 

For ex: an incoming payment posted on account to a customer with first file has to be excluded from the second one, otherwise it will be a duplicate posting.

 

So, my question is -- Has anyone encountered this issue and if so, how has it been addressed ? Our Intraday files in a day have same statement numbers and the transactions in the files are cumulative  (i.e. transactions in second file also include the ones from first one)

 

Appreciate your responses.

 

Thanks,

Raj J

Importing an Entity (LDM) from a Excel file

$
0
0


Hi,

 

today I have a very simple question (I believe)

 

I'm trying to import an Entity (for test purposes only one, but I assume I can have more ...) from a Excel spreadsheet into PowerDesigner LDM Model.

 

If the powerDesigner help I can find a recomendation to put all the Table/Entity attributes as a colleciton separated by an "," ... or whatever.

 

SyBooks Online

 

What in case I have such structure:

excel.JPG

This is by far more user friendly, that putting everything as a list separated by "," ... And this is also how PD extracts the attributes into Excel.

 

Is there a way how this can be done? It took me already like an hour by try to set up the Excel import in a way this structure could be imported ... but without success.

 

Any ideas how to do that?

 

I'm using the standard File -> Import -> Excel File ... funcitonality.

 

Or maybe like this ... as described in the help.

 

I'm defining an Excel containint 2 sheets ... the firs one to represent the Entities and the second one to represent the Entity Attributes:

 

excel9.JPG

 

But when importing, it imports only the data frm the fistr sheet ... I know, the sheet name should refere to the class I"m trying to import to ...

 

I was already trying to change the name to Entity.Entity Attribute because this is what I can find in PD:

 

excel3.JPG

 

I have even tryed to define the import mapping by my own ...

 

w.JPG

But doing it like that still doesn't allow me to import data from the second sheet ... and the definition looks OK:

 

x.JPG

b.JPG

a.JPG

No matter what I do ... it's still not working ... so the question: what am I doing wrong?

 

We are running 16.5 SP02 PL04

 

Regards,

Rafal

'Billing Element' tick for PPM related WBS Elements

$
0
0

Dear PPM Experts,

 

When a PS project is created from a PPM project (using 'Flag for Transfer' status) the WBS element is getting created with 'billing element' indicator checked. Is this a standard system behaviour or I am missing somthing?

 

We do not want the PPM related WBS elements to get created as billing elements. What could be the way to avoid this?

 

In other words, ss there a standard way to make 'billing element' option unchecked, by default for the PPM related PS projects (i.e. projects having project profile CPR0001)?

 

Regards,

 

Bhushan

Backup for the DR site

$
0
0

Hi Team,

 

I have a doubt is it possible to backup from the DR site?

Since the database has not been opened, it wont allow us to backup from the DR site right?

Is there a way to backup the database from the DR site?

Re: HR Renewal ESS Landing page in portal - 404 not found

$
0
0

if configured system is not working properly then, check if there is any OSS note, if not raise a message to SAP they will have to address ur issue.

 

How about your WebDynpros or transaction iviews etc, are they working when u use same system?

Viewing all 8594 articles
Browse latest View live




Latest Images