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

set parameter id

Hi,

What is the use of set parameter id?How can it be used in uploading the data from a screen to table?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Jan 31, 2008 at 11:39 AM

    The SET PARAMETER ID will set the value of the parameter that we specify in the SAP Memory.

    This value is accesible across transactions.

    For example, if you create a sales order in VA01 transaction, you can see the new sales order number already present, if you open the VA03 transaction.

    This is because the VA01 transaction uses the SET Parameter statement in its main program.

    Regards,

    Ravi Kanth Talagan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:40 AM

    set parameter id captures recent value

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2008 at 11:40 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:41 AM

    Hi,

    Here is the sample code.

    ********************

    *----


    at line-selection.

    *----


    get cursor field c_field.

    if c_field = 'SUM_IT-BELNR'.

    set parameter id 'GJR' field sum_it-gjahr.

    set parameter id 'BUK' field sum_it-bukrs.

    set parameter id 'BLN' field sum_it-belnr.

    call transaction 'FB03' and skip first screen.

    endif.

    *********************

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:43 AM

    hi Radha...

    set parameter id is to assign values to some variables in SAP memory..

    thanks,

    SAYAK...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:46 AM

    Hi,

    SET PARAMETER would enable you to save the value of a field in SAP memory. This enables the usage of the field alongside its value throughout the program as a global field.

    If you want to SET PARAMETER from the screen,

    Go to the screen layout -> double click on the input field you want to set.

    The Screen Painter Attributes window will pop up, go its Attributes section down below.

    Enter the PARAMETER ID and check the SET PARAMETER option below.

    Reward if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:46 AM

    Hi,

    It is used to access SAP memory..

    do like this in some Zpgm (report)

    data var(5) value 'Hello'.

    set parameter id 'ZTEST' var.

    execute this prog.....

    in another Zprogram

    data var(5).

    get parameter id 'ZTEST' var.

    write var.

    execute it....

    ur o/p ll be Hello bcoz in first pgm u passed it to SAP memory and in second one u retrieved it from SAP memory.....

    Dis is the reason why ull get the previous run value on I/O fld of STD SAP transactions.......

    NOTE : Once u log out this memory is cleared.

    Cheers,

    Will.

    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.