Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to auto-populate values in xd01

Former Member
0 Kudos

Hi Gurus,

            I want to auto populate Dunning area, dunning clerk and dunning procedure  fields while creating Customer master data.

I found one function exit, tried to auto-populate values through different ways like : using function module 'DYNP_UPDATE_FIELDS'..

but i am not able to do...could some one help me.

Thanks in Advance

6 REPLIES 6

former_member184569
Active Contributor
0 Kudos

You have various options.

1. Create a BDC after recording XD01 through SHDB.

2. Use LSMW

3. Use BAPI  - BAPI_CUSTOMER_CREATEFROMDATA1 or BAPI_CUSTOMER_CREATE

jitendra_it
Active Contributor
0 Kudos

Hello Naden,

You can use Exit EXIT_SAPMF02D_001 for your purpose but it will update before saving into db.

Table KNB5 is for dunning info.

raymond_giuseppi
Active Contributor
0 Kudos

You could look at BAdI CUSTOMER_ADD_DATA, method PRESET_VALUES_CCODE even if only provide access to KNB1 data, A where used will identify FORM PRESET_VALUES_CCODE in main program as the call point, In the BAdI you could assign a field symbol to global area KNB5 of the caller.

Regards,

Raymond

Former Member
0 Kudos

Dear guru's,

               My requirement is i need to auto-populate Dunning procedure, dunning clerk, dunning area. at screen level. when the user enters into the screen dunning procedure and dunning clerk should be available in the fields. but there is no screen exits to write code in PBO. there is no screen badi for the screen 7220 and 1221. i have looked for implicit enhancements, i didnt found any thing.

and the third field which is dunning area is the field in table control. and we knew that field name keeps on changing for each row like knb5-maber(01) for first row, knb5-maber(02) for second row...i tried to populate data in debug mode. because of the screen field changes dynamically..not able to populate even in debug mode.. if i give field name knb5-maber(01), it is taking only one character in to the variable..apart from collecting the access key do we have any option....please suggest

0 Kudos

Don't confuse knb5-maber(1) first character of field of work area with knb5-maber[1] field of first record


i have looked for implicit enhancements, i didnt found any thing

For the table control, you could try an ES in PAI, form mahndaten_pruefen (include MF02DFM0) called in module xknb5_aufbauen  which will be executed before the mandatory check (use start of form implicit ES) and updation of xknb5

Regards,

Raymond

0 Kudos

Hi Raymond,

                   Thanks for the reply.

But i have done the changes in the include program MF02DFT0 for populating Dunning procedure and Dunning clerk and in the include program MF02DI00 for Dunning area. i found in debug mode for getting this include. and now the values are getting populated. but the only thing i noticed that is, after finding the dunning area value populated in the pop-up screen and hitting enter, the dunning procedure and dunning clerk values which were populated in the previous screen were cleared automatically. will that effect in any way?