BAPI's for PA30- InfoType 7

Hi ,
I would like to know if there are BAPI's for the Tx-pa30 infotype7.
likewise if u have for the InfoTypes2,6,9,21 as well ..it would be of great help .
Thnks,
Nazeer

Hi nazeer,
We can use the standard FM HR_INFOTYPE_OPERATION
for allmost all infotypes.
(If u want to RFC Enabled, u can
Create your own Z FM, with the same parameters,
and use this FM inside it)
1. this is the full coding.
2. just copy paste in new program.
3. U can change the pernr and amount values as per requirement.
4.
Report abc.
Data
DATA : P0015 LIKE P0015.
DATA : RETURN LIKE BAPIRETURN1.
DATA : KEY LIKE BAPIPAKEY.
DATA : RETURNE LIKE BAPIRETURN1 .
Values (Change as per Requirement)
P0015-PERNR = '1'.
P0015-BEGDA = '2061101'.
P0015-ENDDA = '2061101'.
P0015-LGART = '3075'.
P0015-PREAS = '01'.
P0015-WAERS = 'INR'.
P0015-BETRG = '2500'.
*----- First Enqu
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = p0015-pernr
IMPORTING
RETURN = RETURNE.
Update
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = P0015-PERNR
SUBTYPE = P0015-SUBTY
OBJECTID = P0015-OBJPS
LOCKINDICATOR = P0015-SPRPS
VALIDITYEND = P0015-ENDDA
VALIDITYBEGIN = P0015-BEGDA
RECORDNUMBER = P0015-SEQNR
RECORD = P0015
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.
IF RETURN IS NOT INITIAL.
WRITE :/ 'Error Occurred'.
ENDIF.
Dequeue
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = P0015-PERNR
regards,
amit m.

Similar Messages

  • BAPI - PA30, Infotype 28

    Hi Experts,
    Is there any BAPI to upload the data for PA30, Infotype 0028.
    Regards,
    Rams

    Hi,
    You can use the FM HR_INFOTYPE_OPERATION
    This function module enables you to maintain master data for employees and applicants
    Thanks
    Pavan

  • Bapi for pa30

    i recorded pa30 view address data , organisedata and personal date its working good for organize data and personal data but for address data in case of country key its not working properly depending on se for singapore it work and for other country it not working . plz suggest to do with bapi i dont have idea with bapi
    thanks for good suggestation

    Address screen in PA30 changes as per the Country Grouping so you have to records for all the countries you need and then before writing BDC check the Employees Molga an then call your BDC accordingly.
    You can solve this problem by using HR_INFOTYPE_OPERATION function module.
    Refer the code for sample -
    FM 'HR_INFOTYPE_OPERATION
    hr_infotype_operation
    It is recommended to use this FM then BDC when you are doing one infotype at a time.
    Regards,
    Amit
    Reward all helpful replies.

  • How can I show icon Services for Object in PA30 Infotype 0019

    Hi guy.
    How can I show icon Services for Object in PA30 Infotype 0019 ?
    This icon display in some infotype example infotype 0024(Qualifications).But I wanna use in Infotype 0019.
    I don't wanna use menu "Assign facsimile".
    Best regards.
    Chutima.

    Sorry - should have said I'm using JDev 10.1.3.0.4 with JSF & ADF BC.

  • Adding a custom field in a sap standard screen in pa30 for an infotype.

    Hi to all..
    i'm in a requirement to add a custom field in a standard screen of pa30. for the infotype 0442.
    I googled up.. but i was not getting proper solution for it.. can any one provide a solution for it..
    With regards.
    Aahbha.

    Hello Sirs,
    Step by step instructions on:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4f/d52552575e11d189270000e8322f96/frameset.htm
    The below thread provide more info on how to create an infotype from scratch, but this is just for the reference:
    add custom fields to standard infotype
    Regards,
    Bentow.

  • Issue with pa30 transaction for the infotype 15

    Hi All,
    I am creating additional payments for the infotype 15 in PA30 transaction.
    i followed following steps: wage type
                                         amount
                                         date of origin
                                         assignment number
    then i clicked Maintain cost assignment button there i entered cost center 1027 . anybody can tell me where this cost center will save i need that table name.
    thanks,
    maheedhar

    Hi Soumya,
    it is saving in ASSOB table that fine. but my question is how to get particular cost center for the personal number.
    thanks,
    maheedhar

  • BAPI for updating infotype 0019 - Date Monitoring

    Hi,
    Does anyone know if there a BAPI for creating/updating infotype 0019 - Monitoring of Dates?
    Many thanks,
    Paul

    Hi Paul,
    1. HR_INFOTYPE_OPERATION
       This is the FM (for all infotypes, even 0019)
    2. If u want something like BAPI (RFC Enabled),
       what u can do is that
      create a new Z Fm,
      and call the FM
    HR_INFOTYPE_OPERATION
    in this.
    regards,
    amit m.

  • User exit for salary calcuation through PA30 infotype 8

    Hello gurus,
    I want user exit which will trigger in PA30 when we put infotype 8 for a particular employee in display or change mode.
    In PBAS package i have found the exit PARA0002. In this i have 3 components. I put the hardcoded break-poin in these function modules. But when i go to PA30 infotype 8 in change or display mode. The break-point is not triggered.. or control doesn't go to that point. In CMOD i created the project and activated. But still the break-point can't be reached. What else can be done or any other exit?
    Regards,
    Yayati Ekbote

    Hi yayati,
    For infotype 8 salary (or in fact for any other PA infotype) we can use the enhancment PBAS0001.
    It has two components/FM. One for PBO i.e. for defaulting values on screen and other for PAI i.e. for checking values before saving.
    EXIT_SAPFP50M_001
    EXIT_SAPFP50M_002
    Hope this helps.
    regards,
    amit m.

  • Bapi for closing infotype 169

    Hi guys,
    I have a requirement in which if an employee transfers, i need to close the current plans(169,165,377) with the transfer date- 1 day and create new plans(169,165,377) with the begin date = tranfer date.
    Is there any bapi to update the current plans with the end date = transfer date - 1 day? please let me know if there is any bapi or even if any other method is also ok.
    also let me know if there is any function module to create the above infotypes.
    Can u201CBAPI_BEN_BUS3029_CREATE_PLANSu201D be used for closing the current plans for all infotype?
    actually wat does the BAPI_BEN_BUS3029_CREATE_PLANS do?
    Thanks.

    Hi ,
    you should search in SDN before you post.
    FM HR_INFOTYPE_OPERATION will be useful for you , check its documentation,or search here for sample programs.
    regards
    Prabhu

  • Related BAPIs for the Infotypes

    Dear Friends ,
                         I have got an issue to post the following details to external system  Can anyone please provide me the related BAPIs for the following Infotypes.
    Infotype 02 - Personel details
    Infotype 06 - Adress details
    Infotype 09 - Bank details
    Infotype 33 - Statistics
    Infotype 21 - Family details
    Infotype 08 - Basic Pay
    Infotype 28 - Internal Medical Service
    Infotype 22 - Education details
    Regards,
    Gopi.

    Hi,
    System can work even if target system not always online. The IDoc will be created and sendingcontinue  once the system has coneected to other system
    System can work that target system always online and active then only it interacts both system  use bapi. It will be disadvantage of bapi
    The tabe TBDBA stores the relavant message type, IDOC type, OUtbound function module,inbound module that are generated as part of the ALE BAPI interface for a particular Business object method
    Edited by: sekharch on Jan 9, 2011 4:17 PM

  • PA20/PA30 Green Check For Existing Infotypes

    Can anybody tell me how the green check mark shows up on the screen for existing infotypes when you do a PA20/PA30?  I have a request to try and make it show up on the TIME Infotypes, because currently it doesn't even when they are there.

    Hi Richard,
    The solution to your query is included in sap note no. 713327.
    Please apply it and you will solve your requirement.
    Kind regards,
    Rodrigo

  • Pa30 infotyp 24: Note entry for qualification

    Hello everybody
    When you get into pa30 --> infotype 24 'Qualification'.
    You have the property to write for each qualification additional information into 'Note'.
    So, that's great, but where is this note saved?
    I have to get the field 'note' for a report. But I have no idea, in which table this information is saved in.
    Can anybody help me?
    Best regards
    Petra

    Hi,
    Use function READ_TEXT to get back the text.
    If you set a break-point in function SAVE_TEXT you will be able to see what parameters you need to provide to the function READ_TEXT to retrieve the note.
    The function SAVE_TEXT is called when you enter a note.
    For information the table is STXH as it is with any other texts/notes etc...
    Hope this helps.
    Cheers
    Colin.

  • BAPI for creating infotype p0000?

    Hi everyone,
    Is there any BAPI to create exclusively infotype p0000?
    Thanks!

    hi,
    You can use Fm
    HR_MAINTAIN_MASTERDATA.
    Regards
    Sumit Agarwal

  • BDC for PA30

    Hi all,
    I need to update info type 0001. If BTRTL is '0002',
    i need to set PERSG = 9
    and              PERSK = U1.
    but my problem is that these fields PERSG and PERSK are disabled even in the change mode in transaction PA30. so i cannot record that. thats why i cannot use BDC.
    Can anyone please help me on this?
    or suggest any alternative method/ BAPI/FM to do this?
    Thanks,
    Ridhima

    Hi ridhima,
    We can use the FM HR_INFOTYPE_OPERATION'
    for updating infotypes
    (This is the sample for 0015)
    1. this is the full coding.
    2. just copy paste in new program.
    3. U can change the pernr and amount values as per requirement.
    4.
    Report abc.
    Data
    DATA : P0015 LIKE P0015.
    DATA : RETURN LIKE BAPIRETURN1.
    DATA : KEY LIKE BAPIPAKEY.
    DATA : RETURNE LIKE BAPIRETURN1 .
    Values (Change as per Requirement)
    P0015-PERNR = '1'.
    P0015-BEGDA = '2061101'.
    P0015-ENDDA = '2061101'.
    P0015-LGART = '3075'.
    P0015-PREAS = '01'.
    P0015-WAERS = 'INR'.
    P0015-BETRG = '2500'.
    *----- First Enqu
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = p0015-pernr
    IMPORTING
    RETURN = RETURNE.
    Update
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0015'
    NUMBER = P0015-PERNR
    SUBTYPE = P0015-SUBTY
    OBJECTID = P0015-OBJPS
    LOCKINDICATOR = P0015-SPRPS
    VALIDITYEND = P0015-ENDDA
    VALIDITYBEGIN = P0015-BEGDA
    RECORDNUMBER = P0015-SEQNR
    RECORD = P0015
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    IMPORTING
    RETURN = RETURN
    KEY = KEY.
    IF RETURN IS NOT INITIAL.
    WRITE :/ 'Error Occurred'.
    ENDIF.
    Dequeue
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
    NUMBER = P0015-PERNR
    regards,
    amit m.

  • Log records for PA infotype updates

    Hi folks,
    I have a question related to the working of how the logs gets created when an infotype record is updated. Here is the scenario: I updated an action for an employee record in action infotype through PA40 and using an upload BDC program, the process took me through screens updating infotypes 0,1,2,7,8 and 19 to complete the action process.The changes are recorded in these tables. However when I checked to see the log records, a log record was created only for infotype 0.  Also I did verify that all these infotypes are entered in V_t585A, V_t585b and v_t585C to create logs.
    My question is: why the log records was not created for other infotypes inspite of defining these infotypes in the log maintainence tables? I am trying to understand this log creation process because most of our processes is directly dependant on it and poses problems .
    Any kind of help is really appreciated.
    Thanks in advance.
    SK

    It is a standard setting. The infotypes, their field groups and field group charcterstics are defined in V_T585A, V_T585B and V_T585C. I believe the end users are missing some process. Because it started to happen since a week or so. The same program was picking the records fine earlier and it has not changed.
    I do not know what kind of process they follow. what changed now? Since I am the only SAP guy out here, got to find it out.
    They are using PA30/PA40 to enroll and the web application. Both these records did not create the log data. The reocrds went through to SAP.
    Could there be any step they might be missing?
    Thanks for the quick reply,
    SK

Maybe you are looking for