‎2007 Jan 29 5:08 AM
hi guys,
please explain this
PARAMETERS: file LIKE rlgrap-filename OBLIGATORY MEMORY ID ffmem.
specially MEMORY ID ffmem. ???
thankx
ahmed
‎2007 Jan 29 5:11 AM
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
‎2007 Jan 29 5:11 AM
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
‎2007 Jan 29 5:13 AM
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
‎2007 Jan 29 5:15 AM
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.
‎2007 Jan 29 5:15 AM
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
‎2007 Jan 29 5:15 AM
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
‎2007 Jan 29 5:18 AM
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
‎2007 Jan 29 5:18 AM
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.