Provide parameter in SQLPS
Hi Friends,
I am doing a manual work in SQLPS. I have to disable the list of users in SQL Engine everyweek monday, the login information will be in the notepad. I have to copy that notepad from network drive (\\networkserver\newfolder\users.txt) and paste in local drive
(C:\users.txt). There is a powershell script kept in (C:\newfolder\script.ps1). Then ill open SQLPS and paste (C:\newfolder\script.ps1 servername C test users). This will disable the logins in the centralized server under which the registered servers are placed.
I tried to make a small automation. I am not good in coding part ;)
Created a batch file. which copies and pastes the users.txt file from network drive and paste in local drive, then it automatically opens sql powershell (SQLPS) and here is the place where i got locked.
How can i make the SQLPS window to automatically take the parameter [ C:\newfolder\script.ps1 servername C test users ].
Find the below code in the batch file
@ECHO OFF
XCOPY \\rpdcon03\rpdapp_d\rpdapp\prod\isad\xmit\deactivations.txt c:\ /e /y
ren C:\deactivations.txt deactivations
sqlps
Hi Prashanth,
Thanks for your response. but i was asked by my SME that the parameter must be passed only from SQLPS. not from normal (windows) cmd.
that is the reason i want to do so. Since i am not aware of batch files. I tried the below.
==================
@ECHO OFF
XCOPY \\rpdcon03\rpdapp_d\rpdapp\prod\isad\xmit\deactivations.txt c:\ /e /y
ren C:\deactivations.txt deactivations
sqlpstimeout /t 10-command "c:\newfolder\script.ps1 -servername servername -users users"(I used timeout since it takes 2 to 4 seconds to open SQLPS window)Thanks.
Similar Messages
-
How to provide parameter to an encryption algorithm using PeopleSoft PET
Hi, using the PET (pluggable encryption technology) framework. how can we provide parameter values to an encryption algorithm where this algorithm itself is a parameter?
For eg., for pkcs7_encrypted_encrypt algorithm (openssl), PeopleBooks (for pt8.51) shows that the second parameter is a symmetric algorithm. But this symmetric algorithm expects 2 parameters. But how can we provide these parameters while creating the encryption profile?
Any information will be a great help!!
Regards
Srini PHi,
Any help, suggestions on this will really help.
Thanks
Srini -
HTTP Service Provider Parameter
Hi Experts
We're trying to configure SSL in PI 7.1. We have come across some documentation which states that we need to change the parameter ProtocolHeaderName in the HTTP Provider Service in NWA.
The default value currently is ClientProtocol.
What should we change the value to in order to get HTTPS/SSL working?
Any help would be much appreciated. Thanks
Regards
Riaz PatelHi Pothana
I followed your link to another link - http://help.sap.com/saphelp_nw73/helpdata/en/48/cd3b43dd6837e3e10000000a42189d/content.htm (Syntax of Parameter for Secure Communication) but i did not find any values to fill this field with.
I noticed that these links refer to confguring SSL internally for PI, but we are trying to enable the PI system to send a secure message using SSL to an external party.
Basically our scenario is as follows - ABAP Proxy --> PI --> Internal Proxy Server --> External party HTTPS web service.
When we test we get this message from the adapter engine - 'Unable to create socket'
Are there any other places i might find a list of possible values for this field in NWA?
Thanks,
Regards
Riaz -
Custom Parameter Provider in new WD template not working (NW04S SP11)
Hi,
We're attempting to use the Custom Parameter provider in our portal for many Web Dynpro iviews. In the end we will have from 100-300 SAP clients in the backendsystem and we need this functionality to dynamically route users to the correct backendsystem.
Our problem is as follows:
We intend to replace the suffix (clientnumber) for the "sap-wd-arfc-useSys" parameter in the iview property "Application Parameter" so that the value would look something like this:
sap-wd-arfc-useSys=SAP_R3_Travel: SAP Application we see that the property is there (given in red font color) so I assume it's hidden from editing. How can we edit it or display it for editing? (Btw we have sent an OSS to SAP on the matter)
One more thing:
We tested our provider service on the old template and discovered that it only triggers on the iview properties and not the provider parameter that we have registered ("ervjcopostfix"). What are we doing wrong? To me it seems that it fails in the first run (find provider in registry) and jumps forward to the component profile (e.g. Iview properties).
Why isn't the iview checking for our parameter in the registry? (of course we have verified that the parameter is in the registry and the service is up and running).
Hope you can help.
Best Regards,
Hans Petter BjørnThis appears to be resolved... I think something got corrupted on my custom client settings after the mof import. I deleted it and recreated a new client settings for our pcs. I then re-enabled the hardware inventory for these 2 mof entries.
I updated the policy and then did another hardware inventory cycle. I now see the entry in the log and in resource explorer. -
Seeburger destDelimiter parameter.
Hi All,
In AS2 Sender Channel for Module Key BIC we provide Parameter name as destDelimiter.
It says -- This should be 6 characters which represent the following separators from the EDI or flat file.
subfield, field, decimal, quoting, fieldgroup, segment
I am not able to understand this concept.
Can anybody explain me with detail example and also provide blog for the same
RegardsHi
This is an example.
~*.# \n
According the description each value means
~ -------- is the separator subfield in your EDI , usually is blank but it depend of youur EDI
* -------- is the separator elements in your EDI ,
. -------- the value for decimal
# -------- the separator of quoting
-------- the separator of field group.
\n -------- is the delimites of segments in your EDI.
Thanks
Luis. -
Operation not yet implemented when exporting crystal report to pdf
Thank you in advance,
When running the line **** export within the following code, I am getting the following error message:
"Error in File C:\DOCUME1\rborda\LOCALS1\Temp\TimeDetailTest {00DC8730-45CD-4A29-8854-C44BBD5B5230}.rpt: Operation not yet implemented."
I tried the following solution registering dlls, but still did not solve the problem above:
regsvr32 "C:\Program Files\Common Files\Crystal Decisions\2.0\bin\crtslv.dll"
regsvr32 "C:\Program Files\Common Files\Crystal Decisions\2.0\bin\ExportModeller.dll"
regsvr32 "C:\Program Files\Common Files\Crystal Decisions\2.0\bin\tslv.dll"
CODE:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.ReportAppServer
Imports CrystalDecisions.Web
Imports CrystalDecisions.ReportSource
Partial Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Private Sub btnRunReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRunReport.Click
'Try
Dim ConInfo As New CrystalDecisions.Shared.TableLogOnInfo
Dim oRptDoc As New ReportDocument
Dim expo As New ExportOptions
Dim oDiskFileDestinOption As New DiskFileDestinationOptions()
Dim strCrystalReportFilePath As String
Dim strPdfFileDestinationPath As String
Dim crParameterDiscreteValue As ParameterDiscreteValue
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldLocation As ParameterFieldDefinition
Dim crParameterValues As ParameterValues
strCrystalReportFilePath = "C:\TimeDetailTest.rpt"
strPdfFileDestinationPath = "C:\TimeDetailTest0814.pdf"
oRptDoc.Load(strCrystalReportFilePath) 'loads the crystalreports in to the memory
'Create parameter objects
'Provide Parameter values
crParameterFieldDefinitions = oRptDoc.DataDefinition.ParameterFields
crParameterFieldLocation = crParameterFieldDefinitions.Item("StartPeriod")
crParameterValues = crParameterFieldLocation.CurrentValues
crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
crParameterDiscreteValue.Value = #7/6/2008#
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
crParameterFieldLocation = crParameterFieldDefinitions.Item("EndPeriod")
crParameterValues = crParameterFieldLocation.CurrentValues
crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
crParameterDiscreteValue.Value = #8/2/2008#
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
'Export Information
oDiskFileDestinOption.DiskFileName = strPdfFileDestinationPath 'path of file where u want to locate ur PDF
oRptDoc.ExportOptions.DestinationOptions = oDiskFileDestinOption
oRptDoc.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
oRptDoc.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
oRptDoc.Export()
End Sub
End ClassI got the same error message when trying to export a report to Excel format. This happened with an existing report that had always exported with no problem, until I added a couple of new formulas. After investigating, I discovered that one of my formulas was returning a divide by zero error if a date range was too small. Once I fixed that formula, it began exporting again with no problem. I discovered this by trying to export to PDF (since all of the situations discussed here involved PDF) and that was when it returned the divide by zero error.
-
Parameterized mapping in pi 7.1
Hi All
In PI 7.1 you can make use of parameters, I want to use the import parameter to pass to my java mapping. The question is can the import parameters only be constants or is there a way to make the fields dynamic? For instance get the value from source structure and pass it to java mapping.> For instance get the value from source structure and pass it to java mapping.
When you have the value in source structure, you can access it in your Java mapping anyway, so why do you want this feature?
When you have several mapping steps, you can pass parameters from one mapping to another, and inside a BPM you can provide parameter values from container objects, but in a standard single mapping it is not possible to use dynamic values. -
Even with parameters, reports reading entire data source and then filtering
I'm working with an Oracle database (read-only access) and Crystal Reports 2008. I have created a report and added three parameters for which I have already done all necessary steps in the select expert. But when I do a Print preview of the report, and after selecting the parameter values, the report tries to read all of the data source records before the parameters are utilized by the report. In other words, if the data source has 100,000 records, the report will return (in the background) all 100,000 records and then filter among these returned records to present/display the data according to the provided parameter values. Instead, I would like it to use the parameters first so that only those records that meet the parameter value criteria are read into the report from the "get go"...Since I only have read only access to the Oracle database, I cannot write a stored procedure either...(company policy)...Can parameters be used to read in only pertaining records instead of filtering already read in records in a given report? Is there some syntax that can be entered into a Command type connection to do this?
I've tried that but I'm now getting an error on line 6...
Crystal Reports Error:
Failed to retrieve data from the database.
Details: HYooo:[Oracle][ODBC][Ora]ORA-00911: invalid character
ORA-06512: at line 6
[Database Vendor Code: 911 ]
for the following syntax: (Not sure why...any help would be extremely appreciated!)
DECLARE
varCCN CHAR(7);
varMASLOC char(3);
varWO char(10);
BEGIN
EXECUTE IMMEDIATE '
SELECT Trim(DB.D_WO.SERIAL) AS Serial,
Trim(DB.WO.WO_NUM) AS WO,
DB.WO.WO_LINE AS Line,
DB.WO_HDR.WO_DESCRIPTION,
DB.WO.ITEM,
DB.WO.REVISION,
CASE WHEN DB.WO.ITEM=' || '''\''' || 'THEN DB.WONSD.DESC_ ELSE DB.ITEM.DESCRIPTION END AS Item_Description,
DB.WO.ORD_QTY,
DB.WO.START_DATE,
DB.WO.DUE_DATE,
DB.WO_RTG.OPERATION,
DB.D_OPERNM.D_OPER_NUM_SEQ,
DB.WC.DESCRIPTION AS WC_Description,
DB.WO.CCN,
DB.WO.MAS_LOC,
DB.D_WKINST.D_WORK_INSTRUCTION,
DB.D_WORTG.NA_OPER,
DB.D_WORTG.D_OPER_GROUP,
DB.GLOVCLB.CONTENT,
DB.D_WOHDR.D_J_MACHINE,
DB.D_WOHDR.D_H_MACHINE,
DB.D_WOHDR.D_STD_ASSEMBLY,
DB.D_WOHDR.D_T_C_A_ASSEMBLY,
DB.D_WOHDR.D_T_C_B_ASSEMBLY,
DB.D_WOHDR.D_B_S_ASSEMBLY
FROM DB.WO_HDR
LEFT JOIN DB.WO
ON DB.WO_HDR.CCN = DB.WO.CCN
AND DB.WO_HDR.MAS_LOC = DB.WO.MAS_LOC
AND DB.WO_HDR.WO_NUM = DB.WO.WO_NUM
LEFT JOIN DB.D_WO
ON DB.WO.WO_LINE = DB.D_WO.WO_LINE
AND DB.WO.WO_NUM = DB.D_WO.WO_NUM
AND DB.WO.MAS_LOC = DB.D_WO.MAS_LOC
AND DB.WO.CCN = DB.D_WO.CCN
LEFT JOIN DB.WONSD
ON DB.WO.WO_LINE = DB.WONSD.WO_LINE
AND DB.WO.WO_NUM = DB.WONSD.WO_NUM
AND DB.WO.MAS_LOC = DB.WONSD.MAS_LOC
AND DB.WO.CCN = DB.WONSD.CCN
LEFT JOIN DB.ITEM
ON DB.WO.REVISION = DB.ITEM.REVISION
AND DB.WO.ITEM = DB.ITEM.ITEM
LEFT JOIN DB.WO_RTG
ON DB.WO.WO_LINE = DB.WO_RTG.WO_LINE
AND DB.WO.WO_NUM = DB.WO_RTG.WO_NUM
AND DB.WO.MAS_LOC = DB.WO_RTG.MAS_LOC
AND DB.WO.CCN = DB.WO_RTG.CCN
LEFT JOIN DB.D_WORTG
ON DB.WO_RTG.OPERATION = DB.D_WORTG.OPERATION
AND DB.WO_RTG.WO_LINE = DB.D_WORTG.WO_LINE
AND DB.WO_RTG.WO_NUM = DB.D_WORTG.WO_NUM
AND DB.WO_RTG.MAS_LOC = DB.D_WORTG.MAS_LOC
AND DB.WO_RTG.CCN = DB.D_WORTG.CCN
LEFT JOIN DB.WC
ON DB.WO_RTG.WC = DB.WC.WC
AND DB.WO_RTG.CCN = DB.WC.CCN
LEFT JOIN DB.D_OPERNM
ON DB.WO_RTG.OPERATION = DB.D_OPERNM.OPERATION
AND DB.WO_RTG.WO_LINE = DB.D_OPERNM.WO_LINE
AND DB.WO_RTG.WO_NUM = DB.D_OPERNM.WO_NUM
AND DB.WO_RTG.MAS_LOC = DB.D_OPERNM.MAS_LOC
AND DB.WO_RTG.CCN = DB.D_OPERNM.CCN
LEFT JOIN DB.D_WKINST
ON DB.D_WORTG.D_WORK_INSTRUCTION = DB.D_WKINST.D_WORK_INSTRUCTION
LEFT JOIN DB.WOLN_TXT
ON DB.WO.WO_LINE = DB.WOLN_TXT.WO_LINE
AND DB.WO.WO_NUM = DB.WOLN_TXT.WO_NUM
AND DB.WO.MAS_LOC = DB.WOLN_TXT.MAS_LOC
AND DB.WO.CCN = DB.WOLN_TXT.CCN
LEFT JOIN DB.GLOVCLB
ON DB.WOLN_TXT.OBJECT_ID = DB.GLOVCLB.OBJECT_ID
LEFT JOIN DB.D_WOHDR
ON DB.WO.CCN = DB.D_WOHDR.CCN
AND DB.WO.MAS_LOC = DB.D_WOHDR.MAS_LOC
AND DB.WO.WO_NUM = DB.D_WOHDR.WO_NUM
WHERE DB.WO_HDR.CCN=' || varCCN || ';
AND DB.WO_HDR.MAS_LOC=' || varMASLOC || ';
AND TRIM(DB.WO_HDR.WO_NUM)=' || varWO || ';';
END;
Edited by: lirizarry on Nov 6, 2009 4:37 PM -
Report Painter- How to make cost center report for Jun07-Jul08 ?
Hi Experts,
I need to make a P&L (Actual/ Plan) report for Jun 07 - Jul 08 by using Report Painter, but I'm having difficulty to make column for the next year period (2008) and some other things.
We are using K4 Fiscal Year Variant in ECC 6.0.
The layout is somehow like this:
Header : Cost Center
Actual/Plan Report
June 2007 to July 2008
Body:
Cost Element | Total Actual | Total Plan | Actual June | Plan June .................Actual July | Plan July
xxxx
xxxx
Account Group (total)
xxxx
xxxx
Account Group (total)
Grand Total
How to:
a. make the header "June 2007 to July 2008" ?
b. make the selection screen to provide parameter for June 2007 to July 2008? (e.g.: period 6 fiscal year 2007 to period 7 fiscal year 2008)
c. provide layout (rows and columns) as described above? it should provide detail cost elements and also calculate it as the total per account group, then finally the Grand Total for all of account groups.
Thank you before,
-=Meila.S=-Hi,
1. Put Year and Month as your General Selection parameters
2. In the label of the fields, if you put the parameter name with & before, it will display the value
3. If you put cost element in General selection, it will come with a group, and when you selecting the group, the report does the sub-totals automatically.
Regards,
Eli -
Hello all,
i want oto implement exception handling in report.
scenario:
i have a parameter form par.fmb
i provide parameter on form then call the report.
if there is some error generate while query of report then how to handle it, so that user get the message.
below query is used in report:
SELECT SPC_ITEM_CODE,GENERATE_ITEM_NAME(SPC_ITEM_CODE),MOD_DATE,OBU,REQ_NO,REQ_QTY,OQC_QTY,SPC_ITEM_QTY,process
, INSP_LOT_SIZE,REMARKS,INSP_STATUS
FROM OQC_DATA
WHERE (REQ_NO=:REQ_NO OR :REQ_NO IS NULL) AND trunc(MOD_DATE) BETWEEN :FROM_DATE AND :TO_DATE
AND SPC_LOCN_CODE=:LOCN_CODE
ORDER BY REQ_NO,SPC_ITEM_CODE
here: GENERATE_ITEM_NAME(SPC_ITEM_CODE) is database function.
as spc_item_code is column in OQC_DATA table, it any how there is null value in spc_item_code then error will raise, i and want to handle this error sothat ,
i found the reason.
Thanks
yash
Edited by: yash_08031983 on Jan 27, 2012 9:11 PMyash_08031983 wrote:
Hello all,
i want oto implement exception handling in report.
scenario:
i have a parameter form par.fmb
i provide parameter on form then call the report.
if there is some error generate while query of report then how to handle it, so that user get the message.
below query is used in report:
SELECT SPC_ITEM_CODE,GENERATE_ITEM_NAME(SPC_ITEM_CODE),MOD_DATE,OBU,REQ_NO,REQ_QTY,OQC_QTY,SPC_ITEM_QTY,process
, INSP_LOT_SIZE,REMARKS,INSP_STATUS
FROM OQC_DATA
WHERE (REQ_NO=:REQ_NO OR :REQ_NO IS NULL) AND trunc(MOD_DATE) BETWEEN :FROM_DATE AND :TO_DATE
AND SPC_LOCN_CODE=:LOCN_CODE
ORDER BY REQ_NO,SPC_ITEM_CODE
here: GENERATE_ITEM_NAME(SPC_ITEM_CODE) is database function.
as spc_item_code is column in OQC_DATA table, it any how there is null value in spc_item_code then error will raise, i and want to handle this error sothat ,
i found the reason.You can handle the error in two way.
First from the function, you can use exception in it and through 0(zero) if it didn't get any value.
2nd use nvl function in the sql like nvl(GENERATE_ITEM_NAME(SPC_ITEM_CODE),0) if number data type or NVL(GENERATE_ITEM_NAME(SPC_ITEM_CODE),'n/a') if char data type output.
You can also use decode.
Hope this will help you. -
Problem in selecting different drives while DB installation in Cluster.
Hello,
We are installing ECC 6.0 (AS ABAP), MS SQL 2005, Windows 2003 SR2, MSCS Cluster (One cluster, two nodes, Active/Passive)
Directory Structure
Drive / Cls Group / Used for
C: Local Disk
D: Local Disk
E: (SAN) SAPDBGRP MSSQL
F: (SAN) SAP PRD SAP Global files
G: (SAN) SAPDBGRP Datafiles
H: (SAN) SAPDBGRP Transaction log files
Q: (SAN) MSDTC Quorum Resource
- installed windows and MSCS cluster. Tested successfully.
- installed SQL Server 2005 database server software (installed on both the nodes)
- Server software installed by default in C:\program files\...
- In parameter window "Cluster Group Selection"
provided parameter value as "Data Files = E:\Microsoft SQL Server\"
(for Data file for master, model and msdb)
- installed Central Services Instance for ABAP (ASCS) on First Node
- Configured he First MSCS Node (where it created the SAP cluster group)
- Installing the Database Instance (Resources in SAPDBGRP cluster are E: G: H: drives)
- Parameter Window "MS SQL Server > Database Files"
- Path for Datafiles - Default E: Changed to G:
- Path for Tran log - Default E: Changed to H:
If default E: drive is selected, goes to next step
If changed to G: or H: drive, error message comes <b>"Caught EKdException in Modulecell: no Element found"</b>
Installation Log File (last 8 to 10 statements are displayed hear)
=========================================================
INFO 2007-04-06 17:25:57
Execute step dAskForFilesConfig of component
|NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB
|ind|ind|ind|ind|2|0|MssDbLayout|ind|ind|ind|ind|3|0.
ERROR 2007-04-06 17:26:44
FKD-00037 Query did not return a result.
ERROR 2007-04-06 17:26:44
FKD-00038 Query did not return a result.Select attribute NeededSpace, statement: WHERE Name = 'G'
ERROR 2007-04-06 17:26:55
FKD-00037 Query did not return a result.
ERROR 2007-04-06 17:26:55
FKD-00038 Query did not return a result.Select attribute NeededSpace, statement: WHERE Name = 'G'
ERROR 2007-04-06 18:02:29
FKD-00037 Query did not return a result.
ERROR 2007-04-06 18:02:29
FKD-00038 Query did not return a result.Select attribute NeededSpace, statement: WHERE Name = 'H'
ERROR 2007-04-06 18:02:37
FKD-00037 Query did not return a result.
==========================================================
Please guide.
Ghanshyam
Hello,
Problem solved, G: & H: were added to the SQL Server resources dependency.
Thanks for everybody's help.
Message was edited by:
Basis TeamHi,
My problem of Drive selection got solved after I put drives (E,F,G) in db cluster group.
I did not face any problem which you have mentioned. Following are the cluster related parameters required while installation, (other than the normal parameters)
Installation Steps (MSCS Cluster,One Cluster, Active-Passive)
SQL Server S/w Installation
Automatically installs on Both the Nodes.
Database Instance
Before starting DB instance, check SQL Server for Disk Recources
Manually add the disk G: & H: to Resources Type to SQL Server if not available Check Dependencies
in SQL Server resource: E:, G:, H:
Profile directory :
SAPCIGRP\sapmnt\prd\sys\profile
Local MSSQL Server : sqlcluster
Path for Datafiles : G:
Path for Logfiles : H:
TempDB drive : E:
Configure the MSCS Node-B
Move resources to Node-B
Instance Type : AS ABAP
SAPSID : PRD
Instance Number : 00
Virtual Host Name : SAPCIGRP
Support of multiple SAP : No
Enqueue Replication Server Node-A
SAPSID : PRD
Instance Number : 00
Virtual Host Name : SAPCIGRP
ER Instance Number : 10
ER Drive : D:
Enqueue Replication Server Node-B
Move resources to Node-B
SAPSID : PRD
Instance Number : 00
Virtual Host Name : SAPCIGRP
ER Instance Number : 10
ER Drive : D:
Central Instance on Node-A
Move resources to Node-A
Check the permissions of SAPMNT share
Profile directory :
SAPCIGRP\sapmnt\prd\sys\profile
Central Instance Number : 01
Host Transport Dir : SAPCIGRP
DDIC password different : No
SOLMAN Key : XXXXXXXXXXXX
Dialog Instance on Node-B
Move resources to Node-B
Profile directory :
SAPCIGRP\sapmnt\prd\sys\profile
Central Instance Number : 01
Other are regular parameters which you provide for standard installation. I could successfully install SAP in MSCS cluster.
<b>IMP: You Must upgrade your kernel to DW105, or your failover / failback will not work.</b>
Ghanshyam -
Please give me some knowledge ...
I've found some structure of this ...
if not fa_cache_pkg.fazcsob
(X_set_of_books_id => h_set_of_books_id,
X_mrc_sob_type_code => h_reporting_flag) then
raise FND_API.G_EXC_UNEXPECTED_ERROR;
end if;
I've confused of operator "=>" what does its means.
[ => is greater than ... only or X_mrc_sob_type_code passed valued to h_reporting_flag or any others meaning. ]
Thank you ^O^=> is relating to referenced parameters
For example, if you have a procedure that takes 3 parameters...
PROCEDURE myproc (p_1 IN VARCHAR2, p_2 IN VARCHAR2, p_3 IN VARCHAR2) IS ...then in this case you would need to provide all 3 parameters as none of them have defaults. This can be done by passing the parameters as positional parameters...
myproc('param1', 'param2', 'param3');or as referenced parameters...
myproc(p_1 => 'param1', p_2 => 'param2', p_3 => 'param3');with referenced parameters the position doesn't matter as you are referencing them by name ...
myproc(p_3 => 'param3', p_1 => 'param1', p_2 => 'param2');which is just as valid.
Also, if you procedure is defined with default values...
PROCEDURE myproc (p_1 IN VARCHAR2 := 'noparam', p_2 IN VARCHAR2 := 'noparam', p_3 IN VARCHAR2 := 'noparam') IS ...Then if you use positional parameters and you wanted to provide parameter 3 then you would have to specify parameters 1 and 2 as well...
myproc(NULL, NULL, 'param3');but now p_1 and p_2 will have values of null rather than the default values as that is what you passed them...
on the other hand if you use referenced parameters..
myproc(p_3 => 'param3');then p_1 and p_2 will adopt the default values of 'noparam' as defined in the procedure and only p_3 has been set by the calling code.
Hope that explains it for you
;) -
Filter report on Logged in user name
Hi
Very sorry for very basic question but unable to find answer for this anywhere.
If I am designing any report in Power BI then how can I provide parameter of current logged in user to the Power Query?
I want to design personalized reports as per the roles of current user in database structure.
Please suggest the way on this.
Regards
SomnathThanks for the suggestion. Currently the Apps version is 11.5.10.2 only.
Can you please help me finding out how the same could be achieved?
Thanks,
Viral. -
ALV Object Model - Merged Cells
Hi all
When utilizing ALV Object Model, how do I display cells as merged when they have the same content?
Can someone help me out?
Thank you very much!Hello Yun
In dialog cells are merged automatically as soon as you sort the column containing repeated values.
Thus, when you call method SET_TABLE_FOR_FIRST_DISPLAY you should additionally provide parameter IT_SORT with the appropriate entries.
For example, you want to sort your ALV list according to COL_A (1st) and COL_B (2nd):
ls_sort-spos = 1.
ls_sort-fieldname = 'COL_A'.
ls_sort-up = 'X'. " sort ascending
append ls_sort to lt_sort.
ls_sort-spos = 2.
ls_sort-fieldname = 'COL_B'.
ls_sort-up = 'X'. " sort ascending
append ls_sort to lt_sort.
Regards
Uwe -
Re: ALV Grid Application Tool Bar
Dear Experts,
I am displaying a report in ALV grid. In the application tool bar. 'save layout' and 'change layout' icons were missing.if i want to put those icons on application tool bar where i have to change? if anybody knows pls. help on this.
Thanks in advance.
Thanks and regards,
Harish babuHello Harish
The parameter I_SAVE (of method SET_TABLE_FOR_FIRST_DISPLAY) can have several setting(<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/bf/3bd1369f2d280ee10000009b38f889/content.htm">ALV Grid Control</a>):
I_SAVE
Determines the options available to the user for saving a layout:
'X': global saving only
'U': user-specific saving only
'A': corresponds to 'X' and 'U'
SPACE: no saving
In addition, you have to provide parameter IS_VARIANT:
IS_VARIANT
Determines the layout to be used for displaying the output table. If you use this parameter, you must at least fill field REPORT of the structure of type DISVARIANT
Regards
Uwe
Maybe you are looking for
-
Tocat/JSP/The system cannot find the file specified
Hi, I am trying to read a file(test.txt) which is in webapps/test/directory. The jsp to read the file is also in the same directory, but my tomcat server is not able to find that file. Where should this file(test.txt) be located.. Lets say the jsp na
-
ERROR WITH ITUNES SETUP ASSISTANT
My iTunes got corrupted and I had to delete and re-install, when I did that I now get the Setup assistant every time I click on iTunes. I attempted going to my preferences to see if there was anyway to remove but unable to locate. Also, any changes I
-
Hi guys, Can u tell me what exactly is a JAD file?Can i exectue a JAD file directly or do i always need KToolbar to exectue it? cheers, Sachin
-
Hello experts, 1. I created a web template 2. In report agent -I did a setting for the web template 3. I scheduled the setting in the package. 4. the setting was for data calculation Excel sheets HTML pages Then I checke
-
SELECT b.*,tpi.* FROM a LEFT JOIN b tpi1 ON(a.ord_num = tpi1.ord_num AND tpi1.order = 1) LEFT JOIN b tpi ON(a.order_num = tpi.order_num AND tpi1.order <> 1*) where a.order_num = 2512 AND a.item_seq = 2616 Here i have joined the table b with the order