Application Development and Automation 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: 
Read only

Setting default values for an infotype field

Former Member
0 Likes
1,898

Hi,

can someone tell me how to set default values for a field in an custom infotype. I really need it to be done ASAP. Please reply.

Regards,

Binay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
947

hi,

1.Go to tr.code:Se51.

2.Enter Main Module pool :MPXXXX00 (like MP917500).

3.Enter screen no:2000.

in that screen 2000 means single screen or infotype screen by using this we r going to maintain records in infotype.

4.click on change button.

once double click on that pa1& pbo screen display.

5.Double click on module P9175.

in that screen un comment subroutine "GET_DEFAULT".

and Double Click on GET_Default.

enter.

Chose Include MPXXXX40(MP917540).

enter.

Note:MPXXXXX40 is the subroutine.

enter.

in that we can write the code:

suppose we can put the default for zzname custom field:

P9175-zzname = 'xxxxx'.

6.save,activate.

we can use MpXXXX20 and MPXXXX40. custom includes.

7. we can check this Default values go to tr.code :PA30.

Hi,

can someone tell me how to set default values for a field in an custom infotype. I really need it to be done ASAP. Please reply.

Regards,

Binay

1 REPLY 1
Read only

Former Member
0 Likes
948

hi,

1.Go to tr.code:Se51.

2.Enter Main Module pool :MPXXXX00 (like MP917500).

3.Enter screen no:2000.

in that screen 2000 means single screen or infotype screen by using this we r going to maintain records in infotype.

4.click on change button.

once double click on that pa1& pbo screen display.

5.Double click on module P9175.

in that screen un comment subroutine "GET_DEFAULT".

and Double Click on GET_Default.

enter.

Chose Include MPXXXX40(MP917540).

enter.

Note:MPXXXXX40 is the subroutine.

enter.

in that we can write the code:

suppose we can put the default for zzname custom field:

P9175-zzname = 'xxxxx'.

6.save,activate.

we can use MpXXXX20 and MPXXXX40. custom includes.

7. we can check this Default values go to tr.code :PA30.