Function module to update the classification of each of the devices 'IQ02'

Can any one please tell me if there is any Function module or BAPI that can be used to update the device classification details. I am referring to the classification details that are updated for each of the device serial numbers using Transaction 'IQ02'

Please see the following code
log initialization
  CALL FUNCTION 'BAPI_LOG_INIT'.
do some initializations
  CLEAR db_update.
create classification data
  CALL FUNCTION 'CACL_OBJECT_ALLOCATION_MAINT'
    EXPORTING
      object_type                 = x_auto-header-object_type
      class                       = x_auto-header-class
      class_type                  = x_auto-header-class_type
  STATUS                      =
  STANDARD_CLASS              =
  DELETE_ALLOCATION           =
  CHANGE_NO                   =
  I_OBJ_NOT_CHK               = ' '
  I_DATUV                     =
  I_NO_DEFAULTS               = ' '
    TABLES
      object_identification       = x_auto-data
   EXCEPTIONS
     error                       = 1
     warning                     = 2
     OTHERS                      = 3.
  IF sy-subrc NE 0.
    CALL FUNCTION 'BAPI_LOG_CLOSE'
      TABLES
        return = lt_return.
    LOOP AT lt_return INTO wa_return WHERE type = 'E'.
      mac_msg_putx co_msg_error wa_return-number
                   wa_return-id
                   wa_return-message_v1
                   wa_return-message_v2
                   wa_return-message_v3
                   wa_return-message_v4
                   space.
    ENDLOOP.
    RAISE input_error.
  ENDIF.
  * transfer validation data
  CALL FUNCTION 'CACL_OBJECT_VALIDATION_MAINT'
    EXPORTING
      object_type                 = x_auto-header-object_type
      class                       = x_auto-header-class
      class_type                  = x_auto-header-class_type
  CHANGE_NO                   =
  I_OBJ_NOT_CHK               = ' '
  I_DATUV                     =
  I_NO_DEFAULTS               = ' '
    TABLES
      object_identification       = x_auto-data
      validation_maint            = x_auto-value
   EXCEPTIONS
     error                       = 1
     warning                     = 2
     OTHERS                      = 3.
  IF sy-subrc <> 0.
    CALL FUNCTION 'BAPI_LOG_CLOSE'
      TABLES
        return = lt_return.
    LOOP AT lt_return INTO wa_return WHERE type = 'E'.
      mac_msg_putx co_msg_error wa_return-number
                   wa_return-id
                   wa_return-message_v1
                   wa_return-message_v2
                   wa_return-message_v3
                   wa_return-message_v4
                   space.
    ENDLOOP.
    RAISE input_error.
  ENDIF.
  * transfer to data base without commit
  CALL FUNCTION 'CACL_CLASSIFICATION_SAVE'
       EXPORTING
            i_commit      = ' '
            i_no_upd_task = 'X'.
close internal log
  CALL FUNCTION 'BAPI_LOG_CLOSE'
    TABLES
      return = lt_return.
set update flag if everything went well
  db_update = 'X'.

Similar Messages

  • Required function module to Update MM-classification view

    Hi Floks,
         i got one object on MM, some material having the classificaton view and some material dont have, but my requirement is i need to update the classification view, Do you know any idea about , what is the function module is required ?
    Thanks
    Siva Prasad
    Sap-Practice

    the trick, when looking for these bapis, is NOT to look with material master bapis, but under cross application->classification->objectclassification... (in tcode BAPI)
    you will se the bapis you need.
    one thing, when you look in transaction bapi, all bapis for classification are shown with a _KEY suffix. the ones you want are WITHOUT the _KEY suffix...
    we use these all of the time.

  • 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

  • Creation of function module for updating the ztable

    Hi,
    I am sending the requirement for ceation of function module for updating the ztable.
    Requirement----
    Table Updation rule (New record)
    While creating a new record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO------->     Sales Delivery no in case of sales orderShipment no in case of transfer order
    UNAME----
    >     User ID
    ZORDTYPE----
    >     SALEOR in case of sales orderTRANSF in case of transfer order
    ZREFDOCNO----
    >Sales Order no in case of sales orderPurchase Order no in case of transfer order
    ZREFDOCNO1----
    >Delivery no in case of transfer order
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZREQNO----
    >Running serial number (incremented by 1 for each new record)
    ZREQDAT     -
    >System date
    ZREQTIME----
    >     System time
    ZSTATUS----
    >OPEN (for all new records)
    Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
    Table Updation rule (Status Update)
    While updating a record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO----
    >Sales order no in case of sales orderShipment no in case of transfer order
    ZSTATUS----
    >CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZSTATDAT----
    >System date
    ZSTATTIME----
    >     System time

    Do you have to create/update new record in Ztable through Function Module ?
    or you need to write FM only for validation?
    Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
    Let me know clearly what exactly u need ?
    Regards,
    Kiran

  • Function Module to Update the values in STPO!! VERY URGENT!!!!!!!!!!!!!!!!!

    Hi All,
    Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
    Please do the needful..
    Regards
    Yathish

    Hi Naren,
    Thanks for ur reply,
    The BAPI that you have gave is to update only Material BOM. But I want to Change  and create spare part indicator for 4 BOM's, ie Sales Order BOM, Eqipment BOM and also Material BOM and WBS BOM.
    Can u please shed some light on it,so that it would be helpfull to me.
    Thanks
    Yathish

  • Function module to update the values in STPO table :   VERY URGENT!!!!!!!!!

    Hi All,
    Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
    Please do the needful..
    Regards
    Yathish

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

  • Function Module to update the FI and Logistics Invoice

    Hi All,
    Is there any function module which updates the FI and Logistics Invoice simultaneously?
    Regards,
    Adapala M

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

  • Function Module to update the sales order header status

    Hi,
      I am looking for a function module to update the Sales order header status.
      Pls. let me know if anybody has used any FM to update the SO status.
    Thanks,

    By mentioning status do you mean Object status or Document status??
    For Object status you may use FM: STATUS_MAINTAIN
    For document status it changes according to flow.
    Regards
    Eswar

  • 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

  • Bapi function module to update PRPS table

    Hi ,
    Presently i have a requirement which needs to update some data from ZIOS table  into PRPS table. Can any one tell me what is the Bapi function module for updating data into PRPS table.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks,
    Satish Raju
    Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:46 AM

    These ZZ fields are specific to your application, use the EXTENSION parameters.
    Look in BAPI_PS_INITIALIZATION documentation, there is an explanation how-to fill specific fields.
    For the BAPIs used to create and change project definitions, WBS       
    elements, networks, activities, and activity elements, you can         
    automatically fill the fields of the tables PROJ, PRPS, AUFK, and AFVU 
    that have been defined for customer enhancements in the standard system.
    For this purpose, help structures that contain the respective key      
    fields, as well as the CI include of the table are supplied. The BAPIs 
    contain the parameter ExtensionIN in which the enhancement fields can be
    entered and also provide BAdIs in which the entered values can be      
    checked and, if required, processed further.                           
    CI Include  Help Structure                      Key                  
    CI_PRPS     BAPI_TE_WBS_ELEMENT                 WBS_ELEMENT
    Procedure for Filling Standard Enhancements                                                                               
    Before you call the BAPI for each object that is to be created or     
    changed, for which you want to enter customer-specific table enhancemen
    fields, add a data record to the container ExtensionIn:                                                                               
    o   STRUCTURE:    Name of the corresponding help structure                                                                               
    +o   VALUEPART1:   Key of the object + start of the data part+                                                                               
    o   VALUEPART2-4: If required, the continuation of the data part                                                                               
    VALUPART1 to VALUPART4 are therefore filled consecutively, first with 
    the keys that identify the table rows and then with the values of the 
    customer-specific fields. By structuring the container in this way, it
    is possible to transfer its content with one MOVE command to the      
    structure of the BAPI table extension.                                                                               
    Note that when objects are changed, all fields of the enhancements are
    overwritten (as opposed to the standard fields, where only those fields
    for which the respective update indicator is set are changed).        
    Therefore, even if you only want to change one field, all the fields  
    that you transfer in ExtensionIn must be filled.                      
    You have to use these parameters in BAPI_BUS2054_GETDATA as well as in BAPI_BUS2054_CHANGE_MULTI.
    Regards

  • 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

  • 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

  • Standard Function modules to update customer partner

    Hi,
    Can anyone please suggest standard function modules to update customer partner functions?
    Was looking at Customer_insert, customer_update, CUSTOMER_UPDATE_SALES_AREA.
    I will have only the partner data in the customser sales view to get updated. I dont need the company data.
    Awaiting some insightful inputs please.
    Thanks,
    Satheesh

    FM and TABLES
    http://72.14.235.104/search?q=cache:71IXBMWcX_8J:reflexcontracts.co.uk/SAP_R3_QUICK_REF.xlsupdatetable+tse05&hl=en&ct=clnk&cd=1&gl=in
    FUNCTION MODULES
    http://www.erpgenie.com/abap/functions.htm
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.erpgenie.com/abap/index.htm
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Rewards if useful.........
    Minal

  • 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

Maybe you are looking for

  • Can I use two Apple IDs for my purchases

    Say spouses have separate AppleID's for purchases, can they both be used on a single user account Mac with iTunes? Will iTunes handle two distinct accounts? I assume it's not an issue for two iPhones as they're separate. I guess the only other option

  • Editing Final Cut Studio Projects on Final Cut X

    Has anyone heard if you will ever be able to edit older Final Cut projects on the FC X?

  • How to export images into folders and subfolders

    I've been using Aperture as an orgianizer basically. Now I want to export everything into a sane folder structure, but I haven't been able to figure out a way. Currently I have a setup something like this: [Folder 1] --Project 1 --Project 2 --Project

  • ALV Subtotals Description

    Hi, Can you please tell how to write subtotal text in ALV Report. 770016     MTNL Gas     770018143     KGST     7/24/2005     DG     -157.77 770016     MTNL Gas     770018203     KGST     7/24/2005     DG     -1,354.75 770016     MTNL Gas     770018

  • Change Sun Admin Server IP.

    Hi, We are using Directory Server 5.2 SP 2 HF2, and have installed the server in testing env, but now need to change this to a production ip address. Is this an easy process and how do you go about doing this? There is a script called admin_ip.pl pro