on 01-21-2008 3:07 PM
Hello!
Can anyone tell me how to hide text columns in appraisal template?
I just want to have value columns and need to hide the text ones that are related.
Thanks.
Regards,
Scarlett
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course it's too late to answer this question but finally someone will ned the answer and this topic is the top in google.
If you need to hide a text column and have the value column at the same time - you need to use HRHAP00_VAL_DET BAdI for the column. I won't highlight here details on how to customize it.
Then you're to use VALUE_DETERMINATION method and there:
1. Read current processed cell, T_BODY_CELLS, using S_BASE_CELL.
2. Set VALUE_TEXT_AVAILABLE = space.
3. Set NEW_VALUE_DETERMINED = abap_true.
If this code was executed for each cell (find details on value determination of the column at t-code phap_catalog) - you won't see the text column.
The second way is to implement an enhancement in HRHAP_UI_DOCUMENT, form f3100_data_convert_to_ui, end of form. And change table pt_3100_tbd (set DISPLAY_VALUE_TEXT = space) for desired columns.
Hope this will help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
go through T COde PHAP_CATALOG to create the template, here u will find the all the options : hide notes etc(under column tab)
give ur email id I will send u the screen shots to create the template..
Regads,
Sushil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aruna,
please tell me if I'm thinking right.
I have to execute OOHAP_BASIC, select enhancement area BA - Column access and put the enhancement that I created in SE19. After that I'm able to use the enhancement in appraisal template (OOAM).
My enhancement includes BADI - HRHAP00_COL_ACCESS.
This implementation has two methods. After double click on method GET_COLUMN_ACCESS I can put my own abap code.
Here may I execute standard func module hrhap_document_get_detail?
The solution is right?
You said that I have to execute standard func module hrhap_document_get_detail. But How can I link it with the configuration of appraisal template?
After put the enhancement created in enhancement area BA, I'm no seeing it in the list of values of enhancement in appraisal template (OOAM).
Please help.
I'm not using portal. I need to execute all in R/3.
Thanks.
Regards,
Scarlett
Edited by: Scarlett Love on Jan 24, 2008 12:51 PM
Hi,
You are on right track,
Implement the BADI - HRHAP00_COL_ACCESS for your Appraisal template. Here you need to define the filter value for the BADI and same should be configured in Template as well.
They you can put your logic in GET_COLUMN_ACCESS methid to hide the values.
Set changing parameter 'availability = 'H' in GET_COLUMN_ACCESS.
...Naddy
Hi Scarlett,
There are two ways to hide the columns:
1. check the previous post (by Naddy)
2. Forcefully code in hap_document to hide columns in pages with flow logic (this is what i said )..
Since you are following the first step, once you get into the GET_COLUMN_ACCESS method of the BADI HRHAP00_COL_ACCESS implementation, just use the S_BODY_COLUMNS to identify the columns you wanna hide. Then use AVAILABILITY parameter to hide the columns by setting the parameter to H.
Regards,
Aruna Nivetha.R
Hi Scarlett,
what you get from the table HRP1000 is not appraisal id,... its jus the element id... appraisal id will be unique for each and every document... just check hrhap table if oyu have access or try phap_admin_pa >goto>locked documents
Regards,
Aruna Nivetha.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Scarlett,
execute the func module separately in SE37 giving the appraisal id and plan version as '01'. you can get the appraisal id from hrhap table or if the apprisal document is opened, then you can track its appriaisal id in GOTO->LOCKEDAPPRIASAL DOCUMENTS menu option of phap_admin_pa transaction.
Once you execute the function module, you will get to know about the columns used and the data assocaited...
so based on the columns ids, you can code in BSP hap_document in your necessary page with flow logic or page fragment to disable or hide the respective fields...
Hope this helps.
Regards,
Aruna Nivetha.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Scarlett,
You might be knowing that every field that appears in the appraisal is associated with a row id and column id. These kind of details of a appraisal document can be obtained from tables like t_body_cells, T_BODY_COLUMNS etc., by executing standard func module hrhap_document_get_detail giving the appraisal id.
Once you get the row id and column id then you can use declare a local variable as string and make it disabled in this way:
IF ( LW_BODY_CELLS-ROW_IID = '0019'
OR LW_BODY_CELLS-ROW_IID = '0025' ).
l_disabled = cl_bsp_hap_document_cs=>c_true.
ENDIF.
If you want to hide the field, then you should set false to the "visible" attribute of the field..which can also be done in code
Hope this helps.
Regards,
Aruna Nivetha.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.