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

Similar Messages

  • 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*

  • How to find the signature of a function module

    Hello,
    I have a requirement tofind the signature of a given function module during runtime  , If i get the path also it should be fine . Kindly let me know is there any way to find this.
    Thanks & Best Regards,
    Vinutha

    Hello,
    Signature of a function module :  to find all the importing, exporting , changing,  paramters or its path for example
    importing-name
    exporting-name1
    call function 'FM'
    exporting
    name1
    importing
    name
    Thanks & Best Regards,
    Vinutha

  • Storing the output of a function module into a custom table

    Hi Gurus,
    Is it possible to store the output of a function module into a custom table.How can this be done?Is it complex?

    hi,
    After u execute the FM and get values in the internal table ITAB_RESULT. Create a custom table having structure same as ITAB_RESULT call it ZRESULT.
    data :wa type ITAB_RESULT.
    call FM and get result it ITAB_RESULT
    loop at itab_result.
    move-corresponding itab_result to wa.
    insert wa to ZRESULT.
    endloop.
    Regards,
    Mansi.

  • Delta Problem while extracting the data by using function module

    Hi Experts,
    I have extracted the data by using Function module, for delta loads I have given Calday and additive delta in Generic delta settings, in BW side I have initialized the data after that I have given delta update option in infopackage and I made process chain also, every day process chain is running successfully but it is showing zero records, but there is a data in Data source (RSA3), means delta is not working.
    What is the problem,
    Is there any another settings for delta loads,
    Please help me to do this,
    Helpful answer will be appreciated with points,
    Regards,
    Venkat

    Hi,
    Try this delta type :NEW STATUS FOR CHANGED RECORDS.
    More information from Nagesh, this information may help
    1. New status for changed Records.
    2. Additive delta.
    New status for changed records means
    New Order
    order no quantity
    1000 10
    order changed to quntity 8. then 2 records will posted 2 BW in first case.
    1000 -10
    1000 8
    if you come to Additve delta.
    for the same case it will send the same record as
    1000 10
    changed records
    1000 -2
    this is the difference. New status with changed records should be used only in association with ODS not cube becoz we don't have overwrite option.
    Additive delta we can use for ODS and Cubes with update mode Addition.
    Regards,
    Satya

  • What are  the input parameters for Function Module

    Dear Experts,
    I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
    For that i want to write a Generic Datasource with Function Module.
    audat
    bukrs
    vkorg
    vtweg
    spart
    aurat
    auart
    netwr
    mwsbp
    kschl zedp(consition type)
    kschl zvat(condition type)
    ksch   zcst(condition type)
    matkl     material group
    Here what are the Input parameters for Function Module.
    Thanks in Advance.
    Srinivasan.

    Srinivasan-
    For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
    Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
    Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
    Let me know how it goes.
    -Bhushan.

  • Howt 2 delta with the extractor created on Function Module..

    hi there,
    can anybody tell me how to update delta with the extractor created on Function Module..
    rgds,
    amol

    refer to the document at the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    Generic Extractor using FM with Delta Logic
    hope it helps,
    rgs,
    Parth.
    Edited by: Partho Mukherjee on Jan 12, 2009 6:00 PM

  • Help needed regards the usage of STL.....with CC

    Hi All,
    I am relatively new to SOLARIS. I am trying to figure out the options for using the STL components in the project.
    The project needs to be compiled with both CC ang g++, should support both SOLARIS and LINUX systems. That's why i am going for STL components rather than using the RW-Components of Tools.h++.
    I have the following doubts regards the usage of STL.
    CC provides the -library option to link the libraries we require.
    The following is what i understood from the documentation:
    No ( -library ) option provides - default libraries included -lCstd -lCrun -lm -lw -lcx -lc+
    -library=iostream+ - libraries included -liostream -lCstd -lCrun -lm -lw -lcx -lc+
    -library=iostream,no%Crun+ - libraries included -liostream -lCstd -lm -lw -lcx -lc+
    -library=stlport4+ - libraries included -lstlport4 -lCrun -lm -lw -lcx -lc+
    -library=iostream,no%Cstd+ - Invalid combination, some header files missing [[ *iostream, sstream* ]]
    When we try to make a new project, which of the following is recommended?
    #! - Use libCstd suppplied along with solaris package.
    When solaris makes a new release, is it always guaranteed that project is compatible with new libCstd ? (Is there a backward compatibility?)
    The STL components which can be used in the project are limited. i.e we can use only those that come along with libCstd.....right?
    Might not be compatible with other c++ compilers. ( Not compatible with g++ ) Right?
    #2 - Use libCStd along with libiostream
    Can we use STL (supported by libCstd ) + Classic-iostreams and still have the backward-compatibility?
    Compatible with other C++ compilers....provided care has been taken of the CC STL Specializations. ( Compatible with g++ ) Right?
    #3 - Use stlport4. Is it stable and backward-compatible ?
    We can exploit usage of STL to the maximum.
    Is it guranteed that the project (using -library=stlport4 ) will be backward compatible ?
    Can the SunStudio (ORACLE) organization gurantee that stlport will take care of the changes in the CPP standards ?
    i.e Is it guranteed that STLPORT and SUN-STUDIO packages will always be in sync?
    Among the above three which is preferred method to go ensuring stability and backward-compatibility.
    Thanks in advance.
    Cheers,
    Sreekar
    Edited by: 855323 on 20-Oct-2011 04:04
    Edited by: 855323 on 20-Oct-2011 04:04
    Edited by: 855323 on 20-Oct-2011 04:06

    In general, you don't need any options to use the C++ Standard Library (which includes what is sometimes loosely called the "STL"). Consider this toy program:
    // file vec.cc
    #include <vector>
    #include <iostream>
    int main()
        std::vector<int> vi(10);
        vi[1] = 1;
        std::cout << "vi[1]=" << vi[1] << '\n';
    }You can compile and run the program as either
    CC  vec.cc && a.out
    g++ vec.cc && a.outWith CC, by default you get the original libCstd. You use the -library option to select STLport or (on or selected versions of Solaris) Apache stdcxx instead. With g++, you just get the g++ library libstdc++, which should be suitable for all purposes.
    For a discussion of which library to select with CC, see this thread:
    Differnce between LibCstd and LibStlport
    The optional libiostream is provided to provide support for programs written for the very old version of iostreams that was provided with the original AT&T Cfront compiler in the 1980's and early 1990's. There is usually no reason to use this obsolete library with code written after 1998.
    The Solaris libCstd.so.1 (and libCrun.so.1) is always compatible with various releases of Studio, with one caveat: Each Studio release specifies the minimum patch level of Solaris libraries that is required to run programs created by the compiler. Any newer version of the library is guaranteed to be compatible. Thus, it is always safe to update the library, and an update might be required when using binaries created by a newer compiler.
    A version of the STLport library ships with the compiler. C++ binaries created by an older compiler that link to libstlport.so.1 should still work when linked into a program created by a newer compiler. Use of the static libstlport.a is generally not safe when mixing binary code from different compiler releases.
    Binaries created by Studio CC in default mode are not compatible with binaries created by g++. Even if you can get a program to link, which is doubtful, the program is not likely to run correctly.
    Studio CC does provide a g++ compatibility mode as follows:
    On supported versions of Linux with Studio 12.2 (C++ 5.11).
    On Solaris/x86 and supported versions of Linux with Studio 12.3 (C++ 5.12).
    In this mode, CC uses the g++ headers and the g++ runtime libraries.
    Refer to the -compat=g option in the C++ Users Guide for details.
    We plan to support the new C++ Standard, C++11, in a future compiler release. Because the ABI (binary interface) used by the current compilers is not adequate to support all the new features in C++11, we expect binaries built in C++11 mode to be incompatible with binaries created by earlier compilers. None of the existing C++ support libraries will be used in C++11 mode. A new library that provides full C++11 support will be used instead. We expect the new compiler to continue to provide the current C++03 mode as an option, being source and binary compatible with our earlier compilers.
    Edited by: Steve_Clamage on Oct 20, 2011 10:00 AM
    Edited by: Steve_Clamage on Oct 20, 2011 1:29 PM

  • How to change the status of the system programmatically with Function Module

    I  Was trying to change the status of the notification through STATUS_CHANGE_INTERN function module .  But It is not changing the status of the notification.
    Can any one help to understand what is going wrong ... or any other function module to change status of Customer complaint notification ..

    Hi KK,
    Please can you take clues form the below discussion thread -
    http://scn.sap.com/thread/775169
    Thanks to all original contributors of this thread!!
    NOTE: Please note that the main point explain here is that, if you are willing to change to a status Ex, NOPR, NOCO, etc then you will need to pass on the value 'I0070', 'I0072', etc. I will also go ahead and like to add one more point here to make the language check as well like "EN", 'DE', etc as these statuses are language dependent too.
    Thanks,
    Arijit

  • How to take back the control from RFC function module to calling program

    Hi,
    In our system landscape, more than 200 child systems are connected to Solution manager(SMP). I have copied a RFC enabled function module into all the child systems and calling that FM from Sol Man in sychronous mode.
    Here goes my code in SolMan.
    LOOP AT it_dest INTO wa_dest.
      CALL FUNCTION 'Z_GET_LOGIN_DETAILS' DESTINATION wa_dest-rfcdest
        EXPORTING
          date_fr               = s_date-low
          date_to               = s_date-high
        TABLES
          tab_data              = it_val
        EXCEPTIONS
          communication_failure = 1
          system_failure        = 2
          OTHERS                = 3.
      IF sy-subrc EQ 0.
    *     Updates zuserlogon
          MODIFY zt_logon_det FROM TABLE it_val.
          COMMIT WORK.
          WRITE:/'RFC for Destination', wa_dest-rfcdest, 'succesfully updated.'.
      ELSE.
          WRITE:/'RFC for Destination', wa_dest-rfcdest, ' failed.'.
      ENDIF.
    ENDLOOP.
    Few child systems are very slow & takes more than 20 minutes(Many of the times system hangs) to return the result. But I should not wait for so long. Even if the child system doesn't return any values in 5 minutes I shoud continue with other system ignoring the current one.
    I tried calling the FM in asynchronous mode(STARTING NEW TASK) but no success because only 6 DIA processes possible but as I said I have more than 200 systems connected to SolMan.
    Please help me resolving this problem.
    Thanks,
    Prathap

    If there are only few child systems with bad response time, use asynchronous call using a CALL FUNCTION func STARTING NEW TASK task DESTINATION dest PERFORMING subr or CALLING meth ON END OF TASK. Count asynchronous calls still running/waiting (increment a counter when creating a task (not the one used for task id). In the form/method performed at end of a call decrement the counter. When counter is lower than a limit, 4-5 if 6 processes (*), perform an asynchronous call else perform a synchronous call or wait until the counter falls below the limit.
    Regards,
    Raymond
    (*) Use SPBT_INITIALIZE at start of program to get actual number of free/available processes.

  • Populating the output parameter in function module.

    Hi Experts,
       I have written a function module,with material number,BEZEI as input and mvgr2 as output from table tvm2t.I am facing a problem in populating the material number as well in outputtable.The material number in input is nothing to do with output.
    please help me at the earliest.
    Regards,
    Sridevi.

    Hmmm, you wrote that the output is 'table parameter' but you mention 2 single fields. If you expect a good reply here, it helps to mention how you defined the table and how you select the data for the output. For example: input is matnr and you select the material group of this matnr. Output is all other matnr of this material group. Then we would know what you want to do here.
    So please describe what you need and give us the table description.
    Regards
    Nicola

  • Problem in the creation of rfc function module

    hi,
                I am creating one rfc function module comparing to standard non-rfc function module. In that one i have one export parameter with the standard strcture type. but this stcture component contains with strcture type. among all these components four fields are common. but when i am trying to activate function module it is giving message you cannot use internal tables, strings,references, or strctures as components. that function module name is BAL_FILTER_CREATE and that export parameter name is that export parameter name is E_S_LOG_FILTER that associated type is BAL_S_LFIL. how can i solve the problem. pls give me solution as soon as possible.

    hi,
    for rfc fm's u should enable the call by value check box which will appear on that of import and export parameters. tick that one for each parameter in rfc and activate.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Accessing all the fields of a function module in EWM

    Hi All,
    I have a requirement to prepare a report that pulls some fields of the Function module /SCWM/STOCK_INC_OUT_MON.
    This Fuction module is in EWM.
    I need result rows for multiple values(user inputs) of warehouse.
    Cant we access individual fields from this FM without using the structure?
    i need to pull the fields MATNR, NLPA PROC and GRDATE
    for all the user entries in Wahrehouse code
    Thanks, Arka

    Hi,
    You can use the work area to capture the output of the function module and then use the data (fields) which ever you require.
    The structure of the Work area (Data Types of the field) should be same as data types of output parameters of that Function Module.
    Hope this helps.
    Regards,
    Shweta Soragavi

  • 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

  • Checking the contents of update function module log table

    Dear experts,
    I created several CALL FUNCTION ... IN UPDATE TASK lines and is curious about the contents of the update function module log table. How can I see its contents?
    Thanks in advance.
    Regards,
    Haris

    Hi Hari,
    Use transaction SM13. This gives all the details
    To view the details in SM13 switch on Update debugging before you call your update function module.
    In debugger Settings --> Display / change Debugger settings --> Use the check box "Update Debugging" --> Press save button
    So after COMMIT WORK statement, debugging will start with the update function module
    During this time check the entries in SM13
    Once the update is complete the entries will be removed from SM13 (Unless there is a failure)
    I am not sure if there is option to view records in SM13 for which update is complete (No authorization to change settings in SM13). So i cannot check this
    Regards
    Rajvansh
    Edited by: Rajvansh Ravi on Jul 24, 2011 3:52 PM

Maybe you are looking for

  • Cannot see users with server 10.7.3 update

    I updated to 10.7.3 and when I launch the server app I see only the administrator user in the users pane (all other users do not show up). Further, the knobs for + and - are grayed (disabled). I still can log in with any network user, though. How can

  • Enterprise services for EWM communication

    Hi, I am trying to map the available Enterprise Services to the EWM message exchange. Can anyone share some light on this? My initial mapping is listed below. S.No/     Message     Flow/     Service Interface/     Namespace/     Service Operation/ 1 

  • IOS 7 is now available to download.

    Have at it boys and girls.

  • ERIKA - import .avi

    I listed this somewhere else... so sorry about that, maybe this is where I should post... The ERIKA effect. I have been trying to figure this out for days. I am just lost with it. Follow the link: http://www.ixwebhosting.com/index.php/v2/pages.dspmai

  • Adding Nikon D750 to Camera Model list in CS6 Lens Correction (Windows 7 64Bit)

    How do I add Nikon D750 to the CS6 Lens Correction filter's Camera Model list? (Windows 7 64Bit) I'm running ACR8.7. By default I get the adjustments for the correct lens but with a D3x body. Using the search online tool doesn't find anything.