Order of deleting entities
Hi,
On my card in addition to the entities that are installed by default (card manager etc.) I have one applet, its exec load file and another exec load file that stores some libraries.
If I issue one DELETE command with the three AIDs ( I even found that the order of the AIDs does not matter for the card), the applet and the two exec files are deleted. If I issue three individual DELETE commands for each entity, I get 0x6985 response. I played with the P1 byte (setting it to 0x80 for more DELETE commands) but it did not work.
Why does not it work when I send individual commands? Should not at least the first DELETE one work, since the card does not know yet if there are other DELETE commands coming?
815684 wrote:
If I issue one DELETE command with the three AIDs ( I even found that the order of the AIDs does not matter for the card), the applet and the two exec files are deleted. If I issue three individual DELETE commands for each entity, I get 0x6985 response. I played with the P1 byte (setting it to 0x80 for more DELETE commands) but it did not work. P1 for DELETE is meant to always be 0x00. You may be getting confused with another command.
Why does not it work when I send individual commands? Should not at least the first DELETE one work, since the card does not know yet if there are other DELETE commands coming?Your single DELETE may have P2 = 0x80 (Delete object and related object) which would have deleted the load file and any instances of the applet. To delete in the correct order, you need to delete in the reverse order to the load order so that you delete the object that nothing else depends on first then delete up the chain of dependencies.
Cheers,
Shane
Similar Messages
-
ADF BC - Controlling Entity Posting Order when deleting
Hello,
I'm trying to remove detail and master entity. Default posting order is wrong so I'm getting:
ORA-02292: integrity constraint (DET_MAST_FK) violated - child record found.
All examples are for insert, not delete.
This code in master entity postChanges method doesn't work:
public void postChanges(TransactionEvent e) {
if (getPostState() == STATUS_DELETED) {
RowIterator ri = getDetails();
DetailImpl detail = (DetailImpl)ri.first();
while (detail != null) {
if (detail.getPostState() == STATUS_DELETED) {
detail.postChanges(e);
detail = (DetailImpl)ri.next();
super.postChanges(e);
}because getDetails() returns empty RowIterator. It is empty probably because this entity (master) is already deleted.
Has somebody solution how to delete these entities without composition and cascade delete enabled?
RadoThis is exactly what I do.
In MasterImpl.java:
public void cascadeDelete() {
RowIterator ri = getDetails();
//deletedDetails = new ArrayList<DetailImpl>();
while (ri.hasNext()) {
DetailImpl detail = (DetailImpl)ri.next();
//deletedDetails.add(detail);
detail.remove();
remove();
}This method works ok. All entities are removed.
The problem is that entities are not posted in this order. Master postChanges() will not be invoked as the last. It must be the last. I must control it and what I'm looking for is how to do it.
Master postChanges should look like:
public void postChanges(TransactionEvent e) {
if (getPostState() == STATUS_DELETED) {
[... invoke postChanges of all details with STATUS_DELETED ...]
//if (deletedDetails != null) {
// for (DetailImpl detail : deletedDetails) {
// detail.postChanges(e);
super.postChanges(e);
}The part [... invoke postChanges of all details with STATUS_DELETED ...] is problematic because accessor getDetails() is empty RowIterator (deleted entities are not visible in it). This is why I wrote code which is remarked in this example.
Methods cascadeDelete and postChanges are invoked in two separated html requests.
Rado -
Find flagged process orders for deletion
Hi all ,
How do i find flagged process orders for deletion ?
i need report or t-codeHello,
Try with t-code COOISPI. In selection,Put material no and system status(sel. at header level) as DLFL
and also check "with deeltion flag indicator"
Check with result and revert.
Regards, -
HT1386 how do i sync photos from iphone to pc in order to delete them?
how do i sync photos from iphone to pc in order to delete them?
You import them as you would with any digital camera:
iOS: Importing personal photos and videos from ... - Support - Apple -
How can we restrict users from marking service orders as deleted
Hi,
Please guide me :
Is it possible to restrict users (who are having authorization of marking service orders as deleted) from marking some service orders as deleted, if they have not created these service orders?
In other words, requirement is : only the person creating the Service Order should be authorized to delete.
Please guide.
Thanks and RegardsThere are many BADI and EXITS available, you have find the appropriate place to put your code.
USER - EXITS
CNEX0013 Order: Cust. enhancement: Default item category comp. assgmt
CNEX0026 Customer enhancement for general inspection of material
CNEX0027 Customer enhancement: Plant, storage loc. finding for comp.
IWO10004 Maintenance order: Customer check for order completion
IWO10005 Maintenance order: Cust.-specif. determination of profit ctr
IWO10006 Maint. order: Fcode exclusion through cust. enhancement
IWO10007 Maint.order: Customer enhancement - permits in the order
IWO10008 Cust. enhancement: Determination of tax jurisdiction code
IWO10009 PM Order: Customer Check for 'Save' Event
IWO10010 Maint. order: Cust. enhancement for determining WBS element
IWO10011 Maint. order: Customer enhancement for component selection
IWO10015 Maintenance order: F4 Help for user fields on operation
IWO10016 PM Order: Cust. enhancement to check operation user fields
IWO10017 Determine external order number by customer logic
IWO10018 Maintenance order: User fields on order header
IWO10020 Maintenance order: Automatically include task list
IWO10021 Automatic task list transfer when creating order from notif.
IWO10022 Determine calendar from user exit
IWO10023 Service order: Change header data for advance shipment doc.
IWO10024 Service order: Changes to items for advance shipment
IWO10025 PM/SM order: Finding responsible cost center
IWO10029 Inclusion of bill of material in PM/SM order
IWO10030 Preset Fields for Event Object
IWO10031 Hide personnel number in PM/SM order
BADI
Name of a BAdI Definition
ARC_PM_ORDER_CHECK
ARC_PM_ORDER_DELETE
ARC_PM_ORDER_PREPROCESSING
ARC_PM_ORDER_WRITE
ARC_PM_QMEL_CHECK
ARC_PM_QMEL_DELETE
ARC_PM_QMEL_PREPROCESS
ARC_PM_QMEL_WRITE
IWO1_ORDER_BADI
IWO1_PREQ_BADI
IWO1_SCREEN_MODIFY
IWO1_TL_INTEGRATION
IWO1_TL_INTEGRATION2
Edited by: Manish Bisht on Jul 11, 2009 9:27 AM
Edited by: Manish Bisht on Jul 11, 2009 9:28 AM -
I created a purchase order and deleted it.
I created a purchase order and deleted it.
when i query the purchase order even in history table the PO is not avaialble. why?
The table i queried
In release r12
SELECT *
FROM apps.po_history_allYour po archive is probably be set to Archive on "approval" or "communicate".
Since you deleted the po before approving, it never got archived.
Check your document types in PO Setup menu.
Hope this helps
Sandeep Gandhi
Omkar Technologies Inc.
Independent Techno-functional Consultant
513-325-9026 -
Automatic purchase order deletion after SD order is deleted
Hi forum,
I managed to get the automatic purchase order creation to work. Now I have a few issues about it.
- why is the workflow not deleted after the sd order is deleted?
- why is the purchase requisition not deleted after the sd order is deleted?
Thank you for help!
Regards,
FlorianHi
If you delete the sd order, then automatically purchase requisition will get deleted.
First you delete the sales order, and do the MRP Run - MD02 and view the requirement at MD04. Automatically requiement will get deleted.
Reward if it helps
Regards
Prasanna R -
Change production order with deletion indicator
Hello
We have some production order with deletion indicator, status 'DLT'. We want to reative them and do GR. How can we do, can we remove the status 'DLT'
Thanks
HailiangHailiang,
Its not possible to revoke the deletion flag.
so you need to create new orders, and thats why its being suggested that think twice before setting deletion flag.
if you are not sure with the orders you can set TECO , and it can ve easily revokeas and when required.
Regards
Ritesh -
Authorization of marking service orders as deleted
Hi,
Please guide me :
Is it possible to restrict users (who are having authorization of marking service orders as deleted) from marking some service orders as deleted, if they have not created these service orders?
In other words, requirement is : only the person creating the Service Order should be authorized to delete.
Please guide.
Thanks and RegardsWhat do you mean for Service Order ? If it is part of marketing documents, then you may use Document Owner Authorizations.
I am afraid you posted your question to the wrong forum. Here is SAP Business One System Administration forum. Dedicate to SAP Business One System Administration. Please close the thread and post on the proper one.
Thanks,
Gordon -
Transport Order to delete Update Rule
Hi,
we got a problem with a transport order to delete a Update Rule.
- The delete process was saved on a order A with other objects on it.
- Order A was released but not imported.
- Now we need to transport the delete process without the other objects on the order A.
We try creating a new order B and include all the objects from order A, so we can delete on order B the objects that we don't want to transport. The problem is that the update rules copied to order B doesn't have the delete function asigned.
How can we solve it.
thx in adavance.
JPHi
In such extreme cases you can change the target directly (QA and P).
you can delete the Upd Rules in QA and P and then just
transport the new Upd Rules.
This is not recommended but some times its the best and easiest solution.
Reg's
Edan -
Where I can find the FireFox HTML Document in order to delete files.
Where I can find the FireFox HTML Document in order to delete files.
''NACCACHE [[#answer-678877|said]]''
<blockquote>
''jscher2000 [[#answer-678779|said]]''
<blockquote>
Hi NACCACHE, when you make Firefox your default browser, Windows will display the document type for certain files (especially .html files) as "Firefox HTML Document". If you switch your default browser to a different browser, such as Internet Explorer, the description will change.
Are you having a problem with the description appearing with documents that are not normally of the type that display in a web browser?
</blockquote>
I changed now to Firefox default browser...now where I can find the Firefox HTM Document in order to delete a file.
yahOO.htm
Track your Package from FedEx Span...
</blockquote>
I took PrintScreen for the said files how I can send it to you? -
Do deleted entities get added to the validation listener?
Hi all,
I was reading about the 3 listeners in Jobinesh's [blog post|http://jobinesh.blogspot.com/2011/09/what-you-may-need-to-know-about.html] and got a doubt.
i. Do deleted entities get added to the validation listener? Does not make sense to me as there would be no validations to trigger on deleted entities.
ii. Is there some way to remove entities from Validation Listener? I see that there are method to remove the entities from other two listeners.
Thanks,
SriniHi Frank,
Was testing this and was surprised to find that validation listeners were not affected when I deleted entities. Maybe I missed something.
If they get added, is there some way of removing the entity from the validation listener?
Thanks,
Srini -
Sales Order Drafts Deleteing unexpectedly
I have an issue with Sales Order Document Drafts deleting.
Here is my scenario
My customer uses the Sales Order Document Draft to generate for a better name, Recurring Sales Orders. We run a process using the SDK to take these Drafts and on a weekly basis update them into Sales Orders.
The problem arises when we use the Documents Drafts Report to maintain and delete no longer needed Sales Order Drafts.
The process to delete is
1) Run Documents Drafts Report for Sales Orders Only, with the Open Only check box Un checked.
2) Highlight the Sales Order draft to delete, right click and select Remove from the drop down menu.
USUALLY this works well, but every so often, when we go back into the Documents Drafts Report for Sales Orders,
anywhere for 20 to 90 of the Sales Orders Drafts are deleted.
We notice that the Sales Orders that were deleted without being selected are missing with in a few minutes of selecting the
ONE Draft to delete.
Also, the person maintaining the Sales Drafts is an experienced user.
The Customer is running SAP B1 SP00 PL47. SQL Server 2005 Database.
Any ideas or similar experiences or suggestions?
Thanks in advance!!
DanaWe are able to determine which Draft we want to delete.
The problem we are experiencing is that we delete 5 drafts
when we rereunthe report, MANY more than the few selected to be deleted were delete.
Basically if the Draft Report displays 100 Drafts and I select 5 drafts, one by one and delete them.
I would expect that when I re reun the Draft report that the report would display 95 Drafts
NOT 50!!!!
The actual numers on my Customer's system were BEFORE we deleted ANY Drafts there
were 442 Drafts.
We Deleted 7 Drfats by selecting a line, Right clicking and then selecting Remove from the Drop
Down menu. Then clicking Update.
We did this seven times.
The we entered a Sales Order saving is as a Draft
We then ran the Daft Document Report for Sales Orders EXPECTING 436 Drafts
BUT There were ONLY 353 Drafts
89 Additional Drafts were deleted.
This makes NO Sense!!!!
I appreciate your input!!!! -
Contract and sales order item deletion
Dear Experts
I am facing a problem in a praticular scenario.In our process we are making quotation(thru VA21)>Sales order>delivery>PGI>Billing
Now if we have a material code Z with qty as 10 in quotation the same gets copied to the sales order.But if i wish to delete the same line item in sales order , system prompts that this item refers to the quotation so it cannot be deleted.
Now if i go to quotation and try to delete the same line item , then also the system prompts that the sales order XXXX refers to this line item , you cannot delete it.
I wish to delete the same from sales order as well as the Quotation also.Kindly advise
Regards
Naveen
Edited by: Naveen Sharma on Apr 16, 2010 11:11 AMHi Raga
But my problem is for ex. i have prepared quotation for Material codes
X-->5 QTY
Y-->6QTY
Z-->7 QTY
Now the sales order is also having the same 3 material codes.After this we had done the delivery for lets say only X & Y.We dont wish to do the delivery for Z material so even i am going back to VA02 and trying to delete it the system prompts the earlier messages which i had explained
My requirement is to delete only Z from SO & Quotation -
Creation of Production Order for Deleted Material
How can I prevent a production order from being created for a material that has been marked for deletion? Currently, our system generates a warning but allows the order to be created.
Thanks for the suggestion of the material status but I am trying to stay away from assigning a code to a delete flagged material.
The message I am getting is CO732. I went into transaction OPJB to change the message from warning to error but that message is not listed in that transaction. I tried adding it and still received a warning message.
Is there another transaction to check so I can switch it?
Edited by: Joe Reckelberg on Apr 28, 2009 4:49 AM
Maybe you are looking for
-
Itunes 6.0.1 is unminimizing when I push the play button on my keyboard.?
I can't stop itunes from unminimizing when I press the play/pause button on my INTERNET KEYBOARD PRO. In all the past versions of itunes, it would stay minimized when I'd tell it to pause and that's what I wanted, but 601's popping up on the screen e
-
Should i put more memory in my powerbok?
Hi all My Powerbook (which I really enjoy using) has little memory something like 4GB left should I install more memory from an apple authorised dealer or use an external hard drive? Thanks Appleboy10
-
IPhone 6 sending iMessage through iCloud email
My iPhone is sending iMessage through Icloud email? How do I fix this?
-
How do I put two galleries on the same page?
What's the "trick" to putting two galleries on the same page? I've been experimenting, but it's not working out well. I have one working, but when I put the seond one on, all sorts of unexpected things happen. The first gallery goes up "over" the ban
-
Manually entering field values into report
Hi, I am running a call report for a contact centre and the reports shows information such as numbers of calls received/answered, duration of calls, grade of service, etc. What I am wanting it to also include forcasted calls into the report. I do not