Function Module for blocking, unblocking and deleting assets

Hi,
Are there function modules available for blocking,unblocking and deleting assets in SAP.
Can I user 'BAPI_FIXEDASSET_CHANGE' for the same?
Thanks in adavnce,
Laxman

Hey,
I tried by putting the values of company code,asset number,subnumber, transaction type as 'A' and passing the value of INLA-XSPEB as 'X' in FM ASSET_MASTERRECORD_MAINTENANCE to block the asset but it is not working. I am trying many other things. Can you suggest what are the mandatory fields that need to be passed for the asset to be blocked.
As there are lot of parameters in this FM, I am little confused. Is there a proper documentation available somewhere to understand the flow.
Thanks in advance for the help.
Laxman Pai.

Similar Messages

  • RFC enabled function module for insert update and delete in a Ztable..

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
    Thanks and Regards

    Hi,
    Try this code.
    REPORT ZMMC071Z_RMV.
    TYPE-POOLS : ABAP.
    FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
                   <DYN_WA>,
                   <DYN_FIELD>,
                   <LV_CONDI>.
    DATA: DY_TABLE TYPE REF TO DATA,
    DY_LINE TYPE REF TO DATA,
    XFC TYPE LVC_S_FCAT,
    IFC TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_TABLE  LIKE DD02L-TABNAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK F1.
    Evento: At Selection Screen                                          *
    START-OF-SELECTION.
      PERFORM GET_STRUCTURE.
      PERFORM CREATE_DYNAMIC_ITAB.
      PERFORM GET_DATA.
    END-OF-SELECTION.
    *& Form get_structure
    text
    FORM GET_STRUCTURE.
      DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
      XDETAILS TYPE ABAP_COMPDESCR.
      DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
      DATA VL_LENGHT(30).
    Get the structure of the table.
      REF_TABLE_DES ?=
      CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
      IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
      LOOP AT IDETAILS INTO XDETAILS.
        CLEAR XFC.
        XFC-FIELDNAME = XDETAILS-NAME .
        XFC-DATATYPE = XDETAILS-TYPE_KIND.
        XFC-INTTYPE = XDETAILS-TYPE_KIND.
        XFC-INTLEN = XDETAILS-LENGTH.
        XFC-DECIMALS = XDETAILS-DECIMALS.
        APPEND XFC TO IFC.
      ENDLOOP.
    ENDFORM. "get_structure
    *& Form create_dynamic_itab
    text
    FORM CREATE_DYNAMIC_ITAB.
    Create dynamic internal table and assign to FS
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = IFC
        IMPORTING
          EP_TABLE        = DY_TABLE.
      ASSIGN DY_TABLE->* TO <DYN_TABLE>.
    Create dynamic work area and assign to FS
      CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
      ASSIGN DY_LINE->* TO <DYN_WA>.
    ENDFORM. "create_dynamic_itab
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA .
    *Get data from p_table into internal table <DYN_TABLE>
      SELECT * INTO TABLE <DYN_TABLE>
          FROM (P_TABLE)
    Here you can implemente function DELETE, INSERT.
    ENDFORM.                    " De_para

  • RFC enabled function module to insert , update and delete data in a ZTABLE

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)?
    if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to code and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address. I need to develop a RFM which does the 3 tasks, insert update delete in the same RFM)
    Thanks and Regards

    create a f.n mod in se37 and make it rfc enabled.  ur import parameters are Emp_Id, Name, Address and TASK and u can have an export parameter like result which gives the status of the update. based on task u can insert using keyword INSERT....and update using UPDATE or MODIFY and delete using DELETE. these keyword are not compelte with syntax but need to refer the SAP documentation.

  • Function module for calculating planned and actual cost of production order

    Hi ,
    Do we have any standard function module for calculating planned and actual cost for production order?
    i need to implement this in a Z-report.
    Thanks
    Srini

    Hi,
    try below function module
    CRMCO_GET_PLAN_ACTUAL_COSTS
    CO_IH_GET_PLANNED_COSTS_TOTAL
    Regards,
    Sankaran

  • Function Module for Start time and End time

    Hi Experts,
    I need a function module for getting particular Work schedule rule start time and endtime and further details by passing personnel number and day.
    Thanks in advance.
    Sunil

    FYI - https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5338428
    Thanks,
    SK

  • LSO: Function Module for follow up and inserting qualification

    Hi,
    I have a situation where the employee is booked for a course in SAP, employee will attend the course and the results will come from an external system in a text file. I need to upload this text file and do the follow up for this course with pass or failure. Is there any function module for this scenario ?
    Once I did the follow-up, if there is a qualification attached to the course type, I need to insert the qualification in the employee profile. Is there any function module for this scenario ?
    Your help will be greatly appreciated and I will give the points accordingly.
    Thanks
    Naresh

    LSO_BUFFER_PARTIC_CONFIRMATION
    LSO_UPDATE_FOLLOWUP
    LSO_BUFFER_QUALIS_FOR_TRANSFER
    LSO_UPDATE_FOLLOWUP
    LSO_BUFFER_TRAINING_FOUP
    LSO_UPDATE_FOLLOWUP
    We can use the above FM's to complete the course follow up.

  • Function modules for delivery creation, change, deletion.

    hi all,
    anyone know and worked on function module to create/change/delete deliveries with reference to sales order/without reference of sales order.
    if any one knows about the function modules please let me know.

    BAPI_DELIVERYPROCESSING_EXEC will allow you to create an outbound delivery, but this is <b><u>not released</u></b> for customer use yet(Rel.47). Type that function module in the forum search area and you will get some sample code.

  • Function module for getting month and year of the previous month (say -6)

    Hi,
    Is there a function module that will get you the month and year of say, a month before, and as far as 11 months ago.
    For example, say today is 6/2007. I want 7 months ago.
    How do i get this value?
    What function module or method is available?
    Points will be rewarded and responses will be appreciated.
    Thank You,
    John

    Hi
    lv_period gives the month and year which is two months earlier now as we have specified lv_months as -2.
        DATA: LV_PERIOD LIKE S001-SPMON,
              LV_MONTHS(2) TYPE C VALUE '2-',
              LV_DATUM LIKE SY-DATUM,
              LV_NEWDT LIKE SY-DATUM,
            P_SPMON LIKE S001-SPMON VALUE '200601'.
        CONCATENATE P_SPMON '01' INTO LV_DATUM.
        LV_PERIOD = P_SPMON+0(6).
        CALL FUNCTION 'MONTH_PLUS_DETERMINE'
             EXPORTING
                  MONTHS  = LV_MONTHS
                  OLDDATE = LV_DATUM
            IMPORTING
                 NEWDATE = LV_NEWDT
             EXCEPTIONS
                  OTHERS  = 1.
         IF SY-SUBRC = 0.
           LV_PERIOD = LV_NEWDT+0(6).
         ENDIF.
    WRITE :/ LV_PERIOD.
    OR
    Use the following FM for getting the year and the month based on date
    CACS_DATE_GET_YEAR_MONTH
    or
    Call Function 'CCM_GO_BACK_MONTHS '.
    Funny module: 03/31/2002 - 1 month = 02/31/2002
    OR
    RE_ADD_MONTH_TO_DATE ( Add / substract month to/from date )
    Need ur reward points.
    Best regards,
    Ravi

  • Function modules for User check and Product search

    Hi,
    Please give me the names of function module which are used for user login check, and Product search.
    Thanks,
    Devender V

    Hi,
    For User login check belwo Function module,
    SUSR_LOGIN_CHECK_RFC for ECC/R3
    CRM_ISA_LOGIN_R3USER_CHECKS for CRM
    For product try below Function module.
    BAPI_MATERIAL_GET_DETAIL
    I hope this information will help you.
    Regards.
    eCommerce Developer

  • Function module for comparing dates and times

    Hi,
    I have a date and time stamp in one filed for example as below:
    20070125183045
    (the first 8 are date in YYYYMMDD format, the next 6 is time in HHMMSS format). Now I want to compare this value to another such value in terms of date and time. First I want to compare dates and then times. Do you know any function module that can serve this purpose?
    Thanks very much!

    You can compare these using the function module DURATION_DETERMINE.  This fuction will give you the difference, and it can be in a view different units, such as the difference in days, months, etc.
    Funciton module takes in Start date and time and end date and time.
    Regards,
    RIch HEilman

  • Function module for sales office and group of an organization

    Hi we are using enhanced organizational model in CRM 5.0.
    Is there any function module to find the assigned sales office and group of an organizational unit?
    Thanks a lot.

    Nigne,
    During transactional processing you can use the function module CRM_ORGMAN_READ_OW to read the selected organization unit on the business transaction, and it will contain data populated for these values.
    My only guess outside of transactional processing is using FM:
    CRM_ORGMAN_ATTRIB_READ or CRM_ORGMAN_SA_SE_ATTRIB_GET.
    Good luck,
    Stephen

  • BAPI or Function Module for F-53 and FBZ1

    Hi Gurus,
    I am currently executing two transactions F-53 and FBZ1. I would like to know if there are any read BAPIs or function modules that take BELNR_D(Document Number) and Company code and Fiscal Year as input and give the rest of the details I enter in these transactions like, partial payment, residual payment.
    Kindly help.
    Many Regards,
    Sagar

    Hi, Sagar:
    Nice to see your thread here
    No matter what kind of transactions you are using, finally, there will be a document posted in General Ledger Accounting, which is what you want. So to read the result, you can always try function module, like FI_DOCUMENT_READ.
    Hope it will help.
    Best Regards, Lawrence

  • Function Module for Get Price  and Bonus in Sales Order

    Hi.. ABAP Guru's..
    I wanna make a function for get price and get Bonus for all material items in sales order.
    Help me for solving it.. Please.
    Thanks a lot before and after.
    Rgds,
    Asep Saepudin

    Hi,
       Welcome to SDN.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=7085162&messageID=782207
    https://forums.sdn.sap.com/click.jspa?searchID=7085162&messageID=950526
    Regards

  • Function module for CF23

    Hi Guys,
    Can anyone give me the function module for CF23
    Thanks and regards
    Thamizhchelvan G

    Dear Thamizhchelvan,
    Check with this,
    CF_UT_USAGE_FHM_ORDER_TEST     Test whether PRT master is used in an order
    CF_VB_AFFH_FROM_BT_FILL        PRT allocation order: Fill database structure frm.Doc.Table structure
    CF_VB_AFFH_POST                PRT: Update PRT data order
    COFD                           Order: PRTs detail screens
    CO_FD_FHM_DETAIL_CALL          Detail screens PRT management in orders
    COFU                           Order: PRT overview
    CO_FU_FHM_DETAIL_EDIT          Call PRT detail screen of the order
    CO_FU_FHM_LST_EDIT             Maintain PRT overview in orders
    CO_FU_ORD_AVAILABILITY_CHECK   Availability check PRT in the order
    Regards
    Mangalraj.S

  • Function Module for creating ASSET MASTER

    Hi,
    Is there any function module for asset master creation.
    transaction AS01.
    Regards,
    Neslin.

    hi. this is the wrong forum for your question. try to identify the correct forum for your questions please. It'll help you to get good quality answers.
    Anyway, what about ASSET_MASTERRECORD_MAINTENANCE and CREATE_ASSET of function group AIST or some custom function module based upon these?
    anton

Maybe you are looking for

  • How to restrict clients download rate

    Hi everbody, i was looking for some time but i couln't even found a old threat. maybe somebody can give me a hint. i have a mac with a timecapsule. and another 2 pc's using the internet via airport (timecapsule). now i'd like to restrict the possible

  • Material download to CRM from R/3

    Materials created in R/3 are downloaded via the MBDoc ‘PRODUCT_MAT’ . In this BDoc there is a structure called ‘COMM_PROD_VAR ‘ whose description says variant data. The same structure is present in SBDoc as ‘PRDCT_OBJECT’. In this the segment ‘CUCFG’

  • Battery power and redundant shutdown while syncing

    This is mostly a suggestion for the folks at apple, but it seems that you can't just E-mail them these days. When an iPod's battery is low and you plug it in to sync, often times it gets partially through the syncing process and then decides that it

  • Goods Issue error - batches not defined for delivery item

    Hi, We are getting a Goods Issue error  u201CThe batches are not defined for delivery item 000010u201D.   We are only getting this error for a material that is being shipped against a particular third party sales scheduling agreement.  We went live i

  • Assignment of souces automaticaly in PR

    Is it possible to assign the sources of supply in PR automaticaly without creation of source list with only info records in place. Thx