2010 Sep 07 3:02 PM
Hi
I am enhancing standard infotype and while enhancing I need to put some conditions for the fields .
Example .. I need to display the field for few regions and few pay roll areas .
any one can give pointers on this . please dont give threads for how to enhance standard infotype
Thanks
2010 Sep 07 4:03 PM
As far as I understand, you already know how to enhance a standard infotype. So you should write a logic to hide the field in a PBO module of the infotype screen. But you shouldn't forget that if screen is regenerated, your logic is gone.
2010 Sep 08 5:59 AM
Hi Kerem
Thanks for your response
Ya .. anyway we will generate the screen only once .Thing is can we hide the field based on some conditions
Will it work . If it works how to hide.
2010 Sep 08 6:14 AM
Hi,
You can hide the fields based on your condition .
Hide the fields using loop at screen ... endloop.
loop at screen.
if screen-name = 'ZZFIELD1' or <-- give your field name
screen-name = 'ZZFIELD2' or <-- give your field name
.
screen-invisible = '1'.
modify screen.
endif.
endloop.
Regards,
Srini.
2010 Sep 08 6:27 AM
Kamesh,
you have to use tcode pe03 to define the condtions .for example you are making modificationg for IT45 .you can create an entry based on molga for example 08.
go to sm30 and use v_t588m and give the module pool name(you can get from the system-status when you go to standard infotype screen)
select the module pool name and screen and give the variable key as the one which you created in the previous step and click on details.there you can hide/show fields on a particular infotype
Thanks
Bala Duvvuri
2010 Sep 08 8:41 AM
HI Bala
Your answer is bot helpful to me
Could you please tell me how we maintain Feature in PE03 for particualr field against for particular country and payroll areas .
Please give elabarate on this .
Thanks
2010 Sep 08 8:58 AM
Kamesh,
goto pe03,give the structure for the Infotype for example for IT45 p0045 and change
then Goto-Structure it will show the fields you can use
Thanks
Bala Duvvuri
2010 Sep 08 9:57 AM
Bala
Ya I went to that screen ..and gave P0001 and when I go to ->structure I could see some fields but I need to add more fields in that .But Its not change mode .I go to chnage mode also .
And after maintain ing the fields how to make the field conutry specific .
Do you have any document on this .Please share ..If you can I will give persinal id .
Thanks
kamesh
2010 Sep 08 11:29 AM
Hi Kamesh,
I am just extending Bala's answer, so this is how it works.
1) Features P0001, P0002 and so on would return variable key depending on the different condition tree maintained in Feature. by conditions I mean say MOLGA, PAY ARAE and so on.
2) depending on the Feature, key if you check entries in T588M It gives you opttions like disaply, hide the field on infotype screen.
3) it is not advisable manually hide the fields in PBO module of INfotype screen
4) Features are maintained by Functional Consultants, read SAP documentation in PE03 and online help.
hope this helps.
2010 Sep 08 11:34 AM
Hi shital
Here the thing I could find more varinats for Feature created and Here features I need to create as a technical guy.
So I could see all the stuff what you said ,But I need way of manintaing the feature to hide the fields.
If you can provide any documentaion or link it would be helpful
Thanks
kamesh
2010 Sep 08 11:40 AM
Hello
I believe you can use the feature and table T588M to control the field properties of your newly added fields only based on MOLGA. But i am not sure if you can acheive it based on the Payroll area or anyother parameter.
Generally the approach would be, when you enhance a infotype it will create a entry in T582C which the module pool and the subscreen number which holds this newly added field.
You can to go to PBO of this subscreen and program and modify the fields properties based on your requirement.
Note : Generally the program would be ZPXXXX00 (XXXX - infotype number) and 0200 will be the subscreen.
Regards
Ranganath
2010 Sep 08 11:47 AM
2010 Sep 08 12:33 PM
refer http://www.sap technical.com/Tutorials/HRABAP/Infotype/HideFields.htm
2010 Sep 08 12:57 PM
Hi shital
I have gone through link but PE03 settings are not there in that link ..I need How to configure in tcode PE03 and based variable key defined in PE03 how to hide the fields in T588M
So between these some link is there .Thats what i would like implement.
Thanks