12-16-2005 11:00 AM
Hi,
Does anyone knows what BAPI I can use to perform the same functionality as transaction PSO4 (Maintain Infotype)?
I need to maintain Infotype 1001 via a user exit and is trying to avoid a BDC.
Many thanks,
Lay Guan
12-16-2005 12:38 PM
Hi Lay,
1. HR_INFOTYPE_OPERATION
The above FM can be used for infotype operations.
( I have used it a lot )
2. But as per ur requirement, i don't think
it is RFC enabled for bapi purpose.
Regards,
Amit M.
Message was edited by: Amit Mittal
12-16-2005 11:07 AM
Hi Lay.
Check out the RH_INSERT_INFTY function modules..
Regards,
Suresh Datti
12-16-2005 12:38 PM
Hi Lay,
1. HR_INFOTYPE_OPERATION
The above FM can be used for infotype operations.
( I have used it a lot )
2. But as per ur requirement, i don't think
it is RFC enabled for bapi purpose.
Regards,
Amit M.
Message was edited by: Amit Mittal
12-16-2005 12:51 PM
Hi Amit,
Lay is looking for a BAPI on PD infotypes.. the function module HR_INFOTYPE_OPEARTION can only be used for PA Infotypes.
Regards,
Suresh Datti
12-19-2005 5:56 PM
Hi Suresh,
Thank you for your feedback. Here's basically what I am trying to achieve.
I am currently working on one of the PS/HR development tasks involves removing all the personnels (in batch) that are tied to the WBS in the project that I am displaying in the Project Builder (CJ20N).
I have identified that the Personnel-WBS relationship is stored in table HRP1001. I am able to obtain the list of personnels tied to the WBS using the following relation:
Select from HRP1001 with the following conditions:
HRP1001-OTYPE = 'P' (Personnel)
HRP1001-SCLAS = 'PJ' (WBS)
HRP1001-SOBID = WBS code
What I want to do is to remove this association by deliminating it. I have looked at the function modules that you provided and some of them do delminates data. Does these function modules perform the necessary checks before updating the database table? I am trying to do it the right way rather than updating the database directly and as I am new to the HR module, I have no idea how I can achieve that.
Many thanks,
Guan
12-19-2005 6:35 PM
Hi Lay,
Pl try the follwoing function module to delimit a relationships. ( RH_CUT_INFTY_1001_EXT ). I don't think you ned to worry about screen checkas as this is delievered function module.
Regards,
Suresh Datti
01-03-2006 11:04 AM
Suresh,
Happy New Year to you. I looked at function module RH_CUT_INFTY_1001_EXT and it delimits the relationship for infotype 1001. You mentioned that this is a delivered function module. Does that mean it will do the locking and unlocking of the data that is to be delimited? Does it maintain the integrity of the data?
Many thanks,
Lay Guan
01-03-2006 11:30 AM
Hi Lay,
Happy New Year to you too.. I don't think you need to worry about data integrity while using this function module. It actually mimics the Transaction PP01 to delimit a relation, so you should be good to go with the lock/unlock issue also.
Regards,
Suresh Datti
01-04-2006 5:15 AM
Hi Suresh,
Thank you for your clarification. In the end I have resorted to use Function module RH_DELETE_INFTY_1001_EXT to delete the relationship. I am assuming that this FM mimics transaction PP01 to delete relationships and it worked fine similar to the remove personnel no - WBS relationship function in CJ20N.
Many thanks for your advice.
Lay Guan
03-24-2008 9:29 PM
I am getting a message NO_AUTHORIZATION when I post using Function module RH_CUT_INFTY_1001_EXT. Please Help..
Deepika
01-05-2011 4:31 PM
Hi Deepika,
pass the FM parameters like this..you will not get the no authorization error..
CALL FUNCTION 'RH_CUT_INFTY_1001_EXT'
EXPORTING
LOAD = 'X'
GDATE = ipspar-begda
HISTO = 'H'
DEL_SUCC = ' '
VTASK = 'S'
ORDER_FLG = 'X'
COMMIT_FLG = 'X'
AUTHY = ' '
PPPAR_IMP =
KEEP_LUPD =
WORKF_ACTV = 'X'
TABLES
INNNN = PPLOG_TAB
i am hang up here only..i am getting error_during cut...
regards,
Vamshi