0% found this document useful (0 votes)
5 views

mvcView controllerName=com.ihcltcs.

The document outlines an SAP UI5 XML view for a Master Data application, featuring an Object Page Layout that includes input fields for plant codes and a table for business master data. It provides functionality for adding, deleting, and saving entries, as well as dialogs for material and supplier code value help. The layout is designed with responsive elements and includes various UI components such as buttons, labels, and tables to facilitate user interaction.

Uploaded by

Ameya Ranade
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

mvcView controllerName=com.ihcltcs.

The document outlines an SAP UI5 XML view for a Master Data application, featuring an Object Page Layout that includes input fields for plant codes and a table for business master data. It provides functionality for adding, deleting, and saving entries, as well as dialogs for material and supplier code value help. The layout is designed with responsive elements and includes various UI components such as buttons, labels, and tables to facilitate user interaction.

Uploaded by

Ameya Ranade
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

<mvc:View controllerName="com.ihcltcs.zshrbusinessmast.controller.

MasterData"
xmlns:mvc="sap.ui.core.mvc" displayBlock="true"
xmlns="sap.m"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:f="sap.ui.layout.form"
xmlns:l="sap.ui.layout"
xmlns:u="sap.uxap">
<App>
<pages>
<Page id="page">
<u:ObjectPageLayout id="ObjectPageLayout"
showTitleInHeaderContent="false" upperCaseAnchorBar="false">
<u:headerTitle>
<u:ObjectPageDynamicHeaderTitle visible="false">
<!-- <heading>
<m:ObjectStatus ></m:ObjectStatus>
</heading> -->
</u:ObjectPageDynamicHeaderTitle>
</u:headerTitle>
<u:headerContent>
<FlexBox wrap="Wrap">
<Label id="lPlant" required="true"
text="{i18n>label.PlantCd}" class="sapUiLargeMarginBegin sapUiTinyMarginTop"
visible="true"/>
<Input id="IPlant" class="sapUiSmallMarginBegin"
value="{werks}" liveChange="onPlantLiveChg" maxLength="4" editable="true"
width="52px" visible="true"/>
<Text id="IPlantDesc" class="sapUiSmallMarginBegin
sapUiTinyMarginTop" text="{i18n>text.PlantDesc}"/>
</FlexBox>
<HBox justifyContent="End" class="sapUiSmallMarginBottom">
<ToolbarSpacer/>
<Button id="bAdd" icon="sap-icon://add"
press="handleValueHelpRequest" class="sapUiSmallMarginEnd"/>
<Button id="bDelete" icon="sap-icon://delete"
press="onDeleteRow" class="sapUiSmallMarginEnd"/>
<Button id="bSave" type="Emphasized"
text="{i18n>button.Save}" class="sapUiSmallMarginEnd"/>
</HBox>
</u:headerContent>
<u:sections>
<u:ObjectPageSection titleUppercase="false"
showTitle="false">
<u:subSections>
<u:ObjectPageSubSection showTitle="false"
titleUppercase="false">
<u:blocks>
<ScrollContainer width="100%"
horizontal="true" vertical="true">
<Table id="tBusinessMaster"
growing="true" fixedLayout="false" growingScrollToLoad="true" growingThreshold="20"
mode="MultiSelect" items="{/MaterialData}" sticky="ColumnHeaders,HeaderToolbar"
class="sapUiResponsiveMargin">
<columns>
<Column id="C1"
hAlign="Center">
<Text id="T1"
text="{i18n>Column.MaterialCd}"/>
</Column>
<Column id="C2"
hAlign="Center">
<Text id="T2"
text="{i18n>Column.Description}"/>
</Column>
<Column id="C3" hAlign="Center"
width="80px">
<Text id="T3"
text="{i18n>Column.UOM}"/>
</Column>
<Column id="C4" hAlign="Center"
width="100px">
<Text id="T4"
text="{i18n>Column.Supp1_Code}"/>
</Column>
<Column id="C5" hAlign="Center"
width="120px">
<Text id="T5"
text="{i18n>Column.Supp1_Name1}"/>
</Column>
<Column id="C6"
hAlign="Center">
<Text id="T6"
text="{i18n>Column.Supp1_Perc}"/>
</Column>
<Column id="C7" hAlign="Center"
width="100px">
<Text id="T7"
text="{i18n>Column.Supp2_Code}"/>
</Column>
<Column id="C8" hAlign="Center"
width="120px">
<Text id="T8"
text="{i18n>Column.Supp2_Name1}"/>
</Column>
<Column id="C9"
hAlign="Center">
<Text id="T9"
text="{i18n>Column.Supp2_Perc}"/>
</Column>
<Column id="C10"
hAlign="Center" width="100px">
<Text id="T10"
text="{i18n>Column.Supp3_Code}"/>
</Column>
<Column id="C11"
hAlign="Center" width="120px">
<Text id="T11"
text="{i18n>Column.Supp3_Name1}"/>
</Column>
<Column id="C12"
hAlign="Center">
<Text id="T12"
text="{i18n>Column.Supp3_Perc}"/>
</Column>
<Column id="C13"
hAlign="Center">
<Text id="T13"
text="{i18n>Column.Total_Perc}"/>
</Column>
</columns>
<items>
<ColumnListItem id="cLI"
vAlign="Middle">
<cells>
<Text id="tMaterial"
text="{Matnr}"/>
<Text id="tDescription"
text="{Descr}"/>
<Text id="tUOM"
text="{Meins}"/>

<!-- search help -->


<Input id="tSupp1Cd"
valueHelpRequest="handleSupplierCodeValueHelpRequest" showValueHelp="true"
value="{Lifnr1}"/>

<Text id="tSuppNm1"
text="{VendorName1}"/>
<Input id="tSupp1Pr"
maxLength="3" liveChange="fnLchCheckPercentage" change="fnChCheckPercentage"
textAlign="Center" value="{Lifnr1_Per}"/>

<!-- search help -->


<Input id="tSupp2Cd"
valueHelpRequest="handleSupplierCodeValueHelpRequest" showValueHelp="true"
value="{Lifnr2}"/>

<Text id="tSuppNm2"
text="{VendorName2}"/>
<Input id="tSupp2Pr"
maxLength="3" liveChange="fnLchCheckPercentage" change="fnChCheckPercentage"
textAlign="Center" value="{Lifnr2_Per}"/>

<!-- search help -->


<Input id="tSupp3Cd"
valueHelpRequest="handleSupplierCodeValueHelpRequest" showValueHelp="true"
value="{Lifnr3}"/>

<Text id="tSuppNm3"
text="{VendorName3}"/>
<Input id="tSupp3Pr"
maxLength="3" liveChange="fnLchCheckPercentage" change="fnChCheckPercentage"
textAlign="Center" value="{Lifnr3_Per}"/>
<Text id="tTotalPr"
textAlign="Center" text="{TotalPercentage}"/>
</cells>
</ColumnListItem>
</items>
<layoutData>
<l:GridData linebreakS="true"
linebreakM="true" linebreakL="true" indent="L0 M0 S0" span="L12 M12 S12"/>
</layoutData>
</Table>
</ScrollContainer>
</u:blocks>
</u:ObjectPageSubSection>
</u:subSections>
</u:ObjectPageSection>
</u:sections>
</u:ObjectPageLayout>
</Page>
<Page>
<Dialog id="addRowDialog" title="Set Material"
contentWidth="400px">
<VBox>
<Label text="Material Code" labelFor="materialInput"
class="sapUiTinyMarginBegin" />

<!-- we need search help -->


<Input id="materialInput" required="true"
valueHelpRequest="handleMaterialCodeValueHelpRequest" showValueHelp="true"
placeholder="Material Code" width="350px" class="sapUiTinyMarginBegin" />
</VBox>

<beginButton>
<Button text="OK" press=".onDialogConfirm" />
</beginButton>
<endButton>
<Button text="Cancel" press=".onDialogCancel" />
</endButton>
</Dialog>
</Page>
<Page id="dialogPage">
<Dialog id="diaValueHelpMaterialCode"
title="{i18n>title.MaterialCode}" contentWidth="30rem" contentHeight="30rem">
<SearchField id="searchMaterialCode" width="100%"
placeholder="{i18n>placeholder.Search}" liveChange="onSearchMaterialCode"
search="onMaterialCode" />
<Table id="tMaterialCode" mode="None" items="{/results}">
<columns>
<Column>
<header>
<Label text="{i18n>Column.MaterialCd}"
textAlign="Center" />
</header>
</Column>
<Column>
<header>
<Label text="{i18n>Column.Description}"
textAlign="Center" />
</header>
</Column>
<Column>
<header>
<Label text="{i18n>Column.UOM}"
textAlign="Center" />
</header>
</Column>
</columns>
<items>
<ColumnListItem type="Active"
press="fnMaterialCodeVHPress">
<Text id="tVHMaterialCd" text="" />
<Text id="tVHDescription" text="{}"/>
<Text id="tVHUOM" text="{}"/>
</ColumnListItem>
</items>
</Table>
<buttons>
<Button text="{i18n>button.Cancel}"
press="fnCloseMaterialCdVH"></Button>
</buttons>
</Dialog>
</Page>

<Page id="dialogSupplyPage">
<Dialog id="diaValueHelpSupplierCode"
title="{i18n>title.SupplierCode}" contentWidth="25rem" contentHeight="25rem">
<SearchField id="searchSupplierCode" width="100%"
placeholder="{i18n>placeholder.Search}" liveChange="onSearchSupplierCode"
search="onMaterialCode" />
<Table id="tSupplierCode" mode="None" items="{/results}">
<columns>
<Column>
<header>
<Label text="{i18n>Column.SupplierCode}"
textAlign="Center" />
</header>
</Column>
<Column>
<header>
<Label text="{i18n>Column.SupplierName}"
textAlign="Center" />
</header>
</Column>
</columns>
<items>
<ColumnListItem type="Active"
press="fnSupplierCodeVHPress">
<Text id="tVHSupplierCode" text="{}" />
<Text id="tVHSupplierName" text="{}"/>
</ColumnListItem>
</items>
</Table>
<buttons>
<Button text="{i18n>button.Cancel}"
press="fnCloseSupplierCodeVH"></Button>
</buttons>
</Dialog>
</Page>

</pages>
</App>
</mvc:View>

<!-- <sf:SmartField id="idsmfldstrg" showValueHelp="true"


textLabel="{i18n>txt_strg}" value="" showValueStateMessage="true"
showSuggestion="true"></sf:SmartField> -->

You might also like