Check field Identity Number Infotype 0185 Subtype 02
Good Afternoon
I have the following issue.
What should I do for infotype 0185, subtype 02, created for u201CRFC number in Mexicou201D, can valídate the data, which the users typed?
I mean, the same validation as LFA1-STCD1 field in FI/CO (FK03). Could i do it thru configuration or it has to be by ABAP?
Regards
Wilman
you can write code in User Exit (PBAS0001) for validation inside FM EXIT_SAPFP50M_001's INCLUDE ZXPADU01 like this ..
IF innnn-infty = '0185' AND SUBTY = '02'.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = innnn
IMPORTING
pnnnn = lx_p0185.
*To restrict validation
IF lx_p0185 NE 'SOMETHING'.
MESSAGE text-008 TYPE 'E'. "Put something in text-008 by double clicking it
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
EXPORTING
pnnnn = lx_p0185
IMPORTING
prelp = innnn.
ENDIF.
ENDIF.
Similar Messages
-
Infotype 0185 - subtype 04 Driving License Taiwan is defaulted..
Dear All,
In infotype 0185 -> subtype 04 Driving LIcense Taiwan is defaulted.. I want to make that value blank such that User can select manually from dropdown Country Grouping 40 India..
Can anybody tell me how to modify this field..is there any feature..
Thanks
Ravi..Hi Lakshmi,
Dropdown option is already there..since in PA30 -> 185 -> subtype 04 License it is showing default value, but whereas we can edit select some other country and save, but since it is showing default it is showing default even in ESS.
Im not able to understand how to make the field blank.
Thanks
Ravi -
Dear experts,
I have created a new subtype M1 (driving license) under infotype 0185 (personnel id) in the table T5R05, but in pa30 i am getting a blank screen. Any suggestions.Hi,
For which country you are doing this?
I just created the same record in V_T5R05 for 99 and everything is ok!
Try on another system like IDES if you have. Otherwise check it for another country.
Regards,
Omid -
Subtype ctreation for the Infotype 0185
Hi,
I am trying to create a subtype for the standard infotype 0185. I have followed below mentioned steps for that:
1) I have created an entry using v_t591a in SM31 and saved it.
2) In PM01, created a Customer Include under Enhancement of Single Screen and added some fields to it. Activated it also.
3) Even then I was not able to find the subtype in pa30, so have changed the technical attributes related to subtypes.
Please give me any suggestion regarding this.
Thanks,
SreeHi,
Please check the below thread for the procedure to create a subtype for the standard infotype...
/message/4304842#4304842 [original link is broken]
Check the below thread regarding a subtype issue for infotype 0185
No subtypes for Infotype 0185
Check this thread for further information if necessary
Check field Identity Number Infotype 0185 Subtype 02
Hope this would help you.
Good luck
Narin -
Infotype 0057 - Invisible fields - Check on amount/number
Hi guys,
I am using the infotype 57 to use the field P0057-MGART only. So in the table V_T588M I have put all the other fields in invisible mode. Anyway, a check is still activated: when I try to save a new record, I have the error message "Enter amount or number" - Message no. PG062, even if the fields amount/number are invisible in the table V_T588M, they should be also inactive.
Thanks in advance for your answers.
Olivier GaignHi Olivier,
This infotype is to maintain the membership fees and will require the amount/number. Also, the amount field BETRG is not part of the P0057 structure but is computed ie Q0057-BETRG. Pl see if you can use the User exit ZXPADU02 to get rid of this error.
Regards,
Suresh Datti -
Hi Experts,
we are using portal 7.3 version,Our requirement is addition
of a new field “Leave Details” in the LTA screen with dropdown values from Infotype
2001 subtype ITEL. From the current calendar year in ESS.The new field should
be available only for the claim type LTA claim or claim against advance.
please find the below screen shot and details.
Current View
Component: HRESS_CLMS_WD_EMCR
Personalization: 4370750342A6297CC184E2B07FE6D13E
Window: W_CLM_DYN_UI
View: V_CLMS_DETAIL
Application Component: PY-XX-RS
Kindly help me how to add this field and in which method can i implement code.
Thank you in advance
Regards,
VanithaHi Shankar Reddy,
Business requirement is the new field should display the list entry in Infotype 2001 for the calendar year as selection option for employee. they would like to know ITEL subtype claim,
Example.employee no: EE#9941
As per screen shot you may see for EE#9941 there are 2 Leave requests.
So in the leave details the selection drop down menu option or any other way should be display 2 lines.
Regards,
Vanitha -
Field exit for checking if tax number is unical in vendor master.
Hi,
is there a field exit that checks if tax number is unical in vendor master?
Best regardsSwamy,
As you've pointed out, you already know that path. I'd recommend stating all that you've already tried and ruled out while posting a query here. It'll help people putting in effort that won't be helpful to you.
Coming back to your query, there is obviously no way to introduce email ID as a sensitive field. However, there's nothing stopping you from using a little creativity here. This solution is not exactly direct, but I believe it is achievable. Here are your components:
Have a look at enhancement SAPMF02K (t.code SMOD). Look at the component FM - EXIT_SAPMF02K_001.
From table LFA1, get LFA1-ADRNR. Go to table ADR6 (SMTP Numbers (Business Address Services)).
In ADR6, field SMTP_ADDR is email ID.
You can designate a field you don't currently use as always = email ID field content on vendor master screen. This proxy field can get it's value inside the user exit I've mentioned above, and you can find the email ID using the logic I've mentioned above. Ensure that this proxy field can be designated a sensitive field. That's it!
Now, everytime a user changes the email ID, your proxy field gets changed, and thus invokes the Senstive Field rule.
I've not used this myself, but believe it should work.
Remember to assign points if found useful.
Regards
Gulshan -
Canu2019t see the street/house number field anymore in infotype 0009
Hi Experts,
I am not able to see the street/house number field anymore in infotype 0009 in system Whatever I tried to change in T588M we didnu2019t get it back on the screen. Does any one idea of this.Please help
MukeshHi Mukesh
As far as I am aware /house number field STRAS is not standard in infotype 0009 screens
Its likely then importing new code from SAP has perhaps overwritten some of your customizing in this case?
Please see if note 431930 helps you retrieve field STRAS on IT0009 - even though this note is provided by SAP - use of STRAS is in 0009 is considered a modification
Best wishes
Stuart -
To Include Infotype 0185 - PAN No. in PE51 - question especially to HR Abap
Dear All,
My client wants PAN no to be included in the payslip which is created via transaction PE51 (for creation of HR related forms). I brought the respective table P0185 and its fields ICTYP and ICNUM via the PE51_checktab, but the problems is that in Infotype 0185 there are 4 subtypes and the payslip is picking up up the last subtype value. PAN No. is maintained against subtype '02', whereas the payslip picks up the value of subtype '04' which is obvious. How to control it to get only the PAN number printed on payslip.
Thanks & Regards,
Sunny SinghChange the two includes
RPCEDDZ9
RPCEDSZ9
of program HINCEDT0
thats i am asking.
As your program is picking data for the subtype 4.
So either ask your functional guy to configure the payslip accordingly.
through communcation ID's and define Rule for the same, so that it will go for subtype 2.
and don't react in this manner, you are not a kid.
Amit Singla -
Creation of infotype having Subtype
Hi ,
Please tell me link or document regarding creation of infotype having subtype .
i know how to create simpe infotype . But not created any infotype having subtype.Hi
try this...
Goto PM01 and enter Infotype: xxxx eg: 9495
Make sure that first field component type is SUBTY
Like: zzstype SUBTY Char 4 Subtype
Now click on 'ALL' button.
Creation of Subtype:
Goto initial scren PM01.
In menu tool bar, goto -
Subtype Characteristics click on enter.
Now click on new entries,
subtype name
01 Annual shares
02 special premium shares
click on save.
Note: All subtypes are stored in T591A table
Now assigning subtypes to infotype.
now click on 'Technical Attributes' in PM01 screen
change, select ur custom infotype'xxxx' and click on 'details' on application tool bar.
subtype field: zzstype
stype table: T591A
stype text table: T591S
stype const table: T591A
Now click on 'SAVE'.
Now check ur infotype with subtype.
Hope this is helpfull information.
regards
Sai -
Authority check in hr payroll infotype report
Hi all,
We have developed a report which gives infotypewise employee details.here we are checking authority for reading employee data.we are applying authority check at selection-screen and while reading the data from database tables.following is the sample code.
do .
if s_abkrs-high < s_abkrs-low.
authority-check object 'P_PCR'
id 'ABRKS' field s_abkrs-high
id 'ACTVT' field '01'
id 'ACTVT' field '02'.
if sy-subrc <> 0.
message id 'ZHR_ERRMSGS' type 'E' number '292' with s_abkrs-low.
endif.
exit.
endif.
authority-check object 'P_PCR'
id 'ABRKS' field s_abkrs-low
id 'ACTVT' field '01'
id 'ACTVT' field '02'.
if sy-subrc <> 0.
message id 'ZHR_ERRMSGS' type 'E' number '292' with s_abkrs-low.
endif.
s_abkrs-low = s_abkrs-low + 1.
enddo.
my senior says this code is right but it is not checking authority for all infotypes.can anyone suggest what changes are required in this code so that it will check authority for all infotypes.
Thanks in advance.
Regards,
HarshadaHi ,
A select-option will have a structure with four fields (sign , option , low , high) .
So if you want to use your below code : you cannot check authority.
loop at s_abkrs.
authority-check object 'P_PCR'
id 'ABRKS' field s_abkrs <-- is an internal table
id 'ACTVT' field '01'
id 'ACTVT' field '02'.
if sy-subrc 0.
message id 'ZHR_ERRMSGS' type 'E' number '292' with s_abkrs-low.
endif.
endloop.
The other option is :
If your select option has values only in low ... then you can loop thru it ...
loop at s_abkrs.
authority-check object 'P_PCR'
id 'ABRKS' field s_abkrs-low
endloop.
Regards,
Srini. -
Modify SAP standard fields in an Infotype
Hi friends!
We have enhanced an Infotype successfully added few extra fields and they work perfectly.
In Infotype 28, there are already 3 SAP standard fields and we have added 4 more.
Now, we need to enable/disable according to the our added fields. For Eg by a Custom check box, I need to enable/disable SAP standard field for an infotype.
We tried by LOOP at SCREEN and all but due to SAP standard fields we are unable to do it.
Any ideas?
Please help.
Thanks.Hi Park,
Standard Infotype Fields configured (enable/disabled/hidden) in the view V_T588M (Tcode-SM30). You can disable any standard infotype field here if it is independent of other fields (i.e. before screen opens itself field is disabled).
If you want the field to be disable at runtime you may need to edit the feature 'PNNNN' (where NNNN is your standard infotype number (transaction -pe03)).
Also have you tried to code (loop at screen. endloop) in badi HRPAD00INFTY (method BEFORE_OUTPUT). I am not sure whether this will work or not.
Regards,
Shrinivas -
Adding new fields in Custom Infotype
Hi,
I need to change some fields of Custom Infotype. But project is already gone live for 1 country. will making changes to infotype affect for existing live country?
Safe side....We are thinking Adding new fields in Custom Infotype. & displaying corresponding fields for countries in another tab
& hiding the old tab.
Please let me know procedure for Adding new fields in Custom Infotype for displaying in new tab.
Edited by: Sachin Thigale on Aug 23, 2010 7:04 PM
Edited by: Sachin Thigale on Aug 23, 2010 7:05 PMPlease search. Lot of Threads on this.
Follow these steps.
Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the u2018Employee Infotypeu2019 radio button.
4) Select the u2018PS Structure Infotypeu2019.
5) Click on Createu2026 A separate table maintenance window appearsu2026
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on u2018Allu2019 push button. It takes a few moments.
10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
11) Click on u2018Changeu2019(pencil) button
12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
13) Give u2018T591Au2019 as subtype table
14) Give u2018T591Su2019 as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
18) Click on u2018Changeu2019 (pencil) button
19) Click on u2018New Entriesu2019
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirementu2026
25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Donu2019t forget to u2018Activate at every level
i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype
The above details are from the following link
Re: How to add fields in custom infotype and update its screens -
How to remove required field in custom infotype?
Hi Experts,
I have a question with custom required fields in infotype, I want to remove the required field.
Could you show me a solution to fix this issue?
Thanks Advance.
KeuHi Keu,
Please follow following snap of code, Mandt field is very much required. Then you no commit = 'X' or ' '.
DATA: BEGIN OF ITAB OCCURS 0,
INFTY TYPE P0006-INFTY,
SUBTY TYPE P0006-SUBTY,
PERNR TYPE P0006-PERNR,
BEGDA TYPE P0006-BEGDA,
ENDDA TYPE P0006-ENDDA,
STRAS TYPE P0006-STRAS,
ORT01 TYPE P0006-ORT01,
PSTLZ TYPE P0006-PSTLZ,
END OF ITAB.
DATA WA_P0006 TYPE P0006.
PARAMETERS P_FILE TYPE STRING.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL METHOD CL_RSAN_UT_FILES=>F4
EXPORTING
I_APPLSERV = SPACE
I_TITLE = 'File path...'
I_GUI_EXTENSION = 'TXT'
I_GUI_EXT_FILTER = SPACE
CHANGING
C_FILE_NAME = P_FILE.
START-OF-SELECTION.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = P_FILE
* FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = SPACE
* CODEPAGE = SPACE
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* VIRUS_SCAN_PROFILE =
* IMPORTING
* FILELENGTH =
* HEADER =
CHANGING
DATA_TAB = ITAB[]
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
NOT_SUPPORTED_BY_GUI = 17
ERROR_NO_GUI = 18
OTHERS = 19.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
END-OF-SELECTION.
LOOP AT ITAB.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = ITAB-PERNR
* IMPORTING
* RETURN =
MOVE-CORRESPONDING ITAB TO WA_P0006.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = ITAB-INFTY
NUMBER = ITAB-PERNR
SUBTYPE = ITAB-SUBTY
* OBJECTID =
* LOCKINDICATOR =
VALIDITYEND = ITAB-ENDDA
VALIDITYBEGIN = ITAB-BEGDA
* RECORDNUMBER =
RECORD = WA_P0006
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '2'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
* IMPORTING
* RETURN =
* KEY =
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = ITAB-PERNR
* IMPORTING
* RETURN =
ENDLOOP. -
Problem updating Infotype 1208 subtype ALUM
Hi,
My requirement is to update the infotype 1208 subtype ALUM with the Value "YES" when I terminate a employee in PA40. ( immediately).
I am using the FM - HR_INFOTYPE_OPERATION which doesn't seem to work.
I tried running a BDC for PA30 , but it is not allowing me to edit the employee and says that i am processing him.
I feel this is an issue with locks. But not sure about how to go with.
Are there any standard classes available or any other method to use to update this infotype while terminating.
Regards,
Karan.1) as suggested by Suresh first check the return table to know exaclty the error mesage.
2) u can update a IT with same values i don think it wil have a problem
3) to me it looks that it is due to PERNR locked ,as when u r updating it first time the pernr is locked and when u r trying to update it again in the same session it must be failing due to pernr looked..
so before using FM to update IT ,use Fm -
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = number .
IMPORTING
RETURN = .
and after tht call FM to update IT and then call below FM to unlock employee-
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = number.
IMPORTING
RETURN = .
this will solve ur probelm .
amit
Maybe you are looking for
-
I live on a farm that has less than desirable power, that is why i bought a laptop. i can charge cell phones, run a fan, or listen to a radio; however, brownouts (a drop in electrical current) have destroyed products with moving parts like cd players
-
I've several apex applications that use LDAP (Active Directory) authentication. I don't need any bind DN - a generic AD account allowed for querying LDAP information - at all in order to authenticate users. I heard that OBIEE does require a bind DN w
-
SQL query using not equal to or not exists
Hi All; From the below table , i need to display the client name where output is not equal to Pre Start, BA but display client with output only with SOSP so only in the below example DEF client name will be displayed below is my query select C.new_
-
Testing custom ABAP program in GRC PC 3.0
We have developed few custom ABAP program and linked it to Rule Script and Rule in GRC PC 3.0. When we schedule a job to test this control, we are not getting any hyperlink to results in Job monitor. In other words, test result in job monitor is blan
-
Using MXP (package) files in Flex?
So, many of components and code libraries of different kinds and flavours get distributed in the lesser known MXP format, which many believe makes for "ideal" distribution. My problem is I am a skilled ActionScript/Flex/Flash developer who not always