Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Removing an account

Hi All,

It seems that the OACT object's Remove method is documented as 'not supported'.

Is there any other way I can remove an account? it is supported via GUI.

Avi.

replied

Hi,

it's like you said - in GUI it is allowed but DIAPI not.

that means you can try to write a code that deletes a account via UIAPI.

in your addon do the following

1. open Edit Chart of Accounts - select the criteria press OK

2. search your account in the list and use Application.ActivateMenuItem("5910") to delete the account

3. close the window

lg David

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question