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

Data element

Former Member
0 Likes
1,425

hello,

in the data element , say for example vbeln_va ( data element), in the attributes tab and in the attributes section what is the use of parameter id and default component name. what do the parameter id = AUN and default component name = DOC_NUMBER refers to.

cheers

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,304

<b>Set/Get parameter ID</b>

A field can be filled with proposed values from SAP memory using a parameter ID.

<b>Example</b>

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.

<b>Dependencies</b>

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.

<b>Default name for components</b> using the data element

You can assign an English default name to the data element in this field.

Components in BAPI structures that use the data element should have this default name. Using default names unifies the assignment of component names.

<b>reward if useful</b>

Message was edited by: Ashok Kumar Prithiviraj

6 REPLIES 6
Read only

Former Member
0 Likes
1,304

The parameter ID is used to set the fields during runtime using SPA/GPA.

You can set the variable programmatically using:

SET PARAMETER ID 'var' FIELD <f>.

Read only

Former Member
0 Likes
1,304

The parameter id is used to store the values for the corresponding field (in this case, VBELN), from SAP memory for the corresponding user. For eg: the last sales order created by the user will be stored in this id (AUN). Subsequently, each time the user accesses the change/display screens, the last stored value in this parameter will be defaulted to the Sales order field. Similarly, during F4 value help, data is fetched for the value in this parameter id.

The Default component name is used in BAPIs to identify fields. For eg, all fields having the component name as DOC_NUMBER will refer to the data element VBELN_VA.

Hope this helps.

Sudha

Read only

Former Member
0 Likes
1,305

<b>Set/Get parameter ID</b>

A field can be filled with proposed values from SAP memory using a parameter ID.

<b>Example</b>

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.

<b>Dependencies</b>

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.

<b>Default name for components</b> using the data element

You can assign an English default name to the data element in this field.

Components in BAPI structures that use the data element should have this default name. Using default names unifies the assignment of component names.

<b>reward if useful</b>

Message was edited by: Ashok Kumar Prithiviraj

Read only

Former Member
0 Likes
1,304

HI

YOU CAN GET THE DOCUMENTATION ON THIS BY PRESSING F1 ON THESE FIELDS. IT WILL COME AS FOLLOWING

<u>Set/Get parameter ID</u>

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.

<u>Default name for components using the data element</u>

You can assign an English default name to the data element in this field.

Components in BAPI structures that use the data element should have this default name. Using default names unifies the assignment of component names.

REGARDS

ANOOP

Read only

Former Member
0 Likes
1,304

Hi,

Quoted From SAP help...

Check it..

Assign a parameter ID: A field can be filled with default values from SAP memory using a parameter ID. A screen field 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.

For example, if a user only has authorization for company code 001, this company code can be stored in memory under the corresponding parameter ID at the beginning of a transaction. Fields referring to the data element for the company code are then automatically filled with the value 001 in all subsequent screen templates. In this case, the corresponding parameter ID must be only entered in the data element for the company code.

Assign a default component name: You can store a proposal for the name of the table fields or structure components that refer to a data element. If possible, use an English-language default name. Always use this default name for components in BAPI structures (structures with a fixed interface). This results in a more unified assignment of field and component names.

Regards

vijay

Message was edited by: Vijay Babu Dudla

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,304

Hi,

Parameter id is used to set the screen field value while calling transaction.

Example:

SET PARAMETER ID 'KUN' FIELD '345'.

CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.

Here KUN is the parameter Id.

Component name will give you length and type of field.