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

Submit program

Former Member
0 Likes
382

Hi,

I have a user exit from which a separate program is being called by the statement

SUBMIT ZHR_SEND_MAIL VIA SELECTION-SCREEN

WITH s_pernr EQ p_p0001-pernr

WITH s_ename EQ p_p0001-ename

WITH s_lgart EQ t_0014-lgart

WITH s_betrg EQ t_0014-betrg

WITH s_endda EQ t_0014-endda

AND RETURN.

The user exit is meant for the action 59-Employee Assignment change, performed by PA40.

The issue is that while this action is performed and the IT0001 is saved, then after the selection screen of the program ZHR_SEND_MAIL appears which should not be ideally shown.

This program is required to send mail once IT0001 is saved.

Please suggest.

This issue is too urgent.

Regards,

Binay.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
360

to by-pass the selection screen remove code

' VIA SELECTION-SCREEN'

SUBMIT ZHR_SEND_MAIL

WITH s_pernr EQ p_p0001-pernr

WITH s_ename EQ p_p0001-ename

WITH s_lgart EQ t_0014-lgart

WITH s_betrg EQ t_0014-betrg

WITH s_endda EQ t_0014-endda

AND RETURN.

2 REPLIES 2
Read only

Former Member
0 Likes
360

Hi,

Try with ,without writing the return in submit.That can go to thespecified program and executes it.

Regards,

Shiva Kumar.

Read only

Former Member
0 Likes
361

to by-pass the selection screen remove code

' VIA SELECTION-SCREEN'

SUBMIT ZHR_SEND_MAIL

WITH s_pernr EQ p_p0001-pernr

WITH s_ename EQ p_p0001-ename

WITH s_lgart EQ t_0014-lgart

WITH s_betrg EQ t_0014-betrg

WITH s_endda EQ t_0014-endda

AND RETURN.