Application Development 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: 

default value in Selection-screen

former_member181995
Active Contributor
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

Regards

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

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

Regards

Former Member
0 Kudos

write as :

initialization.

select single USRID_LONG into p_addr

where subty = '0010'

and usrid = sy-uname.

Former Member
0 Kudos

Hi,

following is the syntax:

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

Jaya Vani

Former Member
0 Kudos

Hi,

PARAMETERS:p_addr type AD_SMTPADR.

  • Write the code in Initialization

INITIALIZATION.

p_addr = abc at xyz.com

Reward points if helpful.

Former Member
0 Kudos

Hi,

In INITIALIZATION p_addr = <value>.

regards,

teja.

Former Member
0 Kudos

Hello,

Try this.

PARAMETERS:p_addr TYPE ad_smtpadr .

INITIALIZATION.

p_addr = sy-uname.

Neeraj