‎2007 Jan 05 3:21 PM
Hi,
I'm trying to create a quotation via CALL TRANSACTION (VA21). A number of Partners are loaded automatically but I need to delete one of them (contact person). I've created the appropriate screen flow in BDCDATA table and when the txn is called with mode 'A' the partner is deleted. However when it's called with mode 'N' the partner is not deleted (the quotation is saved successfully with no errors in both cases).
Has anyone come accross this before?
Thanks for any help, Annie
‎2007 Jan 05 6:26 PM
I hope you used SHDB to record your screens for BDC ?
Sometimes screens in batch & online are not the same.
You may need to position cursor properly before deleting partner.
It may be easier to delete partner in userexit_save_document_prepare (xvbpa, xvbadr).
‎2007 Jan 05 6:26 PM
I hope you used SHDB to record your screens for BDC ?
Sometimes screens in batch & online are not the same.
You may need to position cursor properly before deleting partner.
It may be easier to delete partner in userexit_save_document_prepare (xvbpa, xvbadr).
‎2007 Jan 08 3:57 PM
Hi Siarhei,
thanks for your reply. Yes, I used a recording - I even included all the BDC_SUBSCR entries which are usually not required as well as the BDC_CURSOR.
I've actually sorted it now - there was an error in the BDCDATA table in a part of the screen flow that seemed to be unconnected with the partner screen, and had been working previously, one of the BDC_OKCODE values was entered as 'YES' when it should have been '=YES' .
thanks again for your sugestions.
Annie