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

Re: Facing problems to display the data in bar chart

0
0

Hi,

 

See this code.

 

In Index.html file.

 

<!DOCTYPEHTML>

<html>

       <head>

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

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

 

              <scriptsrc="https://sapui5.netweaver.ondemand.com/sdk/resources/sap-ui-core.js"

                           id="sap-ui-bootstrap"

                           data-sap-ui-libs="sap.m,sap.viz,sap.ui.commons"

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

              </script>

              <!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->

 

              <script>

                           sap.ui.localResources("vizchart1");

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

                           var page = sap.ui.view({id:"idview11", viewName:"vizchart1.view1", type:sap.ui.core.mvc.ViewType.JS});

                           app.addPage(page);

                           app.placeAt("content");

              </script>

 

       </head>

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

              <divid="content"></div>

       </body>

</html>

 

In my View file.


sap.ui.jsview("vizchart1.view1", {

 

       /**SpecifiestheControllerbelongingtothisView.

       *Inthecasethatitisnotimplemented,orthat"null"isreturned,thisViewdoesnothaveaController.

       *@memberOfvizchart1.view1

       */

       getControllerName : function() {

              return"vizchart1.view1";

       },

 

       /**IsinitiallycalledonceaftertheControllerhasbeeninstantiated.ItistheplacewheretheUIisconstructed.

       *SincetheControllerisgiventothismethod,itseventhandlerscanbeattachedrightaway.

       *@memberOfvizchart1.view1

       */

       createContent : function(oController) {

             

              varoPopOver = new sap.m.Popover("popId", {

                    

              });

              var oViz = new sap.viz.ui5.controls.VizFrame("idVizFrameBar",{

                     vizType: "bar",

                     width: "100%" ,

                     height:"700px"

              });

              var oContainer = new sap.m.ScrollContainer({

                     width : "100%",

                     height : "100%",

                     horizontal : false,

                     vertical : true,

                     focusable : true,

                     content:[oViz]

              });

              returnnew sap.m.Page({

                     title: "Title",

                     content: [

                     oContainer

                     ]

              });

       }

 

});


In my controller file.


       onInit: function() {

             

              //this.oInitialLoadFinishedDeferred = jQuery.Deferred();

//var oVizFrame = this.getView().byId("idVizFrameBar");

              var oVizFrame = sap.ui.getCore().byId("idVizFrameBar");

varoPopOver = sap.ui.getCore().byId("popId");

 

var oModel = new sap.ui.model.json.JSONModel({

                        SOItems: [

                                        {

                                                        ITEM: "Tablet",

QUANTITY: 2067.45,

VALUE: 7373.99,

COLOR : "red"

                                        },

                                        {

ITEM: "Desktop",

QUANTITY: 3110.93,

VALUE: 9920.91,

COLOR : "green"

                                        },

                                        {

                                                        ITEM: "Mouse",

QUANTITY: 3003.97,

VALUE: 2058.64,

COLOR : "blue"

                                        },

                                        {

ITEM: "Modem",

QUANTITY: 6721.61,

                                                        VALUE: 9149.65,

COLOR : "purple"

                                        },

                                        {

                                                        ITEM: "Printer",

QUANTITY: 9636.25,

VALUE: 3752.46,

COLOR : "orange"

},

                                        {

ITEM: "Ink",

QUANTITY: 9169.62,

                                                        VALUE: 9221.43,

COLOR : "yellow"

                                        }

]

});

 

var oDataset = new sap.viz.ui5.data.FlattenedDataset({

                        dimensions: [{

                                        axis: 1,

                                        name: "Item",

                                        value: "{ITEM}"

}],

                        measures: [{

                                                        name: "Quantity",

value: "{QUANTITY}"

},

                                        {

name: "Value",

value: "{VALUE}"

                        }],

                        data: {

                                        path: "/SOItems"

                        }

});

 

console.log(oVizFrame);

 

oVizFrame.setDataset(oDataset);

oVizFrame.setModel(oModel);

 

var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({

                                        uid: "valueAxis",

                                        type: "Measure",

                                        values: "{QUANTITY}"

                        });

                       

var feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({

uid: "categoryAxis",

                                        type: "Dimension",

                                        values: "{ITEM}"

                        });

                       

var feedColor = new sap.viz.ui5.controls.common.feeds.FeedItem({

                                                uid: "color",

                                                type: "Measure",

                                                values: "{VALUE}"

});

 

 

 

 

 

oVizFrame.setVizProperties({

                        valueAxis: {

                                        label: {

formatString: "u"

                                        }

                        },

                        plotArea: {

dataLabel: {

visible: true,

//colorPalette:"{#00FF00,#FFC200,#FF0000,,#FFC200,#FF0000, #00FF00}"

}

                        },

                        legend: {

                                        title: {

visible: false

                                        }

                        },

 

                        title: {

visible: true,

                                        text: "Value by Quantity and Item"

                        }

});

 

oVizFrame.addFeed(feedValueAxis);

oVizFrame.addFeed(feedCategoryAxis);

oVizFrame.addFeed(feedColor);

//oPopOver.connect(oVizFrame.getVizUid());


The only difference between your code and mine is i have used JS view.

It's working.



Regards

Dhananjay

 

       },



Re: Quotation Determination at Header Level

0
0

Hi Dinesh,

 

The only option provided by SAP is to determine the Quotation/Contract at Item level only in Sales transaction.

 

For sales transaction you cannot get the quotation/contract determined at Header level.

My suggestion would be to get the quotation determined at item level

with the option :F Only at Item Level: Always With Selection Option.

 

Otherwise go for development.

 

Thanks

Narendra

cost center fields in Order recommendation screen

0
0

Hi experts,

 

I need to bring project code and department fields(these two are dimensions or cost centers) from Sales order into Purchase order while using MRP wizard. This project code and department code are key fields meaning they have yellow arrow fields.

 

Is it possible? Can we write any query inorder to achieve this?

 

Look forward for the answers.

 

Rgds

Vitha

Re: Custom program to update product and product location heirarchies - APO

0
0

Hello,

 

Did you check     /SAPAPO/STD_HIER_CREATE Report: Create standard hierarchy?

If you want custom development then please refer OSS note 1309645 which have all relevant details in attached PDF file "Define_Hierarchy_Structure.pdf"

 

Best Regards,

R.Brahmankar

Daily Allowance based on hours of travel

0
0

Hi,

Daily allowance is depend on period of travel as mentioned below,

 

Morethan 12 hours - Full entitlement

6 to 12 hours - 50% entitlement

3 to 6 hours - 25% entitlement

less than 3 horus - No entitlement.

 

I have gone throuth below thead

http://scn.sap.com/thread/2014452

 

But Where do I maintain above percentages and hours?? (I didn't find percentage field in these V_T706V, V_706V_C,V_T702V, V_T702N_D tables)

 

And also, client is using ECC 6.0 EhP 4. Will it be possible for this version?? Suggest me please

 

Regards,

 

RK

Report for Time recording

0
0

Hi

How can I catch information from ITSM for period of time?

Message ID; Time spent; Processor

Is there any report for this or I can see this information only from corresponding message?

I have Interactive report activated but can't see 'Avialable Characteristics' for Time recording.

Re: DMS Object link objectkey

0
0

Thank yoy sadhu,

 

This worked & working fine.

 

Regards

Sadasivam

Re: WebI Multilanguage Reports

0
0

Hi,

 

I am very sure this is you are looking.In the BI Launch Pad Preferences->Locales & Time Zone section  you can set the preferred viewing locale.

 

multi.png


Re: http error 500 : org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range : -1

0
0

Hello. We have already tried renaming the localhost folder under tomcat\work\catalina and restarting Tomcat. This was mentioned in one of the OSS notes we found. It did not help. We also tried uninstalling update 1 for SP5 and re-installing it. Again no luck.

Nevertheless, thank you for your suggestions

We will attempt to redeploy BOE and see where it gets us. Thanks.

Re: CMOD DATASOURCE ENHANCEMENT WITHOUT LOCKING

Send data error in EPM with SAP BPC 10.1 Embedded (LCL_CHECK_COLLECTOR and CL_RSR_OLAP_AREA)

0
0

Hi Experts,

 

We are building a planning project with SAP BPC 10.1 Embedded version with SAP BW 7.4 SP09 with Hana database, and we are finding several errors when we want to transfer and save data from EPM for Excel (SP22 .NET 4)

Our environment have next version applications:

Imagen1.png


We have build a Multicube, made of three infocubes (2 of them are Real-Time), one aggregation level over this multicube and one planning query over the aggregation level.

When I try to Transfer data first time, I found the next message, but the value is transferred ok:

Imagen2.png

 

I'm able to transfer all data that I want, and I can also Save Data one time. After that, when I try to Transfer Data again, the error message is:

Imagen3.png

If I check Syslog message (SM21) I can see that error: X MESSAGE BRAIN 299: LCL_CHECK_COLLECTOR LCL_CHECK_COLLECTOR~EXECUTE_CHECK-01-.

Imagen4.png

And If I try to Save Data the error message is: X MESSAGE BRAIN 299: CL_RSR_OLAP_AREA SAVE-01-

Imagen5.pngImagen6.png

 

We have review and apply next SAP notes, but the error persists

  • 2125814 - BW-IP PAK: "merging multi value dicts is not implemented" in index server trace

 

 

Someone have any idea to solve this issue? Thanks in advance.

 

Regards,

Victor Sales

MIRO - Function Module to get the PO reference table information

0
0

Hi!

 

Does anybody know if there is a function module to replicate the functionality used by transaction MIRO to populate the PO Reference table(highlighted below)?

 

I need to replicate the same logic to get the PO quantity & value to be invoiced and I don't really want to re-invent the wheel.

 

Many thanks,
EB

 

Untitled.png

Re: Cannot Assign shipping point to plant

0
0

I bet you find the right answer among the first 3 hits if you search SCN via the search field on top right just by entering this word as search term: OVXC

 

By the way, I can see 158 hits and almost all I  checked were about the same problem

How to call a view in a tab of TABSTRIP

0
0

Hi Experts,

 

I have a doubt.Please help me out in this issue.Initially I have created an webdynpro application using FPM which is having 7 views.

now my client dont want this application in FPM.He wants it in TABSTRIP.So i want to call each view in each tab of tabstrip.So I dont know how to call a view in tab of TABSTRIP.Please let me know if there is any solution.

 

Thanks&bestregards

ananth.

No update of Partial payment in invoice

0
0

Hello Experts,

 

I have a scenario relating partial payments. An invoice is posted of amount 100,000. A partial payment of 20,000 is made against invoice. After partial payment, client cleared the invoice of amount 100,000 and the system allowed it to process. Now partial payment remains in the account. Why the system is not making any link with invoice as partial payment is made against that particular invoice? As per my knowledge, the system should only allow the user to clear invoice by selecting original invoice and the partial payment that was made against this particular invoice.

 

Please guide me in this matter

 

Regards,

Atif amin


Restrict output for sales invoices as per plants.

0
0

Hi,

 

  I have a requirement , where , I want , that NO invoices should be printed for some plants for output type Z001 in case of sales invoices. What/where should changes be done so as to achieve it ?

 

Pls help.

 

Regards,

SK

Re: Cannot Assign shipping point to plant

0
0

Hi Yogesh,

 

Please make sure that you have assigned your Plant to at least one combination of Sales Organization and Distribution Channel as well.

You can use the TCode OVX6.

 

 

Thanks Saurabh

Re: SPTN for cancellation document

0
0

Hi,

 

We can't use Document setting system bcz some other document like Purchase order we need to cancel more than 100 days due to this reason we need SPTN for A/P Invoice.

 

Regards,

Mukesh

R3(IDES) server configuration

0
0

Hi, everyone.

   I have installed R3 for individual test, but my server add. isn't an useful one. Can anyone send me a free test server add.

 

Best regards!

OLE Objects in WDA ??

0
0

Hi All,

     I need to download a formatted excel from a wda component on clicking a button. Formatted excel in the sense, Different colour,font,table,chart. I made the code for excel with OLE objects but it isnt working in wda. It runs in reports(SE38).

 

Any solution on this ??

 

Thanks in advance.

 

Regards,

Vishnu Prakash K.

Viewing all 8902 articles
Browse latest View live




Latest Images