Skip to Content
0
Former Member
Jul 01, 2008 at 11:18 AM

Enhancing Membership No. in CRMD_ORDER - Service Contract

34 Views

Hi,

I have a requirement wherein I need to enhance the service contract -> membership creation in tcode CRMD_ORDER

The membership number is generated using a number range. This has to be replaced with the client's algorithm for generating numbers.

I found out that the BAdI - ORDER_SAVE could be implemented since it would get called upon 'Save'. I implemented the following logic with the CHANGE_BEFORE_UPDATE method -

1. Read the current order using CRM_ORDER_READ passing it the GUID

2. Generate the membership number using the new alogrithm & update in the internal table

3. Maintain the order using CRM_ORDER_MAINTAIN passing it the updated internal table in CT_ORDERADM_H

But after doing this, I'm unable to see the membership no. on the screen when I press 'Save'. How do I move ahead on this? Any guidance would be appreciated...

Regards,

KKR

Edited by: KKR on Jul 1, 2008 4:55 PM