2008 Mar 12 7:51 AM
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
2008 Mar 23 7:59 AM
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
2008 Mar 23 7:59 AM
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.