ViewA created by "ViewA.view.js" is bound to a JSONModel. From within a view called ViewB, I would like to get the data in the JSONModel to which ViewA is bound. How can I possibly get the reference to ViewA within "ViewB.view.js"?
How to get the reference to the another view control within some view?
Re: SSM 10.1 - Model designer error : Cannot get exclusive access to Model
Hello Les,
Thanks for the inputs.
All the steps have been done already.
SSM_CB_EA and CBDEFAULT test connection works fine.
Attaching , log file for Model creation.
Please have look at your end and let me know , if you figure out something.
Thanks & Regards,
Sridhar Sundaram
Re: Two Dimentions and Two Measures in Single Chart - Webi Charts
Re: Unable to create URLConnection:No logged in user found
Hi Manikandan,
Check if you have set "Propagate Principal" in your sender/receiver agreement and unset it. The problem could be that you have set to use Principal propagation and you are not really using it.
Regards.
use full life in days
Dear Sapient
Need help in the below mention scenario
we have transfer one asset with in the company code from one plant to other by T.code ABUMN. Hence i have created a new asset in plant where the asset to be transferred. in the existing plant use full life of asset is 20 years and already used 2 years 124 days so the remaining life is 17 years and 241 days. While creating the new asset code in the plant where asset need to be transferred i am not able to enter days in the asset master i.e 17 years 241 days in the dep area tab it is showing only use full life in years and period where as i want to enter years and day.
kindly suggest
Regards
sasank
Re: IPC currency conversion
Hi!
FM /SAPCND/JAVA_UE_DOWNLOAD_CUST allows you to download java classes missing in downloaded code by transaction /SAPCND/UE_DEV. Name of module (needed as input parameter to this FM) and list of their java classes you can find in a table svmcrt_res_trans.
When you download library you need to add it to the build path in your project.
Shopping cart pop up screen size
Hi Experts,
I have a problem with the SAP SRM portal. When we click the link to create a shopping cart, a pop up window opens where we proceed with adding items and order it.
I want this pop up window to be maximized by default. Currently this pop up window needs to be maximized manually every time.
Kindly assist me on how to proceed.
Regards,
Arun
Re: Output template change of Prd.Ord components
Simple Routing - Master to Detail and Back
Hi UI5 Experts ,
I developed a FIORI like UI5 application ( which uses sap.m.App ) . Only two pages(or views formally) are involved : A master page and a detail page. When i press on a button on master page, it should navigate to the detail page, and when i press back , come back to the master page . Requirement is simple as that . Please help me with a simple code snippet . I found some code from forums, but seems complicated .
BR
Sree
How to create employee tax slip report
I have requirement to create tax slip report(India)( ALV report).In this report I want every component against gross,non tax, total, actual up to , projected up to amounts, and remaining section 80 ,total earning, total deducted and total tax amount ect..
Re: Component.js Importance and How to use it
Hi Indrajit,
Thanks.
I have maitained the folder structure as above and I have given some test sample content in the view and in the mainifest.json I have maintained the root view. But still I am not able to see the contents in the view.
manifest.json
{
"_version": "0.0.1",
"sap.app":
{
"name": "com.test",
"version": "0.0.1",
"description": "Sample application to understand component.js/json",
"dependencies": {
}
},
"sap.ui5": {
"_version": "1.1.0",
"rootView": "com.test.component.webapp",
"dependencies": {
"minUI5Version": "1.30",
"libs": {
"sap.m": {}
}
}
}
index.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-preload="async"
data-sap-ui-resourceroots='{
"com.test": "./"
}' >
</script>
<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->
<script>
/* sap.ui.localResources("component");
var app = new sap.m.App({initialPage:"idwebapp1"});
var page = sap.ui.view({id:"idwebapp1", viewName:"component.webapp", type:sap.ui.core.mvc.ViewType.XML});
app.addPage(page);
app.placeAt("content");*/
sap.ui.getCore().attachInit(function () {
new sap.ui.core.ComponentContainer({
name : "com.test"
}).placeAt("content");
});
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
Component.js
jQuery.sap.declare("com.test.Component");
sap.ui.core.UIComponent.extend("com.test.Component",
{
metadata : {
manifest: "json"
},
init : function ()
{
sap.ui.core.UIComponent.prototype.init.apply(this, arguments);
var oData = [
{lastName: "Richard", name: "Parker"},
{lastName: "Bruce", name: "Wayne"}
];
var oModel = new sap.ui.model.json.JSONModel(oData);
this.setModel(oModel);
var i18nModel = new sap.ui.model.resource.ResourceModel({
bundleUrl : "i18n/i18n.properties"
});
this.setModel(i18nModel, "i18n");
}
}
);
Regards,
Madhav
Decimal Calculation Problem
Hi All,
I am a newbie of ABAP programming. I have create a new routine for condition value by VOFM.
FORM FRM_KONDI_WERT_908.
*{ INSERT
DATA: p_value(7) TYPE p DECIMALS 4.
p_value = komp-brtwr * konp-kbetr / 10000.
xkomv-kbetr = konp-kbetr / 10.
xkwert = p_value.
*} INSERT
ENDFORM.
It is very strange that if p_value = 1.2340, xkwert will equal to 123.40 but not 1.23. It seems like the number format is right-justified.
Please kindly help on this issue....I have hold on this for a few days...Thanks~~!!
Re: Update SalesForecast error : "The remote procedure call failed."
Hi Pavel,
If your addon takes more than a certain amount of time to complete, it will automatically get disconnected by the UI server and result in that kind of error.
If your add-on needs to do heavy work in handler procedure of an SAP Business One event, we recommend that you call this method per minute. Otherwise, you might get errors like "System call failed. (Exception from HRESULT: 0x80010100 (RPC_E_SYS_CALL_FAILED))". This may occurs on a non-server edition Windows system (for example, Windows 7 and Windows XP) due to the post message limit of the Windows system.
You can use the SBO_Application.RemoveWindowsMessage(SAPbouiCOM.BoWindowsMessageType.bo_WM_TIMER, true);
to prevent the issue.
Best regards,
Pedro Magueija
Re: Disable EDIT button in all assigment blocks on OVP
Sorry , i forgot a word.
You will see code like below,
<thtmlb:areaFrameSetter toolbarButtons = "<%= controller->GT_BUTTONS %>"
maxButtonNumber = "3" />
what i mean is ,
if you want to hidden the button, add a line of code in the .htm and make it like below.
<% REFRESH controller->GT_BUTTONS .
%>
<thtmlb:areaFrameSetter toolbarButtons = "<%= controller->GT_BUTTONS %>"
maxButtonNumber = "3" />
and if you want to display only ,just change the code.
data: l_display type c.
l_dislpay = abap_true.
<chtmlb:config displayMode = "<%= l_display. %>"
Maybe your .HTM is not the same with my example, i think it has similar code , your can also add your condition codes for disabled the button in the .HTM.
In my solution it works well, wish this can help you.
Best regards.
Re: order type- new provision required
Re: when on bench, what do you do?
At time of a support project you dont get much of a good chance to learn something since you could be busy with other support projects.
But on bench its the real time when you get to spend on your own to understand and get to do R&D's on new portions.
Not only about the learning part but also could go through the old discussions on SCN.
Re: Task filter for My Inbox
Yes you can. By default all items are considered. Search for TaskProcessing Service configuration and you can configure tasks/workflows.
Re: Cannot establish connection with the registered driver. com.mysql.jdbc.Driver returns: com.mysql.jdbc.Driver
Re: UI BAdi for Translation Tab in Cost Center
We have Two CR Types for same entity CCTR. In one of them Description(Short) and Description(Medium) should be Greyed out and in other CR Type I should allow editing. Hence i am looking for BADI where i can enable/disable the fields accordingly. I tried using BADI: USMD_UI_EVENT2
But it is not triggering for Translation tab.
Re: How to link the DSO's 0PM_DS01 and 0PM_DS02 to the datasources
Hi,
Have you replicated or activated related data sources?
2LIS_18_I0NOTIF
2LIS_17_I0NOTIF.
From source(RSA5/LBWE) activate above data sources and replicate into bw.
later install required transformations or do the manual mapping from Data source to DSO.
Thanks