FM/Bapi to set the Equipment deletion flag

Hi guys!
Does someone know a FM or Bapi to set the deletion flag for an equipment.
So it's should be the same functionlity like in IE02 --> Equipment --> Functions --> Deletion Flag --> set
thanks!

easiest way:
  CLEAR: bdcdata, bdcdata[].
  PERFORM bdc_dynpro      USING 'SAPMIEQ0' '0100'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'RM63E-EQUNR'
                                p_equip.
  PERFORM bdc_dynpro      USING 'SAPMIEQ0' '0101'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=LVSE'.
  PERFORM bdc_dynpro      USING 'SAPMIEQ0' '0101'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=BU'.
* Call transaction for marking equipement as deleted
  CALL TRANSACTION 'IE02' USING bdcdata
                          MODE tp_mode
                          UPDATE 'S'            
                          MESSAGES INTO messtab.
  CLEAR: bdcdata, bdcdata[].

Similar Messages

  • Set the final invoice flag for a purchase order

    I want to know how to set the final invoice flag for a purchase order.
    I tried BAPI_PO_CHANGE but it is giving me error.
    Help me.

    Hi,
    I think ur BW report shows the cleared Invoice no. The second invoice no. might not have been extracted to BW system. Check your order no. in Cube whether it has two invoice nos.
    Regards,
    Suman

  • Setting the No Limit flag in BAPI_PO_CREATE1

    Dear All,
    I created an ABAP to execute BAPI_PO_CREATE1 in a loop to create multiple PO's and I am encountering a wierd problem.  I set both no_limit & no_frlimit flags to 'X' in structure bapiesuhc when creating a PO.  It appears only the first PO has both "no limit" checkboxes set when I look up the PO in ME22 under the Service specifications screen.  Any subsequent PO's created do not have the "No limit" checkbox set in the overall limit section. The other "Nolimit" checkbox under the the "Other Limit" tab is  being set correctly.
    I do a BAPI_TRANSACTION_COMMIT after each BAPI call and the code to load the Bapi structures each time are the same. I am am at a loss to explain what happened.
    Any ideas out there?
    Thanks!

    Try this... and you are good to go!
    Flag the field ITEM_INTVL with X in the structure BAPIMEPOHEADERX. But do not pass any value for this field in BAPIMEPOHEADER.
    By doing this, PO is created with user defined item numbers instead of standard config sequence.
    Check this note 418683.
    Thanks,
    SKJ

  • Equipment Deletion flag.

    Hi everybody,
    How can I do to verify (in abap code) if an equipment was flagged to deletion? Because the field equi-lvorm is updated once the archiving was performed, but how can I know if an equipment was flagged to deletion only, before the archiving process.
    Thanks and Regards.

    Hi Fernando,
    Go to transaction code IH08 for detailed list display of equipments.
    Under the Category "General Data" , Give the Status Included as "DLFL" , restrict the date range and execute. Long runtimes may occur , so please run first in background to see if there is any visible system impact.
    Regards,
    Chandra

  • Workflow: Setting the high priority flag

    Hi,
    Does any one know how to set the priority for the email notification?
    (Eg: In microsoft outlook red exclamatory mark for high priority)
    I tried the option priority in notification and message but its not giving the desired output(i.e Flag).

    I know you can set the priority on the task.
    If you click on the User step and go under Routes and Priority, you can change the priority and you will see a different icon in Workspace.
    I'm not sure this will change the priority on the email though.
    Jasmin

  • Set the Unicode check flag for all programs.

    Hello friends,
    We are now upgrading our ecc6 system to unicode. The problem is that all our programs
    are not flaged for unicode checks and there for have syntax errors. I now how to mark
    this flag for a single program but how can I do it to all programs?
    I realy need your help.
    Thanks in advance,
    Gershon.

    Hi Gershon,
    In general, transaction  UCCHECK is designed to cover all Unicode adaptations needed. The guide called
    u201CRequirements of ABAP Programs in Unicode Systemsu201D, which can be found via:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b02d3594-ae48-2a10-83a7-89d369b708e5
    gives customers a comprehensive description of possible errors. Please also have a look at the docu provided directly in transaction UCCHECK. In addition, SAP notes 1322715 (search for UCCHECK) and 1319517 (point 8.) might be helpful.
    Please note that customer programs have to be adapted - simply setting the Unicode flag works only for the objects with a green traffic light in UCCHECK .
    Best regards,
    Nils Buerckel
    SAP AG

  • EKPO-EGLKZ - Setting the "Final Delivery Flag" on a transport order

    When entering a goods issue to a transport order (Movement type '351'), the Final Delivery indicator cannot be checked, because it does not appear on the screen.  I looked in configuration and I cannot find where to 'turn on' that field on the screen.   Does anyone know how to 'turn on' that field?
    In a business example, Plant #1 created a transport order for a  qty of 3000 feet of cable from Plant #2.  When Plant #2 issues the cable to the transport order, they will only be issuing 2900 feet, because that is all they have on that reel.  They will not be issuing any further cable.  They want to consider this item complete.  How does Plant #2 indicate this will be the final delivery.  Can they do that from the  movement type 351 screen?

    if you are talking about stock transport order, you can set the final delivery indicator for that particular STO as follows:
    Go to me22n, give your STO number, in the item data below there is a tab called delivery, inside that, there is a checkbox against final delivery, you can check that box for that particular material in the STO, but once you check it, you can do further goods issue for that material.......
    Reward, if helpful....
    Thanks,
    Noopur

  • How to set the message deletion function

    What must I do to allow my verizon.net messages to remain in my inbox for a few months? I don't see anything in "settings" that allows me to manage this...Thanks!

    nellpals wrote:
    I don't know where the old messages are going! Right now they only go have messages dating back as far as Nov. 21--which is only a few weeks' worth. 
    My husband set up my Microsoft Outlook 2010 for me about 6 mos ago, so I mostly  view my emails through Microsoft Outlook. But I should still have access to them through my Verizon account when I'm not at home. And when I read the response below to another person whose messages had also vanished, I wondered if this could be related to my problem?? (sorry to be stupid about this.., )
    "Most likely an e-mail client downloaded them."
    Microsoft Outlook is an email client, and is most likely the cause of the deletions. Check your settings in Outlook to make sure "Leave a copy of messages on server" is checked.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • How I set the auto delete old spool request

    Hi
    I would like to know , how to auto delete old spool request. Have any option in SAP.
    I want spool requests on server for 3 days only.
    Pls suggest.
    Tapovardhan

    As a default background job SAP schedules<b> RSPO0041</b> program in background, this program's variant has the <b>Minimum age in days</b> value.
    Can you check with what variant this program is running. 
    This program needs to be scheduled daily with <b>Minimum age in days</b> field.
    Regds
    Manohar

  • How can i set the signature to not allow to delete?

    I tried to set the widget annot flag's 8th bit to 1.
    This bit is used to lock the annot,but it has no effect. I can delete the signature either.
    If i want to user can not delete my signature ,how can i accomplish this?
    Thanks!

    Also the NoZoom does not work.
    If i set NoZoom flag,the signature appearance can be zoomed still,but the signature position and dimension is not change,so when the appearance is zoomed, may be only a part of appearance can be show.

  • Bapi to set invoice flag

    hi all,
    Please provide me BAPI ie used to set the final invoice flag in purchase order.
    Thanx in advance

    Hi,
    As per my knowledge the following parameters are required.
    PURCHASEORDER
    POHEADER
    POHEADERX
    RETURN
    POITEM
    POITEMX
    There is very good function module documentation available for the BAPI.
    Open the function module in SE37 and click documentation.
    YOu will see example also.
    Thanks
    Ramakrishna

  • Setting the 'reportable' flag for a very large ODS

    Hello Community,
    I am working on a very large BW system (6 Tb), and we recently have the need to set the 'BEx Reporting' flag on some very large ODS objects.
    It was my impression that setting this flag would be easy to do.  But the transport that contains this flag for six large ODS objects has already been running for more than 16 hours.
    Can you tell me, what actually happens in the database when the 'BEx Reporting' flag is turned on for an ODS ?
    Thanks !
    Keith

    Hello Bhanu,
    Thanks for the quick response.  Are you able to provide some more information ?
    are the SID values created in a new SID table ?
    if the ODS was already very large, then would you expect the new SID table to also be very large ?
    what about the case if a SID value already exists for the characteristic ?
    Thank you !
    Keith

  • Customer Deletion flag

    Hi Gurus,
    How to delete multiple customers (its not specified from 1 to 10 like, its like customer no: 2, 4,8,10,13,17,89,99,110 like)in one go, In XD06 we can enter only one customer number. I tried T. Code: MASS also, but could not find the solution.
    please help me ASAP.
    Thanks in advance.
    Regards,
    Vamsi P.

    Hi Vamsi,
    The CATT is primarly a testing tool and can also be used for mass upload of data. The CATT works as if an user is updating the values one by one.
    The procedure to upload the data using CATT is done in four steps
    a) Creating the CATT Test Case & Recording the sample data input
    b) Download of source data file
    c) Modify the source data file
    d) Upload the data from source file
    I have explained the procedure step by step and do note the following explanation is specific to your problem
    Creation of CATT Test Case:
    1)Go to TCODE [SCAT]
    2)Create a Test Case by entering a name and clicking the TCD button in application tool bar
    3)Enter the TCODE you want to execute [XD06]
    4)Enter the customer number, company code and sales area data.
    5) Select the required deletion flag and/or deletion blocks
    6)Click on Save
    7)End Recording
    8)Click on Save and save as local object
    9)Press Exit button and save changes while exiting.
    Now we have created a recording for deleting a customer with a sample data.
    Ensure while recording the transaction you do not get an warning or error messages else you might have to redo the recordng.
    Download of source data file
    1)In the [SCAT] screen select your test case and click on change
    2)Click on choose button in the application tool bar
    3)Click on field list in the application tool bar
    4)Double click on the customer number and change the parameter name as &CUSTNO. Any field starting with & would be treated as an input field from a file. If you have to execute the customer deletion across multiple Sales Area you need to do the same for the Sales Area fields too
    5)Remove the default value
    6)Press Exit and save the test case
    7)In the SCAT screen select your test case and in the menu bar Goto -> Variant -> Export Default
    8)You would get a text file.
    Now you have downloaded a source data file
    Modify the source data file
    1)Open the text file in Excel and load the remaining data
    2)Remove the fourth line which starts with three asterisks
    3)Below the customer number heading (&CUSTNO) load all the customers for which the deletion flag has to be set
    4)Save the file as Text Delimiter
    Now the data to be uploaded as been prepared.
    Upload the data from source file
    1)Go to [SCAT], select the test case and press F8
    2)Select the processing mode as background
    3)Chose variant as external from file
    4)Click on choose and select the path of the text file
    5)Press F8 for the remaing records to be updated
    After execution press Enter to see the log. Any line highlighted in Red is an Error for which you need to do further analysis to find out the error reason.
    Hope this helps.
    Regards
    Nadarajah Pratheb

  • Setting of delivery completed flag in Purchase orders.

    Hi Gurus,
      I need to set the Delivery Completed flag (EKPO-ELIKZ) and Final Delivery flag (EKPO-EGLKZ) for the Purchase Orders whose Goods Receipt has been done.
    Is there any function module or any BAPI F.module to do this.
    Can anyone Help Me.
    Thanks in Advance.

    Hi,
    Check in table T163 what is set with the field WEPOS. it must not be X and that is reason it is not coming as checked when u create the PO.
    Regards,
    Raj.

  • Logical delete flag in fixed assets extract

    I have to create a flat file of Fixed Assets data. I am asked to put the 'Logical Delete Flag' in it. My data will be based on the t.code AR01(report RABEST_ALV01). It uses the logical database ADA. My question is where can i find the logical delete flag and what does this field exactly mean?
    Plz reply soon

    I m closing this thread as I found the answer to it. An asset is never physically deleted in the system. But it can be marked for deletion(logical deletion).

Maybe you are looking for

  • File from application server-- Email ?

    Hi, I need to pickup a file from application server and Email the same to the intended receipents through ABAP program For that i had used the following code: REPORT  ZEMAIL_APP_SER_FAIL. DATA :is_doc_chng        TYPE sodocchgi1,       it_objtxt     

  • ROUTE NOT GETTING DETERMINED in order

    Dear SAP EXPERTS ! 1. The route is not been able to be determined in the sytem for the Order. I have maintained the Transporation zone in the Customer Master. And Route Determination : Country Dep. Zone and Country Destination Zone Without Weight gro

  • Gui_download  WRITE_FIELD_SEPARATOR = 'X' .

    Hi! I am using the fucntion gui_download with the option WRITE_FIELD_SEPARATOR = 'X' ., i am trying to get the same file with the open dataset, i have tried with open dataset in text mode and concatenating the fields with cL_ABAP_CHAR_UTILITIES=>HORI

  • Config Test Failing in Mapping test

    HI, When I am executing config test in ID for an interface it is failing in Interface determination and mapping test. It does not giving any log. Now the mapping for this is multimapping and used enhances Interface determination. I tries with Payload

  • Why is my Illustrator cs6 not opening files.

    I'm having a issue with Illustrator not opening files (eps or ai) either from the server or my desktop, opening original from Indesign, double clicking a file or from the menu 'open file'. I have to end up quitting Illustrator, then open the file fro