Hi I need a report
Hi,
I am having two tables as following I need a difference report as following. I was used to write a minus query to find the differences but I am asked to show a report
as following. So can any one help me in this regard.
Table1
ID Name
1 Nancy
2. Paul
3. David
Table2
ID Name
1 Fancy
4 John
3 David
Required report as follows.
ID Name1 Name2
1 Nancy Fancy
2 Paul -----
4 ----- John
... But if we have a composite key with a Hire date as a key
then how can we get the response. That means I need
a hire Date field also to be added in between EID &
ENAME. Can any one suggest me a solution for this.
test@ora>
test@ora>
test@ora> --
test@ora> with table1 as (
2 select 1 as id, 'Nancy' as name, to_date('01/01/2007','mm/dd/yyyy') as hire_date from dual union all
3 select 2, 'Paul', to_date('01/01/2005','mm/dd/yyyy') from dual union all
4 select 3, 'David', to_date('01/01/2006','mm/dd/yyyy') from dual),
5 table2 as (
6 select 1 as id, 'Fancy' as name, to_date('01/01/2007','mm/dd/yyyy') as hire_date from dual union all
7 select 4, 'John', to_date('01/01/2005','mm/dd/yyyy') from dual union all
8 select 3, 'David', to_date('01/01/2006','mm/dd/yyyy') from dual)
9 --
10 select
11 coalesce(t1.id,t2.id) as id,
12 nvl(t1.name,'-----') as name1,
13 case when t1.hire_date is null then '-----' else to_char(t1.hire_date,'mm/dd/yyyy') end as hire_date1,
14 nvl(t2.name,'-----') as name2,
15 case when t2.hire_date is null then '-----' else to_char(t2.hire_date,'mm/dd/yyyy') end as hire_date2
16 from table1 t1
17 full outer join table2 t2
18 on (t1.id = t2.id and t1.hire_date = t2.hire_date)
19 where nvl(t1.name,chr(0)) <> nvl(t2.name,chr(0));
ID NAME1 HIRE_DATE1 NAME2 HIRE_DATE2
1 Nancy 01/01/2007 Fancy 01/01/2007
2 Paul 01/01/2005 ----- -----
4 ----- ----- John 01/01/2005
test@ora>
test@ora>
test@ora>isotope
Similar Messages
-
Need a report for actual cost by WBS element by month
Hello all,
I am looking for a report that will give me the total costs charged to a series of of WBS elements by month. Does anybody know if such a report can be run and what the transaction number of this report would be?
ThanksHello Stacy,
Thank you for your help.
I tried the S_ALR_87100185 report as you instructed but I cant get it to display as I would like to see it. What I need the report to do is display actuals by month and WBS elemnts from January through August. However the report cuts off at the May period. Does anybody have a workaround so I can see the charges from January through August?
Thanks -
I need a report with the following fields
Hi All,
I need a report with the following fields & G/L "Expenses" only.
1)G/L Code.
2) G/L Name.
3) G/L Balance
& Selection Criteria From Date, To Date , & Location(for me locations is PROFITCENTRE).
Please some body suggest me an SQL Querry to fetch this result.
Thanks in Advance,
S. MobinHi!
Individual G/L means i didn't understand
check this for only Expence Acc
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @Location nvarchar(20)
set @FromDate = (Select min(S0.RefDate) from jdt1 s0 where s0.Refdate >='[%0]')
set @ToDate = (Select max(S1.RefDate) from jdt1 s1 where s1.Refdate >='[%1]')
set @Location = (Select max(s2.ProfitCode) from jdt1 s2 where s2.ProfitCode = '[%2]')
select
J1.Account,
max(A0.AcctName) as Name,
j1.ProfitCode as Location,
sum(J1.debit-j1.credit) as Balance
From
JDT1 J1,OACT A0
Where
J1.Account=A0.AcctCode and
J1.RefDate >=@FromDate and
J1.RefDate<= @ToDate and
j1.ProfitCode=@Location and
A0.GroupMask = 5
Group By
J1.Account,j1.ProfitCode -
Need a Report for a List of PO's against a Sales Order
Need a Report for a List of PO's against a Sales Order
Hi
We can get through Me2n, with selection parameters with account assignment as C (Sales Order)
Regards
Prasanna -
Help Needed in Reports (Breaks, totals)
Hi All,
I am a fairly new user in Apex and would appreciate any help. I have a requirement to generate a report as follows:
In below reports 1001,1002 are projects and i need to obtain project totals (e.g. 500,300,150,50) displayed conditionally. At first i had to display only projects and i could do it using 1 column report break.
But how can i include the totals in the report breaks. And its more than 3 columns that i would need in breaks.
Any suggestions? I dont think i can use breaks for this as APEX does not support more than 3 columns.
Name task budget Expense commitments balance end_Date
1001 500 300 150 50 15-01-2008
1001-1-aa 1 200 100 50 50 15-01-2008
1001-2-ab 2 300 200 100 0 15-01-2008
1002 500 300 150 50 15-01-2008
1002-1-aa 1 200 100 50 50 01-01-2008
1002-2-ab 2 300 200 100 0 01-01-2008
Thanks
SumanaHi All,
Thanks Arie, your suggestion helped me to move in the right direction.
I could display the project totals as needed without using breaks, but using a combination of query and report template change. The above examples given helped to certain extent.
Now I have a requirement which is an extention to the above problem. I dont know if I must start a new thread for this.
I need the report totals to be displayed conditionally. This condition has 3 cases, out of which I am able to achecive two.
For the 3rd I would really appreciate any help/suggestions. I tried changing query/template. But it dint help.
Here is the prob:
Col1 Col2 Col3
Project_name sum(amt) sum(amt)
task1 amt amt
task2 amt amt
In above, the sum(amt) must be displayed when project_owner is person logged in.
Col1 Col2 Col3
Project_name
task1 amt amt
task2 amt amt
In above, when task owner is person logged in then I must not display the sum(amt).
I am successful in acheving both of the above, when all tasks owner is person logged in and when project owner is person logged in.
But when I have project owner = person logged in and task1 owner = person logged in and task2 owner != person logged in my display comes out as shown below.
Col1 Col2 Col3
Project_name sum(amt) sum(amt)
Project_name
task1 amt amt
*task2 amt amt
The actual display for third case must be:
Col1 Col2 Col3
Project_name sum(amt) sum(amt)
task1 amt amt
*task2 amt amt
Thanks
Sumana -
Help needed to report open orders from R/3 SD!
Hello all,
I need to report net open order value from SAP R/3 SD to BW. I'm using cube 0SD_C05 to report inquiry vs. quotation vs. orders. Is there any standard ods object in business content which can be used to report open orders? If not, will it be a good idea to create a ODS object and use it directly for reporting open orders? This BW installation is for a small IT company and we don't generate a lot of quotations or orders on a daily basis. Please guide.
Thanks and Regards,
Sumithi Sumit,
check if you can use 0SD_O01 - order item data
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/2b4f815f153014e10000000a114e5d/content.htm
other business content ods objects are 0sd_o02-05.
http://help.sap.com/saphelp_nw2004s/helpdata/en/0b/f5cc3c7dea9006e10000000a114084/frameset.htm
(expand left side 'ods')
hope this helps. -
Need Consignment report in SAP
Hello all MM Gurus,
Is there any report in SAP that shows the total consignment stock arrival and consignment stock consumption in a given plant. The report should show the consignment stock arrival/consumption, value of the stock, material number, etcetc.
Please let me know. I have suggested my user that we can use MB51 or MB54. But I am afraid, my user would get confused if he/she uses these transactions. Hence, I need a report in SAP that is particularly made for consignment stock.
Thanks and Regards,
Umakanth
Moderator message: we are the ABAP gurus, please have a look in the ERP MM forums.
Edited by: Thomas Zloch on Nov 26, 2010 2:20 PMHi,
I recommend the PCA standard drill-down or interactive reports accessible via the follwoing menu path:
Accounting --> Enterprise Controlling --> PCA --> Infosystem --> Reports for PCA
There are several reports which allow entering profitcenter groups or profitcenters.
Long Text is not possible. Makes also no sense to report on Long Text.
Best regards,
Andreas -
I Need interactive report to list the purchase orders details for a vendor
I Need interactive report to list the purchase orders details for a vendor that has interactive drill down options to give the detail of vendor from vendor master.
Hi
see this sample report
this is Customer wise sales orders
just make similar report just using LFA1, EKKO and EKPO tables instead of KNA1,VBAK,VBAP
REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
LOOP AT SCREEN.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
REPORT demo_list_at_pf.
START-OF-SELECTION.
WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
AT pf5.
PERFORM out.
AT pf6.
PERFORM out.
AT pf7.
PERFORM out.
AT pf8.
PERFORM out.
FORM out.
WRITE: 'Secondary List by PF-Key Selection',
/ 'SY-LSIND =', sy-lsind,
/ 'SY-UCOMM =', sy-ucomm.
ENDFORM.
After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
Secondary List by PF-Key Selection
SY-LSIND = 14
SY-UCOMM = PF06
Example for AT USER-COMMAND.
REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'SY-LSIND:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'SY-LSIND:', sy-lsind,
/ 'SY-PFKEY:', sy-pfkey.
ENDFORM.
When you run the program, the system displays the following basic list with a the page header defined in the program:
You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
Regards
Anji -
Need example report program using PNPCE LDB in SAP HR
Need example report program using PNPCE LDB in SAP HR.
and how to create a report category in sap hr for using it as cutomised selection screen.Hi,
Go through the following links, i hope it will help you.....
/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/893908#
A sample prog with LDB PNP
*& Report ZH_REPT_PAYMENT *
report zh_rept_payment line-size 80 no standard page
heading.
tables: pernr, " Standard Selections for HR Master Data Reporting
pcl1, " HR Cluster 1
pcl2, " HR Cluster 2
pa0009,
PA9001,
PA9006,
pa0002,
pc260 , " Cluster Directory for Payroll Results
bnka .
Infotypes
infotypes: 0001. " Organizational Assignment
Declaration of Internal Tables
data : bnka1 like bnka occurs 0 with header line .
data: begin of t_int_rep occurs 100,
bankl like pc209-bankl, " Bank Number
zlsch like pc209-zlsch, " Payment method
pernr like pernr-pernr, " Employee Number
ename like pernr-ename, " Employee Name
bankn like pc209-bankn, " Bank Account Number
betrg like pc209-betrg, " Amount to be transfered
zweck like pa0009-zweck, " Purpose
end of t_int_rep.
data: begin of int_rep occurs 100,
bankl like pc209-bankl, " Bank Number
zlsch like pc209-zlsch, " Payment method
pernr like pernr-pernr, " Employee Number
ename like pernr-ename, " Employee Name
bankn like pc209-bankn, " Bank Account Number
betrg like pc209-betrg, " Amount to be transfered
zweck like pa0009-zweck, " Purpose
begda like pa0009-begda, "Begin date
end of int_rep.
Declaration of Data Variables
data: ws_betrg like pc209-betrg, " BT Amount
w_val like spell occurs 0 with header line,
int_rep1(6), " TYPE I, " Employee Number
cnt type i value 0, " Counter
calcmolga like t500l-molga value '40', " Country Grouping
v_id(15),
calc_currency like t001-waers value 'INR'. " Currency
data : ctr type i,
dt_merge like pa0009-begda.
data: ws_totemp(6) type c,
ws_totamt(20) type c,
r_mth(9) type c,
ws_fpbeg(6) type c,
ws_fpend(6) type c,
ws_mthyr(6) type c,
ws_mthyr_r(14) type c,
r_mth_t(3) type c,
ws_amt(8) type c,
ws_bankl(14) type c,
ws_date(6) type c,
amount_word(500),
total_page type i,
pages type i,
remain type i.
data begin of i_spell.
include structure spell .
data end of i_spell .
data : c_molga type t500l-molga value '40',
c_banks type bnka-banks value 'IN'.
Standard Includes
include rpc2cd09. "Cluster CD data definition
include pc2rxin0.
include rpc2rx09.
include rpppxd00. " Data Definition buffer PCL1/PCL2
include rpppxd10. " Common Part buffer PCL1/PCL2
include rpppxm00. " Buffer Handling RoutinePCL1/PCL2
include zrpc2rox2. " Data Definition POCLSTERS (not J,K,U)
Selection Screen
selection-screen begin of block b1 with frame title text-001.
parameter: pa_mth(2) type c default sy-datum+4(2) obligatory,
pa_year(4) type c default sy-datum(4) obligatory,
p_bankl like pc209-bankl, " Bank Number
p_zlsch like pc209-zlsch. " Payment method
selection-screen end of block b1.
save_calc_currency = calc_currency.
count_top = 0.
get_pernr_flag = 0.
Top-Of-Page
top-of-page.
perform convert_month using pa_mth(2) r_mth.
ws_mthyr_r = r_mth.
concatenate ws_mthyr_r pa_year into ws_mthyr_r separated by space.
SKIP 5.
skip 1.
skip 4.
if int_rep-bankl eq ' '.
if int_rep-zlsch eq 'C' or int_rep-zlsch eq 'E' or
int_rep-zlsch eq ' '.
write: /1(85) 'CHEQUE PAYMENT STATEMENT'(047) centered.
elseif int_rep-zlsch eq 'L'.
write: /1(85) 'DEMAND DRAFT STATEMENT'(047) centered.
endif.
else.
write: /1(85) 'BANK TRANSFER STATEMENT'(002) centered.
endif.
skip.
write: /34 ws_mthyr_r,
62 'Page :'(008),69(2) sy-pagno intensified off,
' Of ',78(2) pages intensified off.
clear pages.
read table bnka1 with key bankl = int_rep-bankl .
if sy-subrc = 0.
if int_rep-zlsch eq 'T'.
write:/03(10) 'Bank Name : ', bnka1-banka.
write:/03(10) 'Branch : ', bnka1-brnch.
write:/03(10) 'Address : ', bnka1-stras.
endif.
endif.
skip.
write:/1(80) sy-uline.
write: /1 sy-vline, 2(5) 'Sl.No'(002),
7 sy-vline, 8(8) 'Emp.No.'(003),
16 sy-vline,17(35) 'Employee Name'(004).
*--added for Demand Draft
if ( int_rep-zlsch = 'l' or int_rep-zlsch = 'L' ).
write : 47 sy-vline, 48(15) 'Payable at'(005).
else.
write : 47 sy-vline,48(15) 'Account No.'(005).
endif.
write: 63 sy-vline,64(16) 'Amount'(006),
80 sy-vline.
write:/1(80) sy-uline.
end-of-page.
write:/1(80) sy-uline.
write:/2 'Printed on ', sy-datum.
Start-of-selection.
start-of-selection.
*perform h_headr.
ctr = 0.
set margin 5.
call function 'RP_GET_CURRENCY'
exporting
molga = calcmolga
importing
waers = calc_currency
exceptions
others.
if sy-subrc ne 0.
calc_currency = 'DEM'.
calc_currency = save_calc_currency.
endif.
get pernr.
cd-key-pernr = pernr-pernr.
perform import_cluster.
get_pernr_flag = 1.
check : ocd-version-molga eq calcmolga.
The table 'tabpernr' is filled with the personnel numbers
and is used after selection is finished.
move-corresponding pernr to tabpernr.
append tabpernr.
The table 'tab_rgdir' is filled
loop at rgdir.
rx-key-pernr = pernr-pernr.
unpack rgdir-seqnr to rx-key-seqno.
perform int_tab. "fill tab_rgdir
perform import_bt.
perform validate.
endloop.
End of Selection
end-of-selection.
*perform h_headr.
perform convert_date_a using pa_mth r_mth_t.
sort int_rep by bankl zlsch pernr betrg descending.
delete adjacent duplicates from int_rep
comparing bankl zlsch pernr .
sort int_rep by bankl zlsch bankn . "PERNR.
loop at int_rep.
at new bankl.
select single * into bnka1 from bnka
where banks = c_banks and
bankl = int_rep-bankl .
append bnka1.
clear bnka1.
endat.
endloop.
for Demand Draft - purpose added
loop at int_rep.
concatenate pa_year(4) pa_mth(2) '01' into dt_merge.
select single * "zweck into int_rep-zweck
from pa0009 where
pernr = int_rep-pernr and
bankl = int_rep-bankl and
zlsch = int_rep-zlsch
and begda <= dt_merge and
endda >= dt_merge .
if sy-subrc = 0.
int_rep-zweck = pa0009-zweck.
modify int_rep.
endif.
endloop.
*-for DD and Chq sorted by PAyable at and EMPNO wise
if p_zlsch = 'T' .
sort int_rep by bankl zlsch bankn . "PERNR.
else. "added for "payable at" for DD/Chq
else.
sort int_rep by zweck pernr . "PERNR.
endif.
*delete adjacent duplicates from int_rep.
t_int_rep] = int_rep[.
loop at int_rep.
*-for page of page no.
total_page = 0.
loop at t_int_rep where bankl = int_rep-bankl
and zlsch = int_rep-zlsch.
total_page = total_page + 1.
endloop.
pages = total_page div 25.
remain = total_page mod 25.
comment bcoz its adding one extra page no.
done as on 29/11/2004
if remain > 0.
pages = pages + 1.
endif.
**-end
at new bankl.
ctr = 0 .
new-page.
endat.
at new zlsch.
ctr = 0 .
new-page.
endat.
clear v_id.
select single natio
into pa0002-natio
from pa0002
where pernr eq int_rep-pernr.
*-testing......for soma
if ctr > 24.
ctr = 0 .
write:/1(80) sy-uline.
new-page .
endif.
ctr = ctr + 1 .
cnt = cnt + 1.
pack int_rep-pernr to int_rep1.
write:/1 sy-vline, 2(3) cnt intensified off,
7 sy-vline, 9(6) int_rep1 intensified off,
16 sy-vline,17(35) int_rep-ename intensified off .
if ( int_rep-zlsch = 'l' or int_rep-zlsch = 'L' ).
write : 47 sy-vline,48(15) int_rep-zweck intensified off.
else.
write:
47 sy-vline,48(15) int_rep-bankn intensified off .
endif.
write: 63 sy-vline,64(16) int_rep-betrg
intensified off currency 'INR',
80 sy-vline.
ws_betrg = ws_betrg + int_rep-betrg.
*-testing......for soma
skip.
write :
/1 sy-vline, 7 sy-vline ,16 sy-vline ,47 sy-vline,63 sy-vline,80
sy-vline .
*-end testing......for soma
at end of zlsch.
if int_rep-bankl = ' '.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = ws_betrg
importing
amt_in_words = amount_word
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
w_val-word = amount_word.
concatenate 'INR.' w_val-word into w_val-word
separated by space.
write:/1(80) sy-uline.
write: /1 sy-vline, 7 'Total transfer:'(009),
64(16) ws_betrg intensified off currency 'INR',
80 sy-vline.
write:/1(80) sy-uline.
write: /1 sy-vline, 3 w_val-word+0(76) intensified off,
80 sy-vline.
write :/1 sy-vline, 10 w_val-word+76(70) intensified off,
80 sy-vline.
write:/1(80) sy-uline.
clear: ws_betrg,cnt.
skip 2.
write: /2 'Prepared by :'(010), '_______________'(013),
45 'Checked by :'(011),'_______________'(013).
skip 2.
write: /2 'Printed On ', sy-datum,
45 'Approved by :'(012),'_______________'(013).
clear sy-pagno.
endif.
endat.
at end of bankl.
if int_rep-bankl ' '.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = ws_betrg
importing
amt_in_words = amount_word
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
w_val-word = amount_word.
concatenate 'INR.' w_val-word into w_val-word
separated by space.
write:/1(80) sy-uline.
write: /1 sy-vline, 7 'Total transfer:'(009),
64(16) ws_betrg intensified off currency 'INR',
80 sy-vline.
write:/1(80) sy-uline.
write: /1 sy-vline, 3 w_val-word+0(76) intensified off,
80 sy-vline.
write :/1 sy-vline, 10 w_val-word+76(70) intensified off,
80 sy-vline.
write:/1(80) sy-uline.
clear: ws_betrg,cnt.
skip 2.
write: /2 'Prepared by :'(010), '_______________'(013),
45 'Checked by :'(011),'_______________'(013).
skip 2.
write: /2 'Printed on ', sy-datum,
45 'Approved by :'(012),'_______________'(013).
clear sy-pagno.
NEW-PAGE.
endif.
endat.
endloop.
End of Page
end-of-page.
write: /2 'Prepared by :'(010), '_______________',
45 'Checked by :'(011),'_______________'.
*& Form IMPORT_CLUSTER
Importing Data from Cluster *
form import_cluster.
sy-subrc = 0.
rp-imp-c2-cd.
if sy-subrc eq 0.
if cd-version-number ne ocd-version-number.
endif.
endif. " SY-SUBRC EQ 0
endform. " IMPORT_CLUSTER
*& Form INT_TAB
Filling internal table tab_rgdir form int_tab.
*Fill internal table tab_rgdir.
move-corresponding rgdir to tab_rgdir.
tab_rgdir-pernr = pernr-pernr.
append tab_rgdir.
endform. " INT_TAB
*& Form IMPORT_bt
Import Values from Bank Transactions Table (BT) form import_bt.
rp-init-buffer.
RP-IMP-C2-RX.
rp-imp-c2-in.
if rp-imp-in-subrc eq 0.
if in-version-number ne oin-version-number.
write: / 'Schlüssel des Clusters RX:'(015),
rx-key-pernr, rx-key-seqno.
write: / 'The imported version of the cluster'(016), 'RX',
'is not current'(017).
write: / 'Imported version :'(018),
oin-version-number.
write: / 'Current version of cluster :'(019),
in-version-number.
stop.
else.
sy-subrc = 0.
endif.
else.
sy-subrc = 8.
write: /
'Inconsistencies between cluster directory and directory for'(020).
write: /
'No payroll results found for data in cluster directory'(021).
write : /
'Please contact hotline to solve the current problem'(022).
endif.
ws_fpbeg(2) = versc-fpbeg+4(2).
ws_fpbeg+2(4) = versc-fpbeg(4).
ws_fpend(2) = versc-fpend+4(2).
ws_fpend+2(4) = versc-fpend(4).
ws_mthyr(2) = pa_mth.
ws_mthyr+2(4) = pa_year.
check ws_mthyr = ws_fpbeg.
check ws_mthyr = ws_fpend.
loop at bt. "from pc209
int_rep-pernr = pernr-pernr.
int_rep-ename = pernr-ename.
int_rep-bankl = bt-bankl.
int_rep-bankn = bt-bankn.
int_rep-betrg = bt-betrg.
int_rep-zlsch = bt-zlsch.
append int_rep.
endloop.
IF P_BANKL ' ' AND P_ZLSCH ' '.
DELETE INT_REP WHERE BANKL P_BANKL.
ELSEIF P_BANKL = ' ' AND P_ZLSCH ' '.
DELETE INT_REP WHERE ZLSCH P_ZLSCH.
ELSEIF P_BANKL ' ' AND P_ZLSCH = ' '.
DELETE INT_REP WHERE BANKL P_BANKL.
ENDIF.
endform. " IMPORT_BT
*& Form CONVERT_MONTH
Fetching Month Text form convert_month using mth t_mth.
case mth.
when '01'.
t_mth = 'January'(023).
when '02'.
t_mth = 'February'(024).
when '03'.
t_mth = 'March'(025).
when '04'.
t_mth = 'April'(026).
when '05'.
t_mth = 'May'(027).
when '06'.
t_mth = 'June'(028).
when '07'.
t_mth = 'July'(029).
when '08'.
t_mth = 'August'(030).
when '09'.
t_mth = 'September'(031).
when '10'.
t_mth = 'October'(032).
when '11'.
t_mth = 'November'(033).
when '12'.
t_mth = 'December'(034).
endcase.
endform. " CONVERT_MONTH
*& Form CONVERT_DATE_A
Fetching Month Text * form convert_date_a using mth_t t_mth_t.
case mth_t.
when '01'.
t_mth_t = 'Jan.'(035).
when '02'.
t_mth_t = 'Feb.'(036).
when '03'.
t_mth_t = 'Mar.'(037).
when '04'.
t_mth_t = 'Apr.'(038).
when '05'.
t_mth_t = 'May.'(039).
when '06'.
t_mth_t = 'Jun.'(040).
when '07'.
t_mth_t = 'Jul.'(041).
when '08'.
t_mth_t = 'Aug.'(042).
when '09'.
t_mth_t = 'Sep.'(043).
when '10'.
t_mth_t = 'Oct.'(044).
when '11'.
t_mth_t = 'Nov.'(045).
when '12'.
t_mth_t = 'Dec.'(046).
endcase.
endform. " CONVERT_DATE_A
*& Form VALIDATE
text
--> p1 text
<-- p2 text form validate .
if p_bankl <> ' ' and p_zlsch ' '.
delete int_rep where bankl p_bankl.
elseif p_bankl = ' ' and p_zlsch ' '.
delete int_rep where zlsch p_zlsch.
elseif p_bankl ' ' and p_zlsch = ' '.
delete int_rep where bankl p_bankl.
endif.
endform. " VALIDATE
check this weblog.....
/people/dj.adams/blog/2003/11/13/food-for-thought-ldbs-and-abap-objects
Also , check the following link too.
http://www.datamanagementgroup.com/Resources/Articles/Article_1005_2.asp
Regards,
Harish -
Need a report on credit release with user name whos has released
Hi All,
Need a report with following details:
1.2. Sales order punched by-user name who has created.
2. User name who has released sales order from credit block.
3. release Date and time of order released.
Please suggest. As I could not find any standard report.
what tables should I join to get the report.
Thanks in advance
Regards,
MskgnthI
>
> Need a report with following details:
>
> 1.2. Sales order punched by-user name who has created.
You can get the user name from table VBAK-ERNAM Pass the sales order number in to VBAK-VBELN
> 2. User name who has released sales order from credit block.
> 3. release Date and time of order released.
From the report RSSCD100 enter the object class as VERKBELEG and T code as VKM3 and execute
Or You can use the table CDHDR
User Name CDHDR-username and for release date and time
CDHDR-UDATE
CDHDR-UTIME
REGARDS
PrashanthI
Edited by: Prashanth@SD on Nov 9, 2010 8:03 AM -
Need a Report That Shows # of Accounts Assigned To Team Members
I need a report that the managers can use for inspection to make sure that all of their reps are assigned to the same # of accounts in Siebel as they are in our commissions system. That being said I need the following:
Manager Name
User Name
# of Distinct Accounts (count distinct) assigned through Account Team ownership.
I'm writing this off of the Account Team History object which should be faster than realtime and can not get answers back to save my life. Now some reps may have 2K account while others have 44K so for a manager it may end up pulling 10-15 reps with roughly 45K accounts a piece. When I try this it times out. When I run the report for a rep with a few records (< 1000) it works quickly.
I'm going to assume that any production database can handle a simple count distinct query for a few hundred thousand rows quickly. That being said what is the fastest way to make this happen? I'm filtering for the MANAGER ID = [somevalue] and REPORTING LEVEL = 1 to get their direct reports.
Is there a trick to what you filter on? Should i use Manager ID, User ID, Alias etc. I don't know if I"m using a non-indexed field, doing something wrong or the system just doesn't perform. The report works great for < 2K records.Dear Tiffany,
You can try with these standard reports
For deliveries list you can use VL06O transaction then click on List of Outbound Deliveries push button.
For billing list you can find through VF05 transaction.
I hope this will help you,
Regards,
Murali. -
Need a report that shows sales shipments and billing by date
We need a report that will show sales shipment and billing information by date. Specifically, we need to find orders that were shipped in one month/period, but were not invoiced until the next month/period. Does a standard report exist?
I dont think it is possible. You will have to customize.
For list of deliveries, you can use VL06O.
For billing due list, you can use VF04.
Regards,
GSL. -
I need a report in SAP which allows multiple Profit centers selection with
Hi,
Cany anybody help me with below issue -
I need a report in SAP which allowing multiple Profit centers selection with :
- Profit Center #
- Profit center Name
- Profit center long text
- Profit Center group
- the related PC node showing the BU and the product category group.
Let me know is there any report which can provide us with all this details.
With regards.Hi,
I recommend the PCA standard drill-down or interactive reports accessible via the follwoing menu path:
Accounting --> Enterprise Controlling --> PCA --> Infosystem --> Reports for PCA
There are several reports which allow entering profitcenter groups or profitcenters.
Long Text is not possible. Makes also no sense to report on Long Text.
Best regards,
Andreas -
HELP! Need Pricing Report
I need a report with the following information:
Material, Material description, marked for deletion flag, List Price, Standard Price (cost)
Is this something that available in SAP or can I do this report using SQ01, if yes, what tables can I use?
Please helpYou can create your own pricing reports with the transaction "V/LA".
The path is IMG-Sales and Distribution-Basic functions-Pricing-Maintain Pricing reports.
<b>Step 1</b>
Enter a short text name, consisting of two characters, the first of which must be a letter, and the title of a pricing report that you would like to create. On the next data screen you will see all key fields used in conditions, listed in alphabetical order. Select all key fields that should be taken into consideration in the pricing report.
<b>Step 2:</b>
If you choose Edit -> continue with AND, all condition tables are evaluated, that contain at least one of the selected key fields. If you choose Edit -> continue with AND, all condition tables are evaluated, that contain at least one of the selected key fields. In the next dialog box, mark all condition tables that are to be evaluated.
<b>Step 3:</b>
Choose Continue to list structure to define the screen structure for the pricing report. Make sure that on the next screen all key fields from the selected tables appear. Fields, that are not used as selection criteria when displaying the list later, can be removed by undoing selection in the Selection column. Fields can be marked as obligatory fields on the selection screen. The structure of the pricing reports means that information can be placed in different places in the list. The layout contains the following elements:
Page Header
Group Header
Item
To execute this report, use the transaction V/LD.
Path: Logistics-SD-Master Data-Information system-Conditions and Pricing-Pricing reports
<b>Also, check the existing reports in V/LD like 28/15/17.</b>
Regards,
Gauravjit
Reward Points if resolution is helpful. -
Need US reports for 1099 and 1042S
Hi,
Can you provide any documentation on 1099 and 1042S reporting in SAP?
Any existing reports available in SAP.
Please guide me
Thanks in advance
VishnuHi Kedar,
Thank you very much for your valuable suggestion,
Actually client needs a report with Transactional data of each vendor, where as this report gives vendor wise report. One more thing we are using 4.7 version and we dont have that 1042s variant in the system.
Any related notes to apply to get that variant.
Please guide me
Thank you -
Do i need to report a lost ipod4g to apple
do i need to report a lost ipod 4g to apple
No. You need to report it to the police.
B-rock
Maybe you are looking for
-
Error creating web service from WSDL in 11.1.2.0.0
Hello, I have just installed JDeveloper 11.1.2.0.0. I tried to test a web service created (and successfully tested) in 11.1.1.5.0. The service is deployed to internal WebLogic server but when I call "Test Web Service" this is the error I get: The Web
-
Can I use Magma's EB1 to run an external GPU for GPU-computation?
Hi, I'd like to run an Nvidia GTX 285 with my MacBook Pro (late 2008) for double-precision GPU-accelerated computation, not for any graphics output. I think the only way would be via ExpressCard. I've found a card from Magma: the board set for their
-
Trying to fit output of XY Graph
Hello, I'm trying to fit the output of an XY graph which is (1-D Array of Cluster of 2 Elements(2x 1-D Array of Double[64-bit Real])). It seems like instead of having one array with two columns X,Y indexed persample number, I want to have a 1-D Array
-
i just bought a motorola starmax 5000 mac clone from a garage sale. from that same garage sale i bought a usb card. when i put the usb card in and started it up i started up as usual. i istalled the drivers for my webcam (logitech quickcam messenger
-
Hi, 1. How to di-activate <CR> 'Enter Key' HTML Code? 2. How to increase the the font of DW Help Explanations?