diff --git a/src/zbp_hs_i_rappartner.clas.locals_imp.abap b/src/zbp_hs_i_rappartner.clas.locals_imp.abap index 860937a..84758c6 100644 --- a/src/zbp_hs_i_rappartner.clas.locals_imp.abap +++ b/src/zbp_hs_i_rappartner.clas.locals_imp.abap @@ -16,6 +16,8 @@ CLASS lhc_Partner DEFINITION INHERITING FROM cl_abap_behavior_handler. IMPORTING keys FOR ACTION partner~fillemptystreets RESULT result. METHODS copyline FOR MODIFY IMPORTING keys FOR ACTION partner~copyline. + METHODS withpopup FOR MODIFY + IMPORTING keys FOR ACTION partner~withpopup. ENDCLASS. @@ -180,4 +182,10 @@ CLASS lhc_Partner IMPLEMENTATION. ENDMETHOD. + METHOD withPopup. + IF 0 = 0. + ENDIF. + + ENDMETHOD. + ENDCLASS. diff --git a/src/zhs_c_rappartner.bdef.asbdef b/src/zhs_c_rappartner.bdef.asbdef index 231b212..a3c2cd3 100644 --- a/src/zhs_c_rappartner.bdef.asbdef +++ b/src/zhs_c_rappartner.bdef.asbdef @@ -10,4 +10,5 @@ define behavior for ZHS_C_RAPPartner alias Partner use action fillEmptyStreets; use action clearAllEmptyStreets; use action copyLine; + use action withPopup; } \ No newline at end of file diff --git a/src/zhs_c_rappartner.ddlx.asddlxs b/src/zhs_c_rappartner.ddlx.asddlxs index da50780..6b8a5f2 100644 --- a/src/zhs_c_rappartner.ddlx.asddlxs +++ b/src/zhs_c_rappartner.ddlx.asddlxs @@ -36,7 +36,8 @@ annotate entity ZHS_C_RAPPartner with @UI.lineItem: [{ position: 20, importance: #MEDIUM }, { position: 10, type: #FOR_ACTION, label: 'Fill', dataAction: 'fillEmptyStreets' }, { 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' }] @EndUserText.label: 'Partner' @EndUserText.quickInfo: 'Identifier of the partner' diff --git a/src/zhs_i_popupentity.ddls.asddls b/src/zhs_i_popupentity.ddls.asddls new file mode 100644 index 0000000..fb2bca7 --- /dev/null +++ b/src/zhs_i_popupentity.ddls.asddls @@ -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; +} diff --git a/src/zhs_i_popupentity.ddls.baseinfo b/src/zhs_i_popupentity.ddls.baseinfo new file mode 100644 index 0000000..8a07ae1 --- /dev/null +++ b/src/zhs_i_popupentity.ddls.baseinfo @@ -0,0 +1,17 @@ +{ +"BASEINFO": +{ +"FROM": +[], +"ASSOCIATED": +[], +"BASE": +[], +"ANNO_REF": +[], +"SCALAR_FUNCTION": +[], +"VERSION":0, +"ANNOREF_EVALUATION_ERROR":"" +} +} \ No newline at end of file diff --git a/src/zhs_i_popupentity.ddls.xml b/src/zhs_i_popupentity.ddls.xml new file mode 100644 index 0000000..7579a8a --- /dev/null +++ b/src/zhs_i_popupentity.ddls.xml @@ -0,0 +1,13 @@ + + + + + + ZHS_I_POPUPENTITY + E + Entity for popup + A + + + + diff --git a/src/zhs_i_rappartner.bdef.asbdef b/src/zhs_i_rappartner.bdef.asbdef index f263139..c79d82e 100644 --- a/src/zhs_i_rappartner.bdef.asbdef +++ b/src/zhs_i_rappartner.bdef.asbdef @@ -22,6 +22,8 @@ authorization master ( instance ) static action clearAllEmptyStreets; factory action copyLine [1]; + static action withPopup parameter ZHS_I_PopupEntity; + mapping for zhs_dmo_partner { PartnerNumber = partner;