How to create a SPA/GPA parameter ?
Dear Experts,
Please help me in creating a new SPA/GPA parameter. Please let me know the procedure to this creation.
Thanks in advance.
Hi S R,
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
To fill one, use:
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID <pid> FIELD <f>.
This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
Regards,
Tanveer.
Please mark helpful answers.
Similar Messages
-
hello,i want to insert SPA/GPA parameter to the standard datasheet of sap,how can i do,thank you.
otherwise,i want to insert search help to the standard datasheet of sap,that how can i do,thank you.Go to SM30 enter the table name TPARA and click on MAINTAIN where u can give the Parameter names
OR
You can do that by going to SE80. Display the development class, right-click on the Development Class name and choose the option Create - >More - > SET / GET Parameter ID.
Regards
- Gopi -
How to create a blank field parameter for lenth 400 char
hi,
in my coading i want
selection-screen skip 1.
selection-screen begin of line.
parameters:select1 like dd02l-tabname ,
a(400) .
selection-screen end of line.
but in selection screen the lenth of a coming only up to 45 char.
i want at lease 300 char.
how to do???
thanks
navketanMax length is 132 . You cannot have more than that. The maximum visible length of the input field is between 39 and 45.
You can do like this . Create as many parameters like p1(45) ,p2(45) ,p3(45) ,p4(45) ,................till the count is 400
Then you concatenate p1 p2 p3 p4 ..... into one .
Edited by: Karthik Arunachalam on Mar 23, 2009 5:12 PM -
How to create a chart with parameter ?
hello,
i would like to know if we can create a form with some parameter to fill, and when you submit, you can create a chart.
Nowadays, we can create a chart with the assistant, but can we create a chart without it ?Hi,
This is not possible in Oracle. What u can do is create the view without the where clasue and supply the where clause at runtime.
Hope this helps...
Regards,
Ganesh R -
How to create materialized view with parameter and index ?
Hi all,
i am using oracle 11g.
i want to create parameter materialized view with two parameter (STORED_VALUE, LOV_NAME) with an index .
i have below view
CREATE OR REPLACE FORCE VIEW SR_MY_TEST(DISPLAYED_VALUE, STORED_VALUE, LOV_NAME) AS
SELECT DISPLAYED_VALUE , LOVVALUE.STORED_VALUE , lovname.lov_name
FROM (SELECT T.LOV_VALUE_ID,
T.LOV_ID,
T.ORG_ENTITY_ID,
T.STORED_VALUE,
T.DISPLAYED_VALUE,
T.ENTERPRISE_ID
FROM MS_QS_LIST_OF_VALUES_T T) lovvalue, ms_qs_lov_names lovname
WHERE lovvalue.lov_id = lovname.lov_id
AND lovvalue.org_entity_id = 1
and LOVVALUE.ENTERPRISE_ID = 100000
AND LOVNAME.ENTERPRISE_ID = 100000;
i want to create index on STORED_VALUE, LOV_NAME
Thanks
DambyNo.AFAIK, there's nothing called as "parameterized MV".
Materialized View store data like tables (and not like Views). So, does it make sense when you say - "table with parameters" ?
Could you please explain your business requirement?
What is the purpose behind those 2 parameters? -
How to create a byte[] as parameter for a Method inside the Controller
Hi Experts,
I want to create a method getCachedWebResource inside the component controller which has a parameter file which is of type byte[].
But in Netweaver Developer Studio I am not able to create this parameter with type byte[] .
When I try creating a parameter of this type (byte[]) . I get only byte from drop down and below Array type checkbox is disabled.
Please help me in this regards.
I am already highly obliged to his forum with lots of useful answers. Hoping the same this time too
Best Regards,
Roby..Robert-
There are two ways of achieving this:
1. Create a private getCachedWebResource() method inside your component controller's others section. i.e. do not create a method on the Methods tab, but instead code the method directly into the controller.
2. Create a parameter of type java.lang.Byte[ ] instead of byte[ ]. This can be done by clicking on the Browse button next to the Type and then choosing the Java Native Type radio button. In the Java Native Type input field provide java.lang.Byte. Click on Ok and you should see the Array Type option getting enabled. Check it, and in the method you should convert from java.lang.Byte to byte.
I would stick to option (1)
Cheers-
Atul -
How to create a view with parameter?
who can tell me hwo to create a view with
parameters just like a cursor?Hi,
This is not possible in Oracle. What u can do is create the view without the where clasue and supply the where clause at runtime.
Hope this helps...
Regards,
Ganesh R -
Spa gpa parameter values are not getting in badi
Dear all,
i am filling the material value in MIGO transaction tabstrip . and i written the code in MB_MIGO_BADI . i am not getting the values in migo badi i written the stmt
GET parameter id 'MAT' FIELD V_MATNR. it is giving the sy-subrc 4 . while dubuging i check the ABAP MEMORY but it is not showing the P-ID MAT in it.
kindly help.Have you checked Organization Access to ensure that no one restricted that org?
Or shipping grants and roles?
I think there are quite a few places that you can restrict access. -
How to create a parameter id on screen element
How to create a parameter id on screen element
reply urgentHi Madan,
Check this info.
Parametere Id is the one which holds the memory for the particular field. when we need to pass the the field from one screen to another use the parameter Id.
The SAP Memory is a user-specific memory area of the application server, which is accessed by all main sessions of a user session at once. ABAP programs have access to SPA/GPA parameters stored in the SAP Memory (also called SET/GET parameters).
Eg. Of how to use Set parameter
you can give value of variable (dobj) to parameter ID 'pid'. This will store value in SAP memory
SET PARAMETER ID pid FIELD dobj.
When you want to use that value stored in SAP memory
you can use GET parameter.
GET PARAMETER ID pid FIELD dobj.
To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
To fill one, use:
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID <pid> FIELD <f>.
This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
The relevant fields must each be linked to an SPA/GPA parameter.
On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
Check this link.
http://help.sap.com/saphelp_47x200/helpdata/en/f5/6a853c61c5140ee10000000a11405a/frameset.htm
Hope this resolves your query.
Reward all the helpful answers.
Regards -
How to use SET and GET parameter commands ?
Explain these two giving an example?As which is used for what?
Hi Albert,
SAP allows you to make use of SPA/GPA technique to fill the input fields of a called transaction with data from the calling program.SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
To fill one, use:
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID <pid> FIELD <f>.
This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
The relevant fields must each be linked to an SPA/GPA parameter.
On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
The following executable program is connected to the logical database F1S and calls an update transaction:
REPORT BOOKINGS NO STANDARD PAGE HEADING.
TABLES SBOOK.
START-OF-SELECTION.
WRITE: 'Select a booking',
SKIP.
GET SBOOK.
WRITE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
HIDE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
AT LINE-SELECTION.
SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
'CON' FIELD SBOOK-CONNID,
'DAY' FIELD SBOOK-FLDATE,
'BOK' FIELD SBOOK-BOOKID.
CALL TRANSACTION 'BOOK'.
The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
Cheers
Nishanth -
Oracle Lite: How to create data subsetting parameters?
I need to know:
how to create data subsetting parameters?
I need these parameters for use of a restricting predicate in an item publication.
I were looking the forum and i found topics about "how to set?" but i don't found how to create a data subsetting parameter.
I am replacing SQL server 2000 and SQL server CE by oracle 9i and oracle lite 5.0.2.
Thanks in advance.
PCIDHad problems with the parameters shown on pages webtogo in the datasubsettings section because none of them were "defined", but in sections 1.4.1.2 I found these lines:
Template: select * from master.task where CustCity = :city
Then click OK. This brings you back to the previous screen. The template query contains a variable (subscription parameter) named "city". Later, when you provision the application to a user, you will be prompted to enter the value for it.
I found out how to put a parameter to restrict registries that download to the pocket pc from each user.
Thank you very much!!! -
HOW TO CREATE 2 PARAMETER IN SINGLE LINE.
Please do NOT POST IN ALL CAPITALS
HI,
HOW TO CREATE TWO PARAMETERS IN A SINGLE LINE AND THE INPUT HAS TO BE DISPLAYED IT IN A POP UP BOX. THIS IS MY TRAINING TASK HELP ME TO SOLVE IT.
REGARDS,
SREERAM
Edited by: Matt on Mar 19, 2009 1:26 PMhi,
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) text-001.
PARAMETERS:
p_carrid TYPE spfli-carrid.
SELECTION-SCREEN COMMENT 30(10) text-002.
Parameter p_connid TYPE spfli-connid.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
Radio buttons in a single line.
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) text-001.
PARAMETERS p_rad RADIOBUTTON GROUP grp.
SELECTION-SCREEN COMMENT 30(10) text-002.
Parameter p_rad1 RADIOBUTTON GROUP grp.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1
Thanks
Sharath -
How to create a function with ref_cursor as parameter in OWB 10.1
Hi,
Can any one help me how to create a function with ref_cursor as parameter in OWB 10.1.?
Its urgent. Please help me.
Thanks,
SivHi David,
Thanks for your reply.
Before going for this function, I need to create a package in transformation node in owb module.
My package is as follows,
Create or replace package 123
type xxx is RECORD ( parameters);
type yyy is RECORD (parameters);
type aaa is table of yyy;
type bbb is REF CURSOR return xxx;
type ccc is record (parameters);
type ddd is ref cursor return eee;
END;
How can I create the above kind of package manually in OWB 10.1 (Should not to import the package)
Please help me its urgent.
Thanks,
Siv -
How to create a parameter to allow multiple selection
Hi,
I am developing report in Oracle EBusiness suite. I use concurrent program to develop the report. My question is how to create a parameter to allow multiple selection for such kind of report?
thanks
LeiI dont think, we have multiple selection in the parameters of Concurrent Program :).
-
How to create a parameter id for a user
Can anyone tell me how to create a Parameter id. I want to set some parameters for a user for that need to have parameter id.
Please tell me the steps to create the Parameter id.
KiranHi Kiran,
U can do this using the TCODE SU3.
1. Goto SU3.
2. Goto the parameters Tab.
3. Provide the Parameter ID and Parameter Value.
4. Save.
Its done!!!..
Cheers,
Krithiga.
***Pls reward points if this is useful.
Maybe you are looking for
-
Voice memos keeps emailing the same memo over and over.
I used voice memos just once two days ago. I created a short (30 secs) memo and emailed it to my yahoo account. The file keeps getting sent to my inbox. 20 times so far! I've deleted it from voice memo but it keeps getting sent. HOW DO I STOP IT! Any
-
Error in RTW for file content conversion
Hi, In my scnario there are one header,0..unbounded master,0..unbounded detail,one trailer. proxy to file scnario. when the file is finally generated that is for particulam one employee. mapping is successful. what shoul i do for when 2 employee reco
-
How can I use .webm in QuickTimePlayer?
I have tried converting to .mov and it doesn't work. I have been trying to get a video I recorded using screencastify (chrome extension) into iMovie. When I download it it is a .webm file. Thanks.
-
Trying to cancel my membership..need a customer service phone number
trying to cancel my membership..need a customer service phone number
-
I can't find a plug in that i downloaded and put in the library/audio file when I'm in garage band?