Skip to Content

SAP MDG : Customer Number Pre Population in customer details UI while New Customer Creation

Apr 11 at 01:04 PM


avatar image

Hi Experts,

I want to Pre Fetch Customer number while Creating new ERP Customer, based on available CR Types/Account group and show in User Screen for create customer in 'Customer details' in SAP MDG.

After activation of CR Customer Number gets generated and populated, but,for my requirement I want to populate number, while creation only.

How can I achieve that.

Please help on this.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Loga Nathan Duraisamy Apr 12 at 08:58 AM

Hi Srivastav,

You need to assign external number assignment for customer account group.It will allow you to pre-populate vendor number from feeder class or allow users to enter the number.

Thanks and Regards,


Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Logan,

Appreciate your help.

Actually, I am new to MDG.

At start,I have proceeded as follows.

Pre Fetched Next Customer based on Number range using one FM, in "Validation/Derivation" BADI implementation adding ZZCustomer attribute to hold Customer number in Data Model BP_header.(Not Sure if need to add in BP_CUGSEN)

After fetching, I need to Map it to Customer details UI, shown while creating customer data.

Could you please help, like what steps to follow, where to map it (table or Structure), so that it shows up in MDG Customer details.



Nupur Maity Apr 20 at 06:45 AM

Implement an enhancement of type Post Exit for method BEFORE_FLUSH of the feeder class. Read the customer number from external number range of your choice or concatenate to fit your requirement and assign to the customer number.

10 |10000 characters needed characters left characters exceeded