2008 Jun 06 9:03 AM
Hi,
I Need RFC/BAPI to Create Requisition,Position, Hiring an Employee.
Kindly help me out..
Regards
R.Ragu
2008 Jun 06 1:11 PM
hi,
BAPI to create requisiton:
FU BAPI_REQUISITION_CREATE
Short text
Create purchase requisition
Functionality
This method enables you to create purchase requisitions.
Example
Notes
The following authorization objects are checked with activity 01 (create):
M_BANF_BSA Document type in requisition
M_BANF_BSA Purchasing group in requisition
M_BANF_BSA Purchasing organization in requisition
M_BANF_BSA Plant in requisition
The data of the purchase requisition items is passed on to the table RequisitionItems. The data that has to be passed on is listed in the parameter documentation.
Account assignments
If the account assignment category is set in the item, account assignment data can be passed on for each purchase requisition item in the transfer table RequirementAccountAs. The account assignment category determines which costing-relevant objects must be passed on in the account assignment data. If the account assignment category is K, for example, a cost center must be passed on.
The account assignment can also be a multiple account assignment, i.e. the account assignment table can contain more than one entry. In this case, the following indicators must be set in the item data:
Distribution indicator (DISTRIB)
"Partial" invoice indicator (PART_INV)
If the account assignment category is not set, a stock item is generated.
Texts
Texts for the purchase requisition item can be passed on in the table RequirementItemText.
Limits
Limit data pertaining to the requisition item can be passed on in the tables RequisitionLimits and RequisitionContractLimits.
Services
Service data pertaining to the requisition item can be passed on in the tables RequisitionServices and RequisitionSrvAccAssValues.
Number assignment
If an entry is made in the field PREQ_NO in the item data, the system checks whether the number is an allowed external requisition number. If no entry is made in this field, the number is assigned internally and returned in the parameter Number.
Return messages
Messages are returned in the parameter Return. The parameter documentation shows the return modes and their meaning.
BAPI for hiring employee:
We have BAPI_APPLICANT_CREATE for applicant creation.
OR
You can use HR_MAINTAIN_MASTERDATA by passing all the infotypes in one go(in proposed values).
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
PERNR = NUMBER
ACTIO = 'INS'
TCLAS = 'A'
BEGDA = VALIDITYBEGIN
ENDDA = VALIDITYEND
OBJPS = OBJECTID
SEQNR = RECORDNUMBER
SPRPS = LOCKINDICATOR
SUBTY = SUBTYPE
WERKS = WERKS
PERSG = PERSG
PERSK = PERSK
LUW_MODE = LUW_MODE
DIALOG_MODE = '0'
NO_EXISTENCE_CHECK = 'X'
NO_ENQUEUE = 'X'
IMPORTING
RETURN1 = RETURN
TABLES
PROPOSED_VALUES = PROPOSED_VALUES
MODIFIED_KEYS = MODIFIED_KEYS
EXCEPTIONS
OTHERS = 0.
OR you can also use this function module to create the employee by passing only the require infotypes like IT0000 and IT0001.
hope this may help you............
regards,
praveena.