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

parameters

Former Member
0 Likes
988

hi guys,

please explain this

PARAMETERS: file LIKE rlgrap-filename OBLIGATORY MEMORY ID ffmem.

specially MEMORY ID ffmem. ???

thankx

ahmed

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
901

Hi,

Obligatory means : it is a required parameter.

MEMORY ID pid :

Effect

Assigns the memory ID pid to the parameter on the selection screen. This means that when the selection screen appears, the input field contains the last value entered by the user in a field with memory ID pid.

-SatyaPriya

7 REPLIES 7
Read only

Former Member
0 Likes
902

Hi,

Obligatory means : it is a required parameter.

MEMORY ID pid :

Effect

Assigns the memory ID pid to the parameter on the selection screen. This means that when the selection screen appears, the input field contains the last value entered by the user in a field with memory ID pid.

-SatyaPriya

Read only

0 Likes
901

adding to Satya's answer, obligatory is used to make the selection screen variable as mandatory..

please press F1 on parameters in ur program ,u wil come to know more abt tht

amit

Read only

Former Member
0 Likes
901

Hi Ahmed,

Effect

This addition links the input field of the parameter with a SPA/GPA parameter in the SAP Memory. The name of the SPA/GPA parameter must be specified directly and with a maximum of 20 characters

The input.field is filled - when the selection screen is called - with the current value of the SAP/GPA parameter in the SAP memory, provided the data object para is initial after processing of the event AT SELECTION-SCREEN OUTPUT. Otherwise, the value of para is displayed. If there is a user action on the selection screen, the content of the input field is assigned to the SPA/GPA parameter in the SAP memory. If no SPA/GPA parameter exists for the specified name, it will be created.

Note

The addition DEFAULT overrides the addition MEMORY ID.

Example

The parameter p_prog is linked with the SPA/GPA parameter RID, which, in turn, is linked with the input field for the program name in the screens of the ABAP Workbench. Accordingly, the input field of the parameter is filled with the name of the program last processed.

PARAMETERS p_prog TYPE sy-repid MEMORY ID rid.

Read only

learnsap
Active Participant
0 Likes
901

Hi Ahmed,

Check this out

http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

Regards,

Ramesh

*Award the points if reply is helpful

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
901

HI,

MEMORY ID is nothing but the ID that you give to the memory location. Say if you give it as PID, then you can use command SET PARAMETER and GET PARAMETER.

In one screen if you do SET PARAMETER 'PID'.

In another screen if you do GET PARMETER 'PID' you will get the vaue that you stored in the memory pointed by id PID.

See documentation for SET and GET PARAMETERS.

MEMORY ID is used to store and retrive from SAP memory using command GET and SET.

Regards,

Sesh

Read only

Former Member
0 Likes
901

Hi,

This would create a parameter id FFMEM in the memory.

If you are calling someother program using SUBMIT, then in that program you can use GET PARAMETER ID ffmem FIELD fld1 to retrieve the memory id ffmem into fld1.

Regards

Subramanian

Read only

Former Member
0 Likes
901

The parameter p_prog is linked with the parameter RID, which, in turn, is linked with the input field for the program name in the screens of the ABAP Workbench. Accordingly, <b>the input field of the parameter is filled with the name of the program last processed. </b>

PARAMETERS p_prog TYPE sy-repid MEMORY ID rid.

The addition DEFAULT overrides the addition MEMORY ID.