Doubt s in ABAP HR -Enhancements

Hi Experts,
        I am working in enhancements, I have  some doughtes in that ,so plz do help to me,
””””My enhancement is,
Whenever we enter data such as Emp Firstname, emp.lastname,empdate of birth, in ‘pb10’  this data should check in PAP database tables and if he is previous employer of the that company it should give his ‘Emp.id’.
And also it should check ‘how many months back he worked in this company ‘ if that period is less than r equal to 3monthes’
We have to send the message that he is not eligible for attending interview. if that is greater than 3 months he is eligible for attending interview.
For this I am trying in ‘cmod’ transaction code in EXIT of ‘pbs0001’.
CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.
CASE INNNN-INFTY.
WHEN '4000'.
data : p0002 like p0002.
data : p4000 like p4000.
call method CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING
PRELP = INNNN
IMPORTING
INNNN = p0002.
if ( IPSYST-IOPER = 'INS' OR IPSYST-IOPER = 'MOD' )
**and sy-ucomm = 'UPD' .
CLEAR SY-UCOMM.
ENDIF.
BUT WHENEVER I SEE IN DEDUGGING MODE ,I am not getting any  data in that mode ,
Where I am doing mistake I am not getting so plz do help on this.
Thank you very much,
Krishna.

Hi,
I am not sure of the exact solution, but think that the problem may be because of the LDB's. Applicant database uses PAP LDB whereas employee database uses PNP LDB. May be after picking up the data from applicant database you can do a select on PA0002 table on the fields first name, last name and date of birth to check whether the employee worked in the company earlier or not. Just check if this helps.
Regards,
Jaisish

Similar Messages

  • Doubt in Basic ABAP.

    Hi Gurus,
    I have a small doubt in basic ABAP.
    What is the exact difference between the below statements.
    Types: Begin of ty_data,
                 matnr type mara-matnr,
              end of ty_data.
    Types: Begin of ty_data,
                 matnr type matnr,
              end of ty_data.
    Types: Begin of ty_data,
                 matnr like mara-matnr,
              end of ty_data.
    Types: Begin of ty_data,
                 matnr like matnr,
              end of ty_data.
    data: matnr type mara-matnr.
    data: matnr type matnr
    data: matnr like mara-matnr
    data: matnr like matnr.
    In those above statement which are correct. And the difference between those statements.
    Thanks,
    Srihari.

    hi,
    LIKE means the datatype of the variable is similar to the referenced variable.
    TYPE means it is a predefined data type.
    Eg:
    DATA int TYPE i.
    Here int is of integer data type.
    DATA var LIKE int.
    var IS a variable having same data type of int. which in turn is integer.
    You can find these helpful when you reference database table variables... You need not know what is the datatype defined.
    Also it adds to FLEXIBILITY.
    Whenever you make changes to your database tables and fields,
    that change is REFLECTED back to your program that is,
    You need not change all your program code when you change your table fields...
    Hope you understand and appreciate the flexibility that SAP provides to the programmers...
    Thanks
    Arun

  • ABAP HR enhancement for Short profile in PB20 or PB30

    Hello gurus,
    I am trying to display shortprofile in trnsaction PB20 and PB30.
    Here values are coming but I want to know from where and how this values are coming as I need to display some extra text for this.
    Here requirement is there is some short profile field on portal application and I need to display this text in R3 when user clicks on that short profile button on application bar of PB20 or PB30 screen.
    I need some enhancement like I can read table and display this extra text with this coming values as well.
    Can any anybody please explain how can I make this possible?
    I am going to post same thread for ABAP HR also.
    Thanks in Advance.

    I have resolved it my self,
    I have enhanced all standared infotypes as per my requirement and this infotype is getting called in this short profile code.
    There is no other option.

  • Doubts about my ABAP proxy scenario

    Hi everyone.
    I have this scenario. I think is simple but don't know how to do that. I have many questions for the forum.
    An abap proxy has to start a process in the XI Server.
    Data is stored in a R3 Backend and must be sent to XI Backend via ABAP proxy.
    Both backends are different machines.
    My doubts come here : how can data travel from R3 Backend to XI Backend ?
    Do i have to define something so ABAP Proxies know where to send the data (url, ip .. )?
    How can i define a ABAP proxy in a R3 Backend if integration repository definitions are in other machine?
    Another doubt is ... why i don't have to make a receiver determination or sender channel in XI? because XI is listening in an url that has been defined in R3 Backend?
    Regards.
    Inigo.

    HI,
    Suppose if you are creating ABAP proxy with the ta SPROXY in ABAP stack of R3.
    this is not backend.
    see the below links
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    regards
    Chilla

  • Generic doubt reg. ABAP

    Hello,
    I had about 4 - 5 yrs exp. in sap abap ( in India ) but then, i moved out of IT for a few years.
    I am looking at brushing up abap again but seem to be out of touch completely.
    My queries :
    1. For a 5 yr exp. person in ABAP , what are the topics and knowledge level Currently expected in Interviews ?
    2. Can you link me to Proper SAP materials which are up to date ?
    3. Would my SAP exp. help me getting into Functional / SAP - Analyst openings Currently - and if yes, how ?
    Thanks.
    ps.1.  All queries are Specific to Indian IT industry.
    ps.2. Hope i am in the right forum - If not, pls guide this post to a forum which fits better.

    very good sound knowledge in ALV reports in MM/SD/WM modules having real time experience,Enhancement Spots,Conversion Programs,improving the performance,should developed user exit

  • Doubts with WD ABAP

    Hi carmen ,
         The coding you have written above can be generated through code wizard easily.
    Just you need to click the code wizard button .
    just see the below link :-
    [http://help.sap.com/saphelp_tm70/helpdata/en/3b/29933f09a5fb47e10000000a114084/content.htm]
    you can call nodes and can call them as a table or structure.
    again you can access methods and attributes of various classes . The code will be auto genarated. You just need to cange a little bit according to your need.

    Hi,
    In pattern, choose ABAP Objects patterns.
    In that in radio button, Call Method choose the following from F4 button.
    Instance                       Node_sflight
    Class/Interface            IF_WD_CONTEXT_NODE
    Method                        Bind_table
    It will generate the below code.Pass the internal table as shown in bold.
    CALL METHOD node_sflight->bind_table
      EXPORTING
        new_items            = itab_sflight
       set_initial_elements = ABAP_TRUE
       index                =

  • ABAP Program enhancement

    Hi Experts,
    As i am not familiar with data types please update me...
    I am using the below logic to calculacte years & months between 2 dates and save the result in YY.MM format.
    The FM i am using will give years & months between 2 given dates.
    My requirment is to save result in YY.MM format.
    The code is working correctly...i need a minor enhancement to code
    Currently if years are 8 and months are 8 the out put will be 8.08 but i want it in YY.MM format which is 08.08
    I want to add a leading 0 if years <10
    Please update
    DATA: years TYPE tfmatage,
              months TYPE tfmatage.
        DATA: l_res TYPE p decimals 2 .
        IF NOT SOURCE_FIELDS-/bic/zdob IS INITIAL.
        CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
            EXPORTING
              I_DATE_FROM          = SOURCE_FIELDS-/bic/zdob
              I_DATE_TO            = sy-datum
              I_FLG_SEPARATE       = 'X'
            IMPORTING
            E_DAYS               =
              E_MONTHS             = months
              E_YEARS              = years.
    l_res = years + months / 100.
    WRITE l_res TO RESULT.
    ENDIF.
    WRITE / RESULT.

    Hi,
    you could do like this:
    REPORT  zhabitest4.
    PARAMETER:
      p_datum LIKE sy-datum.
    DATA:
      result(20).
    DATA: years TYPE tfmatage,
    months TYPE tfmatage,
    y_num(4) TYPE n,
    m_num(2) TYPE n.
    DATA: l_res TYPE p DECIMALS 2 .
    IF NOT p_datum IS INITIAL.
      CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
        EXPORTING
          i_date_from    = p_datum
          i_date_to      = sy-datum
          i_flg_separate = 'X'
        IMPORTING
         e_days         =
          e_months       = months
          e_years        = years.
    l_res = years + months / 100.
    WRITE l_res TO result.
      y_num = years.
      m_num = months.
      CONCATENATE y_num+2(2) '.' m_num INTO result.
    ENDIF.
    WRITE / result.
    regards
    Walter Habich

  • Doubts on the abap development

    i'm new to the ABAP development.
    I have learnt  SAP BW by myself for several months and have got an overview of what the BW is for. Now I am able to create data models and transfer files to InfoTargets.
      Two weeks ago , my boss asked me to join the team of development to learn the ABAP, hoping that i can take the work of the development of BW.
    I have two questions.
    1. What the development of bw is like? Is it very important?
    2.How to learn the ABAP development well.

    hi,
    am not sure about BW devl but as far as the ABAP part is concerned...
    u can check this link out <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/abap-elearning">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/abap-elearning</a>
    also for basics u can read <b>ABAP in 21 Days</b>
    regards
    sagar.

  • Doubt while creating abap proxy

    hi,
    when i go to sproxy, under my software component..>MI(outbound)..>MI_outbound_ruban...>right click ..> create ..>specifications for objects to be generated..I selected SALERT_DEMO in package, it is saying that i am not registered user as a developer.
    plz help me with this..i want to create abap proxy?
    thanks & regards
    Ruban

    Ruban,
    In order to do any kind of development, you need a developer Role. Ask your basis team to assign developer role to your user id.
    Also they need to generate developer access key in order to do development. For your first object only once it will ask you for development access key.  You can generate development access key from SAP Market place...i.e. http://service.sap.com/
    You can ask your basis team to generate developer access key. Remember it is different for every user id.
    Let us know if you need more details.
    Nilesh

  • Very basic doubt regarding transporting abap developments

    Hi All,
    It may be very basic doubt, But I need an answer.
    If we develop some objects in the development and transported them to quality and for some reason some errors occured and the for correction of the errors we created some more requests and ported them to Quality.
    the number of requests are say more than 15. and if we lost track of sequece of the requests to be ported to production.
    How can we overcome this problem?
    Can we create a new transport request by right clicking the package (of course all the objects are in only one package) , this will solve the purpose. I mean to say if we transport this single request to quality then to production, all the things will get transported?
    Please give your valuable inputs..
    Thanks and Regards
    KK

    Hi All,
    I really appreciate all your quick replys.
    My question is if we create a new request from the package in SE80, can we leave the old requests,
    That is if I transport a request say req 2 of domain for solving the dependency error of the previous request say req1 ( of data element ). and again transport req 1 after transporting req 2, this will solve the dependency problem. Like this if some dependency related issues are there and we lose track of sequence of request which needs to be transported, what could be the ideal solution?
    So I mean to ask that if I create a new request for the package in SE80, will all the developments will be included in the request or do we need to follow the sequence only?
    Thanks and regards
    KK

  • ABAP Coding- enhance transactional datasource

    i need to bring in data from different tables and following code works for me:
    DATA: l_s_ziw_orderma_i like ziw_orderma_i.
    CASE i_DATASOURCE.
    WHEN 'ziw_orderma_i'.
    LOOP AT c_t_data INTO l_s_ziw_orderma_i.
    l_tabix = sy-tabix.
    SELECT PRODUCT_IT FROM CRMD_SRV_REFOBJ INTO l_s_ziw_orderma_i-ZZPRODUCT
    WHERE GUID = l_s_ziw_orderma_i-GUID .
    MODIFY c_t_data FROM l_s_ziw_orderma_i INDEX l_tabix.
    ENDSELECT.
    ENDLOOP.
    WHEN OTHERS.
    EXIT.
    ENDCASE.
    Guid...date...........objectid...item guid
    1122......1.1.10....901..........z1122
    1122......1.1.10....901..........z1123
    1122......1.1.10....901..........z1124
    using this ITEM GUID from extractor, i want to pull out data from table - CRMD_SRV_REF
    guid ...............product...............Product type..........product quality
    z1122.............110011..........ABC.........................GUD
    z1123.............110012..........DEF..........................GUD
    z1124.............110013...........DFG.........................GUD
    NOW my code works for extracting PRODUCT..
    what MODIFICATION I need to do so that i can bring in PRODUCT TYPE & PRODUCT QUALITY

    HI ,
    I am not sure about the Product quality( Do you know the source table ?)  , but Product type will be available in the
    will not be available in CRMD_SRV_REFOBJ, you can get that from table COMM_PRODUCT ,
    Change your code as below sample code  to get product id and Type , find the source table for product quality and extend this code in the similar way , check for syntax error if any and fix it
    TYPES : BEGIN OF PROD        ,
            PRODUCT_ID   TYPE COMT_PRODUCT_ID ,
            PRODUCT_TYPE TYPE COMT_PRODUCT_TYPE,
            END OF PROD .
    DATA: l_s_ziw_orderma_i like ziw_orderma_i,
          i_PROD TYPE TABLE OF PROD ,
          WA_PROD LIKE LINE OF i_PROD .
    CASE i_DATASOURCE.
    WHEN 'ziw_orderma_i'.
    LOOP AT c_t_data INTO l_s_ziw_orderma_i.
    l_tabix = sy-tabix.
    SELECT PRODUCT_ID
      FROM CRMD_SRV_REFOBJ
      INTO l_s_ziw_orderma_i-ZZPRODUCT
    WHERE GUID = l_s_ziw_orderma_i-GUID .
    ENDSELECT.
    IF SY-SUBRC EQ 0 .
    SELECT PRODUCT_ID
            PRODUCT_TYPE
        INTO TABLE i_PROD
        FROM COMM_PRODUCT
             WHERE PRODUCT_ID = l_s_ziw_orderma_i-ZZPRODUCT .
    ENDIF .
    IF i_PROD[] IS NOT INITIAL .
    READ TABLE I_PROD INTO WA_PROD WITH KEY
                            PRODUCT_ID = l_s_ziw_orderma_i-ZZPRODUCT .
    IF SY-SUBRC EQ 0 .
    l_s_ziw_orderma_i-ZZPROD_TYPE = WA_PROD-PRODUCT_TYPE .
    ENDIF.
    ENDIF .
    MODIFY c_t_data FROM l_s_ziw_orderma_i INDEX l_tabix.
    ENDLOOP.
    WHEN OTHERS.
    EXIT.
    ENDCASE.
    Regards,
    Sathya

  • Doubt in HR-ABAP BDC Program

    hi all,
        My BDC program is going to dump while execution. Below I'm pasting the report.
        TYPES : BEGIN OF IT_INPUT,
            PERNR TYPE PERNR_D,
            CHOIC TYPE CHOIC,
            BEGDA TYPE CHAR10,
            ENDDA TYPE CHAR10,
            ANREX TYPE ANREX,
            NACHN TYPE NACHN,
            VORNA TYPE VORNA,
            GBPAS TYPE GBPAS,
            SPRSL TYPE SPRSL,
            END OF IT_INPUT.
    TYPES : BEGIN OF IT_RAW,
            LINE TYPE CHAR120,
            END OF IT_RAW.
    INTERNAL TABLES
    DATA : IT_FINAL TYPE STANDARD TABLE OF IT_INPUT.
    DATA : IT_RAW TYPE STANDARD TABLE OF IT_RAW.
    DATA : IT_ERROR TYPE STANDARD TABLE OF BDCMSGCOLL.
    WORK AREA
    DATA : WA_FINAL TYPE IT_INPUT.
    DATA : WA_RAW TYPE IT_RAW.
    DATA : WA_ERROR TYPE BDCMSGCOLL.
    CONSTANTS : C_TAB TYPE C value '/'.
    INCLUDE : BDCRECXY.
    START-OF-SELECTION.
    SUBROUTINE TO READ DATA FROM FLAT FILE
    PERFORM READ_DATA_FROM_FF.
    SUBROUTINE TO MAP DATA TO SCREEN FIELDS
    PERFORM DATA_MAPPING.
    *&      Form  READ_DATA_FROM_FF
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA_FROM_FF .
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'E:\RAG\BDC1.txt'
      TABLES
        DATA_TAB                      = IT_RAW
    IF sy-subrc eq 0.
    LOOP AT IT_RAW INTO WA_RAW.
    SPLIT WA_RAW
    AT C_TAB
    INTO WA_FINAL-PERNR
         WA_FINAL-CHOIC
         WA_FINAL-BEGDA
         WA_FINAL-ENDDA
         WA_FINAL-ANREX
         WA_FINAL-NACHN
         WA_FINAL-VORNA
         WA_FINAL-GBPAS
         WA_FINAL-SPRSL.
    APPEND WA_FINAL TO IT_FINAL.
    WRITE : WA_FINAL.
    CLEAR WA_FINAL.
    ENDLOOP.
    ENDIF.
    ENDFORM.                    " READ_DATA_FROM_FF
    *&      Form  DATA_MAPPING
          text
    -->  p1        text
    <--  p2        text
    FORM DATA_MAPPING .
    LOOP AT IT_FINAL INTO WA_FINAL.
    FIRST SCREEN INFORMATION FOR PA30
    perform bdc_dynpro      using 'SAPMP50A' '1000'.
    perform bdc_field       using 'RP50G-PERNR'
                                  WA_FINAL-PERNR.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'T582S-ITEXT(03)'.
    perform bdc_field       using 'RP50G-SELEC(03)'
                                   'X'.
    perform bdc_field       using 'RP50G-TIMR6'
                                   'X'.
    perform bdc_field       using 'RP50G-CHOIC'
                                   '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=INS'.
    SECOND SCREEN INFORMATION 0002
    perform bdc_dynpro      using 'MP000200' '2001'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'Q0002-GBPAS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'UPD'.
    perform bdc_field       using 'P0002-BEGDA'
                                   WA_FINAL-BEGDA.
    perform bdc_field       using 'P0002-ENDDA'
                                  WA_FINAL-ENDDA.
    perform bdc_field       using 'Q0002-ANREX'
                                  WA_FINAL-ANREX.
    perform bdc_field       using 'P0002-NACHN'
                                  WA_FINAL-NACHN.
    perform bdc_field       using 'P0002-VORNA'
                                  WA_FINAL-VORNA.
    perform bdc_field       using 'Q0002-GBPAS'
                                  WA_FINAL-GBPAS.
    perform bdc_field       using 'P0002-SPRSL'
                                  WA_FINAL-SPRSL.
    perform bdc_transaction tables it_error using 'PA30' 'x' 'a' 'a'.
             IF it_ERROR[] IS NOT INITIAL.
                LOOP AT it_ERROR INTO wa_ERROR.
                WRITE : wa_ERROR.
               ENDLOOP.
              REFRESH it_ERROR.
             ENDIF.
    ENDLOOP.
    Error which I was getting is 'UNABLE TO INTERPRET '/ ' AS  A NUMBER'.

    Hi
    Look out for the error in the flat file which you are uploading. I have seen this error and I found it in Flat file. its a conversion error.
    Just copy few lines from the original file, make a new file and upload it. In this way, you will be able to say whether there is an error in file or in code.
    Regards
    Waz

  • Doubt related to ABAP HR form printing.

    Hi All,
    I am trying to print the Benefits confirmation form through the transaction - HRBEN0015.
    When I enter multiple employees it gives me the tree structure with all the employees for which benefits confirmation form is valid.I can select the employees from this output for whom I have to print the form.
    But the issue is that even if I select Multiple employees from this structure it gives me the output for the last employee that is selected.
    Can some one please let me know how to print the forms for all selected employees in one go.
    Regards,
    Rupesh R Nair.

    Hi
    We are facing a same issue right now. Please advise what solution did you find for the issue reported.
    Regards
    Shilpa

  • HR Abap-RPTQTA00 enhancement

    Hi friends,
    anyone who made changes in rptqta00??
    can you share your experince?
    I want to change the output this way:
    difference between generated leave in a year and the taken /availed leave should not exceed 40 days.
    is this possible?
    the stand report only generates quota,while abs are availble in 2006 infotype.So can i compare the diff ??
    and i want to restrict the total avaialble quota to an employee only 40 days.
    regards
    Sai

    There is the Concept called dynamic actions regarding this .Kindly chekc the available documkents fgro this ..ok
    regards
    sas
    Moreover this is Functional people work
    Reward points if useful

  • Doubt in HR ABAP

    Hi All,
           What is Personnel Area, Personnel Subarea, Payroll Area, Employee Group, Employee Subgroup? Plz give the Explanation with Example?
    bye
    kumar.

    Personal area and personal subarea form the part of enterprise structure.
    The functions of personal area are:
    It is selection criteria for evaluations.
    personal area is assigned to company codes.
    It represents subdivision for company code.
    EX-It division may depend on geographic conditions of the organization or the functions (department )
    Personal subarea are division of personal area.
    Personal subarea is mostly used in pay scale and wagetype structures.
    Employee group and subgroup are part of the personnel structure.
    employee group could be an Active emplyee group .
    and subgroups could be hourly waged employee or salaried employee.
    Hope this helps .
    Also there is lot of material available on this topic , u can refer that

Maybe you are looking for

  • Looking for a way to re-organize pages within a PDF document....

    Hello All..... First time posting here and a new user to Acrobat X Pro so bear with me as I try too explain my issue. I receive via email, a weekly PDF report for work that contains up to 200 pages in each file. Each page is basically a "Lead" that c

  • URJENT - F8BU

    URJENT Any idea about the TCODE: F8BU. How to schedule the Automatic Payment Run ( TCODE: F110), every week automatically. Iam getting "short dump" when iam doing TCODE:F8BU URJENT VVR

  • Data Comparison using Openscript

    Hi, Is it possible to compare 2 html/xml/pdf page's format and data using Openscript Edited by: 887085 on Sep 23, 2011 8:07 PM

  • Is Office 365 compatible in IPAD2 iOS5

    HI all, I am in need of a solution to edit and use excel and Word documents using my IPAD2...... I would like to know if Office 365 is compatible with IOS5 and whether using a bluetooth keyboard would solve any compatibility issue?? GUYS I NEED YOUR

  • Can I restore deleted trash?

    My trash folder was accidentally deleted instead of compacted. Can my deleted trash be restored? And (hopefully) if so, how? Thanks in advance for any help!