Logic required for my normal report
Hi,
my report output is below .
docu # material no. quantity net price
55467488 12376 10 5
55467488 12376 20 10
55467489 12376 30 12
60 27
55347388 34567 56 8
55347387 34567 12 12
68 20
grand total ________________
128 47
My requirement is now user wants for same material instead of individual lines it should come only one line with addition operation.please help me how to do it ??In my int. table all the records availavle but ho
ex. 55467488 12376 60 27
55347388 34567 68 20
Please search for available information before turning to the forums for help.
Edited by: kishan P on Sep 3, 2010 11:00 AM
Hi,
Use AT NEW and AT END OF control statements for ur requirement. Search SCN how to use AT NEW and AT END OF statement or press F1.
Regards,
Selva
Similar Messages
-
I have a requirement for the Standard report like QA33
Hi All
I have a requirement for the Standard report like QA33. The requirement is that, in the output of QA33,
The Requisitioner, Purchasing group and Tracking Number should be displayed
Please give me suggestions to do this
I searched for User Exits and I found QEVA0004, QEVA0005, QEVA0006, QEVA0007, QEVA0008, QEVA0009, QEVA0010, QLCO0001, QSS10001.
In the Above which exits I can use and how to implement them
Pls reply
Thnx in Advance
Regards
P KAMALWhen changing or deleting one or more lines of the internal table
"\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table
"\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS", 0 was used as
the line index. An index less than or equal to zero is not
allowed.
The error can occur when using the following options:
1. "INDEX idx" for specifying the line number in the table
"\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS"
where you want to change, insert or delete.
2. "FROM idx" for specifying the start index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS".
3. "TO idx" for specifying the end index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS".
At the time of the termination, the table contained 2 lines.
This is the error
I went to se80 and copied the whole program - > but getting this error -
Logic required for creation of PR and PO report
Dear Experts,
I want to create a report which gives the details of internal lead time for creation purchase requisition to purchase order. Well which tables I need to use for this . I know some tables like eban, ekko to join. Can you please give me the correct information. I only want those purchase orders which are created with purchase requisition. I need to calculate how many days taken from PR to PO.Dear,
PR release date will be found in CDHDR table in CDHDR-UDATE. PO dates you can find as mentioned in replies.
But the problem is the time taking for executing the report. It will more lenghty to read different tables and give you output (if you go for yearly range data). ABAP dump error.
Better, just consult with ABAP team and they can give you a correct solution.
Regards,
Syed Hussain. -
Programming Logic required for pulling the records for past month /week
Hi All
I need help in the SQL programming logic.
Oracle Database Version: 10.2.0.3.0
Requirement
In a data warehouse environment, I need to programme for weekly and monthly automated batch jobs to insert the data from Data_tbl to Reporting_tbl for generating reports. Tables descriptions are given below.
Table1 - Data_tbl (Source table –this table gets updated everyday).
Record_dt first_name last_name
Table2 - Reporting_tbl_(Target table)
Cycle_dt first_name last_name
1. Monthly Report
In the SQL Query, I have where clause condition—
Where Record_dt >=’01-nov-08’ and record_dt<=’30-nov-08’
Using the above condition in development, I am pulling the data from source table for the past month data. This will be repeated every month and it should be automated.
i.e., if I run this report any time in dec 2008, it should pick records of dates from Nov 01st to Nov 30th 2008. if I run this report any time in Jan 2009, it should pick records of dates from Dec 01st to Dec 31st 2008.
Date Values should be assigned for past month. Value of Cycle_dt in target table should be end date of past month like 30-nov-2008, 31-dec-2008.
2. Weekly Report
In the SQL Query, I have where clause condition—
Where Record_dt >=’01-dec-08’ and record_dt<=’07-dec-08’
Here week start day is Monday and end day is Sunday.
If I run the report between Dec 08th to Dec 14th , it should pull records of dates from Dec 01st to Dec 07th 2008.
On Dec 15th, it should pick from Dec 08th to Dec 14th.
Value of Cycle_dt in target table should be end date of past week like 07-Dec-2008, 14-Dec-2008.
Please help me with the logics for both Monthly and Weekly reports.
ThanksHi,
For the monthly report, instead of
Where Record_dt >=’01-nov-08’ and record_dt<=’30-nov-08’say:
Where Record_dt >= TRUNC (ADD_MONTHS (SYSDATE, -1), 'MM')
and record_dt < TRUNC (SYSDATE, 'MM')SYSDATE is the current DATE.
TRUNC (SYSDATE, 'MM') is the beginning of the current month. (Notice the condition above is less than this date, not equal to it.)
ADD_MONTHS (STSDATE, -1) is a date exactly one month ago, therefore it is in the previous month.
For the weekly report, instead of:
Where Record_dt >=’01-dec-08’ and record_dt<=’07-dec-08’say
Where Record_dt >= TRUNC (SYSDATE - 7, 'IW')
and record_dt < TRUNC (SYSDATE, 'IW')TRUNC (dt, 'IW') is the beginning of the ISO week (Monday-Sunday) that contains dt. Again, notice the end condition is strictly less than the beginning of the current week. -
Logic required for Sort in ALV
Hi All,
I am dowloding the ALV report layout in excel sheet thorough mailing functionality.
I want to implenemnt the dynamic sort. Here I am writing this.but i want the logic for below code.
CALL FUNCTION 'LT_DBDATA_READ_FROM_LTDX'
EXPORTING
I_TOOL = 'LT'
IS_VARKEY = W_VARKEY_EU
TABLES
T_DBFIELDCAT = IT_DBFIELDCAT_EU
T_DBSORTINFO = IT_DBSORTINFO
T_DBFILTER = IT_FILTER_LAYOUT
T_DBLAYOUT = IT_DB_LAYOUT.
LIT_DBSORTINFO[] = IT_DBSORTINFO[].
SORT LIT_DBSORTINFO[] BY KEY1.
DELETE ADJACENT DUPLICATES FROM LIT_DBSORTINFO[] COMPARING KEY1.
LOOP AT LIT_DBSORTINFO[].
CLEAR: LW_SPOS,
LW_UP,
LW_DOWN,
LW_SUBTOT,
LW_COMP,
LW_EXPA,
LW_GROUP.
CLEAR IT_DBSORTINFO[].
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'SPOS'.
IF SY-SUBRC = 0.
LW_SPOS = IT_DBSORTINFO-VALUE.
ENDIF.
CLEAR IT_DBSORTINFO.
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'UP'.
IF SY-SUBRC = 0.
LW_UP = IT_DBSORTINFO-VALUE.
ENDIF.
CLEAR IT_DBSORTINFO.
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'DOWN'.
IF SY-SUBRC = 0.
LW_DOWN = IT_DBSORTINFO-VALUE.
ENDIF.
CLEAR IT_DBSORTINFO.
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'SUBTOT'.
IF SY-SUBRC = 0.
LW_SUBTOT = IT_DBSORTINFO-VALUE.
ENDIF.
CLEAR IT_DBSORTINFO.
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'COMP'.
IF SY-SUBRC = 0.
LW_COMP = IT_DBSORTINFO-VALUE.
ENDIF.
CLEAR IT_DBSORTINFO.
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'EXPA'.
IF SY-SUBRC = 0.
LW_EXPA = IT_DBSORTINFO-VALUE.
ENDIF.
CLEAR IT_DBSORTINFO.
READ TABLE IT_DBSORTINFO WITH KEY
KEY1 = LIT_DBSORTINFO-KEY1
PARAM = 'GROUP'.
IF SY-SUBRC = 0.
LW_GROUP = IT_DBSORTINFO-VALUE.
ENDIF.
LOOP AT IT_ALV_DATA FROM W_LOOP_FROM_EU TO W_LOOP_TO_EU.
LW_TABIX = SY-TABIX.
READ TABLE IT_FIELDCAT INTO LW_FIELDCAT WITH KEY
FIELDNAME = LIT_DBSORTINFO-KEY1.
IF SY-SUBRC = 0.
ASSIGN COMPONENT SY-TABIX OF
STRUCTURE IT_ALV_DATA TO <LFS>.
IF SY-SUBRC = 0.
CLEAR LW_CHAR.
LW_CHAR = <LFS>.
IF LW_SPOS= 'SPOS'.
LOGIC Required
ENDIF.
ELSEIF LW_OPTION = 'DOWN'.
LOgic required
ENDIF.
ENDIF.
ENDLOOP.
ENDLOOP.
regards,
Ajay reddyHai,
Let
1)general data
2)all customers
3)company code data
4)sales organization data
are the check box names,Then
Just use the piece of code below:
<b>IF general data = 'X'.
COUNT = COUNT + 1.
ENDIF.
IF all_customers = 'X'.
COUNT = COUNT + 1.
ENDIF.
IF company_code_data = 'X'.
COUNT = COUNT + 1.
ENDIF.
IF sales_organization_data = 'X'.
COUNT = COUNT + 1.
ENDIF.</b>
Now check whether more than one Check Boxes are selected or not
<b>IF COUNT GT 1.
"* Do the oprations what ever you want here
ENDIF.</b>
<b>Reward points if it helps you.</b>
Regds,
Rama chary.Pammi -
Printing requirements for Bi publisher report
Hi all
Can any one tell me the steps required for me to look at the setups on my server side so that i can print the reports using the bursting API.The problem is i am not able to debug the log file as there is no connection error or any other exception but still i am not able to see the documents printed.
this is part of my log file
POST /printers/u260 HTTP/1.1Host: u260:631
User-Agent: Oracle XML Publisher 5.6.3
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/ipp
<<<
IPP version: 10
operation id: 410
charset: utf-8
request id: 1
-- operation attrs --
[1]attributes-charset:utf-8
[1]attributes-natural-language:en-us
-- printer attrs --
-- job attrs --
From this i understood that there is no problem with the connection but some how it is not printing.
Any help will be appreciated as i am having tough time figuring out this.
Thanks
HarshaYou need about 40 GB total. Also make sure that your /tmp and /var/tmp have about 2GB free in them, otherwise the installation will fail. (I can't remember the exact numbers, though.)
I agree, the system requirements do not exist anywere in any straightforward documentation. You need to read at least three different documents to piece together the requirements, and the results will still be incomplete. -
Logic required for report in which selection criteria is more than one
Hi Friends,
I have below piece of selection-screen criteria in my report.
1)general data
2)all customers
3)company code data
a)company code
4)sales organization data
a)sales org.
b)dist. channel
c)division
d)field group
In above one, 1..4 are check boxes and a..d are select-options under the respective check box.
Please provide me the sample logic which I need to maintain in my report if user selects more than 1 check box.
Thnks in advance.Hai,
Let
1)general data
2)all customers
3)company code data
4)sales organization data
are the check box names,Then
Just use the piece of code below:
<b>IF general data = 'X'.
COUNT = COUNT + 1.
ENDIF.
IF all_customers = 'X'.
COUNT = COUNT + 1.
ENDIF.
IF company_code_data = 'X'.
COUNT = COUNT + 1.
ENDIF.
IF sales_organization_data = 'X'.
COUNT = COUNT + 1.
ENDIF.</b>
Now check whether more than one Check Boxes are selected or not
<b>IF COUNT GT 1.
"* Do the oprations what ever you want here
ENDIF.</b>
<b>Reward points if it helps you.</b>
Regds,
Rama chary.Pammi -
Help required for the users report requirement
Hello,
User requirement is to get the report as follows
Period planned order Production order Backlog
Feb2008 15 3 18
March2008 4 11 15
Backlog is the formula for planned order & production order.
My problem is that, In the cube the data for planned order is the char value 'X' or a blank.
It has to count the total of planned order for the entire month of feb,& print the value counting the number of 'X',here as shown as 15.
Planned order, Production order are in rows & are chracteristics.
Is thr any solution to count master data which has a char value(X).
I have tried using the formula variable.I had created the new formula.Then using the data functions as count(Formula variable),using the replacment path.But it did not work
Help me out to find the total for the char value of the master data.
Help would be rewarded!Hello,
For BACKEND:
1) Create a normal KF say counter and include it in the cube.
2) Now you can populate the value for this KF via end routine in transformation.
3) You need to check whether the value for planned order is X. If yes then update KF with value 1.
4) I hope you can take care of this routine part. Once this is done the data in the cube might look in below manner:
Month Planned-Order Counter
Feb 2007 | X | 1
Feb 2007 | X | 1
Feb 2007 | | 0
Feb 2007 | X | 1
Feb 2007 | | 0
Mar 2007 | | 0
Mar 2007 | X | 1
Mar 2007 | | 0
Mar 2007 | | 0
Mar 2007 | X | 1
Now in the report if you include month and counter the report will look like
Month Counter
Feb 2007 | 3
Mar 2007 | 2
If you see the counter is getting aggregated to give you the sum against the value of planned order as X against month.
I think this should work.
If this dosent work let me know i will let you the alternate solution for frontend. but for that too you need to make the above backend changes.
So do the backend changes and try to use counter KF for showing planned orders and i think it should work fine.
Regds,
Shashank -
Development and Production Requirements for a Forms/Report application
Dear all,
We have an application witch run in client/Server mode using Forms/Reports 6i For 300 users.We want to migrate it on Forms/Reports 9I using Oracle 9IAS and Oracle 9IDB.
I would like to have advises about material requirements of both development and production environment((developer deskop, development appServer and databaseServer, end user desktop,production databaseServer and production AppServer).
Thank u for giving more details about my request.I have my dev and production on 2 different databases/instances, and the workspaces have a different name aswell (think 'dev' and 'prod').
I do reuse my application ids, which makes the whole process a lot more manageable: easier for me to identify and replacing a whole application.
However, when i want to replace only 1 page, apex stumbles over the workspace. Bummer.
So i took an export of a page on both workspaces, and opened the files.
prompt Set Credentials...
begin
-- Assumes you are running the script connected to SQL*Plus as the Oracle user APEX_040100 or as the owner (parsing schema) of the application.
wwv_flow_api.set_security_group_id(p_security_group_id=>nvl(wwv_flow_application_install.get_workspace_id,1377027056414870));
end;
wwv_flow_application_install.get_workspace_id,1377027056414870));
I took both workspace IDs and keep them in a simple txt in my installation-files folder. Each time i need to import a page from dev->prod i go in the exported file from dev and change the workspace id to the id of my production workspace id. Everything works magically after that.
If your application ids also differ, you can try changing the id in the exported file aswell, but i can't tell if it works or not since i've not done that yet.
prompt Set Application ID...
begin
-- SET APPLICATION ID
wwv_flow.g_flow_id := nvl(wwv_flow_application_install.get_application_id,130);
wwv_flow_api.g_id_offset := nvl(wwv_flow_application_install.get_offset,0);
null;
end;where of course you'd change around nvl(wwv_flow_application_install.get_application_id,130); -
Logic required for the requirement (urgent)
HI experts,
can anyone help me out regarding the following logic.
The logic will check for both complete and partial goods receipts and invoice receipts. Based on the PO line item history it will calculate the totals into following categories:
(1) Total PO Line Item value with both GR & IR
(2) Total PO Line Item value with GR but no IR
(3) Total PO Line Item value with IR but no GR
For a single PO line, it is possible to have the Total Line Item Value divided into one or more of the above three categories at the same time. For example, if for a PO line item with 100 unit at $10.00 per unit, there is a GR for 50 Units and IR for only 30 units, the three columns above will be populated as:
(1) Total PO Line Item value with both GR & IR 30 x 10 = 300
(2) Total PO Line Item value with GR but no IR 20 x 10 = 200
(3) Total PO Line Item value with IR but no GR 0 x 10 = 0
Similarly, if for a PO line item with 100 units and $10.00 per unit, there is a GR for 50 units and IR for 70 units, the three columns will be populated as:
(1) Total PO Line Item value with both GR & IR 50 x 10 = 500
(2) Total PO Line Item value with GR but no IR 0 x 10 = 0
(3) Total PO Line Item value with IR but no GR 20 x 10 = 200
Regards,
NagarajMaybe this example will help....
report zrich_0002 .
data: iekbe type table of ekbe with header line.
data: xmbew type mbew.
data: xekpo type ekpo.
data: begin of ibuckets occurs 0,
ebeln type ekpo-ebeln,
ebelp type ekpo-ebelp,
pgrir type p decimals 2, " Total GR & IR
pgr type p decimals 2, " Total GR
pir type p decimals 2, " Total IR
pgrni type p decimals 2, "GR no IR
pirng type p decimals 2, "IR no GR
end of ibuckets.
parameters: p_ebeln type ekko-ebeln,
p_ebelp type ekpo-ebelp.
start-of-selection.
clear iekbe. refresh iekbe.
select * into table iekbe from ekbe
where ebeln = p_ebeln
and ebelp = p_ebelp
and vgabe in ('1','2').
loop at iekbe.
clear ibuckets.
ibuckets-ebeln = iekbe-ebeln.
ibuckets-ebelp = iekbe-ebelp.
select single * from ekpo into xekpo
where ebeln = iekbe-ebeln
and ebelp = iekbe-ebelp.
select single * from mbew into xmbew
where matnr = xekpo-matnr.
case iekbe-vgabe.
when '1'.
ibuckets-pgrir = iekbe-menge * xmbew-stprs.
ibuckets-pgr = iekbe-menge * xmbew-stprs.
when '2'.
ibuckets-pgrir = iekbe-menge * xmbew-stprs.
ibuckets-pir = iekbe-menge * xmbew-stprs.
endcase.
collect ibuckets.
endloop.
loop at ibuckets.
ibuckets-pgrni = ibuckets-pgr - ibuckets-pir.
ibuckets-pirng = ibuckets-pir - ibuckets-pgr.
if ibuckets-pgrni < 0.
clear ibuckets-pgrni.
endif.
if ibuckets-pirng < 0.
clear ibuckets-pirng.
endif.
modify ibuckets.
endloop.
loop at ibuckets.
write:/ ibuckets-ebeln,
ibuckets-ebelp ,
ibuckets-pgrir,
ibuckets-pgr ,
ibuckets-pir ,
ibuckets-pgrni ,
ibuckets-pirng .
endloop.
Regards,
Rich Heilman -
Reg logic required for selection-screen.
Hi,
i have one requirement
on selection screen 2 radio button
1 for service
2 for account
Parameter FILE LOCALFILE Filename
If the radiobutton ACCOUNT is selected the default name for file will be:
Rev_acc_com_&system_time_stamp&.dat
Elseif the radiobutton SERVICE is selected the default name for file will be:
Rev_srv_com_&system_time_stamp&.dat
some body can give the logic for this.take the following solution
data: tstamp type TZNTSTMPS.
data: filename type string.
call function 'CONVERT_INTO_TIMESTAMP'
exporting
I_DATLO = sy-datum
I_TIMLO = sy-uzeit
importing
E_TIMESTAMP = tstamp.
if ACCOUNT is selected then
concatenate 'Rev_srv_com_' tstamp '.dat' into filename.
else if SERVICE is selected then
concatenate 'Rev_srv_com_' tstamp '.dat' into filename.
the filename variable will be containing ur required file name..
reward points if useful.... -
Password required for pdfs normally read under Windows
For some pdfs which I seamlessly open under Windows, I get password prompt and finally without password they do not open.
I noticed that there are additional security options set on these documents, but still they do open in the Reader under Windows.
How to open such files?Yes, I am interested in this as well. I purchased a PDF document (SCJP Study Guide) for $30 from ePlanetLabs.com. The content is excellent and I began reading it on my PC.
Then I got the Nokia 9300. And, being on-the-go, I decided to move my e-book to it. The reader on the 9300 asks me for my password; which I provide and it accepts.
But most of the book is garbled in the reader. The only thing that I can read is the reminder on the top of all 40 pages:
SCJP 5.0 Certification Study Guide for Sun Certified Programmer
IMPORTANT NOTE: We did our best to develop this product. We are not responsible to meet highest quality of any one's high expectations. You purchased this eBook with your own risk and with your own interest, so we are not responsible for any of your dissatisfaction or concerns. Thanks for your purchase.
Well. This is nice. Adobe Reader is free. Nokia 9300 is a cost-item. And so is my eBook. But neither Adobe, Nokia nor ePlanetLabs will accept responsibility for being able to actually *use* my eBook.
It doesn't stop there, however. I ordered a book (in PDF) from campusebookstore.com; again, it reads fine on my PC. But on my Nokia 9300, Adobe Reader (1.1 Build 08202004) reports:
--------- snip -------------
ERROR:
This file is encrypted using an unsupported PDF encryption scheme.
--------- snip -------------
I went back to my PC to determine what the file's properties are... and Poof! I cannot open it on my PC. Adobe Reader (7.0.8) reports:
--------- snip -------------
CANNOT OPEN DOCUMENT
This document cannot be opened because its ownership has not been established on this computer.
(O) I own it and I copied it to this computer or restored it from a backup
() Someone else gave it to me and I would like to own it
[Obtain Ownership] [Cancel]
--------- snip -------------
Somewhere along the way (during the past 7 hours which I have spent trying to solve Adobe issues) I used the Adobe DRM Activator and apparently corrupted the initial Activator which was installed with my eBook. What frustration!
At this point in the technology... it seems that normal books are best; at least until Adobe can simplify life for the end-user with the same zeal which it has for protecting the sellers of eBooks. -
Inputs required for Displaying whole Report in Single Currency only
Hi All,
Actually in R/3 Transactions are recorded in different currencies like 1)USD
2)AUD,CAD,EURO(Non-USD or FCC)
Firstly,
I need to display whole report in USD only. I have to convert all other currencies to USD (What are the posssible options and how to handle Currency Conversion)
Second Scenario
Moreover I have to provide Selection Screen options for Query in such a way that query has to display like below
1) USD only.( If I give USD in selection screen of query it has to Retreive USD data only)
2)FCC(NON-USD) only.(It has to retreive AUD,CAD,EURO etc only)
3)Doc Currency (if i give whatever currency like it that may be USD or CAD or AUD that only should be retreived.)
How to handle the above Selection criteria
As iam not aware of the above Pls be very clear.
Regards,
C.V.Hi,
If you shift the display mode of FF7B to standard Overview (F9) or click balance on display currency, the values will be shown in selected display currency in the entry screen.
The pre-requisiste for getting correct value is to maintain the curr conversion table daily using OB08.
Regards
Prasad AV -
Help required for our Crystal Reports billing reports
Hi there, excuse me if this is the wrong location to make this post, just registered today and in need of help. We employee an in house developer and use Crystal Reports 2008, Service Pack 3 and have a couple of issues using Crystal Reports effecting the bills we email out to our clients and hoping someone can advise or point us in the direction of a partner who is an expert in this area.
Issues are:
We use a background colour for each section of our customers bill. When a section rolls over on to another page i.e. multiple sections we cant get the background colour grow to the bottom of the page. For example the customer sees the background colour stop possibly 1/2 way down the page.
Intermittently about 30% of the time where the customer has more than 2 pages we get a blank page inserted with nothing but has our logo in the same position.
Displaying $ figures using the default currency format on to the bill shows negative figures with the $ in front of the - i.e. $-2.81 instead of -$2.81
We have an issue occasionally the last line on the bottom of a page changes the thickness of the line and also the position i.e. the line appears lighter & sometimes indented about 10mm.
We would love to apply a banner down the right hand side of our landscaped page however the bill is broken into sections which we understand we cant have a full length banner? Open to ideas.
Thank you for any direction on how to resolve these issues, we have been living with them for 3 years. As mentioned above happy to pay for any expert to help us through this or refer to a partner.
Thanks again
DwayneTo add to Jamie's post. Updating to Service Pack 7 will not be a bad idea either. You will have to contact sales: 866-681-3435or Customer Interaction Center: SAP Service Marketplace Content Page to get the SP.
Other than that, one question per Discussion would be great. SCN Rules of Engagement.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
MTD Logic Required for Calculation
I have Month and year field in my DSO. Values Year(2009) and Month(4)
I want below logic to calculate -
MTD qty % = (qty * elapse days) / no of days in month
so from the above, I want to know,
1. How can we get the no of days from the above 2 objects (year and month).
2. Elapse days are the days that are over from current date to Ist day of that month.
eg: current date - 04.03.2009 , 1st day of the month - 04.01.2009,
elapse days = 2. (you need to consider all days in the month, not only working days)
so my questions is how can we get, # of days n a month from above 2 fields and elapse days based on the above condition.
Also let me know, where in I need to put in my calculations at transformation level or at query level
please provide your suggestions.
Thanks,
PraHi Pra,
you can do this in both levels. But in this szenarion I would prefer a customer exit on query level. Otherwise you have to load data on daily basis.
There are several function modules to implement this logic. Take a look at e.g. FIMA_DAYS_AND_MONTHS_AND_YEARS. This FM expects 2 import dates. You can fill in 2 dates like 1st day of month & last day of month. You can use this FM two times. First for calcualting all days of the month, second with last day sy-datum.
I would use a calcualted key figure with formula variable of type customer exit. This variable will read the input date from an input ready date variable of type intervall based on 0CALMONTH.
Regards
Andreas
Maybe you are looking for
-
Orange livebox connection problem
has anyone managed to connect their i-phone to their orange livebox? Orange tech support in India is hopeless...and Apple support in the UK is equally useless. I cant believe that these two massive players in the global communications industry cannot
-
I bought the Dark Knight DVD that came with a digital copy and down loaded it into iTunes. But when I sync my 5th gen iPod the movie almost finishes transfering and errors out. Is it only compatable with the iPhone and touch? I found out the first ti
-
All, We are using SAP ECC 6.0 I am trying to find out where I can assign a Global Location Number to our company or Plant. I understand I can assign the GLN for our Vendors in the Vendor Master , Control data section (Loc1, Loc2, check digit) I also
-
Newbie: Java/JDBC best approach
Hello, i am having trouble understanding the best approach to develop java/jdbc programs. I was told that the i could best load resultset data in to value objects loaded into a vector and handled by data access objects instead of using the resultset
-
http://onesearch.sun.com/ClickThru?qt=uploadaction&url=http%3A%2F%2Fforum.java.sun.com%2Fthread.jsp%3Fforum%3D54%26thread%3D562171&pathInfo=%2Fsearch%2Fonesearch%2Findex.jsp&hitNum=1&col=developer-forums hi guys I've tried the code here, is that supp