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

default value in Selection-screen

Former Member
0 Likes
1,085

Hi,

Am using Email address as a parameter on Selection-screen.

like

PARAMETERS:p_addr type AD_SMTPADR.

it works fine but problem is:

now i want to fill it by-default in selecrion-screen as login user id's email address.

how can i achieve that?

Amit.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
959

Do it in the INITIALIZATION block, use FM BAPI_USER_GET_DETAIL to get the e-mail address.

Regards

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
960

Do it in the INITIALIZATION block, use FM BAPI_USER_GET_DETAIL to get the e-mail address.

Regards

Read only

Former Member
0 Likes
959

write as :

initialization.

select single USRID_LONG into p_addr

where subty = '0010'

and usrid = sy-uname.

Read only

Former Member
0 Likes
959

Hi,

following is the syntax:

PARAMETERS:p_addr type AD_SMTPADR default 'XXXX.com'.

Jaya Vani

Read only

Former Member
0 Likes
959

Hi,

PARAMETERS:p_addr type AD_SMTPADR.

  • Write the code in Initialization

INITIALIZATION.

p_addr = abc at xyz.com

Reward points if helpful.

Read only

Former Member
0 Likes
959

Hi,

In INITIALIZATION p_addr = <value>.

regards,

teja.

Read only

Former Member
0 Likes
959

Hello,

Try this.

PARAMETERS:p_addr TYPE ad_smtpadr .

INITIALIZATION.

p_addr = sy-uname.

Neeraj