Skip to Content
author's profile photo Former Member
Former Member

Program with default values from SU3

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 02:01 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 05:59 AM

    Thanks!!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.