RSPDN1622684

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

PROCESS DIRECTOR Note

Number 1622684

Subject Fiori: Support Input type Check box

Component Fiori Library

Available with version 1.4.2

Requires version 1.4.1.2

Description

In Fiori PDAP app the field should appear as Checkbox if the domain is XFELD and in the View model
setting the Input type is CHECKBOX.

Note: In the Fiori application we only support CHECKBOX and an empty Input Type, other types are
available only for Web App. The INVOICE_IND field is defined as Drop down list and the Input type
must be "No value" in the /EBY/PDBOC settings.

Pre-correction.
Corrections must be performed in BSP Application /EBY/FR_LIB.
1. Modify file common/fields/FieldControl.js of application /EBY/FR_LIB using SAP
transaction se80. And replace the current code with code from
1622684_FieldControl.js.txt file:
PROCESS DIRECTOR Note

2. Modify file common/fields/FieldFactory.js of application /EBY/FR_LIB using SAP


transaction se80. And replace the current code with code from
1622684_FieldFactory.js.txt file:

2
PROCESS DIRECTOR Note

Activate the changes.

3. Modify file UI5557271CF625C389D3317CF882F3613FA18034846 of application


/EBY/FR_LIB using SAP transaction se80. And replace the current code with code from
1622684_ UI5557271CF625C389D3317CF882F3613FA18034846.txt file:

3
PROCESS DIRECTOR Note

4. Go to SAP transaction se38 and Execute program /UI5/APP_INDEX_CALCULATE

On the next screen, choose second tab, enter in the SAPUI5 Repository field the value /EBY/FR_LIB
and press the execute button

Click continue on the pop-up window

You will see the following result:

4
PROCESS DIRECTOR Note

5
PROCESS DIRECTOR Note

5. Cleanup of Model Cache.


Go to SAP transaction /IWBEP/CACHE_CLEANUP, enter checkbox and click Execute

You will see the following result:

6
PROCESS DIRECTOR Note

6. Go to se24 transaction and enter Object Type /EBY/CL_FR_OMODEL_BUILDER and push


button Change:

On the next screen, select the CREATE_PROPERTY method and press the Parameters button:

7
PROCESS DIRECTOR Note

Add new parameter IC_WEB_ITYPE:

Parameter Type Typing method Associated type

IC_WEB_ITYPE Importing Type /EBY/PDVI_DWEB_INPUT_TYPE

8
PROCESS DIRECTOR Note

7. Modify the source code of the /EBY/CL_FR_OMODEL_BUILDER->CREATE_PROPERTY


method as follows:

WHEN 'TIMS'. "#EC NOTEXT


mr_current_field->set_type_edm_time( ).
WHEN 'CHAR' OR 'STRING'. "#EC NOTEXT
>>>DELETE
mr_current_field->set_type_edm_string( ).
<<<DELETE
>>>INSERT
IF ic_web_itype = 'CHECKBOX' AND ic_dmi_name NE 'INVOICE_IND'.
mr_current_field->set_type_edm_boolean( ).
ELSE.
mr_current_field->set_type_edm_string( ).
ENDIF.
<<<INSERT

** For charactes we have different values of INTLEN for the same field (fo
r example CHAR20)
** when defined in structure or in view model. But we have field OUTPUTLEN
, then value
** is correct
mr_current_field->set_maxlength( li_out_len ).
WHEN 'LANG' OR 'UNIT' OR 'NUMC' OR 'CUKY'. "#EC NOTEXT

It should look like this:

9
PROCESS DIRECTOR Note

8. Modify the source code of the /EBY/CL_FR_MPC->PROCESS_ENTITY method as follows:


ib_is_key = ls_field-gridkey
ib_is_currency_field = ls_field-is_currency
ic_currency_field = ls_field-odata_currency_field
ib_is_uom_field = ls_field-is_uom
>>>DELETE
ic_uom_field = ls_field-odata_uom_field ).
<<<DELETE
>>>INSERT
ic_uom_field = ls_field-odata_uom_field
ic_web_itype = ls_field-web_itype ).
<<<INSERT
ENDLOOP.

ENDMETHOD.

It should look like this:

10
PROCESS DIRECTOR Note

9. In the /EBY/PDBOC settings the input type for the INVOICE_IND field must be "No value".

Object type Component type GridNo Env. Logical level Field Web Type
IV WA_DOC 21 FI HEADER INVOICE_IND No value
IV WA_DOC 24 FI ACCOUNT INVOICE_IND No value

11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy