Table to find spool details
hello Gurus!
I have to list which Invoice has been printed out and which one has been mailed and to whom .
could you please sugggest me how to proceed with this, i mean which table is it that could store theese spool details,
all suggestion would be rewarded.
Thank you .
Hi,
All the spool requests stored in the table TSP01.
regards,
ravi shankar reddy
Similar Messages
-
Table to find spool no and corresponding program name
Is there any Table to find spool no and corresponding program name. I know one table that will give only for background jobs TBTCP table. I want fore ground also
table: TSP01
Way to fetch spool number is:
CONCATENATE sy-repid+0(9)
sy-uname+0(3)
INTO lc_rq2name.
SELECT rqident FROM tsp01
INTO TABLE li_spool
WHERE rq2name EQ lc_rq2name
AND rqowner EQ sy-uname.
*** Sort spool table so that latest spool entry is at top
SORT li_spool STABLE BY rqcretime rqident DESCENDING.
*** Read the first line of the table to get the spool number
READ TABLE li_spool INTO lwa_spool INDEX 1.
lv_spoolid = lwa_spool-rqident.
ags. -
Hi
COuld you please let me know the name of the Table to find out the Spool Details ?The way Spool is shown using Transaction "SM37", same way I am interested to see the spool using Table .
Thanks
JIgarThanks a lot for your quick response.
Would like to add one more query here.
I have got 12 different jObs. And I would like to know their Spool numbers. The ideal procedure is to open up spool using SM37 and then get the spool request number.
But is there any table which contains the relationship between JOb and its spool number / details ? -
From which table we can find account details?
Hi,
I'm working on Inventory reports.
I have a scenario where I need to display the account details based on "REFERENCE_ACCOUNT" column in table MTL_TRANSACTION_ACCOUNTS.
From which table we can find account details?
Tahnkyou
BalaKrishnaHi Bala
You can user tab table which have the information of every table exist in your schema.
you can use select from tab where tname like '%ACCOUNTS%'*
i think it will help u. -
How to find Spool number for a 2 steps background job.
Hi All,
How to find spool number (and also the background job name ) for a 2 steps background job.
in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
Thanks,
Shiva.Which one creates the spool? (first one I guess)
What kind of spool? (WRITE, sapscript, smartform, pdf...)
Do you use special statements like NEW-PAGE, or other things?
Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...) -
How to Send Internal table to SAP Spool using Function Modules or Methods?
Hi Experts,
How to Send Internal table to SAP Spool using Function Modules or Methods?
Thanks ,
KiranThis is my code.
I still get the no ABAP list data for the spool, even tho I can see it sp01?
REPORT Z_MAIL_PAYSLIP.
* Declaration Part *
tables: PERNR, PV000, T549Q, V_T514D, HRPY_RGDIR.
infotypes: 0000, 0001, 0105, 0655.
data: begin of ITAB occurs 0,
MTEXT(25) type C,
PERNR like PA0001-PERNR,
ABKRS like PA0001-ABKRS,
ENAME like PA0001-ENAME,
USRID_LONG like PA0105-USRID_LONG,
end of ITAB.
data: W_BEGDA like HRPY_RGDIR-FPBEG,
W_ENDDA like HRPY_RGDIR-FPEND.
data: RETURN like BAPIRETURN1 occurs 0 with header line.
data: P_INFO like PC407,
P_FORM like PC408 occurs 0 with header line.
data: P_IDX type I,
MY_MONTH type T549Q-PABRP,
STR_MY_MONTH(2) type C,
MY_YEAR type T549Q-PABRJ,
STR_MY_YEAR(4) type C,
CRLF(2) type x value '0D0A'.
data: W_CMONTH(10) type C.
data: TAB_LINES type I,
ATT_TYPE like SOODK-OBJTP.
data: begin of P_INDEX occurs 0,
INDEX type I,
end of P_INDEX.
constants: begin of F__LTYPE, "type of line
CMD like PC408-LTYPE value '/:', "command
TXT like PC408-LTYPE value 's', "textline
end of F__LTYPE.
constants: begin of F__CMD, "commands
NEWPAGE like PC408-LINDA value '',
end of F__CMD.
data: P_LIST like ABAPLIST occurs 1 with header line.
*data: OBJBIN like SOLISTI1 occurs 10 with header line,
data: OBJBIN like LVC_S_1022 occurs 10 with header line,
DOCDATA like SODOCCHGI1,
OBJTXT like SOLISTI1 occurs 10 with header line,
OBJPACK like SOPCKLSTI1 occurs 1 with header line,
RECLIST like SOMLRECI1 occurs 1 with header line,
OBJHEAD like SOLISTI1 occurs 1 with header line,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_buffer type string,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname.
data: file_length type int4,
spool_id type rspoid,
line_cnt type i.
*-------------------------------------------------------------------* * INITIALIZATION *
OBJBIN = ' | '.
append OBJBIN.
OBJPACK-HEAD_START = 1.
data: S_ABKRS like PV000-ABKRS.
data: S_PABRP like T549Q-PABRP.
data: S_PABRJ like T549Q-PABRJ.
* SELECTION SCREEN *
selection-screen begin of block BL1.
parameters: PAY_VAR like BAPI7004-PAYSLIP_VARIANT default 'ESS_PAYSLIPS' obligatory.
selection-screen end of block BL1.
START-OF-SELECTION.
s_ABKRS = PNPXABKR.
S_PABRP = PNPPABRP.
s_pabrj = PNPPABRJ.
w_begda = PN-BEGDA.
w_endda = PN-ENDDA.
get pernr.
* "Check active employees
rp-provide-from-last p0000 space pn-begda pn-endda.
CHECK P0000-STAT2 IN PNPSTAT2.
* "Check Payslip Mail flag
rp-provide-from-last p0655 space pn-begda pn-endda.
CHECK P0655-ESSONLY = 'X'.
rp-provide-from-last p0001 space pn-begda pn-endda.
* "Find email address
RP-PROVIDE-FROM-LAST P0105 '0030' PN-BEGDA PN-ENDDA.
if p0105-usrid_LONG ne ''.
ITAB-PERNR = P0001-PERNR.
ITAB-ABKRS = P0001-ABKRS.
ITAB-ENAME = P0001-ENAME.
ITAB-USRID_LONG = P0105-USRID_LONG.
append itab.
clear itab.
endif.
"SY-UCOMM ='ONLI'
END-OF-SELECTION.
*------------------------------------------------------------------* start-of-selection.
write : / 'Payroll Area : ', S_ABKRS.
write : / 'Payroll Period/Year : ',STR_MY_MONTH,'-',STR_MY_YEAR. write : / 'System Date : ', SY-DATUM.
write : / 'System Time : ', SY-UZEIT.
write : / 'User Name : ', SY-UNAME.
write : / SY-ULINE.
sort ITAB by PERNR.
loop at ITAB.
clear : P_INFO, P_FORM, P_INDEX, P_LIST, OBJBIN, DOCDATA, OBJTXT, OBJPACK, RECLIST, TAB_LINES.
refresh : P_FORM, P_INDEX, P_LIST, OBJBIN, OBJTXT, OBJPACK, RECLIST.
* Retrieve Payroll results sequence number for this run
select single * from HRPY_RGDIR where PERNR eq ITAB-PERNR
and FPBEG ge W_BEGDA
and FPEND le W_ENDDA
and SRTZA eq 'A'.
* Produce payslip for those payroll results
if SY-SUBRC = 0.
call function 'GET_PAYSLIP'
EXPORTING
EMPLOYEE_NUMBER = ITAB-PERNR
SEQUENCE_NUMBER = HRPY_RGDIR-SEQNR
PAYSLIP_VARIANT = PAY_VAR
IMPORTING
RETURN = RETURN
P_INFO = P_INFO
TABLES
P_FORM = P_FORM.
check RETURN is initial.
* remove linetype from generated payslip
loop at p_form.
objbin = p_form-linda.
append objbin.
line_cnt = line_cnt + 1.
endloop.
file_length = line_cnt * 1022.
* create spool file of paylsip
CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'
EXPORTING
i_file_length = file_length
IMPORTING
e_spoolid = spool_id
TABLES
it_textdata = objbin.
IF sy-subrc EQ 0.
WRITE spool_id.
ENDIF.
DESCRIBE table objbin.
DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = spool_id
NO_DIALOG = ' '
DST_DEVICE = 'MAIL'
* PDF_DESTINATION =
* IMPORTING
* PDF_BYTECOUNT = l_no_of_bytes
* PDF_SPOOLID = l_pdf_spoolid
* LIST_PAGECOUNT =
* BTC_JOBNAME =
* BTC_JOBCOUNT =
TABLES
PDF = pdf
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
OTHERS = 12
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*Download PDF file C Drive
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\itab_to_pdf.pdf'
filetype = 'BIN'
TABLES
data_tab = pdf.
* Transfer the 132-long strings to 255-long strings
* LOOP AT pdf.
* TRANSLATE pdf USING ' ~'.
* CONCATENATE gd_buffer pdf INTO gd_buffer.
* ENDLOOP.
* TRANSLATE gd_buffer USING '~ '.
* DO.
* it_mess_att = gd_buffer.
* APPEND it_mess_att.
* SHIFT gd_buffer LEFT BY 255 PLACES.
* IF gd_buffer IS INITIAL.
* EXIT.
* ENDIF.
* ENDDO.
OBJHEAD = 'Objhead'.
append OBJHEAD.
* preparing email subject
concatenate W_ENDDA(6)
' Payslip-'
ITAB-ENAME+0(28)
ITAB-PERNR+4(4) ')'
into DOCDATA-OBJ_DESCR.
DOCDATA-OBJ_NAME = 'Pay Slip'.
DOCDATA-OBJ_LANGU = SY-LANGU.
OBJTXT = 'Pay Slip.'.
append OBJTXT.
*prepare email lines
OBJTXT = DOCDATA-OBJ_DESCR.
append OBJTXT.
OBJTXT = 'Please find enclosed your current payslip.'.
append OBJTXT.
* Write Attachment(Main)
* 3 has been fixed because OBJTXT has fix three lines
read table OBJTXT index 3.
* DOCDATA-DOC_SIZE = ( 3 - 1 ) * 255 + strlen( OBJTXT ).
clear OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = 3.
OBJPACK-DOC_TYPE = 'RAW'.
append OBJPACK.
* Create Message Attachment
ATT_TYPE = 'PDF'.
describe table OBJBIN lines TAB_LINES.
read table OBJBIN index TAB_LINES.
* OBJPACK-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + strlen( OBJBIN ).
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = ATT_TYPE.
OBJPACK-OBJ_NAME = 'ATTACHMENT'.
OBJPACK-OBJ_DESCR = 'Payslip'.
append OBJPACK.
* Create receiver list refresh RECLIST.
clear RECLIST.
RECLIST-RECEIVER = itab-USRID_long.
translate RECLIST-RECEIVER to lower case.
RECLIST-REC_TYPE = 'U'.
append RECLIST.
* Send the document
*SO_NEW_DOCUMENT_ATT_SEND_API1
call function 'SO_DOCUMENT_SEND_API1'
exporting
DOCUMENT_DATA = DOCDATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
tables
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = pdf
CONTENTS_TXT = OBJTXT
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
RECEIVERS = RECLIST
exceptions
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
others = 8.
if SY-SUBRC NE 0.
ITAB-MTEXT = 'Message Not Sent to : '.
else.
ITAB-MTEXT = 'Message Sent to : '.
endif.
* else.
* ITAB-MTEXT = 'Message Not Sent to : '.
* endif.
else.
"SY-SUBRC Not = 0
ITAB-MTEXT = 'Payroll data not found : '.
endif.
"end of SY-SUBRC = 0.
modify ITAB.
endloop. "end loop at ITAB
sort ITAB by MTEXT PERNR.
loop at ITAB.
at new MTEXT.
uline.
write : / ITAB-MTEXT color 4 intensified on.
write : / 'Emp. Code' color 2 intensified on,
12 'Emp. Name' color 2 intensified on,
54 'Email ID' color 2 intensified on.
endat.
write : / ITAB-PERNR, 12 ITAB-ENAME, 54 ITAB-USRID_LONG.
endloop. -
Create Spool from Internal table & converrt the spool to PDF
Hi All,
My requirement is take data from a table and find amount specific to each Vendors . So I took all the data into ITAB and do all the calculation. Later after calculation I have to create a spool from this ITAB and this spool have to convert to PDF. Later this PDF have to seend via email.
To convert the internal table to Spool , I used
LOOP AT t_summ INTO wa_summ.
w-amount = wa_summ-remittanceamount.
CONCATENATE wa_summ-vendorcode
wa_summ-controlnum
w-amount INTO wa_textdata SEPARATED BY space.
APPEND wa_textdata TO t_textdata.
ENDLOOP.
DESCRIBE TABLE t_textdata .
w-file_length = syst-tfill * 1022.
l_doctype = 'LIST'.
l_layout = 'X_POSTSCRIPT'.
CONCATENATE ' Listbill Summary Report for' syst-datum INTO
l_title SEPARATED BY space.
l_receiver = syst-uname.
* Create Spool
CALL FUNCTION 'RSPO_SR_OPEN'
EXPORTING
dest = 'LOCL'
* LDEST =
layout = l_layout
name = 'SUMREP'
* SUFFIX1 =
* SUFFIX2 =
copies = '1'
* PRIO =
* immediate_print = ' '
* AUTO_DELETE =
titleline = l_title
receiver = syst-uname "
* division = l_pri_params-prabt " abteilung
* authority = l_pri_params-prber "
* POSNAME =
* ACTTIME =
* LIFETIME = '8'
* APPEND =
* COVERPAGE =
* CODEPAGE =
doctype = l_doctype
* ARCHMODE =
* ARCHPARAMS =
* TELELAND =
* TELENUM =
* TELENUME =
IMPORTING
handle = l_spool_handle
spoolid = w-spoolid
EXCEPTIONS
device_missing = 1
name_twice = 2
no_such_device = 3
operation_failed = 4
OTHERS = 5
. "#EC DOM_EQUAL
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'SLVC_C1022_TO_C255'
EXPORTING
i_file_length = w-file_length
TABLES
it_c1022 = t_textdata
et_c255 = lt_spool.
l_length = w-file_length.
LOOP AT lt_spool INTO ls_spool.
l_length = l_length - 255.
IF ( l_length > 0 ).
l_line_length = 255.
ELSE.
l_line_length = l_length + 255.
ENDIF.
* Write contents to spool
CALL FUNCTION 'RSPO_SR_WRITE'
EXPORTING
handle = l_spool_handle
text = ls_spool
length = l_line_length.
ENDLOOP.
* Close Spool
CALL FUNCTION 'RSPO_SR_CLOSE'
EXPORTING
handle = l_spool_handle
pages = 1
FINAL = 'X'
EXCEPTIONS
handle_not_valid = 1
operation_failed = 2
OTHERS = 3
By this I can see the spool with data in SP02.
Then to conver to PDF, I used
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w-spoolid
no_dialog = 'X'
DST_DEVICE = 'LOCL'
* PDF_DESTINATION =
IMPORTING
* PDF_BYTECOUNT =
* PDF_SPOOLID =
list_pagecount = list_pagecount
* BTC_JOBNAME =
* BTC_JOBCOUNT =
TABLES
pdf = t_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\t\t.pdf'
filetype = 'BIN'
TABLES
data_tab = t_pdf
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
But later when I go and open the PDF, I am getting an error saying'Page cannot be open because it dont have any pages'
Please help me
Regards,
NikhilHi Nikhil,
<li>If you are still not able to find out the problem. You can an alternative way , which is used for the same purpose.
<li>Try this way. It creates spool and and same CONVERT_ABAPSPOOLJOB_2_PDF fm is used to convert spool to PDF. It works. Test this test program.
REPORT ztest_notepad.
DATA:g_val TYPE c,
w_pripar TYPE pri_params,
w_arcpar TYPE arc_params,
i_pdf TYPE TABLE OF tline,
spoolid LIKE tsp01-rqident,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount.
DATA:it_t001 TYPE TABLE OF t001 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE it_t001.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = w_arcpar
in_parameters = w_pripar
layout = 'X_65_132'
line_count = 65
line_size = 132
no_dialog = 'X'
IMPORTING
out_archive_parameters = w_arcpar
out_parameters = w_pripar
valid = g_val.
IF g_val NE space AND sy-subrc = 0.
w_pripar-prrel = space.
w_pripar-primm = space.
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS w_pripar ARCHIVE PARAMETERS w_arcpar NO DIALOG.
ENDIF.
LOOP AT it_t001.
WRITE:/ it_t001.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolid = sy-spono.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = i_pdf.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\temp\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf.
Thanks
Venkat. -
Table to find posted goods issue of vl02n
Hi all,
After perform the post good issue on vl02n, SAP suppose to update the posted goods issue into a table. So may i know which table to find the posted goods issue record ?
Regards,
MarcusHi,
VBUK is the header tables, you need to refer to VBUP for the item details.
Table VBFA contains the document flow, where fields VBELV contains the previous document no. & VBELN contains the subsequent document.
So for your need, you can refer to VBUP, VBELN would be the outbound document number, also the movement type would be 601.
Revert if you face any issues.
Regards,
Vivek -
Table for storing inventory details in FIFO base
HI All,
Can anyone help me in finding where I can get the Table for storing inventory details in FIFO base othe rthan OINM.
Any kind of help will appreciated.
Regards:
SwatiHi Darius,
I checked tables CIFV, OIVQ,SIVQ or UIVQ table.
CIFV - We can not fetch data from SQL.
SIVQ, UIVQ - No records found
OIVQ - There is only 6607 records in this table but OINM is having 14085 so not all the transcation are in this table.
Still i am waiting for any help.
I am using SAP 8.8 PL19.
regards:
Swati
Edited by: SwatiGupta on Sep 16, 2011 7:52 AM -
Query to find assignment details of the employees from database
Hi,
For all the employees, I want to find following details from HRMS tables (This detail is shown on assignments window on frontend)
Department, Role, Designation,Position(current),Supervisor
Not being an expert in HRMS tables, so to avoid delays in R&D and to give quick results to my functional team, can anyone tell me the exact db query to save any time.
Abdul Wahid
http://iwidi.orgPls see if the below helps
I have not got the Position details, you can join the Position KFF table to get those.
select papf.employee_number,papf.full_name, papf.national_identifier
, papf.start_date Hire_Date , papf.ORIGINAL_DATE_OF_HIRE
, papf.date_of_birth
,papf.email_address
,papf.marital_status
,pj.name Job
, hou.name HR_Organization
, hl.location_code location
, ppf.payroll_name
, paaf.normal_hours Working_hours, paaf.frequency,
decode(paaf.employment_category,'FR','Fulltime-Regular','FT','Fulltime-Temporary','PR','Partime-Regular','PT','Partime-Temporary',null) Assignment_Category,
sup.full_name Supervisor,
decode(sup.business_group_id,0,'United States',82,'United Kingdom',4063,'Spain',null,null,'Other') Supervisor_Country
,pa.address_line1
,pa.address_line2
,pa.address_line3
,pa.town_or_city
,pa.region_1 county
,pa.postal_code
,pa.country
,pa.telephone_number_1
,pa.telephone_number_2
,ppp.proposed_salary_n salary
from per_all_people_f papf,
per_all_assignments_f paaf,
per_jobs pj,
hr_all_organization_units hou,
pay_payrolls_f ppf,
per_all_people_f sup,
per_addresses pa,
hr_locations_all hl,
per_pay_proposals ppp
where papf.person_id = paaf.person_id
and sysdate between papf.effective_start_date and papf.effective_end_date
and sysdate between paaf.effective_start_date and paaf.effective_end_date
and papf.business_group_id = 82
and pj.job_id = paaf.job_id
and pa.person_id(+) = papf.person_id
and hl.location_id(+) = paaf.location_id
and ppp.assignment_id(+) = paaf.assignment_id
and sysdate between ppp.change_date(+) and ppp.date_to(+)
and hou.organization_id = paaf.organization_id
and ppf.payroll_id = paaf.payroll_id
and sysdate between ppf.effective_start_date and ppf.effective_end_date
and sup.person_id(+) = paaf.supervisor_id
and sysdate between sup.effective_start_date(+) and sup.effective_end_date(+)
order by ppf.payroll_name,papf.full_name -
Where can I find the detailed explaining of the following symbols?
Where can I find the detailed explaining of the following Explain Plan related symbols?
PCWP
:TQ
TQThe Performance Tuning Guide (http://download.oracle.com/docs/cd/E11882_01/server.112/e10821/ex_plan.htm#i26005) tells us:
PCWP = Parallel Combined With Parent
TQ=Table Queue number
The Performance Tuning Guide contains some really great material on how to read execution plans.
RTFM then follow up here with specific examples that you are struggling with.
We will help you, but you need to show initiative. -
Table.rows.find() returns null in a table where the row exists.
Hi...
I am working in a Project in Visual Studio 2013 where I have to read an Excel report related with a list of business opportunities. Some of the Fields that are involved in it are: Opportunity ID, BU, Account, close date, Account Manager,
Total Value and so on. As soon as I get the conection with the Excel Report, I fill a DataTable and declare the columns [Opportunity ID] and [BU] as my Primary Keys. In that way, an Opportunity value may have one o more rows
with different BU code each of them. In consequence, you can define one row in the table if you specify the [Opportunity ID] and the [BU] values.
My problem starts when I try to get information of those rows that have an specific value of [Opportunity ID]. For that situation I make a "foreach" structure where I check the BU codes that are involved with that Opportunity. So
I use the Find() Method to get the information of the row specified by the Opportunity ID and BU. The first time it goes to find the information it gets the results successfully but in the next cycle changing just the [BU] using the same [Opportunity
ID] value, the find() method returns a "null" and I do not know why because I am sure that the row exists in the table. I have verified the "Unique" property for the [Opportunity ID] and [BU] columns (which are
my primary keys) and they are in false which is OK.
I share the code that I am using...
Hope someone can help.
Thanks.
Alfmar.
void ObtenTotalesxBUs(string Opportunity, string[] BUs, Object[] TotalBUs, Object[] ExpTotalBUs)
ArrayList TotalesBUs = new ArrayList(); //Required information from the row.
ArrayList ExpTotalesBUs = new ArrayList(); //Required information from the row.
foreach(string businessUnit in BUs)
Object[] LlaveBusqueda = { Opportunity, businessUnit }; //Provide values to the Primary Keys.
DataRow RenglonInfo = null;
RenglonInfo = TablaFunnel.Tabla.Rows.Find(LlaveBusqueda); //Find method receives the Primary Keys values. Here is where I have a "null" in return the second time changing just the [BU] field.
TotalesBUs.Add(RenglonInfo["Total"]); //Get the required information from the row.
ExpTotalesBUs.Add(RenglonInfo["Expected Total Value"]); //Get the required information from the row.
TotalBUs = TotalesBUs.ToArray();
ExpTotalBUs = ExpTotalesBUs.ToArray();}Hi Viorel..
Thanks a lot for you help.
I am absolutely sure that the second ítem of BU is valid and exist in the table because I tried to make a "Select" statement in the table providing the values of [Opportunity ID] and [BU] and I get the expected record. So, why is not
working using Find() with the defined Primary Keys???
I tried this in order to test that the record exists...
if(RenglonInfo == null)
string strSelect = "[Opportunity ID] = '0000218256' AND [BU] = 'SFW'";
RenglonInfo2 = TablaFunnel.Tabla.Select(strSelect); -
T-code or Table to find total errors in SAP APO like ST22 in ABAP
hi all,
Could please tell me the T-code or Table to find total errors in SAP APO like ST22 t-code in SAP ABAP.
Thanks.
Suryam SHello Venu,
Do you mean other functional errors?
You can check SLG1, /SAPAPO/C3, STAD
Best Regards,
R.Brahmankar -
How to find the details of the BPC process running in SM37 and SM50
We had BPC performance issues and noticed that there are some process or batch jobs that are kicked from BPC that runs longer and kind of hanging. SM37 and SM50 provides some information like job name, how long it is running. Job name is kind of cryptic and the user name is always BPC_SYSADMIN and not able to get any additional information. Is there a way to find more details about the job/process that is running (whether it is a input template and which input template, whether it is a DM package and which package, whether it a report/EVDRE and which one etc. Plus the BPC user name)?
Couple of times, the user received the error message u201CSystem error: -2146697205u201D after it ran for a while.You can distinguish between reports and DM Packages easily: reports/IS run in DIA process while DM packages in BGD.
To find out which BGD process corresponds to which DM Package take note of the time that package started (Local time). Than go to SM37 with user ID BPC* and find a job that started at same time (Server time).
Looking into job details you can find on what Application server it's running and PID - this uniqely identifies BGD process in SM50.
Hope this helps.
Gersh -
Table for finding out all the G/L accounts of a financial statement version
Hi all,
is there any table to find out the G/L accounts which will come under the tree of financial statement version(OB58). Please help.With FM FI_IMPORT_BALANCE_SHEET_POS, you will get the account list in the internal table I011Z.
You will get a list of intervals I011Z-VONKT - I011Z-BILKT.
Maybe you are looking for
-
Can I upgrade my Macbook Pro to the newest operating systems?
My Macbook Pro is currently running Mac OSX 10.6.8 and never had snow leopard installed. I was wondering if my system would even be able to run the newest operating system. Second I was wondering if it is even worth upgrading to. I have had a lot of
-
Help! Can't Import iPhoto Library into Aperture
I have a new MacBook Pro with Lion, Aperture 3, and iPhoto 11. I followed the pre loaded video directions and every time I receive this message: "Importing libraries from versions earlier than iPhoto 7.1.5 is not supported. Please upgrade your iPhoto
-
Planning for CAS Array with DAG intergation on Exchange 2010
We currently have 2 Exchange servers and have plans to add 2 more servers so it will be 2 servers with DAG and 2 servers with CAS array Here is our current setup: EX01 has HUB, CAS and MAILBOX roles EX02 has MAILBOX only with DAG configured between 2
-
What is the following icon used for?
It is a rectangle with a small black triangle at the lower right. It has another rectangle in the center of the outer one that has what looks like a gradient in it. Lighter to the left and darker to the right. I am taking a test and they want to k
-
I can not connet to app store from my iphone
I cant not connet to appstore from my iphone 4s, why?