My requirement is as below:
I have to populate an extended IDOC of the standard IDOC CREMAS in the following cases.
1. When a new vendor is created from XK01 with classification characterstics value for supplier status as 'YES'.
2. When a vendor is changed by adding a partner function OA in the partner function.
3. We have to purposefully fail the IDOC when the partner function OA is deleted in XK02 transaction.
4. We have to purposefully fail the IDOC when the main vendor is blocked or deleted(XK05 or XK06).
Since i am new to IDOC, i tried many things but its not working.
I tried by the change pointer method for the standard IDOC but it will create the IDOC in all cases which we don't want it should be created only when supplier status is 'YES' and new partner function OA is created.