Popup
This commit is contained in:
@@ -16,6 +16,8 @@ CLASS lhc_Partner DEFINITION INHERITING FROM cl_abap_behavior_handler.
|
|||||||
IMPORTING keys FOR ACTION partner~fillemptystreets RESULT result.
|
IMPORTING keys FOR ACTION partner~fillemptystreets RESULT result.
|
||||||
METHODS copyline FOR MODIFY
|
METHODS copyline FOR MODIFY
|
||||||
IMPORTING keys FOR ACTION partner~copyline.
|
IMPORTING keys FOR ACTION partner~copyline.
|
||||||
|
METHODS withpopup FOR MODIFY
|
||||||
|
IMPORTING keys FOR ACTION partner~withpopup.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
@@ -180,4 +182,10 @@ CLASS lhc_Partner IMPLEMENTATION.
|
|||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD withPopup.
|
||||||
|
IF 0 = 0.
|
||||||
|
ENDIF.
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|||||||
@@ -10,4 +10,5 @@ define behavior for ZHS_C_RAPPartner alias Partner
|
|||||||
use action fillEmptyStreets;
|
use action fillEmptyStreets;
|
||||||
use action clearAllEmptyStreets;
|
use action clearAllEmptyStreets;
|
||||||
use action copyLine;
|
use action copyLine;
|
||||||
|
use action withPopup;
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,8 @@ annotate entity ZHS_C_RAPPartner with
|
|||||||
@UI.lineItem: [{ position: 20, importance: #MEDIUM },
|
@UI.lineItem: [{ position: 20, importance: #MEDIUM },
|
||||||
{ position: 10, type: #FOR_ACTION, label: 'Fill', dataAction: 'fillEmptyStreets' },
|
{ position: 10, type: #FOR_ACTION, label: 'Fill', dataAction: 'fillEmptyStreets' },
|
||||||
{ position: 20, type: #FOR_ACTION, label: 'Clear All', dataAction: 'clearAllEmptyStreets' },
|
{ position: 20, type: #FOR_ACTION, label: 'Clear All', dataAction: 'clearAllEmptyStreets' },
|
||||||
{ position: 30, type: #FOR_ACTION, label: 'Copy Line', dataAction: 'copyLine' }]
|
{ position: 30, type: #FOR_ACTION, label: 'Copy Line', dataAction: 'copyLine' },
|
||||||
|
{ position: 40, type: #FOR_ACTION, label: 'Popup', dataAction: 'withPopup' }]
|
||||||
@UI.identification: [{ position: 20, qualifier: 'PARTNER_INFO' }]
|
@UI.identification: [{ position: 20, qualifier: 'PARTNER_INFO' }]
|
||||||
@EndUserText.label: 'Partner'
|
@EndUserText.label: 'Partner'
|
||||||
@EndUserText.quickInfo: 'Identifier of the partner'
|
@EndUserText.quickInfo: 'Identifier of the partner'
|
||||||
|
|||||||
15
src/zhs_i_popupentity.ddls.asddls
Normal file
15
src/zhs_i_popupentity.ddls.asddls
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
@EndUserText.label: 'Entity for popup'
|
||||||
|
define abstract entity ZHS_I_PopupEntity
|
||||||
|
{
|
||||||
|
@Consumption.valueHelpDefinition: [{ entity: { name: 'ZHS_C_CountryVH', element: 'Country' } }]
|
||||||
|
@EndUserText.label: 'Search Country'
|
||||||
|
SearchCountry : land1;
|
||||||
|
@EndUserText.label: 'New date'
|
||||||
|
NewDate : abap.dats;
|
||||||
|
@EndUserText.label: 'Message type'
|
||||||
|
MessageType : abap.int4;
|
||||||
|
@EndUserText.label: 'Update data'
|
||||||
|
FlagUpdate : abap.char(1);
|
||||||
|
@EndUserText.label: 'Show Messages'
|
||||||
|
FlagMessage : abap_boolean;
|
||||||
|
}
|
||||||
17
src/zhs_i_popupentity.ddls.baseinfo
Normal file
17
src/zhs_i_popupentity.ddls.baseinfo
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"BASEINFO":
|
||||||
|
{
|
||||||
|
"FROM":
|
||||||
|
[],
|
||||||
|
"ASSOCIATED":
|
||||||
|
[],
|
||||||
|
"BASE":
|
||||||
|
[],
|
||||||
|
"ANNO_REF":
|
||||||
|
[],
|
||||||
|
"SCALAR_FUNCTION":
|
||||||
|
[],
|
||||||
|
"VERSION":0,
|
||||||
|
"ANNOREF_EVALUATION_ERROR":""
|
||||||
|
}
|
||||||
|
}
|
||||||
13
src/zhs_i_popupentity.ddls.xml
Normal file
13
src/zhs_i_popupentity.ddls.xml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DDLS" serializer_version="v1.0.0">
|
||||||
|
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||||
|
<asx:values>
|
||||||
|
<DDLS>
|
||||||
|
<DDLNAME>ZHS_I_POPUPENTITY</DDLNAME>
|
||||||
|
<DDLANGUAGE>E</DDLANGUAGE>
|
||||||
|
<DDTEXT>Entity for popup</DDTEXT>
|
||||||
|
<SOURCE_TYPE>A</SOURCE_TYPE>
|
||||||
|
</DDLS>
|
||||||
|
</asx:values>
|
||||||
|
</asx:abap>
|
||||||
|
</abapGit>
|
||||||
@@ -22,6 +22,8 @@ authorization master ( instance )
|
|||||||
static action clearAllEmptyStreets;
|
static action clearAllEmptyStreets;
|
||||||
factory action copyLine [1];
|
factory action copyLine [1];
|
||||||
|
|
||||||
|
static action withPopup parameter ZHS_I_PopupEntity;
|
||||||
|
|
||||||
mapping for zhs_dmo_partner
|
mapping for zhs_dmo_partner
|
||||||
{
|
{
|
||||||
PartnerNumber = partner;
|
PartnerNumber = partner;
|
||||||
|
|||||||
Reference in New Issue
Block a user