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

Program with default values from SU3

Former Member
0 Likes
1,777

Hi,

I am trying to create an ABAP program with input parameters. We need to have a default value for the input parameters. How can I write that in such a way the the system will put a default value on a specific field with a value defined in SU3. For example, I have a program with Sales Org as an input parameter. Then I will set a user-specific preassignment value via TCode SU3 for 'VKO' parameter id. How can I have that vaue be defaulted in my program's input parameter?

Thanks a lot.

Points will be given.

Edited by: Question Man on Jun 19, 2008 3:37 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,099

Hi,

In your Initialization event.

Put this syntax:

GET PARAMETER ID 'VKO' FIELD LV_VKO.

LV_VKO --> your parameter name.

It should works.

Thanks,

Victor.

2 REPLIES 2
Read only

Former Member
0 Likes
1,100

Hi,

In your Initialization event.

Put this syntax:

GET PARAMETER ID 'VKO' FIELD LV_VKO.

LV_VKO --> your parameter name.

It should works.

Thanks,

Victor.

Read only

Former Member
0 Likes
1,099

Thanks!!