Advantages of 'HR_INFOTYPE_OPERATION' Function Module In ABAP-HR

HI Experts,
What are the Advantages of 'HR_INFOTYPE_OPERATION' Function Module In ABAP-HR rather than BDC Both methods?
Thanks in Advance.
Naveen

Hi
The function module  'HR_INFOTYPE_OPERATION' can be used to update,insert,modify,delete and change in the same function module.
Codings are also very simple there by calling this FM in case of conversion program.
Performance is also good when compared to session method.
Speedy performance in conversion programming.
The sample codings is given.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'    
     EXPORTING                           
          INFTY          = '0009'        
          NUMBER         = EMPLOYEENUMBER
          SUBTYPE        = SUBTYPE       
          OBJECTID       = OBJECTID      
          LOCKINDICATOR  = LOCKINDICATOR 
          VALIDITYEND    = VALIDITYEND   
          VALIDITYBEGIN  = VALIDITYBEGIN 
          RECORDNUMBER   = RECORDNUMBER  
          RECORD         = P0009         
          <b>OPERATION      = CHANGE </b>       
          NOCOMMIT       = NOCOMMIT     
There by changing the operation field into "INSS","MOD","DEL" alone we can do conversion program easily.
Then if no commit ='X' then it does't get updated in database so that it will be easy for us to check whther the fields get updated properly in database.
If no commit = ' ' then the possible fields get updated in database.
Thanks,
Sakthi.
*Rewards if usefull*

Similar Messages

  • How to upload Excel file in BI using function module in abap program

    How to upload Excel file in BI using function module in abap program?

    Hi Anuj,
    To upload the file , you can try a standard program "RSEPSFTP" .
    while you execute the program , a selection screen appears in which the inputs should be give as
    RFC destination - The target server name
    FTP command- PUT
    local file - your file name
    local directory - path of your local file
    remote file - your target file name
    remote directory - where it has to be stored
    Hope this is useful for you
    Thanks & regards
    Anju

  • Using a function module in ABAP Query

    Hi All,
    I want to use a function module in ABAp query in the Record Processing Section.
    In the report program we click on Pattern button to inser the function module so that all the Importing and exporting parameter automatically appears.
    Similarly is there any particular method of inserting a function module in ABAp Query.
    Regards
    Manipal Parkala

    When you are doing the infoset for the query (SQ02) you can add coding by clicking the coding tab. You can chose in wich event you want your coding and there is Pattern Button for  you to easy use.
    If you don't want to put the code in the infoset just in the query then is not posible.
    Nevertheless, I higly descourage the use of coding in queryies. If you need to insert some coding make an ALV its easier, clearer and much easier to mantain.
    Hope it helps.

  • How to use this function module on abap hr GET_PDSNR_RANGE

    how to use this function module on abap hr GET_PDSNR_RANGE
    thankx.

    PASS INETRNAL TABLE WITH SOME DATA TO TABELLE FOR GENERATING PDSNR SEQUENCE

  • Regarding the usage of HR_INFOTYPE_OPERATIONS function module in ECM badi i

    Hi All,
    We have requirement where we need to update the infotype 0015 while implementing the badi 'HRECM00_ACTIVATION'.
    To achieve this functionality we are calling the HR_INFOTYPE_OPERATION function module to update the infotype 15. But we are getting the runtime error.
    Can some one suggest how to solve this issue.
    Thanks & Regards,
    Sreelatha Gullapalli.

    thanx for ur reply...
    But i want to use Transmission Medium 5 only as i have the requirement to Send the data as an EMAIL or FAX depending on the Communication Method specified in the Partner Number.
    Actually SAP Help also explains the usage of this medium using the same requirement as mine... but then it never anywhere specified on how the Print Program will be...
    I also checked the standard output type CPAC used in Application V7 to which transmission medium 5 is assigned. And the print program assigned to this output type has no coding on sending the email using the FM. So i am very very confused.... I have seen few postings in this forum on this topic.. but not clear enuf to clarify my confusion...
    Kind Regards,
    Tanuja

  • How to create function module in abap for VirtualProvider in bi

    how to create function module in abap for VirtualProvider in bi ???????????????
    can any one help me with simple example ?????????????????
    Moderator message : Duplicate post locked. Read forum rules before posting.
    Edited by: Vinod Kumar on Jun 15, 2011 4:40 PM

    Hi ,
    Thanks for replies about my question??.
    If i am using the exit in my char relation ship how can i debugg that exit???
    if i am using BPS0 how to do it???If i am using BPS_WB how to do it??
    Case1.Variable (type Exit) I known how to do debugg this one in BPS0 but i'm not sure in BPS_WB??
    Case2:Char Relation Ship(Type Exit) how to do in BPS0 and BPS_WB??.
    Thanks.

  • Function module or ABAP-OO method to start DTP via Coding

    Hello experts,
    is there any function module or ABAP-OO-method, which I can use to start DTP's via ABAP-Coding (e.g. in my own programm)? I know there are FM's to start, change, delete, etc. InfoPackges. Are there any functions like them also available for DTP's?
    Kind regards,
    André

    Hello Andre,
    [Re: CL_RSBK_DTP - How to use...]
    I've tested and it works fine!
    Regards,
    William

  • Function Modules and ABAP programs Where-Used

    Hi,
    Can anyone teach me on how to check where a function module or ABAP programs have been used? When I click the where-used button, there's nothing found but I know the FM/ABAP programs have been used somewhere.
    Thanks.

    Hi,
    This is very basic question, you simply need to go to transaction SE37 for FM and click on the where used list, in the next popup you will have to make proper selections, e.g. ABAP reports, FM's etc. then it will give you the list of objects where the current object is getting used.
    I am not sure whether we will have any where used list for SE38 programs, just check it out.
    Regards,
    Durgesh.

  • Updating liveCache Data using Function Module or ABAP program.

    Is it possible to update APO Live Cache using Function Module or ABAP Program.
    Will the aggregation/disaggreagation remain the same if data is modified using Function Module or ABAP Program.
    Regards,
    Vikas

    ello Vikas,
    -> Please click at
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
    & read about 'SAP liveCache'.
    As you know objects stored in liveCache in the class containers can be accessed
    and manipulated only via LCA routines which are methods of LCA objects.
    The registration of the LCA routines is done automatically when
    the liveCache is started by the LC10, check the lcinit.log file.
    The shared procedures in the LiveCache are written in C++ and shipped
    to the customers as binary shared libraries(LCA-Routines) < LCA build >
    together with the LiveCache. The original C++ source code of the
    libraries is not generally available to the customers.
    The LCA routines could be called via "/SAPAPO/OM*" ABAP functions.
    -> For SAP liveCache documentation in English:
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
    < -> Database Administration in CCMS: SAP liveCache -> liveCache Assistant ->
    liveCache: Monitoring -> Problem Analysis-> DB Procedures >
    In transaction LC10 for the LCA connection choose liveCache:Monitoring
    then go to Problem Analysis -> DB Procedures=>
    The system displays an overview of all database procedures loaded into
    liveCache, their input and output parameters, and other details.
    -> Tr. /n/SAPAPO/OM16 ( in further releases /n/sapapo/om19 ) is provided by
    SAP to get information about data stored in the LiveCache. If you would
    like to get your own views, you should write a special report in ABAP using
    "/SAPAPO/OM"-development class functionality.
    -> There are standard function modules in ABAP available to extract/change data from/in liveCache.
    -> In addition to the given information => find more information at:
    SCM 4.0 -> http://help.sap.com/saphelp_scm40/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
    SCM 4.1 ->
    http://help.sap.com/saphelp_scm41/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
    SCM 5.0 ->
    http://help.sap.com/saphelp_scm50/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
    You can go to the Advanced Planner and Optimizer documentation from the above links < Supply Network Planning Run -> Aggregated Planning -> SNP Disaggregation Or SNP aggregation . >.
    If you still have open questions on the posted topic =>
    Could you please give more information on your application scenario.
    Thank you and best regards, Natalia Khlopina

  • Error in 'HR_INFOTYPE_OPERATION' function module.

    Hi experts i am using 'HR_INFOTYPE_OPERATION'  this function module in my program . This is the parameters i passed to it.
    call function 'HR_INFOTYPE_OPERATION'
          exporting
               infty         = '0585'
               number        = number
               lockindicator = space
               validityend   = pendda
               validitybegin = pbegda
               record        = p0585
               operation     = p_oper
               tclas         = 'A'
                dialog        = '2'
          importing
               return        = wa_return
               key           = wa_key.
    But when i run this program it gives dump as shown below.
      An exception occurred that is explained in detail below.
      The exception, which is assigned to class 'CX_SY_ASSIGN_CAST_ILLEGAL_CAST'
       not caught in
      procedure "HR_INFOTYPE_OPERATION" "(FUNCTION)", nor was it propagated by a
       RAISING clause.
      Since the caller of the procedure could not have anticipated that the
      exception would occur, the current program is terminated.
      The reason for the exception is:
      The error occurred at a statement of the form
        ASSIGN f TO <fs> CASTING.
        ASSIGN f TO <fs> CASTING TYPE t.
      or
        ASSIGN f TO <fs> CASTING LIKE f1.
      or
        at table statements with the addition
        ASSIGNING <fs> CASTING.
      The following error causes are possible:
      1. The type of field f or the target type determined by <fs>, t or f1
      contains data references, object references, strings or internal tables
      as components.
      These components must match exactly as far as their position (offset)
      and their type are concerned.
      2. The specified type t or the type of f1 are not suited for the type of
       the field symbol <fs>.
      3. The row type of the related table is not suited for the target type  specified by <fs> according to the rules described in 1).
    So please help me its urgent and send me the correct solution of this problem
    Thanks in advance.

    Hi
    check if variable p0585 is a row. The variable can't be a table.
    JS

  • Suitable Functional module  for ABAP consultant

    Hi all,
    I am an ABAPer with one and half years of experience.
    Can some body suggest me a functional module which will be easier to learn for me as I have no domain experience.
    Also please tell me the marketwise  hottest module these days such that there are projects as well as demand in the market.
    Also please tell me  about higher end modules in SAP.
    Plaese clarify the role a technofunctional has to play I mean is techno-functional has basically functional but aid to technical person or he has to do both functional as well as technical work.
    Thanks.
    Edited by: sandeep deshpande on Apr 29, 2008 8:15 PM

    Hi Santanu
    I am a SAP ABAP Technical Consultant with 2.5 years of Experience. Now i want to shift to a functional module to become a Techno-Functional. I am B.Tech in IT and i love to do coding. But i also want to know Business Process.
    Please help us here: where in any of that paragraph do you provide any useful information about yourself that would allow any of us to:
    So can you suggest me what would module would be best for me.
    You have SAP experience. You know of SAP Modules. You work in the industry. You are your own person. How is anyone on here qualified to give you advise without any context?
    Step back - what do you enjoy doing? Which module have you learned about that you find interesting? Which one have you done more ABAP in? Which one might your current employer let you get experience in?
    I think you have the answer you just need to think it through a bit.
    Regards
    Colleen

  • Functional module in abap program

    hi guys,
    Do we have any OS specific Functional module  to be used in ABAP program.
    If so how to find this. please suggest me.
    Thanks.
    baasha

    hi,
    There is no such thing.
    Before you use any FM just confirm wheather it exists in that version or not
    in se37.
    If it is there you can always use that.
    regards,
    Guru
    mark if helpful

  • Function module or abap program

    Hello ABAP gurus,
           I need a function module or a program which can read and write into a transactional infocube. We have local currency as CAN and we wanted it to be overwritten as USD in the group currency. Here it is not a currency conversion as we are not changing the currency value but just the unit from CAN to USD. Note: No change with the transfer rules is allowed where USD can be given as a constant value. So the only option is either a function module or a ABAP program. So please any suggestion on this would be greatly appreciated.
    Thanks,
    anjali

    Hello ABAP gurus,
           I need a function module or a program which can read and write into a transactional infocube. We have local currency as CAN and we wanted it to be overwritten as USD in the group currency. Here it is not a currency conversion as we are not changing the currency value but just the unit from CAN to USD. Note: No change with the transfer rules is allowed where USD can be given as a constant value. So the only option is either a function module or a ABAP program. So please any suggestion on this would be greatly appreciated.
    Thanks,
    anjali

  • Ways to call a ABAP Function module or ABAP Program from WAD

    Hi,
      Is there any way to execute an ABAP function module or program from the WAD?
    Thanks

    what you could do is create a bsp application which receives workbook id as url parameter.
    from WAD create a link to this BSP page and pass the wbook id in the url.
    within the BSP you can then read the excel as binary string like below
    select * from rsrwbstore into table wb_tab
          where workbookid = wbid.
    you can then set wb_tab-clustd as the response of the page with mime type to 'application/vnd.ms-excel'. which will open as excel
    Regards
    Raja

  • Function module in ABAP

    I want to create a funcion module which inserts data in a table i created sooner.
    This is how my table looks in se11:
    [pic01|http://kepfeltolto.hu/i/?90028&t=img]
    This is how my import tab looks within the function module:[pic02|http://kepfeltolto.hu/i/?90031&t=img]
    This is my source code in the modul:
    FUNCTION ZPB01FM.
      IMPORTING
         REFERENCE(OUAID) TYPE  INT1
         REFERENCE(COMP) TYPE  SSTRING
         REFERENCE(BUSINESS) TYPE  SSTRING
         REFERENCE(GROUP) TYPE  SSTRING
         REFERENCE(NAMEOF) TYPE  SSTRING
         REFERENCE(MANNAME) TYPE  SSTRING
    DATA: itab TYPE TABLE OF ZPB_FORM_ORG
          wa LIKE LINE OF itab.
    wa-ORG_UAID = OUAID.
    wa-company = comp.
    wa-business_area = business.
    wa-group_zpb = group.
    wa-name_of_nou = nameof.
    wa-manager_name = manname.
    INSERT wa INTO TABLE ZPB_FORM_ORG.
    ENDFUNCTION.
    I did not change anything else in function modul. Will this work? If not how should i do it?
    If it works is it not a problem, that i don't insert all fields in table, only 5 of them?
    I really need the answer, thanks, Peter

    Yes, the other fields will simply be blank,  but your INSERT statement isn't right. I don't think that will pass a syntax check.  You might want to do this instead.
    INSERT ZPB_FORM_ORG from wa.
    Regards,
    Rich Heilman

Maybe you are looking for