Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 12, 2018 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,


    Add comment
    10|10000 characters needed 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.



  • Apr 20, 2018 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.

    Add comment
    10|10000 characters needed characters exceeded