Using the FM  HR_INFOTYPE_OPERATION

Hi folks,
        I am using the FM HR_INFOTYPE_OPERATION, in my report. What values i need to pass for the import parameter RECORD. Without passing this parameter, its going to dump...Could any one suggest me how to pass this paramter..or if any sample code...
        Thanks,
        Shyam.

It depends on which Infotype UR updating/inserting/deleting ..
If U want to update/del/insert infotype PA0001 .. then U need
to pass the structure P0001 to the RECORD parameter ..
EX :
DATA : p0001 like P001 occurs 0 with header line .
    call function 'HR_INFOTYPE_OPERATION'
           exporting
                infty            = '0001'
                number           = p0001-pernr
                subtype          = p0001-subty
                objectid         = p0001-objps
                lockindicator    = p0001-sprps
                validityend      = p0001-begda
                validitybegin    = p0001-endda
                recordnumber     = p0001-seqnr
                record           = p0001
                operation        = 'DEL'
        TCLAS            = 'A'
        DIALOG_MODE      = '0'
        NOCOMMIT         =
        VIEW_IDENTIFIER  =
        SECONDARY_RECORD =
           importing
                return           = l_return.
Look at standard report :  RPTQTA00
or BAPI .. BAPI_PERSDATA_CREATE

Similar Messages

  • Is it possible to change the UNAME using the FM 'HR_INFOTYPE_OPERATION'..??

    Hi folks,
    I'm trying to bring an infotype record from a SAP Server 'A' to a SAP Server 'B'. The users want an 'Z' application to do it.
    I thought to use the HR_INFOTYPE_OPERATION to INS (insert) or MOD (modify) the record, getting the data from A and put it on B.
    The problem is that the users want to continue keeping the UNAME and AEDTM as in the original record. It means, do not change the record. For Example:
    CURRENT SCENARIO
    SERVER A                       
    UNAME: USER_A        
    AEDTM: July 03, 2010
    SERVER B: Data inserted or modified using the FM 'HR_INFOTYPE_OPERATION'
    UNAME: USER_B
    AEDTM: Jan 24, 2012
    WANTED SCENARIO
    SERVER A                       
    UNAME: USER_A        
    AEDTM: July 03, 2010
    SERVER B: Data inserted or modified using the FM 'HR_INFOTYPE_OPERATION'
    UNAME: USER_A
    AEDTM: July 03, 2010
    Does anybody know if it is possible using the FM 'HR_INFOTYPE_OPERATION'...?
    or
    Does anybody know what's the best way to do that?
    Thanks and best regards friends...

    The issue is fixed after changing the cable connected with e1000g3.

  • Using Function module HR_INFOTYPE_OPERATION

    Hi folks,
            I am using the FM HR_INFOTYPE_OPERATION, in my report. What values i need to pass for the import parameter RECORD. Without passing this parameter, its going to dump...Could any one suggest me how to pass this paramter..or if any sample code...
            Thanks,
            Shyam.

    Hi,
    In the parameter record, you have to populate and pass the structure of the infotype on which you want to update/insert the records.
    for example, if you are using for IT2001,
    declare
    Data: data: p2001 type p2001.
    suppose we have data in an internal table PA2001, the we have to pass it in a loop to this structure which we just declared.
    loop at pa2001.
      move-corresponding pa2001 TO p2001.
      p2001-infty = '2001'.
                CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                  EXPORTING
                    infty                  = '2001'
                    number                 = pa2001-pernr
                    subtype                = 'H'
    *               OBJECTID               =
    *               LOCKINDICATOR          =
                    validityend            = pa2001-endda
                    validitybegin          = pa2001-begda
    *               RECORDNUMBER           =
                    record                 = p2001
                    operation              = 'DEL'
    *               TCLAS                  = 'A'
    *               DIALOG_MODE            = '0'
    *               NOCOMMIT               =
    *               VIEW_IDENTIFIER        =
    *               SECONDARY_RECORD       =
                  IMPORTING
                    return                 = return
    *               KEY                    =
    endloop.

  • DELETE infotype 0000  using HR_MAINTAIN_MASTERDATA or HR_INFOTYPE_OPERATION

    Please kindly help ,
    how to delete infotype using HR_MAINTAIN_MASTERDATA or HR_INFOTYPE_OPERATION?
    i did try to use HR_INFOTYPE_OPERATION but return code shown as :
    "No data stored for 0003 in the selected period"
    but when i try using HR_MAINTAIN_MASTERDATA.
    Return code was zero, and infotype 0000 still exist.
    regards,
    Rudy.

    Here you go Rudy
    Loopt at the your internal table. Lock the user, post or delete the record, unlock the user.
    CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
          EXPORTING
            number       = t_file-pernr
          IMPORTING
            return       = t_return
            locking_user = w_uname.
        IF t_return-number IS NOT INITIAL.
          t_return-message_v1 = t_file-pernr.
          APPEND t_return.
          g_fail = g_fail + 1.
          g_flag = 'X'.
        ELSE.
          CLEAR: t_return, personaldatakey.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
              EXPORTING
                infty         = '2006'
                number        = t_file1-pernr
                subtype       = t_file1-subty
                validityend   = t_file1-endda
                validitybegin = t_file1-begda
                record        = p2006
                operation     = 'DEL'
                dialog_mode   = '1'
                nocommit      = ' '
              IMPORTING
                return        = t_return
                key           = personaldatakey.
          IF t_return-number IS NOT INITIAL.
            t_return-message_v1 = t_file-pernr.
            APPEND t_return.
            g_fail = g_fail + 1.
            g_flag = 'X'.
          ELSE.
            MOVE-CORRESPONDING t_file TO t_file1.
            APPEND t_file1.
            g_success = g_success + 1.
          ENDIF.
          "Unlock the employee
          CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
            EXPORTING
              number = t_file-pernr
            IMPORTING
              return = t_return.
    Please award points if useful.
    Thanks, Raj

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • How can multiple users use the same Creative Cloud Individual on one single-machine?

    We have one shared graphics workstation, which is infrequently in use by different people - therefore we bought a single-workstation license (which we were referred to "Creative Cloud Individual"). In the FAQs it says it installs locally, but whenever a user different from the installing adminstrator logs in, he is forced to use the trial.
    Is there a way to make the local installation usable on that single machine for multiple users?
    Thanks in advance for your reply

    Serenatasystems do the other users not have administrator access?  What happens if they sign in using the Adobe ID tied to your Creative Cloud subscription?  Do your Adobe Creative applications then exit trial mode?

  • What happens on iCloud (ex. contacts) when multiple family members use the same Apple ID?

    What happens on iCloud when multiple family members use the same Apple ID?  For example if we all choose to use iCloud for contacts, are they all merged together?  We use the same Apple ID so we can use find my iPhone to keep track of the whole family.

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

  • Cannot send email from Verizon to a specific domain using the web UI

    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?

    rhodeislandred wrote:
    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?
    What is the domain that is giving you the error?

  • How do I use the Japanese fonts in Font Book in a Pages document?

    How does one use the Japanese fonts in Font Book in a Pages document. Pages has its own fonts but I cannot get the Japanese fonts into it.

    To type japanese on a computer you change the keyboard, not the font.  Go to system prefs/keyboard/input sources and add Japanese/Kotoeri to the list, then select Hiragana in the "flag" menu at the top right of the screen, then type.  The font will take care of itself.
    http://redcocoon.org/cab/mysoft.html
    If you have any further questions, just ask.

  • How do I use the Web module to upload video to my website?

    I'm using the Lightroom HTML gallery to upload my photos, fine and dandy, very happy with it. I also have some videos trimmed in Lightroom that I want incorporated into the gallery. This doesn't seem to be happening, instead I just get thumbnails. What/how do I incorporate my video clips into my web gallery? I moved over from jAlbum so I could have a simple one-tool workflow, so I'm really hoping that this is possible.

    You can combine stills and video for output to h.264 (mp4 file) for example to upload to Youtube or Vimeo.
    FTP upload will be subject to the limitations of your host. The web module within Lightroom creates all resources to link to the file index.html
    The forthcoming LR6 is anticipated to have HTML5 galleries.

  • How do I use the web cam on my pc? Hp w2007 I have windows vista

    How do I use the web cam on my pc?  Hp w2007 I have windows vista

    Hp w2007 is a HP monitor without webcam ...
    Where is the webcam?
    V.
    *** Say 'Thanks' with Kudos ***

  • Previewing an image before uploading it using the FileReference class

    Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4

    Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4

  • Previewing an image before uploading it using the FileReference class in flex 3

    Previewing an image before uploading it using the FileReference class in flex 3 ?

    hai,
              when this code is used in my application ,i got the name of image and new frame is added each time .But image is not displayed.....
    The code  starts like this
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
                xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()"   backgroundColor="white" width="100%" height="100%">
        <fx:Script>
    <![CDATA[ 
                    import mx.controls.Alert;
                    import mx.messaging.Channel;
                    import mx.messaging.ChannelSet;
                    import mx.messaging.channels.AMFChannel;
                    import mx.rpc.events.ResultEvent;
                    import mx.controls.Image;
                    import spark.events.IndexChangeEvent;
                    import mx.managers.DragManager;
      <mx:DataGridColumn headerText="Dimension Value"  width="10" dataField="dimensionValue"/>
                                                   <mx:DataGridColumn headerText="Unit Nmae"  width="10" dataField="dimensionUnitName"/>
                                                   </mx:columns>
                                           </mx:DataGrid>
                                           <mx:Spacer width="2%"/>
                                       </mx:HDividedBox>
                                       </mx:VBox>
                   <mx:Spacer height="0"/>
                <mx:VBox width="100%">
                    <s:HGroup height="90" top="0" left="0" right="0" verticalAlign="justify" gap="10" paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5">
                        <s:Button id="btn_loader" top="5" bottom="24" width="100" label="load" click="loadImages()"/>
                        <s:Group width="100%">
                            <s:Group name="cl" top="0" left="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
                                <s:BitmapImage source="@Embed('../assets/left.jpg')" top="0" left="0" bottom="0" right="0" fillMode="scale"/>   
                            </s:Group>
                            <s:List id="imgList" skinClass="skins.ListSkin" top="-3" left="27" right="28" bottom="10"
                                    dataProvider="{ImageCollection}" itemRenderer="Image_Render">
                                <s:layout>
                                    <s:HorizontalLayout gap="0"/>
                                </s:layout>
                            </s:List>
                            <s:Group name="cr" top="0" right="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
                                <s:BitmapImage source="@Embed('../assets/right.jpg')" top="-1" left="0" bottom="0" right="0" fillMode="scale"/>
                            </s:Group>
                        </s:Group>
                    </s:HGroup>
                    <s:SkinnableContainer id="dropCanvas" top="100" left="5" right="5" bottom="5" backgroundAlpha="1.0" alpha="1.0"
                                          dragEnter="dropCanvas_dragEnterHandler(event)"
                                          dragDrop="dropCanvas_dragDropHandler(event)" contentBackgroundColor="#914E4E" backgroundColor="#F7F7F7">
                    </s:SkinnableContainer>
                </mx:VBox>
                <mx:Spacer height="5"/>
                                      </mx:VDividedBox>
        </mx:Panel>
    </mx:Canvas>

  • When I login to my bank, I get the message: 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. Have new MacBook Air with Yosemite. How to solve this problem?

    When I try to login to the website of my bank, I get the following error message:
    403 - Forbidden: Access is denied.
    You do not have permission to view this directory or page using the credentials that you supplied.
    I have a new MacBook Air with OS Yosemite installed.
    What is the problem and how can I solve it?

    Some websites require a special client certficate for access. If you don't have that certficate, you'll have to contact the site operator to find out how to get one.
    Sometimes the problem is caused by a web server that is configured to request an optional client certificate. Safari treats the request as mandatory. In that case, other browsers such as Firefox and Chrome may be able to connect to the site, because they ignore the request.
    The first time you were prompted for a certificate, you may have clicked through a dialog that requested access to the Apple certificate in your keychain that is used to secure the iMessage service. In that case, you may be able to regain access to the site in Safari by doing as follows.
    Back up all data.
    Double-click anywhere in the line below on this page to select it:
    com.apple.idms.appleid.prd
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Paste into the search field in the Keychain Access window by clicking in it and pressing the key combination command-V. An item may appear in the list of keychain items. The Name will begin with string you searched for, and the Kind will be "certificate."
    Delete the item by selecting it and pressing the delete key. It will be recreated automatically the next time you launch the Messages or FaceTime application.
    The next time you visit a site that prompts for an optional client certificate, cancel out of the prompt. You may have to do this several times before the server stops asking.
    Credit for this idea to Christian Braukmueller of SAP.

  • I've uploaded Acrobat XI Pro and it freezes when I'm using it.  I uninstalled and re-installed.  When I login, it says that it is unable to validate the account and has an option to use the trial.  How do I fix this?

    I've uploaded Acrobat XI Pro and it freezes when I'm using it.  I uninstalled and re-installed.  When I login, it says that it is unable to validate the account and has an option to use the trial.  How do I fix this?

    This is an open forum, not Adobe support... you need Adobe staff support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

Maybe you are looking for

  • Sony DSR-1500a not recognized by Mac Pro 2009

    My first post. Hope I'm doing this right.... I have been working with a Mac Pro 1,1 Quad (OS 10.5.6) using a Sony DSR 1500a DVCAM player/recorder with out any issue using firewire 400 and Adobe Premiere and FCS2. I have recently purchased a Mac Pro 2

  • More than one converter per component

    hi! I want to set to a component two converters, but, I don't know why, JSF only gets the second converter. Why? I've put the converters with <f:converter> tag. Thanks

  • Paste selected text AND images from a webpage to Pages/Word?

    I'm a new Mac user (also running virtual Windows XP via vmware fusion), and I know next to nothing about my Mac. Please bear with me if this is something that has been answered (I looked, but didn't find a specific answer for my question...it may be

  • WF item attributes for new workflow versions

    Hi All, I have a query regarding Item Attributes for a particular workflow. Assuming that for a particular version there are say 100 Item_Attributes for a particular Workflow. In case a new version is loaded and if the new version is having say 102 I

  • Configuring library path in 10g application server control

    Hello everyone, I am using : 1. HP UX B.11.23 64 bit OS 2. Application server 10.1.3.1 3. 64-bit JVM (JRE 1.5.0_03) I am facing a problem with the connection pools in 10g EM Application Server Control. Initially the connection pool used JDBC thin cli