Showing posts with label BAdi. Show all posts

PMS Template disabling header access and controlling pms dates

8:13 PM
How to disable the header for the template so that user cant change:-
1. supervisor
2. validity date

goto se19
-> HRHAP00_ACC_HEADER (make a new badi base on this ie zhrap00_acc_header)
double click on GET_HEADER_ACCESS
S_HEADER_CUST_DISPLAY-APPRAISER = ' '. " to prevent user from changing the supervisor
S_HEADER_CUST_DISPLAY-VALIDITY_PERIOD = ' '. "to disable user from changing the dates


-> HRHAP00_DOC_DEF_DV (make a new badi base on this ie zHRHAP00_DOC_DEF_DV)
double click on DEFAULT_PERIOD

* changing default date to appraisal period
DATA: BEGDA TYPE DATUM,
ENDDA TYPE DATUM.
BEGDA = SY-DATUM.
BEGDA+4(4) = '0201'."february 01
ENDDA+4(4) = '0630'."june 30
ENDDA+0(4) = SY-DATUM+0(4) + 1. "adding current year

* set exporting data
S_PERIOD_VALIDITY-AP_START_DATE = BEGDA.
S_PERIOD_VALIDITY-AP_END_DATE = ENDDA.
NO_STANDARD_DEFAULTING = C_TRUE.



* note do remember you need to add the badi into sm34 so that the badi is shown under further template behaviour.
Read On 0 comments

Changing appraisal header

12:10 AM

Assignment was to control the validity of the calender header of the appraisal template
Badi notes :

Calender BADI : - HRHAP00_DOC_DEF_DV

tcode :-
se19 (BADI)

Cluster Table :- VC_T77HAP_CATEGORY (enter the Badi into this table first then OOAM)

tcode : sm34 to access the table

tcode :- OOAM (Enter into the template under "Layout")
Read On 0 comments

2008 June 25 How to Create BAdi

5:20 AM
BAdi For current development
Adviced by Pak Nanang,Wai Meng and Radi.
TCode(TransactionCode)
SE18 - DisplayBAdi
SE19 - CreateBAdi

Deduction is within a standard SAP program there are places we can customized to our own requirements. The places are called user exit.
For my current limited knowledge:-
1. BAdi TCode - se19,se18
2. Dynamic Action

Been guided to do BAdi in two different ways.
1. SE19 -> Create Implementation -> Choose classic BAdi(Select from the list z* find) -> Press Create Impl. -> Choose the new name + The App Name. Then Change and Save the method you modify added.
2. OOAM -> Goto -> Enhancement (this is the place where you can find the list of BAdi related to PMS only so you do not need to search for z*) -> Choose classic BAdi

Why some programmers use se19 instead of ooam this is because they might want to us another BAdi which can do the desire value or behavior.

For the enhancement
The tcode use is
SE19
( to create ),
OOAM ( to view the layout and put the BAdi inside the PMS form - Functional Changes),
phap_admin_pa ( to execute the app ).
Appcreate ( to run the app but in more web based )

Guide was given by Wai Meng to find the coordinates in the forms ( using the debug mode - create a break point - look into the table (t_body) and find the unique Row and column Id)
Guide given by Pak Nanang was basically on how to create the BAdi and placement.
Guide given by Radi was basically the logic and the place to pin point the score value to be use by the Badi.

----------------------------------------------------

TCODE Picked Up
PFTC_DIS - workflow
SE91 - Message (havent test)

TABLE
T9B03 - The Value and coordinate use by the BAdi

Notes : I could be wrong any SAPIAN out there if i am wrong in any of my post please do voice out Thanks in advance



More How to and Tips :

https://www.sdn.sap.com/irj/sdn/thread?tstart=0&threadID=767077

http://searchsap.techtarget.com/tip/0,289483,sid21_gci1276392,00.html
Read On 0 comments

2008 June 17 PMS 2.15pm 05.30pm

5:15 AM

Transfer Knowledge on PMS

BAdi
For the non executive therae will be no changes.
MXXXX Financial period is from 1 July – 31 June (next year)

BAdi (based from explaination)
The SAP flow where there are UserEXIT (this is the place where we can change).
BAdi is one of the UserEXIT
So when ever there is a UPGRADE programmers should be there if there will be any overwriting to the customized changes.

Transaction Codes – SE19
(Changing BAdi) (implementation – it will implement the changes to a new BAdi almost like copy)

Transaction Codes – SE18
To View BAdi

  • Implementation is a change not copy
  • Best to create one template to call 1 BAdi
  • Funtional to provide field or matrix
  • Changes are mostly made in interface

Transaction Codes – Appcreate

To run an application
Table – T9B03
Table where the matrix of the PMS is stored (Exceed,SE…)


Exercised : To Debug PMS BADI

User ID:CSN005
Password: virus123

Data:

BADI implementation : ZRHAP00_DOC_DEF_DV01
Method : DEFAULT_PERIOD

  1. Goto transaction SE19, set a break point within the method ‘DEFAULT_PERIOD’
  2. Execute transaction APPCREATE to execute the Appraisal, pick any template.
  3. The Debugger should be triggered

Exercised : To Create BADI implementation PMS BADI
Data :

a) BADI Name : HRHAP00_TMPL_RESTR
BADI implementation : Z HRHAP00_TMPL_RESTR
Method : APPRAISER_GET_LIST

b) BADI Name : HRHAP00_VAL_DET
BADI implementation : Z HRHAP00_VAL_DET
Method : VALUE_DETERMINATION

  1. Go to transaction SE19 key in the BADI Name. then create Implementaion on these BADI. Then Create implementation on for these BADI
  2. Pick a method to enhance, put some coding that interacts with the importing parameter. Within your method output an information message.
  3. Activate your implemented BADI
  4. Debug your BADI implementation for via APPCREATE, the BADI is triggered once you key in a a value in the Appraisal template.

Read On 0 comments

message

Labels

NuffNang

Search google

Blog Archive

My Blog List

Twitter

Message

Followers