Function modules for updating,modifying etc for  OM infotypes (1000,1001)

Hi experts,
                 can anybody help me by giving some FM s which will be used to Insert,Update etc for OM infotypes. i need to update HRP1000,HRP1001 AND HRT1222 tables. i tried with 'HR_INFOTYPE_OPERATION' & 'HR_MAINTAIN_MASTERDATA'. but these two FMs require PERNR as parameter. but i do not have here.
regards,
Murthy

Hi Murthy,
Here's a sample code to update IT1000. 
DATA wa_1000 TYPE p1000.
populate wa_1000 with updated data.
          CALL FUNCTION 'RH_PNNNN_MAINTAIN'
            EXPORTING
              act_fcode           = 'AEND'  " AEND to modify, INSE to insert
              act_otype           = wa_1000-otype
              act_objid           = wa_1000-objid
              act_infty           = '1000'
              act_pnnnn           = wa_1000
              suppress_dialog     = '2' " you can use 0 if you want Dialog mode
            EXCEPTIONS
              infty_not_valid     = 1
              no_plvar            = 2
              object_not_defined  = 3
              otype_not_valid     = 4
              no_authority        = 5
              action_rejected     = 6
              no_gdate            = 7
              fcode_not_supported = 8
              OTHERS              = 9.
          IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
Hope that helps,
Hanna

Similar Messages

  • Function module to update operation assignment for a BOM Item

    Hi Group,
    we have a requirement as under:
    Goto BOM Change using CS02->select any BOM item and click the Menu path->Extras->Operation Assignment; and check one or more Operations and then save the transaction.
    The above functionality has to be achieved through an Upload program(using Excel) with a Function module/BAPI to serve our purpose. we already did the functionality upto creation of BOM but could not proceed further on this current requirement.
    Kindly let me know your inputs if you have already worked in such type of requirement.
    thanks in advance for your inputs and let me know if any further info is needed.
    Regards,
    Vishnu

    Hi,
    Check the Bapis for BOM
    BAPI_MATERIAL_BOM_GROUP_CREATE
    CSAP_MAT_BOM_MAINTAIN
    I hope second BAPI will be more usefull for your requirement.
    Regards,
    Goutam Kolluru.

  • Function module to update the SPRPS field in infotypes

    Hi Guru's
         I m developed the workflow for personal data maintain in ESS with single approval. Employee can able to update his personal data and saved.
    Now the workflow will trigger to HR for approval .Before the workitem send to approval   i  need to  update the PA0002-SPRPS = X  and after getting approval i have to remove the flag.
    Is the any function module /  BAPI to upadte PA0002-SPRPS = X.
    Thanks,
    Pasumpon Karuppaiah

    Hello,
    Use BAPI_PERSDATA_CHANGE with  LOCKINDICATOR = 'X'.
    Below are call sequence,
    BAPI_EMPLOYEE_ENQUEUE
    BAPI_PERSDATA_CHANGE
    BAPI_EMPLOYEE_DEQUEUE
    Regards,
    Sameer

  • Functionality / modules currently available in MySAP for asset tracking.

    Hi All,
    We have a new requirement in the asset accounting. If any one have come accross can you let me know the feasibility and the process.
    1.Functionality / modules currently available in MySAP for asset tracking.
    2.Could MySAP support data input from other external devices e.g. scanner.
    3.What kind of asset level info is stored in MySAP and how they are modified along the asset life cycle
    Thanks nd Regards
    Srihari Bolla

    Yes this is possible.
    In the asset itself you have the fields Last inventory on and Include asset in inventory list
    From SAP you can print barcodes (asset and asset sub number) that you can put on your assets TC S_ALR_87010137 - Bar Codes . There is a standard SAP script for this, but you can create your own one.
    The date you want to use for your tracking you can get ot ouf the table ANLA
    For all the barcode's reader there is software that can create a file. This file you upload with an LSMW in SAP that updates the field Last inventory on.

  • Function module to choose the file for download and upload

    what is the function module to choose the file for download and upload  for presentation server.
    give me with example

    Please search in SCN.
    This has been discussed so many times.

  • Function module to determine the date for the nth weekday of the mth month

    Hey folks,
    Is there a function module which determines the date for the mth weekday of the nth month in the pth year.
    For instance, if I input 2nd thursday of the 4th month in 2008, it should return me, 04/10/2008  (MM/DD/YYYY).
    Thanks and Best Regards,
    Puja.

    Hi Ravi,
    Hadn't been able to work on this lately...You solution was quite close, but did not work for a few scenarios....I tweaked the logic a bit to take care of them as well...
    So here goes the code:
    ================================================
      DATA first_day_of_month TYPE datum.
      DATA day TYPE p.
      CONCATENATE year month '01' INTO first_day_of_month.
      CALL FUNCTION 'DAY_IN_WEEK'
        EXPORTING
          datum = first_day_of_month
        IMPORTING
          wotnr = day.
      DATA day_number TYPE numc2.
      IF day = weekday.
        IF recur = 1.
          DATA ls_date(10) TYPE c.
          CONCATENATE month '/01/' year INTO ls_date.
          CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
            EXPORTING
              date_external                  = ls_date
           IMPORTING
             date_internal                  = date.
        ELSE.
          day_number =  ( ( recur - 1 ) * 7 )  + 1.
        ENDIF.
      ELSEIF day < weekday.
        day_number = ( ( recur - 1 ) * 7 ) + ( weekday - day ) + 1.
      ELSE.
        day_number = ( ( recur - 1 ) * 7 ) + ( 7 - day ) + weekday + 1.
      ENDIF.
      IF date IS INITIAL.
        CONCATENATE year month day_number INTO date.
      ENDIF.
    ====================================
    There still could be some loopholes in this....am not sure....but it sure did seem to work for a couple of random checks that I performed.
    Brownie points to you for giving me a direction.
    Thanks,
    Puja.

  • Function module WWW_ALV_CALL is not released for the Internet

    Hi
    I am facing this error Function module WWW_ALV_CALL is not released for the Internet and Only user SAP can release the function module.
    Best Regards
    GAGAN

    hi,
    This Web based calls are not available anymore in Netweaver 2004s/7.0. 
    More information in SAP-Note: 910202
    Hope this helps
    regards
    Tobias

  • Function module like ENQUEUE and DEQUEUE for function location.

    Hi All,
    I should be highly appreciate if any one help me for locking function module like ENQUEUE and DEQUEUE
    for function location.
    Thanks
    Shaw

    Hi,
    You can either use the standard way of locking by using :
    data:lv_varkey          TYPE rstable-varkey.
    concatenate functional_location sy-mandt into lv_varkey .
    *   Lock table
        CALL FUNCTION 'ENQUEUE_E_TABLEE'
          EXPORTING
            mode_rstable   = 'E'
            tabname        = 'IFLOS'
            varkey         = lv_varkey
          EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
    *     Unlock table
          CALL FUNCTION 'DEQUEUE_E_TABLEE'
            EXPORTING
              mode_rstable = 'E'
              tabname      = 'IFLOS'
              varkey       = lv_varkey.
    Or,
    As mentioned above create a lock object via transaction SE11.
    Go to transaction se11:
    --> Enter lock object name e.g EZ_IFLOS
    --> Click on create
    --> Enter description
    --> Click on tables tab
    --> Enter 'IFLOS' as table name
    --> select lock mode
    --. click on save and activate.
    2 function modules will be created as DEQUEUE_EZ_IFLOS and ENQUEUE_EZ_IFLOS .
    Regards.

  • Any Bapi or function Module to update standard table

    Can u Plz let me know , is there any bapi or function module to update few fields of a standard table using an internable.

    I don't know if any FM exists for your requirement. But you may like to copy it into a custom table and modify it according to your enterprise needs.

  • CRM function module to update the attribute in the classification TAB of BP

    Hi All,
    Can any body let me know if there is any functionmodule to update the CRM function module to update the attribute in the classification TAB of BP tcode.
    I have searched a lot i get FM to update the marketing attribute and not the attributes in the classification tab.
    Thanks in Advance
    Edited by: Sharath Kumar on Dec 2, 2010 4:48 PM

    For material bom: CSAP_MAT_BOM_CREATE
    and CSAP_ORD_BOM_CREATE for Order BOM.
    Regards,
    Ravi

  • Calling Function Module in Update Task

    Hello Experts,
                              Can anyone let me know about
    Calling Function Module in Update Task.
    Why do we use this " In Update Task "  ??
    How do we Use ??
    What is the Use... ??
    Kindly let me know....
    Thanks and Regards
    Pramod

    hi,
    Why do we use this " In Update Task " ??
    The main update technique for bundling database changes in a single database LUW is to use CALL FUNCTION... IN UPDATE TASK.
    How do we Use ??
    A typical R/3 installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database. When an ABAP program reaches a COMMIT WORK statement, any function modules from CALL FUNCTION... IN UPDATE TASK statements are released for processing in an update work process. The dialog process does not wait for the update to finish. This kind of update is called asynchronous update.
    What is the Use... ??
    Asynchronous update is useful when response time from the transaction is critical, and the database updates themselves are so complex that they justify the extra system load
    Real time scenario.
    Suppose a user wants to change an entry in a database table, or add a new one. He or she enters the necessary data, and then starts the update process by choosing Save. This starts the following procedure in the ABAP program:
    Firstly, the program locks the database entry against other users, using the enqueue work process (or the message server in the case of a distributed system). This generates an entry in the lock table. The user is informed whether the update was successful, or whether the lock could not be set because of other users.
    If the lock is set, the program reads the entry that is to be changed and modifies it. If the user has created a new entry, the program checks whether a record with the same key values already exists.
    In the current dialog work process, the program calls a function module using CALL FUNCTION... IN UPDATE TASK, and this writes the change details as an entry in table VBLOG.
    When the program is finished (maybe after further dialog steps), a COMMIT WORK statement starts the final part of the SAP LUW. The work process that is processing the current dialog step starts an update work process.
    Based on the information passed to it from the dialog work process, the update work process reads the log entries belonging to the SAP LUW from table VBLOG.
    The update work process passes this data to the database for updating, and analyzes the return message from the database. If the update was successful, the update work process triggers a database commit after the last database change and deletes the log entries from table VBLOG.
    If an error occurred, the update work process triggers a database rollback, leaves the log entries in table VBLOG, flags them as containing errors, and sends a SAPoffice message to the user, who should then inform the system administrator.
    The corresponding entries in the lock table are reset by the update work process.
    Hope this is helpful, Do reward.

  • Function module to update right optimized dso

    Hi Experts,
    Is there any standard function module available to insert data into the right optimized DSO from transformation routine. Or programmatically we need to do this.
    Thanks in advance.

    Hi,
    Here there are two DSO used. One to collect the corrrect records and the other to collect the error records. Which will used later for reconciliation with the business and then again loaded after the rectification.
    So from the transformation of the Main DSO we need to update the error DSO (when ever any validation fails).
    Let me know any function module to update the right optimized DSO.
    Thanks,
    Jugal.
    Edited by: jugal behera on Feb 6, 2008 4:38 AM

  • Function module to update net price in purchase information record ???

    hi all,
    Is there any function module to update net price (PREIS) for each material in the purchase info record?
    points will be rewarded for helpful answers

    Hi,
        Use below FM :
    Clear : i_prot.
    refresh : i_prot.
    Delivery Update
    CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
    EXPORTING
    do_commit = 'X'
    TABLES
    t_delivery_items = i_lips
    prot = i_prot
    EXCEPTIONS
    conversion_overflow = 1
    essential_data_missing = 2
    error = 3
    nothing_to_update = 4
    lock_after_update_failed = 5
    error_in_delivery_update = 6
    OTHERS = 7.
    COMMIT WORK.
    Pass lips-lgort..
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4212688&messageID=3855382
    Regards

  • How to use function module to update data

    Hello ,
    Can any body have idea how we can use function module SAVE_TEXT to update the master recipe header and operation long text.
    I want to use this functional module to update the master recipe long text
    step by step procedure is highly appreciated
    thanks & regards
    siddhasrth

    Hi
    SAVE_TEXT
    SAVE_TEXT writes a text module back to the text file or the text memory, depending on the storage mode of the corresponding text object.
    You can use this module either to change existing texts or to create new texts. If you know for sure that the text is new, use the parameter INSERT to indicate this. The system then does not have to read the text first, which improves the performance of the function module.
    If the lines table passed with the function module is empty, the system deletes the text from the text file.
    Function call:
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING CLIENT = SY-MANDT
    HEADER = ?...
    INSERT = SPACE
    SAVEMODE_DIRECT = SPACE
    OWNER_SPECIFIED = SPACE
    IMPORTING FUNCTION =
    NEWHEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    check thi sample code
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    HEADER = t_header
    SAVEMODE_DIRECT = 'X'
    * OWNER_SPECIFIED = ' '
    * LOCAL_CAT = ' '
    * IMPORTING
    * FUNCTION =
    * NEWHEADER =
    TABLES
    LINES = t_long
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    OBJECT = 4
    OTHERS = 5
    Reward all helpfull answers
    Regards
    Pavan

  • Functional module to update claim status

    Hi,
    What is the functional module to update the claim status & technical key name of each status in claims & reimbursement.
    Thanks,
    Snita Shaw

    Hi Snita,
    Check for the functional module - HRPBSINCLAIMS_CLS_READ_CTH and here the process would be where the employee raises a request in ESS and after the approval the report ,
    1. HRPBSIN_AC_INFU - Advanced Claims: Infotype Update Report  will be executed for the updation of details in ECC and even after the updation this report will be executed to update the approval status of the claim.
    2. HRPBSIN_AC_ACRP - Advanced Claims: Display Records this report can be used to the display the request and also the adminsitrator can change the approver if needed.
    Regards,
    Mithun K

Maybe you are looking for

  • Display image from the save link in the field

    Hi all, I have a image link that saved in a column and will like this picture to be displayed once user is click on the image link in the tabular format. However, now I am facing the problem to perform query of the record because one of the field typ

  • How does one change touch screen functions within Photoshop?

    I have an HP TouchSmart all-in-one desktop PC and in Photoshop CC, the touch input pans acreoss the canvas instead of drawing/using the selected tool. How may I work around this?

  • Please Help!  Can't publish.

    I have been trying to publish changes to my site for days, and nothing is working. I reinstalled OS X, reinstalled iLife '08, everything. iWeb crashes halfway through publishing. I have been able to publish to a folder ... so is it something in .Mac?

  • Brightness levels reset to default on restart

    I'm using iBooks & find it frustrating that if I change the brightness level, the new level is not remembered & find it reverts to the default level each time I re-open I-books. Perhaps this issue could be rectified at a future version revision?

  • Training&Event : How to create "sub"-resources ?

    Hello, I have a question from a customer.  They use Training&Event (SAP R/3 4.6c) and they defined training rooms as resources (transaction PSVR).  Problem : They can divide some training rooms into 2 or 3 smaller rooms. For example: Room 1 (40 seats