Subtype in HR_READ_INFOTYPE
Hi
i have a requirement where i need t fetch subtype specific data from infotype '0006' using HR_READ_INFOTYPE.
how do we get this done?
Thanks & Regards
Manjari
>
Marat wrote:
> Yes, I agree with you. This will work much faster.
But I don't quite agree.. Using the function call will save you the need to check for Authns.. with a direct db Select, you will have to put in explicit Authority-checks..
~Suresh
Similar Messages
-
INFOTYPE 0105 Aand how to access its SUBTYPES?
Hello,
I see that infotype 0105 has subtypes 0010, 0050, CELL, etc how do I access do I access them?
Lets say as an example i want to get the email address out of 0105-0010?HI,
Check this code..
call function 'HR_READ_INFOTYPE'
exporting
pernr = i_pernr
infty = '0105'
begda = sy-datum
endda = sy-datum
importing
subrc = l_subrc
tables
infty_tab = lt_p0105
exceptions
infty_not_found = 0
others = 0.
if l_subrc eq 0.
loop at lt_p0105 into ls_p0105
where subty = '0010'. ---> Email Subty
endloop.
IF sy-subrc eq 0.
p_email = ls_p0105-usrid_long. ---> gives the latest email of the pernr
ENDIF.
ENDIF.. -
Update PA0105 subtype-fields, PA0006 fields to Custom table
Hi Experts,
Please tell how can we UPDATE subtype-fields from PA0105 infotype to Custom tables. Is any functoin module is there. PA0105-USRTY(Subtype Fields:Primary Work Phone,Secondary Work Phone,Work Fax,Voice Mail,Pager,Email Address.) and UPDATE fields from PA0006 infotype (Fields:Mailcode,Building,Floor,Address1,City,State,Zip) to Custom table.
Thanks,
SpreddyHi Srinivas,
use like this
call function 'HR_READ_INFOTYPE'
exporting
pernr = pernr
infty = '0267' "INfotype no
begda = datum
endda = datum
importing
subrc = retcd
tables
infty_tab = i0267 " table type table of p0267
exceptions
infty_not_found = 1
others = 2.
read table i0267 into p0267 index 1.
Change the fields here u want to change
Fill infotype record
p0267-infty = '0267'.
p0267-subty = lgart.
p0267-pernr = pernr.
p0267-begda = datum.
p0267-endda = datum.
p0267-opken = ' '.
p0267-lgart = lgart.
p0267-betrg = betrg.
p0267-waers = 'USD'.
p0267-ocrsn = '0001'.
ENDIF.
Enqueue personnel number
lock that particular personal no which u r updating
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = pernr
IMPORTING
return = return.
IF NOT return IS INITIAL.
MESSAGE ID return-id TYPE return-type NUMBER return-number
WITH return-message_v1 return-message_v2
return-message_v3 return-message_v4.
RAISE action_stopped.
ENDIF.
Perform PA30 via infotype_operation
Function that update the record
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0267'
number = pernr
validityend = datum
validitybegin = datum
record = p0267
operation = 'INS'
dialog_mode = '2'
IMPORTING
return = return.
IF NOT return IS INITIAL.
MESSAGE ID return-id TYPE return-type NUMBER return-number
WITH return-message_v1 return-message_v2
return-message_v3 return-message_v4.
RAISE action_stopped.
ENDIF.
Thanks & Regards,
Ruchi Tiwari -
Creation of subtype for Infotype 1001
Hi all
My client wants two reporting realtionship ( like A002) to be done. So I tried through Matrix which i was unable to do so.
I tried to solve this problem by copying the existing subtype A002 with time constraint 2 ( for IT1001). Everything is fine in IMG and when trying to create the relationship via subtype in Easy access it is throwing error as Time constraint is missing but when i checked it is there in the table .
can anyone suggest how to handle this issue.
Regards
RajiHi Raji,
As I have understood with you is that the Time Constraint is not changed properly. My client also had a requirement at that time i prepared a document.
If you put a mail on my ID [email protected] I will forward that document to you
reg
Govind -
Subtype event not triggering and supertype event triggers twice!!!!!!
Hi,
We have created a subtype for object bus2030 and also an event created for that. My workflow should trigger whenever an inquiry is created.
I've maintained this as triggering event in SWDD and done type linkage is SWE2 and everything looks fine.
When i simulate or create event the WF is triggered but when create inquiry in VA11 WF does not triggers.
I've checked SWEL for event trace but no event is triggered at all... Am i missing something... I've done almost everything that i used to do...
Even synchronized buffer!!! nothing paid me a solution...
Infact the same was working with 3.1i system but after migration to ECC6 we had to create new WF template for the same Process.
Now I also see that the supertype bus2030-created event is triggered twice but, obviously no receiver type exists. But the zbus2030 event is not being triggered at all!!!!
Kindly help me understanding my mistake...
Regards,
PBHope you have already set the deletegation in SWO6.
Now, event dont get triggered automatically, jus because they are defined in object. They have to be explicitly published in thesystem.
Check for a suitable user exit in your transaction, which makes use of function module to create the event, from that you know how to proceed.
If you dont find user exit, try other triggering techniques such as change documents, logistics, BTEs... etc.
regards,
Sandeep Josyula -
Very urgent Enhancement category for include or subtype missing
HI all;
I am currently on BI 7.0 release
I have a cube A that activated in Development. I transported cube A to Staging get the following error
Enhancement category for include or subtype missing
Enhancement category for include or subtype missing
No active nametab exists for /BIC/DZIP_INT9
Termination due to inconsistencies
Table (Statements could not be generated)
Flag: 'Incorrect enhancement category' could not be upda
Enhancement category for table missing
Enhancement category for include or subtype missing
No active nametab exists for /BIC/DZIP_INTP
and the cube couldn't activate in staging.
I re-transport this cube A a few times with difference option of grouping and still no luck.
in Development, i copied cube A to cube Aa, then transport new cube Aa to staging, then everything went ok. the new cube Aa is activated in staging area.
I couldn't use the new name Aa since all the queries using the A name.
Is there any possible solution that could help?
Thanks.
Rainniejj
-
Info type and subtype to stop income tax deduction for a month
can i know how to stop income tax deduction for a month for a specific employee. I understand that this s possible
Hi
You can use additional wage type (infotype 0015)
and subtype voluntary tax std is MVT1 as per SAP
if you maintain 0.01 value here and indicating the month
SAP calculated income tax is supressed and this is how u can stip income tax deduction for a month
with regards
partha
keep sharing and learning -
How to hide subtypes from standard infotype 21 in ECC6.0 ?
Hi All,
I encounter the following problem : we've upgraded our customer's SAP HR system from 4.6c to ECC6.0 and new standard subtypes for infotype 21 appear (especially when you press F4 or use the entry help button in transaction PA30) ...
And our customer askes us to remove these new one ... so I made my research and finded in the IMG : 'BAdI: Set Up Entry Help for Subtypes' ... Then I clicked on it, a window appear and I choose the corresponding line for IT0021 ... but I don't know what to do after that ? I tried to create a new implementation with name terminated by 0021 (like proposed in SAP standard help) but I encountered a blocking message about the Filter type (defaulted at INFTYPA and not modifiable).
Before that, I found the view V_T591A but it doesn't seems to be indicated to remove line from this table to solve my problem, that's why I continued to investigating and finally find the 'BAdI: Set Up Entry Help for Subtypes'.
Then I desactivated the Badi and the system asked me a transport request ... now I try to re-enable it and the system ask me a repair key At this time, I didn't make any change in the system.
I really don't know what to do ... Could you help me ?
Only one thing makes me happy : I did this in the sandbox system and our other landscape's system are not impacted by my research ... Ouf !
Have a nice day / afternoon / night !
Sincerely yours,
Alexandre.I would go more along the way of using a search help exit. In fact for field FAMSA the search help used is the generic H_PAD_T591A_SUBTY so there is a search help exit for that one, HR_H_PAD_T591A_SUBTY_EXIT. I haven't used it still, but there is some documents on how to use and restrict the values you want for a specific Infotype.
There could be another way, but in the case of the Infotype 0021 i don't think it's possible which is using implicit enhancements in the PAI modules of the screen. Some infotypes are possible to enhance, some aren't i think that 21 is one of the "aren't" ...
Either way, hope this can be another way to go. Good luck. -
Dear Experts.
I have the following issue:
When I update or create the subtype 2 in the service of Family Members in the portal ESS, the system replace the register that have the infotype for the employee.
My test is create a new child for the employee, but the system replace the register of the first child. And not created a new register for the new child without replace the register taht exist in the infotype.
V_T7XSSPERSUBTYP
Infotype: 0021
Subtype: 2 (Child)
Use Case: A3.
V_T591A
Infotype: 0021
Subtype: 2 (Child)
Time constraint : 2
Object identification permitted for subtype: The indicator is marked.
What is the cause of this?
Thank in advance for your help.
RegardsDear Siddharth,
My configurations is the following:
V_T591A
Infotype :0021
Subtype :2
Name :Child
Time constraint : 2
ObjIDallw : X "The indicator all. objid is set.
What Time constraint need use for that the system work fine and not show the message of error when I want use other Use Case
V_T7XSSPERSUBTYP
Country : 10
Infotype : 0021
Subtype : 2
Use Case : B3.
You says the following:
For
usecase = A1, A4, B1, B4 (table V_T7XSSPERSUBTYP)
you need to have
zeitb = '1' OR zeitb = '2' (table V_T591A)
for
usecase = A2, A3, A5, B2, B3, B5
you need to have
zeitb = '2'
for
usecase = A6, B3
you need to have
zeitb = '3'
But in the table V_T591A for the infotype 0021 subtype 2, I have the zeitb with value 2, And in the table V_T7XSSPERSUBTYP the system not allow use the usecase A4 or B4 for hide the button delete.
When I press the button save the system show the message:
"There is an inconsistency in the usecase maintained for this record."
Regards -
Disable Delete Button for infotype 2001 subtype 0025
I want to Disable Delete Button for infotype 2001 subtype 0025 only in PA30/61.
Is there any EXIT availableHi
Try it .
Somebody already given this type of answers.
Pls first use Search then post.
Well FYI,
<b>There is a standard User Exit for PA30 / 40 for PBO and PAI events.
ZXPADU01 for PBO and
ZXPADU02 for PAI events.
By writing proper code in here for the IT2001, you can write your rules.
PBAS0001 ( PA: Pers.Admin./Recruitment: Default values and checks ),</b>
Manoj Shakya. -
How to insert subtype data from another table in a object table ?
Hi all
I have been looking at the differences answers there are about insert data form a subtype in a object table of a supertype ,but have not found a solution yet.
I hope you can help me.
I my code Action_Logs is the object table and CloseStore_Logs_t is a subtype of Action_Logs_t
My code is
insert into Action_Logs(CloseStore_Logs_t (action_logs_id , physicalstores.physicalstores_id , brandedstores.BRANDEDSTORES_ID ,physicalstores.COMPANIES_ID ,brandedstores.CREATED_BY ,
brandedstores.CREATED_DATE , brandedstores.DELETED ,brandedstores.CLOSED_DATE as brandedstore_closedate,
physicalstores.CLOSED_DATE as physicalstore_closedate)
select CloseStore_Logs_t((null as action_logs_id , physicalstores.physicalstores_id , brandedstores.BRANDEDSTORES_ID ,physicalstores.COMPANIES_ID ,brandedstores.CREATED_BY ,
brandedstores.CREATED_DATE , brandedstores.DELETED ,brandedstores.CLOSED_DATE as brandedstore_closedate,
physicalstores.CLOSED_DATE as physicalstore_closedate)
from physicalstores , brandedstores ,companies
where physicalstores.physicalstores_id = brandedStores.PHYSICALSTORES_ID and
physicalstores.COMPANIES_ID = companies.COMPANIES_ID and
brandedstores.closed_date is not null
oracle gives a ora _917 fault about a missing comma , but I can not se what is wrong.
I will be glad, if you can give me an example with a right syntax where a subtype is selected from other/s tables an inserted in table of its supertype.
kinds regards
steen ostersenHi
I see two problems with your statement:
1) The utilization of the values clause is not permitted along with a subquery.
2) The AS are not allowed.
So, something like that should work:
insert into Action_Logs
select CloseStore_Logs_t(null,
physicalstores.physicalstores_id,
brandedstores.BRANDEDSTORES_ID,
physicalstores.COMPANIES_ID,
brandedstores.CREATED_BY,
brandedstores.CREATED_DATE,
brandedstores.DELETED,
brandedstores.CLOSED_DATE,
physicalstores.CLOSED_DATE)
from physicalstores , brandedstores ,companies
where physicalstores.physicalstores_id = brandedStores.PHYSICALSTORES_ID and
physicalstores.COMPANIES_ID = companies.COMPANIES_ID and
brandedstores.closed_date is not null
HTH
Chris -
Error while creating a subtype for object bus2005
hi experts,
i am trying to create a subtype for BUS2005
when i create IFSTATUS under interfaces for the created subtype of BUS2005
and try to REDEFINE it i am getting an error
"Composite Definition not allowed for local elements"
(i am saving this under local object.)Hi,
I have the same problem.
Could You tell me witch is the correct origin?
Thanks a lot!
Bye
Laura -
Error while transporting FIPP subtype : ZFIPP
Generation of programs and screens
Transport request___: LH3K906965
System______________: LH4
tp path : tp
Version and Release: 340.16.39 640
Generation of programs and screens for transport request LH3K906965
Only generates programs with LOAD versions
Start on 14.07.09 at 12:43:22
Generation of the transported programs
Hello Friends.
I have created a subtype ZFIPP of FIPP for journal entry approval procedure . It works fine in the developement system. But while trying to move to test , I get the below error message. We are on 4.7 version.
I tried searching further in the programs, With respect to Program : <object> , Igot an error as below. Incidentally, this error is on production system as well .
The program u2018OBJECT is not Unicode-compatible, according to Its program attributes.
Please assist .
thanks
Raghu V
Generation of the users of the transported Includes
Program RIFIMG: Syntax error in line 000000
The program 'RIFIMG' is not Unicode-compatible, according to its program attributes.
Program RSEREF00: Syntax error in line 000000
The program 'RSEREF00' is not Unicode-compatible,according to its program attributes.
Program RVNBOR03: Syntax error in line 000000
The program 'RVNBOR03' is not Unicode-compatible,according to its program attributes.
Ended on 14.07.09 at 12:47:37
No. of programs /Min/Avg/Max (sec): 1491 0 0 5
Generation of programs and screens
End date and time : 20090714124737
Ended with return code: ===> 8 <===Please specify " How you solve your problem ? " . Sharing your "Answer" is always appreciale.
Regards,
Gurprit Bhatia -
Error : 'No object identification permitted for infotype 0582, subtype LTA'
Hi Experts,
While executing the program 'HINUINFO_UPDATE'
i am getting an error 'No object identification permitted for infotype 0582, subtype LTA'.
After the approval for LTA claim is done in ESS i have executed the program 'HINUINFO_UPDATE' to update he infotypes 15 and 582. Infotype 15 is getting created but while creating the infotype 582 system gives the above error message.
In the detailed error log system gives the following message.
"You attempted to access a data record with the object identification 1. However, according to the Customizing settings, object identifications cannot be used for subtype LTA of infotype 0582".
Can anybody please assist me how to solve this problem. Helpful answers will be rewarded.
Thanks and Best Regards,
Sanoj.Hi ,
Did any one find solution for this ? Please reply how to fix this issue. -
HR_READ_INFOTYPE...not working.. for infty 2011
hi
i have just put this code and its not working for the pernr for which i have data..which i can c in pa20 transaction.
actually its throwing exceptionn as infotype not found.
where as 2011 is std infotype...
DATA : p_2011 TYPE STANDARD TABLE OF p2011 WITH HEADER LINE.
start-of-selection.
get pernr.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = pernr-pernr
infty = '2011'
TABLES
infty_tab = p_2011
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2.
end-of-selection.
plz help me
regards
vivekThe previous response is correct.. Time Events are stored in the TEVEN db Table.. the Infotype 2011 is only a frontend to load this table.. you cannot use HR_READ_INFOTYPE in this case as the Infotype 2011 table ( PA2011 ) doesn't exist. PL go through the following <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/8a/98589346c411d189470000e829fbbd/frameset.htm">SAP Help</a> on Infotype 2011.
You can use the function call HR_EVENT_READ to read the Time events data displayed on Infotype 2011.
~Suresh
Maybe you are looking for
-
Complete newbie...
You are all probably going to laugh at me for posting something for me but I'm just about ready to give up so I figured I would post before I do so. I've been trying to install my Java VM (JDK, JRE..whatever) and I did so but my Linux machine does no
-
Hi, Is there a way to enable JSR 168 portlet drag and drop(drag from one place to another place) feature. I know we can use oracle composer(page customizable, layout and panal customizable) for that. My requirement is 1. Create a page template(myTemp
-
Advice needed for 4TB Time Machine Backups
I run a recording studio based around Logic Pro. I typically have about 7-8 drives online at any given time with around 5TB, but would like to be able to keep more of it active longer. Most of these drives are backed up by Time Machine. But even with
-
Extract CO-OM Time (qty) from PM ORDER
Hello guru I want to extract Quantity (Time) from CO_OM from PM ORDER ? I try 0CO_OM_OPA1 and 0CO_OM_OPA6 but quantity are empty. Can you help me ?
-
A command was canceled or stopped while batching
I am trying to Batch out of CS8 using the "Save for Web" function. I recorded the File->Save for Web... Save... Close actions. However, whenever I try to apply this process to the folder it stops and says "A command was canceled or stopped while batc