Passing parameter with ' ' in perform
what i want to do is this:
PERFORM f_alv USING gt_fieldcat
'F_USER_COMMAND'
gt_display.
This code work, now i want to put the 'f_user_command' into a variable, i've done this:
DATA: lv_usercommand TYPE string VALUE 'F_USER_COMMAND'.
This wont work because lv_usercommand will return me F_USER_COMMAND
while what i want is 'F_USER_COMMAND' (between quote).
help please
Hi Hassim,
Please try below(use 4 quotes to get single quote) and it works. Pass lv_cmd to your perform.
DATA: lv_usercommand TYPE string VALUE 'F_USER_COMMAND'.
DATA:lv_cmd TYPE string.
CONCATENATE '''' lv_usercommand '''' INTO lv_cmd.
write: lv_cmd.
Output:
Thanks
Sri
Similar Messages
-
Pass parameter with apostrophe
Hi,
How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
Thanks in advance.
PramodIf you are using bind variables, the string should be escaped automatically. If you are not using bind variables, you should be using bind variables.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Passing parameter with apostrophe to sp
Hi,
How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
Thanks in advance.
Pramodjust use double apostrophe
SQL> var x char
SQL> exec :x := '''';
PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
SQL> print x
X
' -
Pass parameter with blank space for report ver 6
Hi,
I face a problem that i willing to pass the acno where it's value with blank space, for example ' 9' as parameter into my report, and assign it as v_acno. Inside the report query i add a where condition, acno >= :v_acno. When i run the report and pass acno without ' , it do not show any record. But when i run the report and pass acno with ' then able to show the records.
for example the value i key in
with ' = ' 9'
without ' = 9
So how i can solve it by pass the acno without ' but the record still able to show?
thks
Message was edited by:
user569740
Message was edited by:
user569740Hi Nick,
It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
dtexec Utility (SSIS Tool) document, we can see:
All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
Doubled quotation marks within quoted strings represent escaped single quotation marks.
Options and arguments are not case-sensitive, except for passwords.
So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
Regards,
Mike Yin
TechNet Community Support -
Passing parameter with space?
How does java pass parameter value with spaces? e.g. url?param1=value with space .
Is there any built in method like PHP's addslashes?
Thanks.URLEncoder.encode("value with
space","UTF-8")Also the core JSTL tag c:url will encode parameters with spaces, and of course there's the crude way of just using the + sign. -
How to write c# to pass parameter with craxddrt.dll?
any example provided to open crystal report by passing parameter
after add reference craxddrt.dll etc.
for 8.5 report[Samples|https://wiki.sdn.sap.com/wiki/display/BOBJ/ReportDesignerComponentSDKCOM+Samples].
Also check your Developer Help file...
Adn as Don said, unless you have obtained license for craxDDrt.dll, you are breaking your agreement. Use craxDrt.dll...
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Pass parameter with fscommand exec
Hi,
I am writing a text file with batch file and this batch file which is called from fscommand.
I need to pass a parameter from fscommand. Is is possible ?
Following is flash and batch file code.
Flash Source
import flash.events.Event;
bt.addEventListener(MouseEvent.CLICK,save);
function save(e:Event){
fscommand("EXEC","write.bat");
Batch file
ECHO This is my new text1 %1 > "temp.txt"
Thanks ------------------- AmitAs mentioned in one of your other posts you could use FileReference.save(...) this does require user interactive however and Flash Player 10.
Alternatively you could create a userId and save the data in an online database (but obviously this isn't local)
If you are using AIR you could create a local database
Otherwise I don't do not know of a way to achieve what you are after -
It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page?
I have discovered that using a Dynamic Page, I can read parameters passed in by referencing them as bind variables in a PL/SQL block. For example, given a parameter of "bindMe" as in "http://portal_path/object.show?p_arg_names=bindMe&p_arg_values=hello", the following code will display it:
<oracle>
declare
localVar varchar2(50) := :bindMe;
begin
htp.print('bindMe = ' || localVar);
end;
</oracle>
However, I am having trouble sending a form parameter out, in Portal format. By default, it will create the "?bindMe=hello" form, which isn't easily recognizable by Portal. I tried to setup a bind variable for an out-going parameter, but either it doesn't work that way, or I didn't set it up correctly. Any help would be appreciated.
Not interested in the JavaScript approach.I've tried using the wwpro_api_parameters.get_value function, but it doesn't work. I keep getting a "not found" error for the page when trying to pass a parameter.
Here's my code for the page. I'm trying to simply read a parameter that's passed in. Cut and paste it into your Dynamic Page, and see if you can get it to work.
<html>
<head><title>test</title></head>
<body>
You passed in
<oracle>
begin
htp.print(portal.wwpro_api_parameters.get_value('empno','a'));
end;
</oracle>
</body></html>
Now use the URL:
http://....show?empno=10
According to the API documentation (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk3gvf.htm), this should work, but it doesn't. I know I shouldn't be surprised that Oracle's documentation is inaccurate, but I'm having trouble finding a solution.
Help! -
How Pass parameter with Activex Viewer
Developper enviroment:
- Crystal Report XI
- Visual Basic 6.3
- Access 2007
Installa library : CRAXDDRT, CrystalActiveXReportViewerLib11_5
I need to pass some Value to the parameter field of my reports.
I use this code that working well to show the report and I need to add the right code to pass some parameter to the Report.
Dim CRXApplication As CRAXDDRT.Application
Dim CRXReport As CRAXDDRT.report
Private Sub Form_Load()
Set CRXApplication = CreateObject("CrystalRuntime.Application")
Set CRXReport = CRXApplication.OpenReport("C:\GR&A_Trend\R1_analisi.rpt", 0)
CrystalActiveXReportViewer4.ReportSource = CRXReport
CrystalActiveXReportViewer4.ViewReport
CrystalActiveXReportViewer4.EnableSearchControl = True
CrystalActiveXReportViewer4.Zoom (100)
End Sub
Can You help me to add the right code to pass some parameter to the Report.
Thank's
Regards
Giovanni RoiGiovanni,
I would love to help you on this however I only work under 2008 environment. Saying that, I am sure if you can re-arrange your coding you will get the desired result.
Here is the code which I used in my VS2008 to set the parameters under VB.net
'declaring all the parameter value fields
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldDefinition As ParameterFieldDefinition
Dim crParameterValues As New ParameterValues
Dim crParameterDiscreteValue1 As New ParameterDiscreteValue
Dim crParameterDiscreteValue2 As New ParameterDiscreteValue
'the two text boxes which will carry the discrete parameter value
crParameterDiscreteValue1.Value = TextBox1.Text
crParameterDiscreteValue2.Value = TextBox2.Text
crParameterFieldDefinitions = _
cryRpt.DataDefinition.ParameterFields
'Start code parameter value
crParameterFieldDefinition = _
crParameterFieldDefinitions.Item("startcode")
crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()
crParameterValues.Add(crParameterDiscreteValue1)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
'End code parameter value
crParameterFieldDefinition = _
crParameterFieldDefinitions.Item("endcode")
crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()
crParameterValues.Add(crParameterDiscreteValue2)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
Hope this helps
Regards
Jehanzeb -
Passing Parameter with a button vs. a Link
I need to pass a variable value from a jsp to an action. When I use a link, it works:
">Delete</a>
But I haven't been able to get the parameter to pass using a button. Stupid, I know, but I'm just blind to it...how do you do this?hmm ... maybe you just need something like this:
<FORM ACTION="deleteLinkageAction.do" TYPE="POST">
<INPUT TYPE="hidden" NAME="delLinkageNum" VALUE="<c:out value='${Row.LinkageNumber}' />">
<INPUT TYPE="SUBMIT" VALUE="Delete">
</FORM>success
Jan Vervecken -
Report with link that pass parameter with comma in it
Hi.
i have a Report and one of the columns is a Link to another page.
i've set that when you click on that link, it redirect you to another page and pass the value of another column on that report to a text item on that page other page.
the problem is that the value i want to pass has a comma in it and APEX split the value.
although it look like a very common question, i could not find a solution for that.
any tip?
Thanks :)Dror,
As a best practice we frequently advise against passing characters in the URL that are not numeric/simple primary key-type values, but you can pass a comma in f?p URL item values by enclosing the value between backslashes, e.g.,
f?p=&APP_ID.:1:&SESSION.::NO::P1_ENAME:\Rejuan,Dror\
Scott -
Pass parameter with product to shopping cart
I am creating a checkout for an after school program. I have a page where parents see the list of classes that their children (could be more than one)
are signed up for... I have a button by each class to add it to the shopping cart, and jquery to add a notice next to the button that the class was added to the cart after the button is pressed.
But if a parent has multiple students, I would like to have the shopping cart reflect which student the class is purchased for.
Is there any way to pass this information to the cart and order?There is no field in the order PER item (where the childs name would go I assume)... there is for the order itself, the only idea I could think of would be a summary of the items in the order and which child ordered what class.
Hope that helps. -
Isn't its possible to pass parameter with timer events
helo every one,
i have a array which i need to plot on the screen. the
plotting should have some delay in between so that we can see the
points being plotted. i tried using timer class but when the event
occurs my loop index has always reached last element. any help...
heres the code i usedi have around 1000 data so the flash chrashes as i run your
code.
any suggestions to handel such case -
Pass parameter to ssrs report in performance point webpart from textbox text
How to pass parameter to ssrs report in performance point webpart from textbox text
Please help me to solve this ...
Bikky KumarEdit your SharePoint page and add new text filter web part.
Then pass the text filter value to your performance point report using connections. Your report should include at least one parameter to get the value. More over you can set default value in text filter. -
Pass Input Parameter With Blank To SSIS Get Strange Result
Hi! I stuck for a while when executing SSIS from stored procedure with input parameter. My input value is not consistent with output one. If I pass value with blank , SSIS seems gets second part. For example , if I pass "CALL FROM SP", SSIS get
"FROM" only.
I use Execute SQL Task to store input parameter. Here is the SSIS snapshot.
And here is the sp snippet
DECLARE @Path VARCHAR(200),
@Cmd VARCHAR(4000),
@ReturnCode INT,
@QUERY_STRING VARCHAR(70),
@BATCH_NO VARCHAR(14)
SELECT @Path = 'xxxxxx'
SELECT @QUERY_STRING = 'CALL FROM SP'
--BatchNo = YYYYMMDDHHMMSS
SELECT @BATCH_NO = CONVERT(VARCHAR(10),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(8),GETDATE(),108),':','')
SELECT @Cmd = 'DTexec /FILE "' + @Path + 'Package1.dtsx" /MAXCONCURRENT 1 /CHECKPOINTING OFF /REPORTING EW ' + '/Decrypt ALCM '
+ ' /SET \Package.Variables[User::BATCH_NO].Properties[Value];' + @BATCH_NO
+ ' /SET \Package.Variables[User::QUERY_STRING].Properties[Value];' + @QUERY_STRING
My test are
input parameter
write to TESTTB correctly ?
any error?
execute SSIS in design mode
CALL FROM SSIS
YES
execute SSIS by sp
CALL FROM SP
NO
Option "FROM" is not valid.
execute SSIS by sp
CALL_FROM_SP
YES
Anyone could give me some hint ?
Thank you so much!!Hi Nick,
It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
dtexec Utility (SSIS Tool) document, we can see:
All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
Doubled quotation marks within quoted strings represent escaped single quotation marks.
Options and arguments are not case-sensitive, except for passwords.
So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
Regards,
Mike Yin
TechNet Community Support
Maybe you are looking for
-
How to see html code in a php file using CS5.5 without using testing server?
In CS5.5 when I open a page with php extention, DW does not show any html code in design view without me having to set up a testing server. In DW 8 it would open the same files and show me the html in design view. I have no need to test php code, I j
-
Pick List Will Not Print On Add with SAP B1 2007A
There appears to be a bug with printing pick lists on Add with SAP B1 2007A. I have replicated the problem with PL03, 06 and 08. Pick lists will print manually, but if you have them setup to print on add (Administration->System Initialization->Print
-
Invalid URL on iPhone 5 Safari when trying to access Google
So whenever I try to access Google on my shiny new iPhone 5 I get the following error in Safari: Invalid URL: The requested URL: "/search?q=whatever&ie=UTF-8&oe=UTF-8&hl=en&client=safari", is invalid. Reference #9.53d53f.87561672522.67d7897d Any idea
-
Icon still in dock when print job has finished
I am printing successfully to a Brother HL2700 Color Laser over a network. Can do this with Bonjour and also IP Printing. When my print job finishes the generic printer icon stays in the dock with the active triangle underneath it. This is not missio
-
BugFix request: output filename wrong if name has "."
If you make a sequence called "1080i29.97_Anamorphic" and go to export you end up getting an output name of "1080i29." (+ the file extension of that exporter). Sure would be nice if that was fixed. It bugs me all the time.