Quantcast
Channel: SCN : All Content - All Communities
Viewing all 8679 articles
Browse latest View live

Issues with populating Generic tiles

$
0
0

Hello there!

 

I'm just starting out with SAP ui5 and have been working on a demo application. I've just finished creating a launch page, making use of generic tiles however I've run into a problem using tileContent to populate the tiles with information. If I add a new sap.suite.ui.commons.TileContent object and try to run the app, I get a blank screen instead of the launch page.

 

When debugging in Google Chrome, I get the following error: Uncaught TypeError: Cannot read property 'hasStyleClass' of null.

 

At first I thought the problem might be due to the formatting, but when I took the tiles out of any horizontal layout/grid formatting, the issue remained.

 

I was wondering if anyone else has encountered this problem or knows of a possible work around?

 

Here is my code so far:

 

index.html:

 

<!DOCTYPEHTML>

<html>

  <head>

  <metahttp-equiv="X-UA-Compatible"content="IE=edge">

  <metahttp-equiv='Content-Type'content='text/html;charset=UTF-8'/>

 

  <scriptsrc="resources/sap-ui-core.js"

  id="sap-ui-bootstrap"

  data-sap-ui-libs="sap.m, sap.ui.commons, sap.suite.ui.commons, sap.ui.core"

  data-sap-ui-theme="sap_bluecrystal">

  </script>

 

  <script>

  sap.ui.localResources("cddemoapp");

  var app = new sap.m.App("app", {initialPage:"idlaunchpage1"});

  //var app = new sap.m.App("app", {initialPage:"idlaunchpage2"});

 

  var page = sap.ui.view({id:"idlaunchpage1", viewName:"cddemoapp.launchpage", type:sap.ui.core.mvc.ViewType.JS});

  app.addPage(page);

  app.placeAt("content");

 

  var page2 = sap.ui.view({id:"idlaunchpage2", viewName:"cddemoapp.views.taskView", type:sap.ui.core.mvc.ViewType.JS});

  app.addPage(page).addPage(page2);

 

 

  </script>

 

 

  <!-- stylesheet for tiles -->

 

  <linkrel="stylesheet"type="text/css"href="CDDemoStylesheets/tilesStylesheet.css"/>

  <linkrel="stylesheet"type="text/css"href="CDDemoStylesheets/pageStylesheet.css"/>

 

  </head>

  <bodyclass="sapUiBody"role="application">

  <divid="content"></div>

  </body>

</html>

 

Here is the JavaScript view code:

 

sap.ui.jsview("cddemoapp.launchpage", {

 

  /**SpecifiestheControllerbelongingtothisView.

  *Inthecasethatitisnotimplemented,orthat"null"isreturned,thisViewdoesnothaveaController.

  *@memberOfcddemoapp.launchpage

  */

  getControllerName : function() {

  return"cddemoapp.launchpage";

  },

 

  /**IsinitiallycalledonceaftertheControllerhasbeeninstantiated.ItistheplacewheretheUIisconstructed.

  *SincetheControllerisgiventothismethod,itseventhandlerscanbeattachedrightaway.

  *@memberOfcddemoapp.launchpage

  */

 

  createContent : function(oController) {

//

// jQuery.sap.require("sap.ui.core.IconPool");

// var iconPool = new sap.ui.core.IconPool;

// var aNames = sap.ui.core.IconPool.getIconNames();

// var iconUrl = sap.ui.core.IconPool.getIconURI("menu2");

//

  //Panel Definitions

 

// var headerPanel = new sap.ui.commons.Panel({

//

// id: "header",

// width: "100%",

// height: "10%",

// showCollapseIcon: false

// });

 

  varleftPanel = new sap.ui.commons.Panel({

  id: "leftPanel",

  width: "10%",

  headerToolbar : new sap.m.Toolbar({

  visible: false,

  height: "0%"

  }),

  content : new sap.m.Label("barLeftPanelText", {text:"Username"}),

  showCollapseIcon: false,

  expandable: false

 

  });

 

  varbar = new sap.m.Bar({

 

  id: "pageBar",

  contentLeft : []

  });

 

 

// var pageSummaryText = new sap.m.Text("pageSummaryText", {

//

// text: "PROJECTS: Mandate 4|Design 6|Delivery 3|Commissioning 4"

// });

//

  varpageHeader = new sap.m.Text("pageHeader", {text: "Your Business Area"});

 

  /*

  * Tile definitions

  */

 

// var taskFooter = new sap.suite.ui.commons.TileContent("taskFooter", {

// footer: "1 task overdue"

// });

 

  var taskTile = new sap.suite.ui.commons.GenericTile("tasks", {

 

  header: "Tasks",

  subheader: "Approvals Outstanding",

  size: "M",

  frameType: "OneByOne",

//

  tileContent: [

//               //

//               new sap.suite.ui.commons.TileContent("taskFooter", { //this is the issue - when added the entire page is unable to render.

//               footer: "1 task overdue",

//               unit: "EUR",

//               size: "S",

//               content: [

////////  

////////

////// ]

//               })

                ],

// //  press: function(){alert("you picked Tasks!")} - works!

//               press: function(){oController.pressTask();}

  });

 

  var newsTile = new sap.suite.ui.commons.GenericTile("newsTile", {

 

  backgroundImage:"images/tunnelBuilding.png",

  size: "M",

  frameType: "TwoByOne"

  });

 

  var projectProcessTile = new sap.suite.ui.commons.GenericTile("pprocessTile", {

  header: "Project Processes",

  subheader: "Delayed Stage Approvals",

  size: "M",

  frameType: "OneByOne"

  });

 

  var projectSpendTile = new sap.suite.ui.commons.GenericTile("pspendTile", {

  header: "Top 3 Project Spend",

  size: "M",

  frameType: "OneByOne"

  });

 

  var assetDataTile = new sap.suite.ui.commons.GenericTile("assetDataTile", {

  header: "Asset Data Capture",

  subheader: "Q1 Performance",

  size: "M",

  frameType: "OneByOne"

  });

 

  var convoTile = new sap.suite.ui.commons.GenericTile("convoTile", {

 

  header: "Our Innovation Centre",

  subheader : "Collaboration and Blogs",

  size: "M",

  frameType: "TwoByOne"

  });

 

  var siteRisksTile = new sap.suite.ui.commons.GenericTile("siteRisksTile", {

  header: "Update Site Risks",

  subheader:"SSRAs Submitted by Team",

  size: "M",

  frameType: "OneByOne"

  });

 

  var injuriesTile = new sap.suite.ui.commons.GenericTile("injuriesTile", {

 

  header: "Lost Time Injuries",

  subheader:"Q1 2014 Total Hours",

  size: "M",

  frameType: "OneByOne"

  });

 

  var documentsTile = new sap.suite.ui.commons.GenericTile("docsTile", {

 

  header: "My Documents",

  subheader : "3 New Docs| 2 Updated",

  size: "M",

  frameType: "TwoByOne"

  });

 

  /*

  * Horizontal Layout

  */

 

  var hLayout1 = new sap.ui.layout.HorizontalLayout("h1", {

  content: [taskTile,

         

            newsTile, projectProcessTile]

  });

 

  var hLayout2 = new sap.ui.layout.HorizontalLayout("h2", {

  content: [projectSpendTile,

         

            assetDataTile, convoTile]

  });

 

  var hLayout3 = new sap.ui.layout.HorizontalLayout("h3", {

  content: [siteRisksTile,

         

            injuriesTile, documentsTile]

  });

 

  /*

  * Grid Layout

  * */

 

  var grid = new sap.ui.layout.Grid("launchTiles", {

 

  defaultIndent : "L1 M1 S1",

  defaultSpan : "L12 M12 S12",

  vSpacing: 1,

  content: [hLayout1, hLayout2, hLayout3],

 

  });

 

 

  /*

  * Page Definition

  */

 

  /*

  * Menu Definition

  */

 

  var MainMenu = new sap.ui.commons.Menu("sideMenu",{});

 

  var tasksItem = new sap.ui.commons.MenuItem("menuTasks",{text: "Tasks"}); //Icon must be not larger than 16x16 px

  MainMenu.addItem(tasksItem);

 

  var newsItem = new sap.ui.commons.MenuItem("menuNews",{text: "News"});

  MainMenu.addItem(newsItem);

 

  var projectProcessItem = new sap.ui.commons.MenuItem("menuPPA",{text: "Project Processes"});

  MainMenu.addItem(projectProcessItem);

 

  var topProjectSpendItem = new sap.ui.commons.MenuItem("menuProject", { text:"Project Spend"});

  MainMenu.addItem(topProjectSpendItem);

 

  var assetDataItem = new sap.ui.commons.MenuItem("menuAData", { text: "Asset Data"});

  MainMenu.addItem(assetDataItem);

 

  var convoItem = new sap.ui.commons.MenuItem("menuConvo", {text: "Chat"});

  MainMenu.addItem(convoItem);

 

  var siteRItem = new sap.ui.commons.MenuItem("menuSiteR", {text: "Site Risks"});

  MainMenu.addItem(siteRItem);

 

  var injuriesItem = new sap.ui.commons.MenuItem("menuInjuries", {text: "Injuries"});

  MainMenu.addItem(injuriesItem);

 

  var documentsItem = new sap.ui.commons.MenuItem("menuDocs", {text: "Documents"});

  MainMenu.addItem(documentsItem);

 

  returnnew sap.m.Page({

  id: "launchPage",

  title: "Your Business Unit",

  showHeader: false,

  showNavButton: true,

  headerContent: [

                //new sap.ui.commons.Button("menuIcon", {icon:"sap-icon://drop-down-list"})

                ],

  content: [ new sap.m.Toolbar("toolBar", {

  content: [

//           new sap.ui.commons.Button("menuIcon", {

//           icon:"sap-icon://drop-down-list",

//           }),

 

    new sap.m.ToolbarSpacer("space1", {

    width: "50%"

    }),

 

    new sap.ui.commons.MenuButton("menuButton", {

 

      width: "6%",

    icon: "sap-icon://menu2",

    tooltip: "Menu"

 

    }).setMenu(MainMenu)

 

         

            ]    //end of toolBar content

              }),

           

            new sap.m.Text("title", {

            text: "Your Business Unit",

       

            }),

         

            grid

//              

                  ],

    //  press: function(){alert("you picked Tasks!")} - works!

                  press: function(){oController.pressTask();}

    });

 

           

 

 

 

  }

 

});


Real scenario example fro use of Sqlscript over graphical Approach in calculation view.

$
0
0

Hi Folks,

 

Can anyone share one business scenario when the calculation view needs to be created by sql-script and please explain why it was not achievable by graphical approach. any example of complex business logic which bound to use SQL-script.

Supported XML Schema Attributes for PI 7.4

$
0
0

Hi Experts,

 

I came across this list recently: Supported XML Schema and WSDL (SAP NW PI 7.1) Excel List.

According to this thread: Supported xml Schema and WSDL SAP PI 7.3, the list is applicable for 7.31 as well.

 

Is it also applicable for PI 7.4?

How to pass Session ID to SOAP Header

$
0
0

Dear all,

We are working on salesforce connectivity through SAP ABAP web service.

Could you please help me on passing session Id to SOAP Header.

 

Here is my issue,

 

I'm using IF_WSPROTOCOL_WS_HEADER and trying to pass the below XML data to change SOAP header. But unfortunately its not happening.

 

 

Code:

 

CONCATENATE
'<Soap:Header>'
'<ns2:session xmlns:ns2="urn:partner.soap.sforce.com">'
'<SessionID>'output-result-session_id'</SessionID>'
'</ns2:session>'
'</Soap:Header>'
       INTO l_string.


after this concatenation i'm converting to XML data.

   l_xstring = cl_proxy_service=>cstring2xstring( l_string ).

CALL FUNCTION 'SDIXML_XML_TO_DOM'
       EXPORTING
         xml           = l_xstring
       IMPORTING
         document      = xml_document
       EXCEPTIONS
         invalid_input = 1
         OTHERS        = 2.


IF sy-subrc = 0 AND NOT xml_document IS INITIAL.
       xml_root = xml_document->get_root_element( ).
       xml_element ?= xml_root->get_first_child( ).
*       add header element by element to SOAP header
       WHILE NOT xml_element IS INITIAL.
         name = xml_element->get_name( ).
         namespace = xml_element->get_namespace_uri( ).
         ws_header->set_request_header(
                     name = name
                     namespace = namespace
                     dom = xml_element ).

         xml_element ?= xml_element->get_next( ).

       ENDWHILE.
     ENDIF.


after this Its not changing my SOAP header and still I cant able to access other than login method from salesforce.


I need to set session to my SOAP Header in runtime.



Thanks in advance,


Regards


Balanand Subramani

how to work with table tr td in crystal report

$
0
0

Hi all,

 

i am currently using version 11.5,  despite the fact that i know crystal reports are not supporting the table tr td tags, but just want to make sure if any one has written some formula or any custom routine inside crystal report to at least show these tags properly, as we need to have it compulsory.....its very very mandatory as well

 

Thanks....

SAP STO delivery time issue

$
0
0

Hi there,

 

I have a PLANT1 creating STO to receive from PLANT2.

It takes 10 days to get to PLANT1 from PLANT2

 

So, when I maintained Planned Delivery time = 10 days in PLANT1 material master. When delivery gets created:


In MD04 for PLANT1:

It shows 10 days from now as positive of the STO qty.

 

In MD04 for PLANT2:

It shows 10 days from now as negative of STO qty.

 

But what I need is to put that 10 days somewhere on master data, so that in MD04 for PLANT2 it shows negative of STO qty today and not 10 days from now as it takes 10 days to get to PLANT1 from PLANT2.

 

Any thoughts. thank you

I say “Inno”, you say “Jam” – SAP InnoJam @ CeBIT 2015 kicked-off

$
0
0

The first day of the SAP InnoJam @ CeBIT 2015 is over and it is time for a short status report. It is 5 a.m. in the morning and 50 % of the participants are still up and working on their code. But let’s start from the beginning of the event.


The third time in a row, SAP University Alliances is hosting the hackathon during the world’s largest IT fair. Lots of students applied to be part of the ultimate
coding challenge, but only 73 were selected and are now competing for the InnoJam winner title. We can be really proud of the diversity rate: the students come from 15 different countries around the world (Abu Dhabi, Austria, Belgium, Bulgaria, China, France, Germany, India, Netherlands, Poland, Qatar, Saudi, Serbia, Tunisia, UK).

scn1.PNG

How the coding journey began

At 8 o’clock in the morning the participants checked-in at the hostel and were brought to the venue by two shuttle busses. After they arrived in the convention center the students received their InnoJam gear (t-shirts) and met their team members for the first time. At 9:15 the event officially kicked off and the InnoJammers were welcomed by the crew and SAP representatives from the Executive Management, HR and Developer Relations.


Design Thinking

After a nice group picture the Design Thinking methodology was introduced on stage. During the first hours the 12 teams got to know their challenges interviewed people to get more insights into the problem statement and brainstormed innovative ideas for their challenges. The main theme "Smart Cities" consists of 4 subtopics: smart campus, smart traffic, smart building and smart home. At around 5 p.m. all subgroups presented their paper prototypes to each other to get first feedback about their ideas and their business case.

scn2.PNG

 

Tech Fire

Shortly before the dinner break the tech experts introduced the SAP HANA Cloud Platform and SAPUI5 to the teams to give them some guidance to start their implementations.


Since then the clock is ticking and the coding phase is on! There are 10 more hours until the teams need to submit their team results. More hours of restlessness, stress, team spirit, endurance and loads of cans of energy drinks  and cups of coffee are in front of them :-). A lot of teams are still up or only take a short nap onsite. Let's see how many can cope with no sleep, only code ;-).

scn3.PNG

I am looking forward to day 2!

TaxClass1-Cust is not derived Automatically.

$
0
0

Hi All,

 

When i am creating a Sale order in a Quality environment I getting  the following error. I have Maintained the MWST Condition yet this error is displayed.

 

Capture.JPG

 

In Analysis the TaxClass1-Cust is not getting populated.

 

 

Capture.JPG

But when i give the same value manually in Sale order header Alt.tax classific. then the MWST is working fine

 

Capture.JPG

 

 

Can anyone help me in achieving the same automatically instead of entering the TaxClass1-cust. Manually.

 

Thanks in Advance


Create a RFC SEND IDOC FROM SAP TO NON SAP

$
0
0

Hi Gurus,

 

I tried to create a RFC to send my IDOCS to a Window Server.

The administrator has created a share like eg.:  \\hsare\idoc_received

 

How should I do to attempt this share?

 

I created a TCP/IP RFC and in program ID, I put the path but the connection does not respond.

 

Anybody could help me please or has a suggestions?

What is the best solution to send the IDOC to this place ? 

 

Thank you in advance for your help.

 

M.

SAP login is slow

$
0
0

Hi,

 

We have installed SAP Server and client on a Virtual Machine (VMWare), which is allocated 32 GB RAM and 4 cores of the Xeon processor. The physical ram is much more, and the values I am mentioning are those allocated specifically to the VM.

 

We are experiencing very slow login .. which takes between 20 second to 1 min or more, even if a single user tries to login and there are no other logged in users.

 

What may be the issue?

 

Thanks.

iNcorrect Terms oF Payment

$
0
0

why I am getting this error ?

 

Document Date  03/08/2015

     Posting Date  03/17/2015


The rest of figures and dates as seen on the screen shot is a default calculation

Progress Analysis

$
0
0

Dear All,

I am using "Cost Proportional" method for Progress Analysis. When i am executing the progress analysis (CNE1) for a project, system is adding the planned cost of Production orders into BCWS, which are created with reference to project . Because of which the BCWS value is showing more than the Planned Cost Sch 000 value in CNE5 report.

So please let me know is this a standard behavior of system?

If Yes, please let me know is there any way to exclude these planned values of production orders from Progress Analysis calculation.

 

 

 

 

Thanks & Regards,

Rao.

Database check and update stats after Kernel upgrade

$
0
0

Hi All,

I know this is an old topic but still I wish to bring this in as I am unable to figure out by myself what the issue would be.

I did Kernel patch upgrade from 741 PL 15 to 110.

After that DB check and update stats are failing with the below log.

Job started

Step 001 started (program RSDBAJOB, variant &0000000000001, user ID DDIC)

Execute logical command BRCONNECT On host SAPHR

Parameters: -jid CHECK20150217024618 -u / -c -f check

BR0801I BRCONNECT 7.40 (12)

BR0805I Start of BRCONNECT processing: cepwngil.chk 2015-02-17 02:46:19

BR0252E Function fopen() failed for '/oracle/SID/sapcheck/cepwngil.chk' at location main-5

BR0253E errno 13: Permission denied

BR0121E Processing of log file /oracle/SID/sapcheck/cepwngil.chk failed

BR0806I End of BRCONNECT processing: cepwngil.chk2015-02-17 02:46:19

BR0280I BRCONNECT time stamp: 2015-02-17 02:46:19

BR0804I BRCONNECT terminated with errors

External program terminated with exit code 3

BRCONNECT returned error status E

Job finished

 

Anyhow after Kernel upgrade I ran saproot.sh so all the brtools exe's permissions were set right.

-rwsrwxr--    1 orasid   sapsys     13542030 Nov  1 15:47 brbackup

-rwsrwxr--    1 orasid   sapsys     13385793 Nov  1 15:47 brarchive

-rwsrwxr--    1 orasid   sapsys     15952052 Nov  1 15:47 brconnect

-rwxr-xr-x    1 sidadm   sapsys     16806620 Nov  1 15:47 brspace

-rwxr-xr-x    1 sidadm   sapsys     14249766 Nov  1 15:46 brrecover

-rwxr-xr-x    1 sidadm   sapsys      5847113 Nov  1 15:32 brrestore

-rwxr-xr-x    1 sidadm   sapsys      6740867 Nov  1 15:32 brtools

 

Then after further troubleshooting found that SYSTEM password was locked which I found after triggering brconnect db check at Server level.

 

BR0801I BRCONNECT 7.40 (12)

BR0805I Start of BRCONNECT processing: cepwnoel.chk 2015-02-17 04:14:43

BR0484I BRCONNECT log file: /oracle/SID/sapcheck/cepwnoel.chk

BR0280I BRCONNECT time stamp: 2015-02-17 04:14:47

BR0301E SQL error -1017 at location db_connect-3, SQL statement:

'CONNECT system/*******'

ORA-01017: invalid username/password; logon denied

BR0310E Connect to database instance SID failed

BR0280I BRCONNECT time stamp: 2015-02-17 04:14:50

BR0301E SQL error -1017 at location db_connect-3, SQL statement:

'CONNECT system/*******'

ORA-01017: invalid username/password; logon denied

BR0310E Connect to database instance SID failed

 

BR0806I End of BRCONNECT processing: cepwnoel.chk 2015-02-17 04:14:47

BR0280I BRCONNECT time stamp: 2015-02-17 04:14:50

BR0804I BRCONNECT terminated with errors

 

So unlocked and updated the password thru brconnect below command.

brconnect -c -u / -p init%ORACLE_SID%.sap -f chpass -o SYSTEM -password new password


But still facing the issue as brconnect check DB command fails and locks the SYSTEM password.

Any suggestions would be very much valuable to me.

Please respond.


Thanks...


MSS UI5 landing page -Approvals

$
0
0

HI Experts,

 

we are not able to see Leave Request approvals in Approvals lane. Its saying as "No data".

Leave Request approvals are coming but not in the approvals lane .

 

Please provide pointers to resolve the issue

 

 

 

Regards

CRANGV

How to use sap.ui.core.util.Export to utility function?

$
0
0

Hi All,

 

I want to export the sap.m.table to excel, And this functionality should be common, like if we pass the table id then it should be converted to excel.

SAP is providing export to excel, but by using this control, am unable to make it as utility function, in that i have to give column header and item values, like below.

columns : [{

                name : "Dealer #",

                template : {

                  content : "{CustomerNo}"

                }

              }, {

                name : "Dealer Desc",

                template : {

                  content : "{CustomerDesc}"

                }

              }, {

                name : "Delivery #",

                template : {

                  content : "{DeliveryNo}"

                }

              } ]

 

If we use jquery directly we can pass the table id. It converts html table to excel.

 

1. Is there any possibility to make utility function by using sap.ui.core.util.Export?

2. Jquery is providing export to excel but why we have to use sap.ui.core.util.Export control, any difference between them, and which one is the best solution?

 

Please help me regarding this,

 

Thanks & Regards,

Preethi ande


assigning class to material in product master in mass

$
0
0

Dear Expert

 

I want to assign class in product master in mass as My class is missing for 900 materials I need to assign class .due to these queues had been got stucked as reference produt not classified

 

 

 

 

Regards

Virender

Individual planned order in AFS

$
0
0

Hi,

 

We are in to AFS. How to create separate planned order number for each grid. In standard for all grids system gives single planned order. I have tried to activate "Single Grid" in AFS MRP tab. Still system give single planned order. If anyone has over come this issue, let me know.

 

Uma

Use of Linear Asset Management in Work Manager

$
0
0

Hi Experts,

 

Has anyone implemented Linear Asset Management in Work manager. I want to know what is use of Linear Asset Management in Work manager. Is LAM comes from backend or USER can generate it??

 

 

Regards:

Sumit

Permit SAP PM >> File pdf

$
0
0

Hello,

 

How can I assign a file pdf  to a permit that can be printed with the work order ??


Regards,

In user define value setup , Auto Refresh By field is not appearing

$
0
0

Hi experts

 

i had created a FMS Query

 

when am trying to attach the query and assigning Auto refresh option, the By Field is not appering

 

what will be the cause ?

 

 

the below given is my query

 

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

 

Select isnull(OHEM.firstName,'')+'  ' +isnull(OHEM.middleName,'')

+ ' '+isnull(OHEM.lastName,'')AS [Employee Name]

from ohem where U_EMPOLD_ID =   $[$-3.U_EMPFILENO]

 

 

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

 

 

 

 

 

 

 

Regards

Viewing all 8679 articles
Browse latest View live


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