This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mvc:View | |
controllerName="logali.table.controller.MainView" | |
xmlns:mvc="sap.ui.core.mvc" | |
displayBlock="true" | |
xmlns="sap.m" | |
xmlns:core="sap.ui.core"> | |
<Shell id="shell"> | |
<App id="app"> | |
<pages> | |
<Page id="page" title="{i18n>title}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onChangeUser: function (oEvent) { | |
//Getting the input value | |
const value = oEvent.getSource().getValue(); | |
//checking if the value is distinct from space | |
if (value !== "") { | |
//Getting the model | |
const oViewModel = this.getView().getModel("oViewModel"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addItemSecondary: function () { | |
//getting the model | |
const oViewModel = this.getView().getModel("oViewModel"); | |
//getting the "secondary" array | |
const secondary = oViewModel.getProperty("/secondary"); | |
//getting the last id | |
let orderId = secondary.length + 1; | |
//adding the item to the model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addItemMain: function () { | |
//getting the model | |
const oViewModel = this.getView().getModel("oViewModel"); | |
//getting the "main" array | |
const main = oViewModel.getProperty("/main"); | |
//getting the last id | |
let userId = main.length + 1; | |
//adding the item to the model | |
main.push({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onInit: function () { | |
const oViewModel = new sap.ui.model.json.JSONModel({ | |
main: [], | |
secondary: [] | |
}) | |
this.getView().setModel(oViewModel, "oViewModel"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Table items="{oViewModel>/secondary}"> | |
<headerToolbar> | |
<Toolbar> | |
<ToolbarSpacer /> | |
<Button icon="sap-icon://add" press="addItemSecondary"></Button> | |
</Toolbar> | |
</headerToolbar> | |
<columns> | |
<Column> | |
<Label text="{i18n>orderId}"></Label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Table items="{oViewModel>/main}"> | |
<headerToolbar> | |
<Toolbar> | |
<ToolbarSpacer /> | |
<Button icon="sap-icon://add" press="addItemMain"></Button> | |
</Toolbar> | |
</headerToolbar> | |
<columns> | |
<Column> | |
<Label text="{i18n>userId}"></Label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zbloqueo_logali. | |
CALL FUNCTION 'ENQUEUE_EZ_FACT_LOGALI' | |
EXPORTING | |
mode_zfact_logali = 'E' | |
mandt = sy-mandt | |
* factura = | |
* x_factura = ' ' | |
_scope = '2' | |
_wait = ' ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CALL FUNCTION 'DEQUEUE_EZ_FACT_LOGALI' | |
EXPORTING | |
mode_zfact_logali = 'E' | |
mandt = sy-mandt | |
* FACTURA = | |
x_factura = ' ' | |
_scope = '3' | |
_synchron = ' ' | |
_collect = ' '. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA gs_factura TYPE zfact_logali. | |
gs_factura-factura = '0000000001'. | |
INSERT zfact_logali FROM gs_factura. |
NewerOlder