2009 Jun 03 1:05 PM
Wht is the use of the PARAMETER ID in Screen Attributes ?
Suppose i have a Input field in the Screen. say - kna1-kunnr
In the Screen attributes of that field there is a option for PARAMETER ID?
pls explain with examples....
2009 Jun 04 10:57 AM
Hi Sagar,
Set/Get parameter ID
A field can be filled with proposed values from SAP memory using a parameter ID.
Example
A user only has authorization for company code 0001. This company code is stored in memory at the beginning of a transaction under the corresponding parameter ID. Fields that refer to the data element are automatically filled with the value 001 in all subsequent screen templates.
Simple example
Create one program and paste the code above and execute . Once you execute and come out of the transaction SE38 and run some other transactions, and now go to SE38, still you can see the program ZTEST_NOTEPAD under report name.
Dependencies
A field in the screen template is only filled automatically with the value stored under the parameter ID of the data element if this was explicitly permitted in the Screen Painter.
Thanks
Venkat.O
REPORT ztest_notepad.
DATA: program TYPE rs38m-programm VALUE 'ZTEST_NOTEPAD'.
SET PARAMETER ID 'RID' FIELD program.
Hi Sagar,
Set/Get parameter ID
A field can be filled with proposed values from SAP memory using a parameter ID.
Example
A user only has authorization for company code 0001. This company code is stored in memory at the beginning of a transaction under the corresponding parameter ID. Fields that refer to the data element are automatically filled with the value 001 in all subsequent screen templates.
Simple example
Create one program and paste the code above and execute . Once you execute and come out of the transaction SE38 and run some other transactions, and now go to SE38, still you can see the program ZTEST_NOTEPAD under report name.
Dependencies
A field in the screen template is only filled automatically with the value stored under the parameter ID of the data element if this was explicitly permitted in the Screen Painter.
Thanks
Venkat.O
REPORT ztest_notepad.
DATA: program TYPE rs38m-programm VALUE 'ZTEST_NOTEPAD'.
SET PARAMETER ID 'RID' FIELD program.
2009 Jun 03 1:11 PM
Hi,
The Parameter ID field contains the name of the corresponding SPA/GPA parameter.
A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info
To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
For more information of the above refer sap help
Regards
Shiva
2009 Jun 03 1:13 PM
Parameter ID is to move the field value between sessions.
For example:
set parameter id 'mat' field v_matnr
Call Transaction 'me22n'. (this statement will open new session.)
Thanks and Regards
2009 Jun 04 6:36 AM
hi
As u know there are two types of memory
1)SAP Memory (Global Memory)
2)ABAP Memory (Local Memory)
With SAP Memory u can pass the data from one session to other
only be setting the parameter id ie using SET Parameter & GET Parameter.
By setting the parameter id u can navigate from one transaction to another
based on user-command.
eg :
data : wk_mat type mara-matnr value 'MAT'.
(in the Data Element of MATNR field u find parameter id = MAT)
form user-command using ucomm type sy-ucomm field selfield type slis_selfield.
case ucomm.
when '&IC1&'
SET PARAMETER ID 'WA_MAT' FIELD MARA-MATNR.
CALL TRANSACTION 'MM01' AND SKIP FIRST SCREEN.
endcase.
Regards
2009 Jun 04 10:57 AM
Hi Sagar,
Set/Get parameter ID
A field can be filled with proposed values from SAP memory using a parameter ID.
Example
A user only has authorization for company code 0001. This company code is stored in memory at the beginning of a transaction under the corresponding parameter ID. Fields that refer to the data element are automatically filled with the value 001 in all subsequent screen templates.
Simple example
Create one program and paste the code above and execute . Once you execute and come out of the transaction SE38 and run some other transactions, and now go to SE38, still you can see the program ZTEST_NOTEPAD under report name.
Dependencies
A field in the screen template is only filled automatically with the value stored under the parameter ID of the data element if this was explicitly permitted in the Screen Painter.
Thanks
Venkat.O
REPORT ztest_notepad.
DATA: program TYPE rs38m-programm VALUE 'ZTEST_NOTEPAD'.
SET PARAMETER ID 'RID' FIELD program.
2009 Jun 04 2:29 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |