FM/BAPI for deleting Equipmet User status

Hi Guys
I am looking for a way to delete the equipment user status (the second box in IE02). I used a BDC for setting it and it works fine but I want to delete it now and I have no clue how.
I checked all the FM's related to STATUS and I found that internal status is the system status and the ext. status is the user status.
Anyone has experience in Equipment Sales?
Would appreciate your help.
Thanks
Sameer

Hello,
The rules, defining user statuses of an equipment, are defined by PM functional consultant (customizing SPRO).
As i know, it is not possible to delete equipment external status.
Using IE02, you can change equipment user status as defined by functional consultant.
In your other thread "How to delete equipment user status?", Pete Atkin has given a lot of interesting informations (for example, to change user status equipment use FM STATUS_CHANGE_EXTERN).
Cordialement,
Chaouki.

Similar Messages

  • BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables

    Dear All,
    I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
    Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
    Can i Use
    <b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
    pls help me out
    Message was edited by: Raja K.P

    Hi raja ,
    loop at iekko1.
        w_index = sy-tabix.
        item-po_item   = itemx-po_item   = iekko1-ebelp.
        item-quantity  = iekko1-mng01.
        itemx-quantity = iekko1-mng01.
        if iekko1-wamng = iekko1-wemng.
        itemx-no_more_gr = item-no_more_gr = 'X'.
        else.
        itemx-no_more_gr = item-no_more_gr = ''.
        endif.
        append item.
        append itemx.
          clear return[].
          call function 'BAPI_PO_CHANGE'
               exporting
                    purchaseorder = iekko1-ebeln
               tables
                    return        = return
                    poitem        = item
                    poitemx       = itemx.
          if return[] is initial.
          commit work and wait.
          call function 'DEQUEUE_ALL'.
    search for deletion fields which u have to mark 'X'.
    before calling  this BAPi u have to lock the PO by using ENQUEUE.
    <b>
    FU BAPI_PO_CHANGE
    Text
    Change purchase order
    Functionality
    Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
    Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
    Functionality in Detail
    Authorization
    When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
    M_BEST_BSA (document type in PO)
    M_BEST_EKG (purchasing group in PO)
    M_BEST_EKO (purchasing organization in PO)
    M_BEST_WRK (plant in PO)
    Controlling adoption of field values via X bar
    For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
    Transfer
    Purchase order number
    The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
    Header data
    The header data of the Enjoy purchase order is transferred in table PoHeader.
    Item data
    The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
    Use the table PoAccount to change the account assignment information.
    Services and limits
    Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
    Conditions
    Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
    Vendor and delivery address
    The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
    Partner roles
    You can change all partners except the partner role "vendor" via the table PoPartner.
    Export/import data
    Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
    Texts
    Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
    Version Management
    You can make use of the Version Management facility via the table AllVersions.
    Return
    If the PO was changed successfully, the header and item tables are populated with the information from the PO.
    Return messages
    Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
    Restrictions
    With this function module, it is not possible to:
    Create subcontracting components (you can only use existing ones)
    Create configurations (you can only use existing ones)
    Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
    Attach documents to the purchase order
    Change foreign trade data
    Change service data
    Change or reexplode BOMs
    A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
    PO items with an invoicing plan cannot be created or changed using the BAPIs
    In this connection, please refer to current information in Note 197958.
    To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
    To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
    In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
    Example
    Example of changes made to a purchase order with:
    1. Change in header data
    2. Change in item
    3. Change in delivery schedule
    4. Change in account assignment
    5. Change in conditions
    6. Change in partners
    Parameter: PURCHASEORDER 4500049596
    Parameter: POHEADER
    PMNTTRMS = 0002
    PUR_GROUP = 002
    Parameter: POHEADERX
    PMNTTRMS = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    CONF_CTRL = 0001
    Parameter: POITEMX
    PO_ITEM = 00001
    PO_ITEMX = X
    CONF_CTRL =  X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    QUANTITY = 10.000
    PO_ITEM = 00001
    SCHED_LINE = 0003
    DELETE_IND =  X
    Parameter: POSCHEDULEX
    PO_ITEM =  00001
    SCHED_LINE =  0001
    PO_ITEMX =  X
    SCHED_LINEX =  X
    QUANTITY =  X
    PO_ITEM =  00001
    SCHED_LINE =  0003
    PO_ITEMX =  X
    SCHED_LINEX =  X
    DELETE_IND = X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    GL_ACCOUNT = 0000400020
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    PO_ITEMX = X
    SERIAL_NOX = X
    GL_ACCOUNT = X
    Parameter: POCOND
    ITM_NUMBER = 000001
    COND_TYPE = RA02
    COND_VALUE = 2.110000000
    CURRENCY = %
    CHANGE_ID = U
    Parameter: POCONDX
    ITM_NUMBER = 000001
    COND_ST_NO = 001
    ITM_NUMBERX = X
    COND_ST_NOX = X
    COND_TYPE = X
    COND_VALUE = X
    CURRENCY = X
    CHANGE_ID = X
    Parameter: POPARTNER
    PARTNERDESC =  GS
    LANGU =  EN
    BUSPARTNO = 0000001000
    Help in the Case of Problems
    1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
    2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
    3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
    Customer Enhancements
    The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
    EXIT_SAPL2012_001 (at start of BAPI)
    EXIT_SAPL2012_003 (at end of BAPI)
    The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
    EXIT_SAPL2012_002 (at start of BAPI)
    EXIT_SAPL2012_004 (at end of BAPI)
    These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
    There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
    Further Information
    1. Note 197958 contains up-to-date information on the purchase order BAPIs.
    2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
    3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
    4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
    5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
    Parameters
    PURCHASEORDER
    POHEADER
    POHEADERX
    POADDRVENDOR
    TESTRUN
    MEMORY_UNCOMPLETE
    MEMORY_COMPLETE
    POEXPIMPHEADER
    POEXPIMPHEADERX
    VERSIONS
    NO_MESSAGING
    NO_MESSAGE_REQ
    NO_AUTHORITY
    NO_PRICE_FROM_PO
    EXPHEADER
    EXPPOEXPIMPHEADER
    RETURN
    POITEM
    POITEMX
    POADDRDELIVERY
    POSCHEDULE
    POSCHEDULEX
    POACCOUNT
    POACCOUNTPROFITSEGMENT
    POACCOUNTX
    POCONDHEADER
    POCONDHEADERX
    POCOND
    POCONDX
    POLIMITS
    POCONTRACTLIMITS
    POSERVICES
    POSRVACCESSVALUES
    POSERVICESTEXT
    EXTENSIONIN
    EXTENSIONOUT
    POEXPIMPITEM
    POEXPIMPITEMX
    POTEXTHEADER
    POTEXTITEM
    ALLVERSIONS
    POPARTNER
    Exceptions
    Function Group
    2012
    </b>
    regards
    prabhu
    Message was edited by: Prabhu Peram

  • The possibility to hide for displaying a user status in work order

    Hello gurus,
    I have following issue:
    It is possible to hide only for displaying a user status in a work order when it's active?
    br,
    Laurentiu

    See my [recent post|https://forums.sdn.sap.com/click.jspa?searchID=25309331&messageID=7376021] which references user-exit STATTEXT.
    PeteA

  • BAPI/FM for setting the user status for the Project definition and WBS elem

    Hi,
    I have to set the User Status for the Project Definition and the WBS elements in that project.
    The User status to be set is the same for the project and wbs elements.
    Please let me know if there is any BAPI/FM to set the user status..
    Thanks in advance.
    Regards
    Shiva

    Hi Shkithija,
    There is a dump encoutered in the form "PS_FLAG_GET_GLOBAL_FLAGS" for 'chk_precommit_ok' in the "BAPI_PS_PRECOMMIT".
    But it is showing SY-SUBRC = 0 when used along with BAPI_TRANSACTION_COMMIT.
    May i know what are input parameters we need to pass it to "BAPI_PS_PRECOMMIT".
    Do you have any idea.
    Please let me know
    Regards
    vishnu

  • PM order for set/reset  user status

    I have one requriement like this I need to update the user status for  many operations  of single PM order at a time when user sets or resets the status. Kindly let me know is there any function module or any bapi for this or can you suggest me how to proceed with the further actions to handle this.
    thanks in advance for your help.

    Hi Jaya,
    Before i tell you the FM, there is something u must know about changing the user statuses in PM.
    User statuses are sequential in nature. Eg, if current user status is 15 and you want to set the new status to 30, you must set it to 20, then 25 and then finally 30.
    For this you must first fetch all the valid statuses for the PM order depending on its status profile.
    Next, call the following FM repeatedly each time passing the next status number in sequence until you reach the desired status number:
    'STATUS_CHANGE_EXTERN'.
    Hope this is helpful.
    Thanks,
    Sonal

  • Function modules or BAPI for deleting plan costs on a cost center

    Hi all,
    I search for a function module or bapi to delete plan costs / activity on a cost center.
    At the moment I update the planning with 0, but that cause a mass of needles entries on the cost centers.
    For check and posting I use the function group 6026 - BAPI_COSTACTPLN_* ,
    but there is no function for deleting.
    Has anyone an idea?
    Thx for help - points as reward !

    check
    BAPI_COSTACTPLN_POSTACTINPUT   Activity Input Planning: Posting                
    BAPI_COSTACTPLN_POSTACTOUTPUT  Activity/Price Planning: Posting                
    BAPI_COSTACTPLN_POSTKEYFIGURE  Stat. Key Figure Planning: Postings             
    BAPI_COSTACTPLN_POSTPRIMCOST   Primary Cost Planning: Postings                 
    BAPI_PDTRANSCO_POSTPRIMCOST    Transfer of Planning Data: Post Primary Costs   
    K40C                           CO Actual Postings, Manual                      
    BAPI_ACC_PRIMARY_COSTS_POST    Accounting: Post Primary Costs                  
    BAPI_COPAACTUALS_POSTCOSTDATA  BAPI Operating Concern: Post Costing-Based Actua
    BAPI_PRIM_COST_CHECK_AND_POST  Primary Costs: Formal Parameter Check           
    S@meer

  • Best Practice for Deleted AD Users

    In our environment, we are not using AD groups. Users are being added individually. We are running User Profile Service but I am aware that when a user is deleted in AD, they stay in the content database in the UserInfo table so that some metadata can be
    retained (created by/modified by/etc).
    What are best practices for whether or not to get rid of them from the content database(s)?
    What do some of you consultants/admins out there do about this? It was brought up as a concern to me that they are still being seen in some list permissions/people picker, etc.
    Thank you!

    Personally I would keep them to maintain metadata consistency (Created By etc as you say). I've not had it raised as a concern anywhere I've worked.
    However, there are heaps of resources online to delete such users (even in bulk via Powershell). As such, I am unaware of cases of deleting them causing major problems.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Solution for inheritage of user statuses in a WBS hierarchy

    In a SAP 4.6C system I have set-up a specific user status profile for the WBS-hierarchy of a project. The intention is that at the highest WBS-level the user-status is changed manually and that the statuses of the lower WBS-elements will be changed automatically (just like the system statuses). As far as I know
    this is not standard SAP and has to be developed
    Is there anyone who has dealt with the same problem? How do you have handled this: user-exits, substitution etc.?
    I hope somebody can help me.
    Regards,
    Paul

    Dear Hensgens
    You might know that as of release 4.70 the functions 'set & pass user status'
    and 'revoke & pass user status' are part of the standard.
    Please refer to note 486765.
    There is the possibility to do a downgrade of this functionality, we are aware that other customers have done so.
    Regards
    Martina

  • BAPI for knowing the Billing Status of DMR(Resource Related Billing)

    Dear All,
    I need to know the Billing Status of a Debit Memo Request from the External System.
    The Document Flow will be:
    Sales Order>DP91>DMR Creation(DR)[VA01]-->Debit Memo Creation(L2)[VF01]
    From the external system I need to know whether the DMR has been billed or not.
    I have used one BAPI "DISPLAY_DOCUMENT_FLOW_ALV"
    in which it was asking to specify a value in the Input Parameter"IV_TITLE_STATUS_SET".
    Tell me if this is the correct BAPI and if so what value we need to specify in the Input Parameter.
    Needless to say points will be given for helpul replies.
    Regards,
    Raj Kumar Reddy.

    Hi,
    You are correct that stauts is updated in table VBUK and VBUP.
    However, a sales order does not determine a billing status for delivery related billing, field
    VBUP-FKSTA is only determined for delivey.
    So, it is correct behavior that VBUP-FKSTA = BLANK when searching VBUP with
    VBUP-VBELN = sales order number.
    Just because of above reason, you will not find billing status field in VA03 -> goto header/item;
    you could only find billing status field for delivery in VL03N -> status overview.
    It seems that you are trying to find out sales orders that have been fully deliveried and fully billed, am I right? As far as I know, there is no directly table/field/tcode that could meet your requirement.
    You could consider following workaround:
    firstly, get a list of deliveries that have been fully billied(search VBUP with VBUP-FKSTA = C or search VBUK with VBUK-FKSTK = C);
    Secondly, using these deliveries to search table VBFA to find out related sales orders.
    Hope this helps.
    Best regards,
    Crystal

  • BDC for PFCG for deletion of user roles

    I need to create a BDC for deleting users from roles in PFCG transaction and after deletion you have to click on User comparison in User tab.
    Any idea how to compare and delete theusers from role.
    It comes in Table control.
    1)delete from table control .
    I have not been able to see delete from Table programs.
    George

    Hi
    U should consider PFCG trx is enjoy trx so it's not suitable for BDC, what doesn't mean you can't do a BDC program for that trx but it won't be easy.
    Anyway you can know the users assigned to certain profile reading table AGR_USERS. I believe PFCG shows them sorted alphabetical, so you can know the position where an user should be, after u should use PAGE UP and PAGE DOWN command to scroll the table control.
    Max

  • BAPI for deletion of a requirement plan

    Hi,
    Is there a BAPI to delete a requirement plan (created through TCODE MD61).
    I have found BAPIs for creation and modification of those requirements:
    BAPI_REQUIREMENTS_CREATE,  BAPI_REQUIREMENTS_CHANGE ...
    but none for the deletion.
    Thanks & regards

    The BAPI BAPI_REQUIREMENTS_CHANGE will be helpful to delete the PIR,     
    please go the transaction BAPI and find it for detail information, you   
    can check the documentation of it.            
    Later you ahve to run MD74/75 and 76 to delete completely form the database.                                                                               
    best regards

  • BAPI for deletion of employee from work center T Code IR02

    Any one can give me a BAPI to delete position/person from work center ?
    T Code IR02
    IR02 -> HRMS - > Expand - > select person - > delete.
    Thank you
    Mrudang

    Thanks for your fast reply!
    I have looked to both functions before. Beside that they are both not remote enabled (which is not such a big problem as I could copy them or build a custom BAPI around them) I'm not quite sure how they could solve my problem.
    If I got it right, I would first use CR_CAPACITIES_OF_WORKCENTER to get the KAPID and using it as input for CLOI_WC_CAPACITY_READ. But I have problems to understand the output of CLOI_WC_CAPACITY_READ. The data type of the capacity is a float ( FLTP ) and the number seems to be to big, eg. 9.800000000000000E+01= 98h for one day.
    Could you try to explain your solution once again?
    Thanks,
    Simon

  • BAPI for DELETION of the Purchase Requisation entry from DB?

    Hi Experts,
    1) Pls. let me know that, Wht is the good BAPI for DELETEion of the Purchase Requisation entry from the Data Base.
    The tx code is ME52N(BAPI_REQUISITION_CHANGE, BAPI_PR_CHANGE)
    2) pls. also let me know the INPUT PARAMETERS for the suggested BAPI
    thanq
    Edited by: Srinivas on May 7, 2008 12:20 AM

    You can use this BAPI  to delete PR line item.
    BAPI_REQUISITION_CHANGE
    BAPI_REQUISITION_DELETE
    Chk this for sample.
    work flow object  type for purchase requisition

  • Making a transaction read-only for a particular user status

    Hello,
            I have a requirement wherein I need to make an opportunity read-only if it is saved with the user status set to 'Lost'. I tried setting the 'Forbidden' flag for 'Change Document' for this status but the problem is that the transaction gets locked even before saving it.
    I have a 'Reason' field where I have dropdown values for the 'Lost' status. But when I try to select a reason, error message appears as: 'no changes possible in document'.
    Is it possible via configuration to have the transaction locked only after it is saved with user status 'Lost' and not immediately on setting the status?
    Regards,
    Aditya Mishra

    2 ways to achieve it...
    1. the document editing can be controlled based on its status i.e. standard auth objects exist to control so that user is not able to make changes with this status.
    2. implement BADI CRM_ORDER_AUTH_CHECK
        put your logic to check the document status and accordingly reutrn FALSE if you do not want user to open it in edit mode.
    hope this helps.
    rgds

  • Authorization for changing the user status

    Hi all,
    I need to give authorization in such a way that after the initiator has creataed a DIR...:
    1. When it goes to the next approval, the person should be only able to change the user status and save.
        he should not be allowed to change anything else.
    I have tried using different authorization objects but none of them worked. Is there any tcode in DMS for just approving the DIR (changing it to next available user status), similar to release strategy. For ex ME29N for approval of PO (Purchase order) ?
    Thanks
    Anish

    Hi Anish,
    Based on your requirement, I would like to suggest to go by workflow to approve the document..
    With the help of workflow, you can approve the document in workflow inbox itself (workitem), no need to go to DIR, the status will get automatically change in the DIR.
    for this you have to use function mudule (set/get next status).
    you can do this by taking the help of Workflow consultant and abap.
    regards,
    nitin
    award point if useful

Maybe you are looking for

  • Just received my GS60 2QE-040XFR: Big issues/Looking for help

        Hello, I just received my GS60 ghost pro without any OS. Installed Win 8.1, drivers available in the hard drive, anti virus... and slowly but surely started having more and more BSOD (several types of error codes). At the same time, the laptop st

  • I bought iphone 4 yesterday....since i boot every 3 to 4 minutes its restarting automatically.......pls advice me

    i bought a iphone 4 from du network in united arab emirates yesterday....since i bought it it rebooting every 2 minutes.at the same time i charge it for more then 6 hours even though it showing only 25% of bettery level....Model no-A1332 Emc 3808 FCC

  • Error when trying to add songs.

    Until a few days ago, I could easily add songs to my iPod with no problem. I have updated the software and I have the latest version of iTunes, but I continue to get this error. iTunes.exe - Corrupt File The file or directory \iPod_Control\iTunes\Tem

  • ACR camera profile and 5d2

    Noticed that the ACR profile is not available for my 5d2 images, not in the list at all. I've always had the odd image where it was the best fit, not a big deal, but wondering why it's gone. It's still there for 40d captures.

  • Unauthorised deletion of Emails by SpamGuard

    It has been confirmed by BT that users are unable to switch of Spamguard on BT Yahoo accounts. In fact even although the user has used the option (if available) to switch off Spamguard it fails to do so without any indication that it has not done so.