‎2005 Dec 26 4:53 AM
In the selection parmeter:
SELECTION-SCREEN BEGIN OF BLOCK fm1 WITH FRAME TITLE text-fm1.
PARAMETERS p_dxappl TYPE rpm_tv_dx_application_text
OBLIGATORY MEMORY ID dxprogname
AS LISTBOX VISIBLE LENGTH 60.
SELECTION-SCREEN END OF BLOCK fm1.
How is the memory id "dxprogname" defined.
Kindly advice
Ravish
‎2005 Dec 26 4:56 AM
Hi Ravish,
1. It is actually already defined
when data elements are created in the system.
2. The purpose of MEMORY ID is
shared memory
(a variable in global memory)
so that if such ID (variable)
contains any value which is
set by othe program / same program / system etc,
then our parameter in the selection - screen
will automatically get this value.
3. Eg BUKRS
it has got memory id of BUK
4. So in our selection-screen, we can
ATTACH a memory id (which has already been defined
in the data dictionary)
so that it gets pre-defined values.
5. Goto SE11
In data type type BUKRS
Display
click tab Further Characteristics
Place cursor on Parameter id (showing BUK)
Press F1.
I hope it helps.
Regards,
Amit M.
Message was edited by: Amit Mittal
Message was edited by: Amit Mittal
‎2005 Dec 26 5:19 AM
Hi Amit,
But for the memory id dxprogname, if i check this out in se11, its not defined.
And the piece of code that i mentioned is a working code.
‎2005 Dec 26 5:21 AM
Hi ravish,
It need not be created in Se11, and you can create memory ID of your own in the program it self.
just click on the memory id, it will be created.
the previous value will be stored when ever you trying to access the parameter via memory ID.
vijay
‎2005 Dec 26 5:34 AM
Hi again,
1. Search for dxprogname in the same program.
It may have been defined there.
(Bcos dxprogname does not seem to be a standard
memory id in r/3)
2. What is the purpose of that parameter ?
regards,
amit m.
‎2005 Dec 26 5:10 AM
memory id "dxprogname" is defined using:
SET PARAMETER ID 'dxprogname' FIELD p_dxappl.
double click 'dxprogname' it will creatre spa/gpa parameter in sap memmory.
to acces use:
GET PARAMETER ID 'dxprogname' FIELD p_dxappl.
‎2005 Dec 26 5:11 AM
Dear Ravish,
You just write the name of Memory ID directly without any inverted commas. Double click it and voila you can create it.
Regards,
Deva.
‎2005 Dec 26 5:37 AM
Hi again,
1. it is also quite possible that
this program may be called via another
program (thru submit statement for eg)
and this calling program may have SET
the parameter id so that it appears
in this program in the selection screen.
regards,
amit m.
‎2005 Dec 26 8:51 AM
You dont need to create it anywhere.
just declare it freely in you parameter declaration.
parameters: gname like bapico_group-groupname obligatory memory id cde .
(you can use your name instead of cde - max length 20 chars)
this will enable the parameter to remember previously entered value in the same session.
here is the ABAP key word docu
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.
REgards
Raja