ABAP SQL manager
Please, advice ABAP SQL manager.
Program which allows to execute any SQL queries.
hi ;
İf you want execute T-sql in sap , u can use this program ;
Regards.
İrfan
<< cut and paste without attribution from https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7168fa07-0b01-0010-7698-87fbfc556f1d
removed. Points unassigned. >>
Edited by: Rob Burbank on Mar 27, 2009 5:35 PM
Similar Messages
-
SQL Management Pack Agent Job Unit Monitors
I am trying to utilize the SQL Agent Job Monitors included with the SQL Management Pack (page 81 of the MP guide), particularly the "Last Run Status" monitor. I have set an Override for "Generate Alerts" to True. The goal
is to have an email notification sent when any SQL Agent job fails on a specific group of computers. However, I am not familiar enough with what "Last Run Status" is actually monitoring and if it will do what I am looking for. Does this monitor
check the job status of any agent job on the target group? I tried setting up a job for it to fail, which it does fail, but it does not generate an alert. Any suggestions appreciated. Thanks.1) For monitoring SQL server job status, you can refer to the following blog
http://blogs.technet.com/b/kevinholman/archive/2011/08/05/how-to-monitor-sql-agent-jobs-using-the-sql-management-pack-and-opsmgr.aspx
2) For troubleshoot: Make sure that your SQL agent job is discovered, you may find the discovered job under Microsoft SQL Server --> SQL Agent --> SQL agent job status. By default, the discovery is disabled and you should enabled the discovery by using
override.
Roger
Thanks. So I enabled Agent Job discovery for the systems that I want. It discovered those objects. Now, I still cannot get the alerting to work. I can see the Health State of the job change to a Warning, indicating "Last Run Status" equals Failed, but
it is not generating an alert. I set Overrides (Generates Alert = True) on a Group that included one of the job objects, nothing. I also set the same Override directly on the job object and I still do not receive an alert. Any ideas? I
noticed someone in the comments mentioned in the blog you linked, a similar issue, except with the Job Duration monitor. However, he was able to get alerts to generate by setting the Override directly on the Job object and noted that it is not a
feasible solution due to the number of jobs he wants to monitor. Again, I tried the same, but still could not get alerts. That solution would not be acceptable for me either because of the number of jobs that I would have to set individual Overrides for. -
How to delete the line for 300SAP* in table USR02 in SQL Management studio
Hello
I used to delete the line for 300SAP* in table USR02 in SQL Enterprise Manager. After I could log on with pass.
I wander how to delete it in SQL Management studio. When I expand tdatabase it takes so long time and it is uncontrollableHello,
you have to delete the row by a sql statement.
Open a new query and run a script like this:
use <Your SID DB> -- e.g. use PRD
setuser 'your sid in lowercase' --- e.g. setuser 'prd'
delete from USR02 where MANDT = '300' and BNAME = 'sap*'
go
Run a complete backup before deleting data manually.
Regards
Clas -
HR-ABAP(Payroll Management)
Hi All,
I am new to HR-ABAP.
I wanted to know more about HR-ABAP(Payroll Management).
Please send me the links or documents if u have collected.
Regards,
Mihira1.http://www.atomhr.com/know_preview/Reading_Payroll_Results_with_ABAP.htm
2.http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Payroll
3. http://www.sap-press.com/product.cfm?account=&product=H967
http://www.sapdevelopment.co.uk/hr/payres_abap.htm
http://www.sapdevelopment.co.uk/hr/payres_tcode.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
you can see some Standard Program examples in this one..
http://www.sapdevelopment.co.uk/programs/programshr.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
These are the FAQ's that might helps you
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm -
I am fairly new to this whole process of working with the Microsoft development environment. Here is what I have to work with:
an NT server running Microsoft SQL 2012 - Microsoft SQL Server Standard (64-bit) 11.0.2100.60
and on my laptop (all freebie downloads):
SQL Server Management Studio 2012 ver 11.0.2100.60
Visual Studio 2012 Express for Desktop Development and
Visual Studio 2012 Shell (Integrated)
I was able to create an SSIS package in
2012 Shell (Integrated). It takes a flat file and imports it into an SQL database table. It runs successfully from within the
2012 Shell (Integrated) envrionment.
But I am having trouble figuring out how to set this up on the 2012 SQL Server. I see that one of my colleagues created an Integration Services Catalog,
and using SQL Management Studio I was able to create a folder under that called DigLic. But when I go to the Projects subfolder of DigLic and attempt to import my SSIS package, I get an error message:
"To launch the Integration Services Deployment wizard, one of the components: Integration Services, Management Tools - Basic or Business Intelligence Development Studio has to be installed by the SQL Server
2012 Standard, Enterprise, Developer, or Evaluation Edition. To install a component, run SQL Server Setup and Select the component name"
I realize that Express Versions of Visual Studio lack the full feature set of a professional version. But am I wrong in assuming that owning a server version of SQL Server 2012 gives us license to a professional
version of SQL Management Studio 2012? If so, how would I go about getting this software component installed? And I am not clear if this is something that needs to be installed on our SQL Server or if I simply need a professional version of SSMS
loaded on my laptop.
I work for a company that is fairly fractured in its repsonsibilities, so I would need to know exactly what to ask for if I need to track down any licenses that I might need and if I need to have any specific software installed on our SQL server or on my
laptop.
All helpt would be greatly appreciated.
Thanks!Arthur,
Thank you for your reply. But at this point, one of my points of confusion is what software I have available to me. I wish I had a useful central help desk to call up and just say, "Hey, load me up with all of the professional version(s) of Visual
Studio. But I do not know what we have license to. And I kind of need to know what the options are, so that I can ask a specific question of our vast buracracy.
For now, I have downloaded only free versions of Visual Studio client software. Since my company does have servers running Microsoft SQL Server, I am going to assume that we have proper licensing for those servers. But does that server license
allow me to get any professional versions of the PC client software for the various Visual Studio(s) 2012?
And if I get a professional version of Visual Studio 2012, does that do away with the three different flavors that I have right now? I have 2012 versions of SQL Server Management Studio, Visual Studio Express, and Visual Studio Shell (Integrated).
Your feedback is much appreciated.
Thanks! -
SSIS query returns no results - same query in SQL management studio works
Hello,
I'm running a very simple join to get a result set:
SELECT dbo.sap_contracts.svc_id, dbo.sap_contracts.svc_code, dbo.sap_contracts.quantity, dbo.sap_contracts.start_date, dbo.sap_contracts.end_date
FROM dbo.sap_contracts
INNER JOIN dbo.contracts
ON dbo.contracts.contract_id=dbo.sap_contracts.contract_id
where customer_name='XXXXXXXXX'
When I run this in SQL management studio it works fine and returns the list of existing "SAP contracts" in the DB (to compare to the customer's contracts actually in SAP).
In SSIS (SQL 2012) I'm using an Execute SQL task to run this query and putting the full results set into a variable of type "object". I've done very similar things before and it worked fine. With this query in SSIS I get no results at all. Changing
the variable type to "string" throws an error showing that the type being written to the variable is "DBNull" - so it seems that the query in SSIS returns no records, when in SQL management studio I get the 15 records that should be returned.
Does anyone have any ideas of what could be wrong?
Cheers
MarkThere are several connections to the DB in tasks before this one, and the task after this is a whole load of C# in a script task doing SOAP communications to the SAP ERP system to compare the result set from this SQL with the contracts in SAP ERP for the
specific customer.
Input variables are all correct (I've checked them about 15 times now with breakpoints on just about every task in the whole package) and I'm at the point of having to test everything in an attempt to see exactly what query is being sent to the SQL server
and anything else I can do to see why nothing comes back. There is a almost complete lack of debugging tools in SSIS which doesn't make life any easier (something I've heard quite a few times in various forums).
I'm tearing my hair out on this for half a day now and it's not funny any more, so apologies if I come across as a little frustrated.
Cheers
Mark -
Characters in query not recognized in silverlight SQL management tool - firefox & mac
I have several problems working with the Azure SQL management portal ( silverlight ) on my Mac ( current issue is with Firefox but I have had the same problem with Chrome ).
Problem :
Queries I type in through the online editor come back with strange syntax errors regarding missing characters etc ( see attached screen shot )
I have got this error so many times that the online portal is useless to me.Hi Marakas,
According to your description, we need to verify if you want to update the value of LookImageURL to ‘smart-1.jpg’ with two single quotes or not. If you just want to get the smart-1.jpg without any quote, you can refer to the following T-SQL statement.
update SuperFashionDB.Looks
set LookImageURL='smart-1.jpg' where id ='25D25926-2B5C-40F6-8944-F0B32822E7C0'
---the result as follows.
id URL
25D25926-2B5C-40F6-8944-F0B32822E7C0 smart-2.jpg
If you just want to get the smart-1.jpg with two quotes, you can refer to the following T-SQL statement.
update SuperFashionDB.Looks
set LookImageURL= '''smart-2.jpg''' where id ='25D25926-2B5C-40F6-8944-F0B32822E7C0'
---the result as follows.
id URL
25D25926-2B5C-40F6-8944-F0B32822E7C0 'smart-2.jpg'
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Where to do the abap sql statement in sapscript (PO)
Hi, all.
Hope anybody can guide me to find a solution.
My situation now is i have to do a purchase order in SAPSCRIPT starting from a standard po. I already found out all the related details as below:
Program SAPFM06P
FORM routine ENTRY_NEU
Form MEDRUCK
So, now the problem now is I have to add some more data on my print out PO. After figure out for some time, I don't know where to do my abap sql statement. Like example, I want to retriece some data from the ADRC table. I opened the standard program SAPFM06P to add in the some sql statement, but i dun know where should i add in. Bcz if we straight away put the related ADRC field in our sapscript, it is useless, right?
Thanks in advance.Thanks a lot.
So, how should i add in code in order to fetch the data frm ADRC by using that routine. Because i only the codes like below. I don't where should i start add in.
Form entry_neu using ent_retco ent_screen.
data: l_druvo like t166k-druvo,
l_nast like nast,
l_from_memory,
l_doc type meein_purchase_doc_print.
clear ent_retco.
if nast-aende eq space.
l_druvo = '1'.
else.
l_druvo = '2'.
endif.
call function 'ME_READ_PO_FOR_PRINTING'
exporting
ix_nast = nast
ix_screen = ent_screen
importing
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
changing
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
check ent_retco eq 0.
call function 'ME_PRINT_PO'
exporting
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
importing
ex_retco = ent_retco.
endform.
Or i come wrong place to add in any coding. Plz guide me.
Thanks in advance. -
Different row counts between SQL management studio and Visual Studio
Hi
I'm pulling data from a NAV database using a stored procedure containing a Pivot (due to bad table design), the problem is my SQL management studio is returning 53 rows of records yet Visual studio is only returning 5.
I initially copied the query from management studio into VS to create my dataset, however after returning very few records I used a stored procedure instead.
Unfortunately the same result occurred, 5 records instead of 53,
Is there something different between the two systems, perhaps VS doesn't like something in the Pivot?
Can anyone help?
Thanks
Charlie
CREATE
PROCEDURE [dbo].[PosReleaseTestPrepared]
--@Date AS DATETIME
AS
BEGIN
-- -- SET NOCOUNT ON added to prevent extra result sets from
-- -- interfering with SELECT statements.
-- SET NOCOUNT ON;
-- -- Insert statements for procedure here
DECLARE @cols
NVARCHAR(MAX),
@stmt NVARCHAR(MAX)
SELECT @cols
=
ISNULL(@cols
+
+
+ ES.Code
+
FROM
(SELECT
Code
FROM dbo.[Branston
Live$Enquiry Step]
WHERE [Enquiry Code]
=
'PREPARED')
AS ES
SELECT @stmt
=
SELECT *
FROM
(SELECT PR.[Entry No_], PR.[Mobile User Code], PR.[Failure Step Code],PR.[Item No_], PR.[Customer No_] ,[Enquiry Step Code], Value
FROM dbo.[Branston Live$Positive Release] PR
LEFT OUTER JOIN dbo.[Branston Live$Positive Release Step] PRS
ON PR.[Entry No_] = PRS.[Positive Release Entry No_]
WHERE PR.[Enquiry Code] = ''PREPARED'') PR
PIVOT
MAX(VALUE)
FOR [Enquiry Step Code] in ('
+ @cols
+
) AS P'
EXEC
sp_executesql@stmt
END
GOHi Satheesh, Latheesh
I'm using a shared data source in VS, the server and database are definitely pointed to the right location. As is the Stored procedure/SQL query. The table names "PositiveRelease" are bespoke to us and therefore are easy to recognise.
Below is one of the 5 records from the VS report:
Mobile User Code
Customer No
Item No
Failure Step Code
Depot Date
PP_GY
102980
S10586
DEPOT_DATE
17/02/14
Below is the record from the SQL management studio, you can see it is pulling through matching records.
Mobile User Code
Customer No_
Item No_
Failure Step Code
DEPOT_DATE
PP_GY
102980
S10586
DEPOT_DATE
17/02/2014 -
Abap sql convert to native sql fuction
hi expert!
exist a function can do follow things:
convert selection-screen's select-options which user key in
to oracle where condition expression
or exist one function can convert abap sql to oracle sql
thank you very muchexample:
EXEC SQL.
CONNECT TO :'DATA BASE NAME'
ENDEXEC.
IF sy-subrc EQ 0 .
TRY.
EXEC SQL .
SELECT COUNT(*) FROM <TABLE NAME>
INTO :recount
WHERE code = :itab-<FIELD>
ENDEXEC .
CATCH cx_sy_native_sql_error INTO exc_ref.
error_text = exc_ref->get_text( ).
MESSAGE error_text TYPE 'I'.
ENDTRY. -
SQL query generating data in SQL management studio but not in CUIC interface
Hello,
I'm working on a UCCE 9.0 system
I created SQL query for a report.
Whenever I run the query inside the SQL management studio, it works and generates data, but when I run it in the CUIC interface it works but generates nothing. As you can see in the below snapshot, it contains 209 records that are not being displayed.
Any help would be greatly apprciatedIs it a custom report ? Can you right click on your Custom Report and click on Edit Views. You need to check whether you have Grid Headers Listed.
Regards,
Senthil -
Hi ABAP Gurus,
Please help me in solving following ABAP SQL doubt.
In the table Zonfig there are two fields: FNAME and REQFLAG
FNAME.....REQFLAG
S1...........X
S2...........X
S3..........._
S4...........X
Other table T_Zconfig has one field : XNAME
XNAME
S1
S3
Now I have to select REQFLAG from Zconfig table for the values of field XNAME in T_Zconfig table.
That is in this case for FNAME S1 and S2 in Zonfig I need to fetch REQFLAG since in XNAME in T_Zonfig we just have S1 and S2.
Points will be surly awarded...
Thanks.Hi ABAP Gurus,
Please help me in solving following ABAP SQL doubt.
In the table Zonfig there are two fields: FNAME and REQFLAG
FNAME.....REQFLAG
S1...........X
S2...........X
S3..........._
S4...........X
Other table T_Zconfig has one field : XNAME
XNAME
S1
S3
Now I have to select REQFLAG from Zconfig table for the values of field XNAME in T_Zconfig table.
That is in this case for FNAME S1 and S3 in Zonfig I need to fetch REQFLAG since in XNAME in T_Zonfig we just have S1 and S3.
Points will be surly awarded...
Thanks. -
SQL Management Studio Installation Problems
My hard drive crash and I'm forced to use Windows 8 on my laptop for a while. Visual Studio 2012 installed okay but I cannot get the SQL Management Studio to install.
I have SQL Management Studio 2005 CD's and I've also tried to download and install the 2008 version.
But no matter what I do I cannot get one to them to install and run. It always tells me I have compatibility problems.
I'm desperate. I need this to work.
Can someone please tell me how to get SQL Management Studio 2005 32 or 64 bit to run on on this Window 8 box?
Or any version of SQL Management Studio to install and run.
BTW, I've tried running in compatibility mode.FIrst of all, please notice that SSMS 2005 will probably not fit windows 8, but I am not sure about this (the SQL
Server 2005 do not fit). Please check this link before you wasted your time :-)
https://support.microsoft.com/kb/2681562/en-us?wa=wsignin1.0
"SQL Server 2005 (the release version and service packs) and earlier versions of SQL Server are not supported on Windows Server 2012 R2, Windows Server 2012, Windows 8.1, or Windows 8. You will receive a warning in the Action Center if Windows 8.1
or Windows 8 detects an instance of SQL Server 2005."
You can use any version from 2008 and above.
* If you are using 2008 express, then you must manually install Service Pack 3, after you install SQL Server 2008 Express Edition. In any case we are not at that point since your issue is with the installation itself :-)
**** For our case *****
1. You did not post your errors log till this time :-(
You only gave us stories, and no facts
2. If you are using the free edition EXPRESS, then you probably be better with the new version SQL EXPRESS 2014.
* You are talking about the SSMS which is not the SQL Server, but just a client application. Do you have a server to connect to?
if not, then you probably wanted to install the SQL Server with the SSMS tool, no?
You can get the new version (no so new) 2014 here:
https://www.microsoft.com/en-us/download/details.aspx?id=42299
There are several files to download there:
* SQLEXPRADV: include the SQL Server and all the extra tools (including the server, Express Tools, Reporting Services, and Full Text Search, and more), is my prefered option for all developers and people that learn and use the SQL Server locally.
* SqlLocalDB: This is a different version that is much better for developers in most cases which they need to store the database in the application, it came to replace the EXPRESS "user instance".
* SQLManagementStudio: this is only the SSMS without the server!
* SQLEXPRWT: this is the basic version which include the basic tools
* SQLEXPR: this is only the server (this is what people install on production in lot of cases, when they do not want any extra tools)
*** If you have option to use windows 8.1 instead of 8, then you will feel that it is easier. I have to say that I too don't like the windows 8/8.1/2012/2012r2 but the 8.1/2012r2 brought back some of the old features and are better.
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management
This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
Thanks!
-MaxHello,
Which version and edition of the SQL Server instance did you installed on the new server machine? If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
this link.
You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
SQL Serve 2008 Feature Pack
which contains packages above.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
How to connect to SP2010 content database from SQL Management Studio?
I would like to migrate the SP 2010 Foundation content to 2013 Foundation.
Both default installations with no external SQL server.
When trying to connect from SQL Management Studio Express 2008 I get the error below.
I'm using windows authentication and my domain admin account.
tried all the steps from
this guide.
What am I doing wrong here?
Cannot connect to (local).
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061)Hi,
According to your description, my understanding is that you could not connect from SQL Management Studio Express 2008.
Please try to connect to <MACHINENAME>\SQLEXPRESS or .\SQLEXPRESS instead of (local).
A similar post for your reference:
http://nali.org/post/96133108434/sql-server-a-network-related-or-instance-specific-error
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support
Maybe you are looking for
-
What rights do I need for materialized views scheduling
Hello, Can anyone tell me what rights do I need to schedule a materialized views at 1:00 am every night? To create material views I've use the folowing script: CREATE MATERIALIZED VIEW MV_view REFRESH COMPLETE START WITH sysdate NEXT round(SYSDATE +
-
PI 7.1 Process Component
Hi All: In PI 7.1, I am seeing one new option called Process Component in ID. Is there any documentation which explain what this obect is? I search sap help and sdn...but there it doesn't give any information about this object. Also anyone created Pr
-
Can I automate the writing of XMP metadata into JPEG and TIFF files?
I have written an ASP.NET 3.5 website application on behalf of an annual international photographic competition. Entrants will be uploading digital photos in either JPEG or TIFF format. Ideally, I would write entrant identity and image title informat
-
Have just bought a Nano 4th generation ( 2nd hand) from a Ebay seller. Was an upgrade from the Ipod Shuffle , and i bought it as it holds more music as that is all i want it for , as i walk a lot. Anyway am having loads of trouble with it , e
-
Spry Data Sets and IE7 and IE8
Whiile in IE 7 or IE 8, my spry data set is not displaying the data. However, using the Firefox browser, you can see the data within the spry data set. For some reason unbeknownst to me, IE 7 and IE 8 in not allowing the spry data set to display the