How to Get Supervisor Id In Headcount Report
Hi Experts,
I am working On Headcount Reports.
I need to get the Supervisor Id to my Report.
By Using HRP1001 am getting the Supervisor ID
by Passing S to OTYPE,
Position to OBJID.
002 to RELAT.
My Problem is If the Supervisor record gets Deleted from the Database(when he/she resigns),we need to Get the Immediate Supervisor to Supervisor Id.
will it be automatically Updated in the Infotypes or we need to Implement any logic.
Your Suggestions will be highly Appreciated.
Thanks,
-Vijay
hi vijay try the below code,
and one thing to tell you if approver resigns it means tht person assigned to tht position had left but tht position exists so u need to check if the approver position is empty or assigned,if empty then u can find out the approver's manager from tht position and then find the person (top approver) assigned to tht position.
Please change or code the IF-Else condition accordingly,it wil serve ur purpose -
DATA: ls_sobid TYPE sobid, "approver's position
ls_sobid1 TYPE sobid, "will contain PErnr of approver
ls_sobid2 TYPE sobid, "approver's manager position
ls_sobid3 TYPE sobid. "will contain pernr of approver's manager
data: i_plans like pa0001-plans.
i_plans = '50019473'.
SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid
WHERE otype = 'S'
and plvar = '01'
AND objid = i_plans
AND endda >= sy-datum
AND begda <= sy-datum
AND rsign = 'A'
AND relat = '002'.
IF sy-subrc NE 0.
message e000(000) with 'no approver'.
else.
SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid1
WHERE otype = 'S' "position
AND plvar = '01'
AND objid = ls_sobid
AND endda >= sy-datum
AND begda <= sy-datum
AND rsign = 'A'
AND relat = '008'.
if sy-subrc ne 0.
SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid2
WHERE otype = 'S'
and plvar = '01'
AND objid = ls_sobid
AND endda >= sy-datum
AND begda <= sy-datum
AND rsign = 'A'
AND relat = '002'.
SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid3
WHERE otype = 'S' "position
AND plvar = '01'
AND objid = ls_sobid2
AND endda >= sy-datum
AND begda <= sy-datum
AND rsign = 'A'
AND relat = '008'.
endif.
ENDIF.
write: 'Approver',ls_sobid1,' ','Approver Manager',ls_sobid3.
Similar Messages
-
How to get the value from another report Customizes Form
Dear all,
I create a report such as
select * from mytable.table1
where field1 = :bind_variable
I create a menu to run this Customized Form and user have to select the bind_variable values. So I have another report created which also want this bind_variable as it WHERE Clause. But I don't want my user to key the same bind variable twice. They can just same the Customized Form and run for both report.
Could anybody know how to get the bind_variable on 1st report and used by the 2nd report.
Thank you very much.
Best Rgds,
SL VoonHi,
are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
regards
Cornelia -
How to get the usage of SSRS reports in project server 2010
Hi
Can any body tell me how to get the usage of the SSRS reports in Project Server 2010.
Thanks
Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.Hello,
See the links below on how to get the usage for SSRS reports:
http://sqlbadboy.wordpress.com/2013/09/12/reporting-services-reports-whos-using-them/
http://www.mssqltips.com/sqlservertip/1908/analyze-report-execution-and-usage-statistics-in-sql-server-reporting-services/
http://www.mssqltips.com/sqlservertip/1306/how-to-know-what-reporting-services-reports-are-being-used/
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
How to get the output of the report in pdf format
how to get the output of the report in pdf format?
Thanks in advance,
madan.Refer these links
http://www.sap-img.com/bc037.htm
http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF -
How to get the stock of STO Report with suppling Plant/receiving Plant/open
How to get the stock of STO Report with suppling Plant/receiving Plant/open/close qty.
MB5T gives you Details of STO which have stok in transit.
ME2W gives you supplying plant wise STO details. Also in ME2W , in the ALV report output, if you select the "delivery Schedule line" icon , you will get details such as , STO qty, Issued qty , undelivered qty etc. -
How to get last column used in report sorting?
hi,
how to get last column used in report sorting?
simonHow to identifiy which column was sorted having different reports on page?
just use:
'YOUR_STATIC_REGION_NAME' instead of p_static_id,
:APP_ID for p_app_id,
:APP_PAGE_ID for p_page_id
:APP_USER_ID for p_app_user.
and dont forget to grant SELECT on #OWNER# to APEX_030200.WWV_FLOW_PREFERENCES$
good luck and thank you Juergen.Schuster
Simon -
How to get actual error from Crystal Report
We are using Crystal report in web service.
We faced some problem due to crystal report unexpected error.
Refer the below error message.
Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)
at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)
at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()
at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()
at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()
at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()
at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)
at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)
at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)
at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()
How we get the actual error from crystal report?
Thanks in AdvanceSame as
crystal report unexpected error in Web service (IIS)
Closing this thread.
Ludek -
How to get select query for crystal report in c# code
In C#, (Visual Studio 2008 ) I need to use the native Crystal Reports objects to get the complete SQL statement as it appears when you view it in Crystal Reports.
In Crystal Reports 12.0, Go to "Database > Show SQL Query..." ... That is what I need to get via C# code. I can get bits and pieces of parameter info etc but I just want the whole SQL statement.
How to get this?Hi Ganesh,
It's simple to use RAS, include the assemblies and use this to open your report document:
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.ReportAppServer.DataSetConversion;
using CrystalDecisions.ReportAppServer.DataDefModel;
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
ISCDReportClientDocument rptClientDoc;
To open the report use:
object rptName = openFileDialog.FileName;
rpt.Load(rptName.ToString());
rptClientDoc = rpt.ReportClientDocument;
Then to get the SQL set the log on info:
rptClientDoc.DatabaseController.LogonEx("10.50.212.77,1433", "xtreme", "sa", "password");
GroupPath gp = new GroupPath();
string tmp = String.Empty;
rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
Thank you
Don -
How to get two empty columns in reporting?
Hi Experts,
How to get Two empty columns in a report, i have taken a formula and i have given '=0' in the formula box after executing the query that two columns containing zero's, but i don't want zero's, i want to display empty columns.
pl help to do this,
thanks & regards
venaktHi
In the Query designer go to Properties and Select Active n Zero Supression
also select Supress Zeros from the drop down.
Regards
M.A -
How to Get last page number in report 10g
I want to get last page number in report but Current page number found from srw.get_page_num(n)
but i want to get last page number for conditional formating like this
srw.get_page_num(current_page)=last_page
pls help me how can get last page number;
pls help;
thanks in advanced;Hi,
you can use the Property Print Object On for this.
Regards
Rainer -
How to get Variable name in output (Report Writer/Painter)
Hello Experts,
We have maintained one Repot by using Report Writer, this is the report for Cost center (periodic report), input fields are Fiscal year, Period and Cost Center. In out put system will display the selected cost center balances for individual cost element.
Output: Excel format: in first sheet it will display balance of the total cost centers selected and from second sheet it will display individual cost center balances.
My requirement is in the output system is displaying sheet name as CC1,CC2,CC3.......CC50, but my user want to display this as Cost Center 1, Cost Center 2, Cost Center 3...... like this. we have maintained variable name as Cost center 1, cost center 2....., but why system is displaying as CC1,CC2,.... .
Please help me how to get the full description as sheet name in excel.
Thanks ......SudheerHello Everybody,
Please help me how to get variable name in Report Painter outout ( Excel format ).
Thanks -
How to get multiselect picklist values in report
Hello,
MSP's are not supported in reports, could anybody help me how to get the MSP value's in report, because we are using around 10 msp's in Opportunity, we need to get these values in reports. Helpful suggestions are welcome and thanks in advance.
Thanks
SubbuIn Analytics it is possible , but as per my knowledge the analytics are refreshed after 24 hours not at realtime. correct me if i am wrong-:)
Subbu -
How to get a key text in report
HI
in my report i am unable to get a key text
the report is showing the vendor or material by number not by name
can anyone help...
thanx ,
UMAR NAYAB.Hello,
when you mentioned:
when you run the universe query, on the left side, expand the L01 <Charateristic> and drag in the L01 <Characteristic> Key which is the green colored icon along the L01 <Char>. This will get you the key and the text in your webI
Are you doing this in the webi report after you refresh it?
Or are you doing this in BEX?
I am able to get EITHER the text or key to display.
I get the text when i have the properties set to Text & Key and Medium length for the Text View.
Any other selection for text View, like std or long, result in seeing the key instead of the text.
Thanks,
Bill -
How to get Query Names in webi Report ??
Hello All,
I'm trying to pull data from different data sources like accdb,Oracle,DB2,MDB,xls files . I pulled the data successfully by merging all queries.But I was stuck with getting the query names in report ...can some one guide me in this ?? I used data provider () but getting 1 query name along with my universe name.
thanks in advance,
Lavanya.Hi Lavanya,
Are you interested to know the data sources of the queries or just the query names?
To know the Query Name, you can use DataProvider( ) function; however, in case you wish to know the data source, you can use Connection( ) function.
Regards,
Yuvraj -
How to get the size of the report using RE sdk or query?
Hi,
I want the size of report using RE sdk or using query.
How can i get this?
Please help
Thanks in advance
Amol MaliThanks for the reply.
I want the File Size
How can i get it?
Thanks in advance
Amol Mali
Maybe you are looking for
-
ITunes will not stop verifying
I have an iPhone4 with the latest iTunes (10.1.0.54) and when I plug my iPhone4 in, it will not stop verifying. I used to have this problem if I canceled a sync. It would verify the phone the next time I plugged it in. I did that this time. I cancele
-
FAQ The Performance Tester is currently unable to run a speed test for your broadband connection. Please try again shortly, however if this problem persists, raise the issue with your service provider. I've had this message for well over a week so I'
-
Can I use lightroom as an external editor from Aperture?
Could I use Lightroom to do edits on an Aperture file and then return the edited file to Aperture for saving or editing further?
-
when i am suppose to upgrade my apps it starts and then halfway though it stops and tells me to keep retrying but it never finished the upgrade
-
My ERP 2005 - Is it only UNICODE version ???
I heard that my ERP 2005 which is based on successor version of NW 04 and which is scheduled to release in Oct 2005 only supports Unicode installations ? I can't find any information on this on SAP website or SAP service market place to validate ? On