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

GET and SET parameter!!

Hi

I hav declared a selection screen parameter:

p_vkorg1 TYPE tvko-vkorg, " Sales Organisation

This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...

how shall i go abt this?

Regards

Gunjan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 06:13 AM

    Check this:

    <b>PARAMETERS: P_VKORG TYPE VKORG MEMORY ID VKO.</b>

    Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 06:14 AM

    SET PARAMETER ID 'VKO' FIELD p_vkorg.

    set the value to sap memory under id vko for p_vkorg.

    GET PARAMETER ID 'VKO' FIELD p_vkorg1.

    get the value from sap memory under id vko to p_vkorg1.

    regards

    shiba dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 06:15 AM
    data vkorg type tvko-vkorg.
    
    p_vkorg1 TYPE tvko-vkorg.
    
    initialization.
    clear vkorg.
    get parameter id VKO field vkorg.
    if not vkorg is initial.
    p_vkorg1 = vkorg.
    endif.
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2007 at 07:01 AM

    set parameter id: 'VKO' field p_vkorg1.

    in the calling program

    get parameter id: 'VKO' field p_vkorg.

    free memory id: 'VKO'.

    it is always necessary to free memory id after setting it.

    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.