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

Parameter ID on user profile

Former Member
0 Likes
5,117

Hello Experts,

In user Profile I am seeing a tab parameters and it has got parameter ID and values.

1. I just want to know what is parameter ID and Parameter Value. I know what is SPA and GPA is that the same ?

2. And how to create/find the parameter ID for transactions and which table we can see this ?

Regards,

krishna

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,174

Assume transaction MM02.

1)In the first screen there are two input fields.

<b>Material

Change Number </b>

2) I place cursor in Material and press F4

3) THen select Technical Information in popup.

4)There i find the following info.


                                                    
  Struct.          RMMG1                            
  Field name       MATNR                            
  Search help      MAT1                             
  Data element     MATNR                            
  DE supplement    1                                
  <b>Parameter ID     MAT </b>                             

5) You can assign values to the field <b>MAterial Number</b> directly at runtime using this <b>Parameter ID</b>.

Consider this simple code.


REPORT zztest
NO STANDARD PAGE HEADING
LINE-COUNT 36(3)
LINE-SIZE 250.

*GEt the Material No from user
PARAMETER : matno TYPE mara-matnr OBLIGATORY.



*I will assign the Material Number usiing SET PARAMETER ID
<b>SET PARAMETER ID 'MAT' FIELD matno.</b>



<b>*Call the Transaction directly and skip the first screen
*for the material number entered by user.</b>

<b>CALL TRANSACTION 'MM02' 
AND SKIP FIRST SCREEN .</b>


Regards,

Arun Sambargi.

Hello Experts,

In user Profile I am seeing a tab parameters and it has got parameter ID and values.

1. I just want to know what is parameter ID and Parameter Value. I know what is SPA and GPA is that the same ?

2. And how to create/find the parameter ID for transactions and which table we can see this ?

Regards,

krishna

4 REPLIES 4
Read only

Former Member
0 Likes
2,174

Hello,

1. Paramter ID are the pointers/names that store paramter values in SAP memory.

You use GET PARAMETER ID pid FIELD f and SET PARAMETER ID pid FIELD f for this purpose, which is nothing but reading and setting SPA/GPA paramters.

2. To find paramter Id, go to the transaction and place the cursor on the field you want to find paramter iD for. Then press F1 and 'Technical Information'.

The pop window has a field called Paramter ID stored for the field.

Read only

Former Member
0 Likes
2,174

You can fill fields on screens with default values from SAP memory using parameter IDs. It is the same as SPA and GPA.

Parameter IDs are stored in the table TPARA. They can be created from SE80. Choose Edit Object->Choose tabstrip "More" and then choose the radiobutton Set/Get Parameter ID

Below example is from SAP Help.

For example, a user only has authorization for company code 0001. By entering the value '0001' in field COCD in the Parameter register in this user’s master record (SU01), the system automatically fills the field Company code with the value ‘0001’ on all screens he or she calls. If this company code is not predetermined using a parameter ID in the user master record, the system automatically adopts the first value entered by the user at the beginning of the transaction for the rest of the current terminal session. However, this value has to be re-entered the next time the user logs on to the system.

-Kiran

Read only

Former Member
0 Likes
2,174

Hi,

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.

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.

You can create them in Data element of the field.

in your program you can create using SET parameter

<b>SET PARAMETER ID pid FIELD dobj.</b>

Regards

vijay

Read only

Former Member
0 Likes
2,175

Assume transaction MM02.

1)In the first screen there are two input fields.

<b>Material

Change Number </b>

2) I place cursor in Material and press F4

3) THen select Technical Information in popup.

4)There i find the following info.


                                                    
  Struct.          RMMG1                            
  Field name       MATNR                            
  Search help      MAT1                             
  Data element     MATNR                            
  DE supplement    1                                
  <b>Parameter ID     MAT </b>                             

5) You can assign values to the field <b>MAterial Number</b> directly at runtime using this <b>Parameter ID</b>.

Consider this simple code.


REPORT zztest
NO STANDARD PAGE HEADING
LINE-COUNT 36(3)
LINE-SIZE 250.

*GEt the Material No from user
PARAMETER : matno TYPE mara-matnr OBLIGATORY.



*I will assign the Material Number usiing SET PARAMETER ID
<b>SET PARAMETER ID 'MAT' FIELD matno.</b>



<b>*Call the Transaction directly and skip the first screen
*for the material number entered by user.</b>

<b>CALL TRANSACTION 'MM02' 
AND SKIP FIRST SCREEN .</b>


Regards,

Arun Sambargi.