0% found this document useful (0 votes)
648 views14 pages

How To Add or Use The Customer Fields in ESS Leave Request - SAP Blogs

How to Add or Use the Customer Fields in ESS Leave Request

Uploaded by

charanccc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
648 views14 pages

How To Add or Use The Customer Fields in ESS Leave Request - SAP Blogs

How to Add or Use the Customer Fields in ESS Leave Request

Uploaded by

charanccc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

GetStarted

Solutions Support Training Community Developer Partner

About

Community / Blogs

HowtoAddorUsetheCustomer
FieldsinESSLeaveRequest
April14,2014 | 907Views |
MohsinSyed
morebythisauthor

HCMEmployeeSelfService
SAPERP | customisation | employeeselfservice | employeeselfservicewebdynpro | enterprise
resourceplanning | ess/mss | floorplanmanagerforwebdynproabap | portal

share
0 share
0 tweet share
0

Follow

ThisblogexplainsHowtoAddorUsetheCustomerFieldsinESSLeave
Request.

Requirement:Icameacrosssomediscussionshowcanweadda
CustomerfieldtouseasaCheckboxorDropdownlistinESSLeave
Request,Soletmeexplainsomeofthisscenarios.

Solution:

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 1/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

YoucandowithCustomizationofFPMcomponent

Step1:

GotoIMGpathinTx:SPRO

PersonnelManagement>EmployeeSelfService(WebDynproABAP)>
ServiceSpecificSettings>WorkingTime>LeaveRequests>
ProcessingProcesses>SpecifyProcessingProcessesforTypesof
Leave>DefineAbsences/ProcessingProcesses>Choose

ChoosetheLeavetypeforwhichyouneedtheCustomerField,forex:
SMCL(CasualLeave).

HereyoucanfindtheFieldSelectionforAdditionalDatayouneedto
selectoneofthevaluefromF4helpasshownbelow.

Step2:

GotoTx:SE80andselectWebdynproComponentas
FPM_FORM_UIBB

ExpandComponentConfigurationsandselect
HRESS_CC_GUIBBF_LEAVREQandStartConfigurator

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 2/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

YouneedtocreateEnhancementbygoingtoOtherfunctionsbuttonas
shownbelow.

GivethenameasZ_HRESS_CC_GUIBBF_LEAVREQandSAVEit.

GotoZ_HRESS_CC_GUIBBF_LEAVREQandStartConfiguratorand
ClickonChangebuttonasshown

GotoGroupAdditionalData,Elements

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 3/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

ChangetheAttributesasshownbelow

Step3:

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 4/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

GotoTx:SE80andselectWebdynproComponentas
FPM_OVP_COMPONENT

ExpandComponentConfigurationsandselect
HRESS_CC_PTARQ_LEAVREQandStartConfigurator.

YouneedtocreateEnhancementbygoingtoOtherfunctionsbuttonas
shownbelow.

GivethenameasZ_HRESS_CC_PTARQ_LEAVREQandSAVEit.

GotoZ_HRESS_CC_PTARQ_LEAVREQandStartConfiguratorand
ClickonChangebuttonasshown

GotoPageLRFasshownbelow

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 5/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

GotoSELECTION_FORMtabandClickonAttributesandchangethe
ConfigurationNameasZ_HRESS_CC_GUIBBF_LEAVREQ

ClickonSave,thatshouldlooklikebelow

Step4:

ExpandWebdynproApplicationsandselect
HRESS_A_PTARQ_LEAVREQ_APPL

ExpandHRESS_A_PTARQ_LEAVREQ_APPLgoto
HRESS_AC_PTARQ_LEAVREQandStartConfigurator

YouneedtocreateEnhancementbygoingtoOtherfunctionsbuttonas
shownbelow.

GivethenameasZ_HRESS_AC_PTARQ_LEAVREQandSAVEit.

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 6/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

NowyouwillseethenewConfigurationComponentatApplic.
ConfigurationswiththeaboveZname.

GotoZ_HRESS_AC_PTARQ_LEAVREQandStartConfiguratorand
ClickonChangebuttonasshown.

ThenChangetheconfigurationtoZ_HRESS_CC_PTARQ_LEAVREQ
andclickonsaveasshownbelow.

Output:

LoginintoPortalandgotoCreateLeaverequestPageyouwillfindthe
AdditionalDataFieldHoursasCheckboxasshownbelow.

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 7/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

TheAdditionalDataFieldwillappearonlyforCASUALLEAVEasyou
haveconfiguredforonlySMCLinStep1.

BusinessLogic/Validations:

ThebusinesslogicshouldbewrittenintheBADIPT_ABS_REQinthe
methodSIMULATE_VIA_BLOP

ThenyoucanvalidatebyseeingtheValueaschecked(X)for
Customer01fieldinthedebuggingmodeasshownbelow.

OpenIM_ATTABS_TABbydoubleclick,youcanseetheCustomer01
fieldValueasX.

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 8/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

Youcanwriteyourownlogicforvalidationsfurtherforthisfield.

DropdownList

ForGettingthefieldasDropdown.

Instep2,forexampleselecttheCustomer02fieldandchangethe
displaytypeasDropDowninAttributesElement.

Toassignthevaluesforthedropdownlistyouneedtoenhancethe
methodMODIFY_DEF_DEFAULT_LABEL(attheendofthismethod)of
classCL_HRESS_PTARQ_LEAVREQ_GUIBBFwriteyourlogic,for
exampleasbelow.

Examplecode:

data:lt_fixed_valuestype
WDR_CONTEXT_ATTR_VALUE_LIST,

ls_fixed_valuestypeWDR_CONTEXT_ATTR_VALUE.

READTABLEct_field_descriptionASSIGNING<field_descr>

WITHKEYname=CUSTOMER02.

IFsysubrcISINITIAL.

ls_fixed_valuesvalue=01.

ls_fixed_valuestext=MALE.

insertls_fixed_valuesintotablelt_fixed_values.

<field_descr>fixed_values=lt_fixed_values.

ENDIF.

TheremightbesomeotherwaystogetthisrequirementdonebutI
followedthisway.Ifanythingbestpleaseletmeknow.

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 9/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

HopeThisbloghelpsallofyouAnycommentsorsuggestionsare
mostwelcome

Regards,

Mohsin.

AlertModerator

13Comments
YoumustbeLoggedontocommentorreplytoapost.

YugandharReddy

April14,2014at12:26pm

ThanksSyedforthedetails,itwillhelpthecommunity.
Keepitupandkeeppostingsuchusefulstuff.

MohsinSyed Postauthor

April15,2014at7:20am

ThanksYugandhar
Regards,
Mohsin

MALYADRIJWALAG

April14,2014at2:04pm

gudjob

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 10/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

MohsinSyed Postauthor

April15,2014at7:21am

ThanksJWALA.
Regards,
Mohsin

LinkinPereira

April17,2014at6:17am

Veryhelpful.Anotheroneinourconsultanttoolbox

VinothKumar

April18,2014at5:06am

ThanksSyedforsharing.Havebelowquery.
FieldselectionforadditionaldataSAP_EDU.HowisthisSAP_EDUislinkedor
canwegiveanyothervalues?

MohsinSyed Postauthor

April23,2014at9:17am

HiVinoth,
SAP_EDUisstandardFieldSelectionprovidedbySAPwhereinyou
canfindadditionalFieldslikeCustomerFields.ifyouwanttogive
anyothervaluesyoucangivebutyouneedtocreatenewField
SelectiongoingthroughSPROIMGPathDefineFieldSelection.
Regards,
Mohsin.

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 11/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

BharatVenkat

April30,2014at11:40pm

HiMohsin,
Goodblog.
CanyoutellifthisisEHP5orEHP6.
Regards,
Bharat

MohsinSyed Postauthor

May2,2014at9:12am

HiBharath,
Thanks,thisisEHP6.
Regards,
Mohsin.

BharatVenkat

May2,2014at1:56pm

HiMohsin,
Thanks.
CanyoutellmewhereIcanfindconfiguration
documentsforportalversionofESS/MSS!
InfactIamafunctionalconsultant.Whatallinportal
doIneedtoknowregardingESS/MSSfunctional.
Regards,
Bharat

SaiBalaji

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 12/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

January3,2015at10:19pm

HiMoshin,
TheblogwashelpfultoaddtheCUSTOMERfieldstothestandardapplication.
IneedmakeoneofthecustomerfieldsasaDATEfield.Couldyoupleaseletme
knowhowcouldIachievethis?
Thanks,
Balajii
P.S:Ihavealsostartedthediscussionaroundthesamequeryatcustomfield
propertiesinESSLeaveRequest

ZhaohuaZhu

January2,2016at1:38pm

HiMoshin,
Thanksalotforyourpost.Itsveryhelpful.However,NowIamfacingaclient
requirementtoimplementalinktourlintheleaveapplicationscreen.Istherea
waytodothat?
IhavetakenalookatthecustomerfieldsattributesanditseemsthatIcanonly
selectlinktoaction.Iftheresnowaytoimplementlinktourl,isthereawayto
uselinktoactiontoactivatearedirectiontoawebsiteonclick?
Manythanks.
Isaac

NARENDERSINGH

February17,2017at5:27pm

HiMohsin,
WehaveimplementedtheleaverequestapplicationinbothESSandFioriwith
anadditionalfieldcalledNumberofDays.InESSthefieldisautopopulated
withzerobutinFioriitscomingblank.

DoyouknowanycustomizingspotorBADIwherewecansetthedefaultvalue
inthecustomfield.IcheckedtheconfigurationonSPROandalso

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 13/14
2017510 HowtoAddorUsetheCustomerFieldsinESSLeaveRequest|SAPBlogs

BADIPT_ABS_REQwhereweaddthecustomfield,butiamnotabletodefault
thevalue.

Regards,
Narender

Share & Follow


Privacy TermsofUse LegalDisclosure Copyright Trademark Sitemap Newsletter

https://blogs.sap.com/2014/04/14/howtoaddorusethecustomerfieldsinessleaverequest/ 14/14

You might also like