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

Automatic Update in SM30

Former Member
0 Likes
1,881

Hi all,

i have one requirement in which,, when i will put the employee id of any user i want its email id will automatically will fetch through master data and update for the same.Please let me know how to do it.

Regards,

Deepak kansal.

1 ACCEPTED SOLUTION
Read only

former_member219162
Contributor
0 Likes
1,149

Hi Deepak,

Following are the ways, by which you can do it;

1) You can use database event to update the the email ID column.

2) You can also use programming logic in the module. Suppose you created a Table Maintenance(SM30) named "ZHR_EMAIL", which has only two columns, PERNR & EMAIL.

i) You can go SE80

ii) Put function group = ZHR_EMAIL

iii) Choose the screen Number in SE80. this screen number is actuallythe screen that you have given in Table Maintenance generator.

iv) Double click on the screen

v) in "Process After Input",  you would get  Loop at extract..... Endloop, Within this loop, and just before Endloop, you can create a module "Module PERNR_EMAIL". In this module you can write the suitable logic.

Employee ID and Email ID is linked in IT0105 (PA0105) with suitable subtype. You can check it and put your logic.

5 REPLIES 5
Read only

Former Member
0 Likes
1,149

Hi Deepak

Can u elaborate your question.

Thanks

Pavan.N

Read only

former_member188827
Active Contributor
0 Likes
1,149

This message was moderated.

Read only

former_member219162
Contributor
0 Likes
1,150

Hi Deepak,

Following are the ways, by which you can do it;

1) You can use database event to update the the email ID column.

2) You can also use programming logic in the module. Suppose you created a Table Maintenance(SM30) named "ZHR_EMAIL", which has only two columns, PERNR & EMAIL.

i) You can go SE80

ii) Put function group = ZHR_EMAIL

iii) Choose the screen Number in SE80. this screen number is actuallythe screen that you have given in Table Maintenance generator.

iv) Double click on the screen

v) in "Process After Input",  you would get  Loop at extract..... Endloop, Within this loop, and just before Endloop, you can create a module "Module PERNR_EMAIL". In this module you can write the suitable logic.

Employee ID and Email ID is linked in IT0105 (PA0105) with suitable subtype. You can check it and put your logic.

Read only

Former Member
0 Likes
1,149

This message was moderated.

Read only

Former Member
0 Likes
1,149

thanks to all of you....it is working