PA40 recording

Hi All,
I am doing a hire action by recording pa40 transaction.
But i observed that the action type is not at the same row in every system.
Can anybody please suggest how can i deal this situation.
Thanks

Hi,
In this case you have to do bit of coding first before passing click to recording you have to read all the actions from T529T and sort it based on the required and then take the count and select the line.
Atul

Similar Messages

  • PA40 recording using ECATT TCD

    Hi,
    i'm new to ecatt.recently we are using ecatt in my project.My requirement is upload the logon details in sap using ecatt.They want logon details like username and password.How we record logon screen.
             one more requirement is upload the employee info using PA40 t.code.They want employee extension ,conversion,hiring,separation.
    pls any one help on this.How i will record using PA40.Any one help on this with screen shots.
    Advanced thanks
    Ravi
    Edited by: Matt on Feb 17, 2009 11:58 AM - subject modified

    Hello,
    Logon to eCATT system , enter transaction SECATT in command field and press enter key, in the test script text box enter the script name with which you want to create the script and once your enter inside the script you have to decide which driver to use to record the transaction.
    Say TCD , then in Pattern function select TCD REC and in popup enter transaction code and maintain target system where you want to record the transaction .
    Once the connection is established to target system then carry out the process with ur required transaction just as how you used to do manually.
    Once recording is complete then save and parameterize all input values and execute the script again with new set of values.
    Thanks and Best regards
    Ajay

  • LSMW issue while uploading the hiring data

    Dear Experts,
    I am trying to create LSMW  to upload hiring data for IT0000, IT0001, IT0002. Initially i tried with PA40 recording, but it was not selecting my respective action type. Then i tried with PA30 with external no. range, but still its not selecting action infotype.
    I used the following source file data for recording, please check and advise anything if i need to modify
    PERNR     N     008
    SELEC_01     C     001
    TIMR6     C     001
    CHOIC     C     035
    SUBTY     C     004
    BEGDA     DDMMYY     010
    ENDDA     DDMMYY     010
    MASSN     C     002
    MASSG     C     002
    PLANS     N     008
    WERKS     C     004
    PERSG     C     001
    PERSK     C     002
    BTRTL     C     004
    ABKRS     C     002
    VDSK1     C     014
    NACHN     C     040
    VORNA     C     040
    TITEL     C     015
    GESCH     C     001
    SPRSL     C     002
    GBDAT     DDMMYY     010
    FATXT     C     006
    GBORT     C     040
    GBLND     C     003
    GBDEP     C     003
    KITXT     C     004
    NATIO     C     003
    Regards
    Tan

    Hi,
    I am running it on foreground with external no. range for two employees. My main issue is its not selecting the action infotype from PA30 screen only.
    How to test in display mode...please suggest
    Regards
    Tan

  • LSMW Handling multiple recordings

    Hi Experts,
    I have a scenario in which i need to run PA40 and PA30 tcode back to back to upload data .I have done two recordings one for pa40 and another for pa30 .I have done this two recordings for one object.Now when i use this in LSMW to upload data say for 2 records,it uploads in this format..
    PA40-Record1
    PA40-Record 2
    PA30-Record1
    PA30-Record2
    But i need it to sequence in the format as below
    PA40-Record 1
    PA30-Record1
    PA40-Record 2
    PA30-Record 2
    Plz give some some idea as towhat changes need to be done in lsmw so as to obtain the above mentioned format.
    Thanks in advance
    Edited by: l_gnsh on Dec 12, 2011 1:23 PM

    it is not possible to run to recordings in one LSMW object.
    in step one, where you probably created your recording, you can certainly create many recordings,
    Those recordings are available for all objects in a LSMW project. you will even see the recordings made for other objects in your LSMW project.
    However, you can only choose and assign one of those recordings to your current object.
    this recording then defines the target structure to which you have to link your source structure in step 4
    this target structure defines the fields that are available to map your source fields to in step 5.
    I dont know PA30 nor PA40 transactions, so I cant give you a specific recommendation nor an alternative solution (I dont know whether SAP has a BAPI or IDOC or standard batch input that can be used instead of recordings.)
    But Looking at your  wanted sequence I dont see anything that demands  that you have to do it this way.
    I can only imagine that you have the data in your source file this way.
    Why dont you just split this source file into 2 source files, one for PA30 and another one for PA40
    then first post all your records using a recording for PA30, then run the second object to do the PA40 step.

  • How to know whether infotype record is created using PA30 or PA40

    Hi,
    can any one suggest is there any way to know how a record is created in database i.e by performing actions in  PA40 or from PA30.
    Thanks
    Deepthi

    Hmmmm...
    are you asking Record or actions???
    If records then forgot about PA40 it will perform actions not records.
    Coming back PA30-> TO create , modify display
                          PA20 -> TO DISPLAY.
    For PA30 -> after record is created come back to original pa30 screen input the Pernr number , Select/input  infotype number
    then click on the icon Overview button (or SHift + F8) then you can see the data , records.
    or you go and see in SE11 OR SE16 another direct method
    Regards
    sas

  • LSMW (PA40) successful but unable to update records in PA30

    Hi,
    I have tried running LSMW ( with external no range) in Fore ground mode. I can see that the data is getting properly picked from Excel sheet and in foreground mode, I am able to see this data getting into screens when i run LSMW last step.
    But actually when i go and check in tables and in PA30 if these employees are hired, there is no data.
    Can you please check the below --->
    My guess is while recording when we save 0,1,2 there should be some code written for "SAVE". In my recording BDC Code i ddint find any specific code. Can you check in your recordings if there is any special code for "SAVE" like BDC_OKCODE = "SAVE".
    Since there is no code written in my recording, i think this is the reason data is not getting saved.
    Can you let me know what needs to be done? If the above doubt is right, how to insert that in my BDC code.
    For your information-> U can find my BDC code pasted here.
    Recording REC7 M7
    PA40 Personnel Actions
    SAPMP50A 2000
    BDC_CURSOR T529T-MNTXT(01)
    BDC_OKCODE =PICK
    RP50G-PERNR PERNR Personnel Number
    RP50G-EINDA EINDA Entry Date
    RP50G-SELEC(01) X SELEC_01 Indicator for list sc
    BDC_SUBSCR /1PAPAXX/HDR_30060A
    MP000000 2000
    BDC_CURSOR PSPAR-PERSK
    BDC_OKCODE =UPD
    P0000-MASSN MASSN Action Type
    PSPAR-WERKS WERKS Personnel Area
    PSPAR-PERSG PERSG Employee Group
    PSPAR-PERSK PERSK Employee Subgroup
    MP000200 2010
    BDC_CURSOR Q0002-GESC1
    BDC_OKCODE =UPD
    Q0002-ANREX ANREX Form of address text
    P0002-NACHN NACHN Last Name
    P0002-VORNA VORNA First Name
    Q0002-PERID PERID Personnel ID Number
    P0002-GBDAT GBDAT Date of Birth
    Q0002-GESC1 GESC1 Gender key
    Q0002-GESC3 GESC3 Gender key
    BDC_SUBSCR SAPMP50A
    Thanks & Regards,
    Mamta
    Edited by: Mamta on Oct 28, 2008 7:58 PM
    Edited by: Mamta on Oct 28, 2008 7:59 PM

    Dear All,
    First of all I would like to answer all your questions.
    1. Yes, I tried LSMW by including PSPAR-PERNR PERNR Personnel Number in BDC code under MP000000 2000 too. Also, I did add the Perner again in the upload file too. In Read data mode I can see that Perner appeared twice as per our recording. In convert data Perner appeared only one. When I run last step of LSMW in foreground mode everything was perfect. But again when I go and check in PA30 there is no data.
    2. Yes, I did use PA40 for recording.
    3.  The sequence is 0000->0002->0001 while recording , in uploading file and in foreground mode too.
    4. When I run in foreground it appears like the regular Manual PA40 transaction.
    I donu2019t what might be causing this error. I would be glad to know your answers for the above issue.

  • HCP tcode PA40 Upload program failing to move to next record.

    Dear All
    I have written and upload program for HCM tcode PA40 and the program is fine but only inserting one record and is failing to pick the next records in a loop. I dont know whats the problem i know the process have many screens, please help me, i have tried to research not yet found the answer yet.
    Thank you for your assistance
    Here is my Upload program
    *& Report  ZUPLOADEMPHIRING
    REPORT  ZUPLOADEMPHIRING.
    include bdcrecx1.
    PARAMETERS: p_file TYPE  rlgrap-filename.
               x_endrow TYPE i .
    DATA:  xdate(10).
    DATA: Fullname type string.
    DATA:        x_begrow  TYPE i  VALUE 2,
                x_begcol  TYPE i VALUE 1,
                x_endcol  TYPE i VALUE 17,
                 x_endrow TYPE i VALUE 3.
    TYPES: BEGIN OF t_datatab  ,
            FromDate(10),
            Reasonforaction(2),
            Position(8),
            PersonalArea(4),
            EmployeeGroup(1),
            EmployeeSubGroup(2),
            SubArea(4),
            PayrolArea(2),
            Title(5),
            Lastname(40),
            Firstname(40),
            BirtDate(10),
            Nationality(3),
            Group(1),
            Level(1),
            BankKey(15),
            BankAccount(18),
           END OF t_datatab.
    DATA: BEGIN OF t_datatabfinal OCCURS 0,
            FromDate(10),
            Reasonforaction(2),
            Position(8),
            PersonalArea(4),
            EmployeeGroup(1),
            EmployeeSubGroup(2),
            SubArea(4),
            PayrolArea(2),
            Title(5),
            Lastname(40),
            Firstname(40),
            BirtDate(10),
            Nationality(3),
            Group(1),
            Level(1),
            BankKey(15),
            BankAccount(18),
          END OF t_datatabfinal.
    DATA: BEGIN OF it_record OCCURS 0,
            FromDate(10),
            Reasonforaction(2),
            Position(8),
            PersonalArea(4),
            EmployeeGroup(1),
            EmployeeSubGroup(2),
            SubArea(4),
            PayrolArea(2),
            Title(5),
            Lastname(40),
            Firstname(40),
            BirtDate(10),
            Nationality(3),
            Group(1),
            Level(1),
            BankKey(15),
            BankAccount(18),
            END OF it_record.
    DATA: itab LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE,
    gd_currentrow TYPE i,
    it_datatab TYPE STANDARD TABLE OF t_datatab,
    wa_datatab TYPE t_datatab.
    AT SELECTION-SCREEN on VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'  "
       EXPORTING
         FIELD_NAME          = 'P_FILE '
       IMPORTING
         FILE_NAME           = p_file.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
      EXPORTING
        PROGRAM_NAME        = SYST-REPID
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
        STATIC              = ' '
        MASK                = ' '
       CHANGING
         FILE_NAME           =
      EXCEPTIONS
        MASK_TOO_LONG       = 1
        OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename    = p_file
          i_begin_col = x_begcol
          i_begin_row = x_begrow   "Column header not required
          i_end_col   = x_endcol
          i_end_row   = x_endrow
        TABLES
          intern      = itab.
    Sort table by rows and colums
      SORT itab BY row col.
    Get first row retrieved
      READ TABLE itab INDEX 1.
    Set first row retrieved to current row
      gd_currentrow = itab-row.
      clear: t_datatabfinal.
      refresh t_datatabfinal.
      LOOP AT itab.
      Reset values for next row
        IF itab-row NE gd_currentrow.
          APPEND wa_datatab TO t_datatabfinal.
          CLEAR wa_datatab.
          gd_currentrow = itab-row.
        ENDIF.
        concatenate sy-datum6(2)'.' sy-datum4(2)'.' sy-datum+2(4) into xdate .
        CASE itab-col.
          WHEN '0001'.
            wa_datatab-FromDate  = itab-value.
           concatenate wa_datatab-DocumentDate6(2)'.' wa_datatab-DocumentDate4(2)'.' wa_datatab-DocumentDate+2(4) into wa_datatab-DocumentDate.
          WHEN '0002'.
            wa_datatab-Reasonforaction     = itab-value.
          WHEN '0003'.
            wa_datatab-Position = itab-value.
          WHEN '0004'.
            wa_datatab-PersonalArea    = itab-value.
          WHEN '0005'.
            wa_datatab-EmployeeGroup    = itab-value.
          WHEN '0006'.
            wa_datatab-EmployeeSubGroup   = itab-value.
          WHEN '0007'.
            wa_datatab-SubArea         = itab-value.
          WHEN '0008'.
            wa_datatab-PayrolArea         = itab-value.
          WHEN '0009'.
            wa_datatab-Title         = itab-value.
          WHEN '0010'.
            wa_datatab-Lastname         = itab-value.
          WHEN '0011'.
            wa_datatab-Firstname         = itab-value.
          WHEN '0012'.
            wa_datatab-BirtDate         = itab-value.
          WHEN '0013'.
            wa_datatab-Nationality         = itab-value.
          WHEN '0014'.
            wa_datatab-Group         = itab-value.
          WHEN '0015'.
            wa_datatab-Level         = itab-value.
          WHEN '0016'.
            wa_datatab-BankKey         = itab-value.
          WHEN '0017'.
            wa_datatab-BankAccount         = itab-value.
          WHEN OTHERS.
        ENDCASE.
       APPEND    wa_datatab to t_datatabfinal.
      ENDLOOP.
      clear: it_record.
      refresh it_record.
      loop at t_datatabfinal into it_record.
        append it_record.
      endloop.
      perform open_group.
      loop at it_record.
        concatenate it_record-Firstname it_record-Lastname into Fullname separated by space.
        perform bdc_dynpro      using 'SAPMP50A' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'T529T-MNTXT(02)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=PICK'.
        perform bdc_field       using 'RP50G-EINDA'
                                      it_record-FromDate. "" '01012012'.
        perform bdc_field       using 'RP50G-SELEC(02)'
                                      'X'.
        perform bdc_dynpro      using 'MP000000' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'PSPAR-PERSG'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0000-BEGDA'
                                      it_record-FromDate. "" '01.01.2012'.
        perform bdc_field       using 'P0000-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0000-MASSN'
                                      'ZB'.
        perform bdc_field       using 'P0000-MASSG'
                                      it_record-Reasonforaction. "" '01'.
        perform bdc_field       using 'PSPAR-PLANS'
                                      it_record-Position. "" '99999999'.
        perform bdc_field       using 'PSPAR-WERKS'
                                      it_record-PersonalArea.   " 'm003'.
        perform bdc_field       using 'PSPAR-PERSG'
                                      it_record-EmployeeGroup. "" 'a'.
        perform bdc_field       using 'PSPAR-PERSK'
                                      it_record-EmployeeSubGroup. "" '02'.
        perform bdc_dynpro      using 'MP000100' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0001-BTRTL'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0001-BEGDA'
                                      it_record-FromDate. ""'01.01.2012'.
        perform bdc_field       using 'P0001-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0001-BTRTL'
                                      it_record-SubArea.        "" 'mm01'.
        perform bdc_field       using 'P0001-ABKRS'
                                       it_record-PayrolArea.    "" 'Z2'.
        perform bdc_field       using 'P0001-PLANS'
                                      it_record-Position. ""'99999999'.
        perform bdc_dynpro      using 'MP000200' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0002-NATIO'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0002-BEGDA'
                                      it_record-FromDate. ""'01.01.2012'.
        perform bdc_field       using 'P0002-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'Q0002-ANREX'
                                      it_record-Title. "" 'Mr'.
        perform bdc_field       using 'P0002-NACHN'
                                      it_record-Lastname. " 'maxwel'.
        perform bdc_field       using 'P0002-VORNA'
                                      it_record-Firstname. "" 'razaro'.
        perform bdc_field       using 'P0002-GBDAT'
                                      it_record-BirtDate. "" '01011970'.
        perform bdc_field       using 'P0002-SPRSL'
                                      'EN'.
        perform bdc_field       using 'P0002-NATIO'
                                       it_record-Nationality. "" 'ZW'.
        perform bdc_dynpro      using 'MP000700' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0007-BEGDA'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'P0007-BEGDA'
                                      it_record-FromDate."" '01.01.2012'.
        perform bdc_field       using 'P0007-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0007-SCHKZ'
                                      'MANORM'.
        perform bdc_field       using 'P0007-ZTERF'
                                      '9'.
        perform bdc_field       using 'P0007-EMPCT'
                                      '  100,00'.
        perform bdc_dynpro      using 'MP000700' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0007-BEGDA'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0007-BEGDA'
                                      it_record-FromDate.""'01.01.2012'.
        perform bdc_field       using 'P0007-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0007-SCHKZ'
                                      'MANORM'.
        perform bdc_field       using 'P0007-ZTERF'
                                      '9'.
        perform bdc_field       using 'P0007-EMPCT'
                                      '  100,00'.
        perform bdc_field       using 'P0007-ARBST'
                                      '    8,00'.
        perform bdc_field       using 'P0007-WKWDY'
                                      '    5,00'.
        perform bdc_dynpro      using 'MP000800' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0008-TRFST'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0008-BEGDA'
                                      it_record-FromDate. "" '01.01.2012'.
        perform bdc_field       using 'P0008-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0008-TRFAR'
                                      '01'.
        perform bdc_field       using 'P0008-BSGRD'
                                      '100,00'.
        perform bdc_field       using 'P0008-TRFGB'
                                      '01'.
        perform bdc_field       using 'P0008-TRFGR'
                                       it_record-Group. ""'a'.
        perform bdc_field       using 'P0008-TRFST'
                                       it_record-Level.         "" '1'.
       perform bdc_field       using 'P0008-DIVGV'
                                     '173,00'.
        perform bdc_field       using 'P0008-ANCUR'
                                      'USD'.
        perform bdc_field       using 'Q0008-IBBEG'
                                      xdate.""'12.01.2012'.
        perform bdc_field       using 'P0008-WAERS'
                                      'USD'.
        perform bdc_dynpro      using 'MP000900' '2000'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'P0009-ZLSCH'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=UPD'.
        perform bdc_field       using 'P0009-BEGDA'
                                      it_record-FromDate. ""'01.01.2012'.
        perform bdc_field       using 'P0009-ENDDA'
                                      '31.12.9999'.
        perform bdc_field       using 'P0009-BNKSA'
                                      '0'.
        perform bdc_field       using 'Q0009-EMFTX'
                                      Fullname. "" 'maxwel razaro'.
        perform bdc_field       using 'P0009-BANKS'
                                      'ZW'.
        perform bdc_field       using 'P0009-BANKL'
                                       it_record-BankKey.       ""'10351'.
        perform bdc_field       using 'P0009-BANKN'
                                       it_record-BankAccount. "" '543234667778'.
        perform bdc_field       using 'P0009-ZLSCH'
                                      'b'.
        perform bdc_field       using 'P0009-WAERS'
                                      'USD'.
        perform bdc_dynpro      using 'SAPMP50A' '2000'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/EBCK'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RP50G-PERNR'.
        perform bdc_transaction using 'PA40'.
      endloop.
      perform close_group.
    Regards
    William

    Hi,
    It seems like you are uploading data to a screen that contains table control.just check the link below for your reference
    [http://wiki.sdn.sap.com/wiki/display/ABAP/bdcontable+control]
    Regards,
    Vamshi
    Edited by: vamshi reddy . ch on Jan 13, 2012 7:38 AM
    Edited by: vamshi reddy . ch on Jan 13, 2012 7:39 AM

  • Issue in PA40 transaction recording

    Hi,
    I recording PA40 transaction. for the infotype  0001 when i recording manually it is showing percentage field there i entered 100. when BDC is over i converted this recording into a report. when i run this report it is giving field percentage  is not exist in the screen MP000100. Why it is not whoing ?
    any body can help me in this?
    Thanks,
    Maheedhar

    Different molga, different ugr, different language, enhancement with sy-batch... there are a lot of reasons

  • Error in PA40: missing secondary record for infotype 0001

    Hi Experts,
    while changing the job code of employee i am getting below error in the PA40 transaction for IT0001 .
    Error : missing secondary record for infotype 0001 Key
    could you please tell me why this message is coming.
    Advance thanks,
    Regards
    Ram

    Hi,
    Please check out whether any user exits are maintained.
    Check ZXPADU01/ZXPADU02 includes.
    Please also check out whether there are dynamic actions configured for IT0000 and IT0001 via V_T588Z.
    Regards,
    Dilek
    Edited by: Dilek Ersoz Adak on Dec 16, 2009 3:19 PM

  • Assignment Button Is Missing in BDC recording in PA30/PA40

    Hello Masters,
    <h5>I have been trying a issue since last 2 days, i tried searching it many where but did not get satisfactory result, I am creating a BDC for PA40(also tried with PA30) , when i enter a personel Number and go click the promotion tab in PA40 , i go through 4-5 screens , when i come across 4th screen i can see a "ASSIGNMENT TAB", when i click on that "Assignment tab" , another screen pop-up and then i complete my transaction , but when i go for recording i use to never get that assignment tab in my recording in PA40 , then in SHDB in my recording i clicked on "Not a Batch Input session" and finally i got my "ASSIGNMENT TAB" during my recording and succeeded in my recording, But now again i find the problem when i upload a file through my program , again on 4th Screen the "ASSIGNMENT TAB" goes Missing , Ok Code is "MOPO" .</h5>
    It will be a BIG time HELP if you all can guide me with best of your knowledge.
    Regards,
    Nishant Singh

    Here is some part of my programming from where i think the problem starts , i hope it helps
    perform bdc_field       using 'PSPAR-PERSK'
                                  IT_FINAL-PERSK.
    &----Screen Five -
    perform bdc_dynpro      using 'MP000100' '2000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'P0001-BEGDA'.
    perform bdc_field       using 'BDC_OKCODE'                  " =MOPO
                                  '=MOPO'.
    WHEN I ENTER MOPO in my OK Code  i get the message Field PPRHPR-PROZT. does not exist in the screen MP000100 2000 and when i click ok-code =MOPO then message comes No batch data for screen MP000100 2000
    perform bdc_field       using 'P0001-BEGDA'
                                  IT_FINAL-EINDA.
    perform bdc_field       using 'P0001-ENDDA'
                                  IT_FINAL-ENDDA.
    perform bdc_field       using 'P0001-BTRTL'
                                  'RP17'.
    perform bdc_field       using 'P0001-ABKRS'
                                  '07'.
    perform bdc_field       using 'PPRHPR-PROZT'
                                  '100.00'.
    perform bdc_field       using 'P0001-PLANS'
                                  IT_FINAL-PLANS.
    perform bdc_field       using 'P0001-VDSK1'
                                  'RPUR0040001002'.
    &---- Screen Six -
    perform bdc_dynpro      using 'SAPLHRPAD00ORGINTEGRATION' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  '***_ORGEH'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=WEIT'.                    " =WEIT
    perform bdc_field       using 'CROSS_PLANS'
                                  'X'.

  • Error with creating a new employee - PA40

    When creating a new employee record using PA40, the PERNR gets generated as soon as Infotype 0000 is updated. How do we capture the new PERNR, if a BDC recording of PA40 fails midway during the process
    I would appreciate and reward any valuable ideas!

    create a session for error messages....and u can go to sm35 and check what has ahppened.....if not use format_message and display what has happened as report output....in case of BDC fail......!!!!!
    it will be like....
    call transaction 'PA40' using it_bdctab
    mode 'N'
    update 'S'
    messages into it_bdcmsgcoll.
    if sy-subrc <> 0.
    *--store the pernr for which bdc failed......here!!!
    call function 'bdc_open_group'
    call function 'bdc_insert'
    call function format_message
    call function 'bdc_close_group'
    *---check error and try to rectify it.....
    Regards
    Vasu

  • Creation of HR master record For a user when a time entry role is added

    Hi,
    Description summary:Automating creation of HR master record For a user when a time entry role is added to a user account
    Description detail:When time entry role is provisioned to a user account,the HR master record is linked,It is compleated after a user is created because a user id must exist .
    It is part of the record.In addition the user must be hired into SAP in order for the HR Master Record to Appear in SAP.
    What we need to do is when a 'Time and Personal Data Maintainer Role "is Added by the VIRSA_ADMIN user,automate the creation of the HR Master Record.
    Transaction code :SU01 to add the role to the Account.
    How to Create the User Exists For this Request…Its very urgent pls help me on this.
    Thanks.
    Vipin

    Why do you need a User Exit? You can create a BDC on PA40 & kick it off upon adding the role..
    ~Suresh

  • Automating creation of HR master record for a user when a time entry role

    Hi Abapers,
    We need an automated solution for the creation of the infotype 105 based on the addition of the time personal data maintainer role into an SAP user Account Master Record(PA30).
    Is it asking to add authorisation objects which would allow the user the time data, may be it is talking about 105 as user data is maintained in 105.
    For this requirement what I am going to do.Plz help me for this and how we can give authorization setting for a particular user plz send me some document.
    Thanks
    Sridhar.A

    Hi,
        You can create a BDC on PA40 & kick it off upon adding the role..
    Regards

  • Dynamic creation of two records in IT19 from input in IT16

    Hi all
    I am working on a dynamic action to do like this:
    When a person is hired through a PA40 one enters an IT0016 (at this point predefined with probationary period 9), saves and by doing this creates an IT0019 with Task Type "U9" and a date of task 9 months later. This I believe is calculated by adding together the probationary period in IT0016 and the begin date into the variable PROBEND.
    Now the next step in my Dynamic action is a copy of the fist one, creating yet another IT0019 record. Only this time the Task Type is 36 and here comes the trouble: I want the PROBEND for this part of the action to be begin date + 6 months. Question is, can this be done by using a W indicator for the step setting P0016-PRBZT='6' before making the PROBATION routine? I cannot make it work.
    My code is as this (simplified):
    IType 0016, field PRBZT, FC04
    ***first 0019 record ***
    P some tests
    F PROBATION
    I INS,0019,U9
    W P0019-TERMN=PROBEND
    ***second 0019 record ***
    P Some other testing
    W P0016-PRBZT='006'
    F PROBATION
    I INS,0019,36
    W P0019-TERMN=PROBEND
    It DOES make two records - one of each type, but the date of task is not calculated correctly for the second record. Anyone has an idea how to crack this one?
    Regards
    Jesper

    Hi Brother
    I think u r calling the Dynamic action after u save infotype 0016 in both the cases. So how can we save something in an infotype which is just saved, I mean u r using a field of 0016 in the dynamic action,but remember that we are calling dynamic action after 0016 gets saved.
    So for changing the dates in 0016 just play around with CONTR Feature, To default the contrat elements and modify the dynamic action...
    Hope this resolves ur query
    Thanks and regards
    Mohammed Azeem

  • What is the tcode for bdc recording and how to do in hr-abap for pa and om

    hi,
         I need to do the bdc recording for pa and om. So, can any of you tell me how to do and what are the tcodes we have to use.
    thanks & regards,
        Sekhar.

    Hi ,
    Here is the link from you will get all the transaction code
    http://www.sap-basis-abap.com/saphr004.htm
    As far PA specfic some tcodes are given below
    PA20  Display HR Master Data
    PA30  Maintain HR Master Data
    PA40  Personnel Actions
    PA41  Correct Actions
    PA42  Fast Entry for Actions
    PA46  Import from Resumix
    PA47  Export to Resumix
    PA48  Hiring from non-SAP system
    PA51  Display Time Data
    PA53  Display Time Data
    PA61  Maintain Time Data
    PA62  List Entry of Additional Data
    PA63  Maintain Time Data
    PA64  Calendar Entry
    PA70  Fast Entry
    PA71  Fast Entry of Time Data
    PA88  Benefits
    For OM specific
    PP01  Maintain Plan Data (menu-guided)

Maybe you are looking for

  • Ipod not recognized by updater/itunes

    I've gone through all the steps listed on the help pages. I've done as many of the 5 r's as I can. I just got a video ipod last weekend. I have the latest updates on itunes and ipod updater. I know the ports arent the problems because when I plug in

  • Blank page after installing htmldb 1.6

    I have installed htmldb 1.6 with a 9.2.0.5 database on SuSE Enterprise 9, but can't seem to get it working. I get a blank page when going to http://localhost:7785/pls/htmldb. When going to ps://localhost:7788/pls/htmldb/htmldb_login, I get an error i

  • I need to get rid of pricegong pop-ups. Their uninstall didn't help.

    pricegong and other malware have invaded my brand new laptop. I tried uninstalling them and also tried pricegong's uninstaller - still no luck. Ugh.

  • Windows .(tasks, calendar etc) not an option to sync to

    I have just managed to transfer my hotmail account to Live, as my Vista laptop has windows mail and windows calendar.  My laptop is synchonised with my live mail, so my calendar, tasks, contacts and mail are all the same, but on the blackberry deskto

  • Speckles/Noise on screen when playing Doom 3?

    Hi, I've just started playing Doom 3 again on my Dual 1.8ghz G5 but i am seeing spleckles all over the screen (as if it's snowing!), mainly white bit colured as well. I can't recall seeing this before and my Radeon 9800 Pro is the card i've always ha