2007 May 02 5:17 AM
Hi Friends,
I don't have knowledge pertaining report writer. I need to find out what data source is in a particular SET ID. Also, how is the SET ID created and how do I view it. Please advise.
Thanks,
HN
2007 May 02 5:22 AM
<b>SET PARAMETER</b>
SET PARAMETER ID pid FIELD f.
In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See ABAP Unicode - Other Changes
<b>
Effect</b>
Writes the contents of the field f to the global user-specific SAP memory and the local transaction-specific SAP memory under the ID pid. Any existing values under the same ID are overwritten.
Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces. The SAP system description contains an overview of parameter IDs. You can also produce a list using the ABAP Workbench.
<b>Notes</b>
The global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program.
Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area.
Only store data of the types C, N, D, and T, as well as structures that consist of these types, in the SAP Memory.
You can create new parameter IDs using the ABAP Workbench.
Parameter IDs may have a namespace prefix.
<b>Example</b>
DATA REPID like sy-repid VALUE 'RSPFPAR'.
SET PARAMETER ID 'RID' FIELD REPID.
Sets the program name so it can be passed to other programs.
<b>GET PARAMETER</b>
GET PARAMETER ID pid FIELD f.
In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See ABAP Unicode - Other Changes
<b>
Effect</b>
First, the value stored under the key pid is transferred from the local SAP memory into the field f. If this key is not available in the local SAP memory, the value stored under the same key pid is transferred from the global user-related SAP memory to the field f.
A parameter ID can have up to 20 characters. You can find an overview of the keys (parameters) used in the SAP system description or the appropriate function in the ABAP Workbench.
The Return Code is set as follows:
SY-SUBRC = 0: A value was read from SAP memory. SY-SUBRC = 4: No value was found in SAP memory under the specified key.
<b>Notes</b>
The global user-related SAP memory is available to each user for the entire duration of a terminal session. For this reason, set values are retained when you leave a program.
You should not use SAP memory for temporary storage because a user's parallel sessions use the same global memory.
<b>Example</b>
Read the program name from SAP memory:
DATA : REPID LIKE SY-REPID.
GET PARAMETER ID 'RID' FIELD REPID
2007 May 02 2:59 PM
I am referring to Set ID not Set Parameter. It looks something like this ZBSA_KCASH.FILC. I want to know how this set was created and how data is assigned to it.
2007 May 02 5:27 AM
Hi,
set id and get id is for passing the values from one program to another.
using some id.check this below simple example.
program zexample100.
******************************
report zexample100.
PARAMETERS:CARRIER LIKE SPFLI-CARRID,
connect LIKE spfli-connid.
AT SELECTION-SCREEN.
SET PARAMETER ID: 'CAR' FIELD carrier,
'CON' FIELD connect.
SUBMIT ZEXAPLE111 AND RETURN.
program zexample111.
*******************************
REPORT ZEXAPLE111.
DATA:CARRID1 TYPE sy-repid.
DATA:CONNID1 TYPE sy-repid.
TABLES:SPFLI.
GET PARAMETER ID 'CAR' FIELD CARRID1.
GET PARAMETER ID 'CON' FIELD CONNID1.
WRITE:/ CARRID1,CONNID1.
rgds,
bharat.
2007 May 03 5:28 PM
2007 Sep 19 12:34 PM
Hi ,
Could u tell me how to find the set id for a pariticular existing report .
For example in Sl5 library, M038 is the report group and M038-0001 is the report name but i could not find the set id . In my system it is showing the error that set id not found.
Let me know if u have answers .
Thanks .