Getting the Data for Outbound Interface
Hello,
I am doing a outbound interface in which i need to take the Economic Order Quantity , Minimum order quantity , Present cost of the item and Prevoius Cost of the Item(Average costing may be used). The Process of Defining the required fields in Oracle is not yet Started as the Implementation is new. If any body have the approximate idea, where can we get the fields(Oracle Tables) it will be helpful. As this is just a Prototype u are welcome to provide the rough data which may change in future once the process is clearly defined .
Expecting the Reply.
Hello Madhav Dhurjaty,
Thanks for the Reply..
Economic order is not available in MTL_SYSTEM_ITEMS_B or TL..
we need to derive by some formula..EOQ = SQRT {[2*(annual demand)*(order cost)]/(annual carrying cost)}
Annual demand is calculated from the forecast we provide when we perform reorder point planning. Order Cost and Carrying Cost can be obtained when defining items (General Planning).
But my concern is how to get the Annual demand...
Awaiting for ur reply..
Similar Messages
-
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
How to get the date for the last day of a week?
Is there a easy way to get the date for the last day of week?
eg a week starts on monday and end on sunday
January 11, 2005 is the start date for the week
January 17, 2005 is the end date for the week
or
say
February 26, 2003 is the start date for the week
March 5, 2003 is the end date for the week
I just need a simple way of figuring that out....
I figured out how to get the start date for the week but just can't get the latter..
formatting of the date is not of a concern.. that I know how to do
thanks in advanceHow about something like the following?
Calendar someDay = new GregorianCalendar(2005,0,11);//2005 Jan, 11
//Note above that January is 0, not 1, as counting starts from 0.
someDay.add(Calendar.DAY_OF_MONTH,6); //add 6 days
java.util.Date lastDayOfWeek = someDay.getTime();
//If someDay was the start of a week, lastDayOfWeek should now be
//the last day of that week.
System.out.println(lastDayOfWeek.toString() ); -
Where can we get the data for pre calculated reports
Hi,
i want to see the data for pre calculated reports (Reporting agent)
where can we get the data for pre calculated reports
Thanks & Regards,
Shaliny. MDear,
This feature of precalculating reports is to enhance the report performance. You will need to schedule this periodically, so that the report is fetched and cached. This allows faster retrieval of report data. Plz. understand that, this scheduling needs to run after every data load in the corresponding cube, so that, the latest data is cached, else the report data will be obsolete.
Thanks -
Hi All,
I have a simple query which is below:-
Declare @reportdate date
set @reportdate= (DATEADD(dd,-5,getdate()))
select * from dbo.Table
where date IN (@reportdate)
I need this query to pull the data for the last 3rd business day .So lets say today is monday then i need the data for last week wednesday which is 3 business days back from monday, if today is a tuesday it would be for last thursday ( as 3 business days for
tuesday would be thursday). But if today is wednesday then i need to be last 3rd business day which is last friday and i also need to get the data for saturday and sunday.
Can someone please help me how cani change my filter to do this?
Please let me know if i am still unclear.
ThanksHi SqlDev12,
Based on my understanding on your requirement, you can reference the below sample.
CREATE TABLE BusinessTable
Bdate DATE,
Wd VARCHAR(10)
;WITH Cte(DT,WD) AS
SELECT CAST('20150401' AS DATE),DATENAME(WEEKDAY,CAST('20150401' AS DATE))
UNION ALL
SELECT DATEADD(DAY,1,DT),DATENAME(WEEKDAY,DATEADD(DAY,1,DT)) FROM Cte
WHERE DT<GETDATE()
INSERT INTO BusinessTable SELECT * FROM Cte
SELECT * FROM BusinessTable
SET DATEFIRST 7 -- Set Sunday as the first day of a week
DECLARE @givenDay DATE ='20150415' --Wednesday
SELECT * FROM BusinessTable
WHERE Bdate BETWEEN
--For Monday and Sunday, select last wednesday
(CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
--For Tuesday and Wednesday, last week's Thursday and Friday
WHEN DATEPART(WEEKDAY,@givenDay) IN(3,4) THEN DATEADD(DAY,-5,@givenDay)
--For Thursday and Friday, current week's Monday and Tuesday
WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
--For Saturday, current week's Wednesday
ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
AND
(CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
WHEN DATEPART(WEEKDAY,@givenDay) IN(3) THEN DATEADD(DAY,-5,@givenDay)
WHEN DATEPART(WEEKDAY,@givenDay) IN(4) THEN DATEADD(DAY,-3,@givenDay)
WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
DROP TABLE BusinessTable
If you have any feedback on our support, you can click
here.
Eric Zhang
TechNet Community Support -
Getting the data for the infotype 0006 and Subtype 4 in HR ABAP
Hi All,
I need to get the data from the info type 0006 and the subtype 4 , only i need to fetch the data in communications . Could you any one tell me best way to fetch that data.
Thanks,
SAP SAR.Write a select single on PA0006 for the given pernr begin and end dates and for subtype 4 ...
select single * from PA0006
where pernr = p_pernr
and SUBTY = '0004'
and ENDDA >= s_date-low
and BEGDA <= s_date-high. -
How to approach in getting the dates for the user given periods
Hi All,
I have areuirement where the calendar would be like as 466 for a period
for eg. period 1(Jan) has 4 weeks
period 2(Feb) has 6 weeks
period 3(Mar) has 6 weeks
again period 4(Apr) has 4 weeks
period 5(May) has 6 weeks
period 6(June) has 6 weeks
How to get the dates (from date and end date) for the periods.
Anybody's help will be appreciated
Regards
SaugataI have areuirement where the calendar would be like as 466 for a periodWhat does that mean? Is 466 the format of the data?
The end date depends on the start date. This query might be helpful for you
SQL> WITH data AS(
2 SELECT 1 period, 4 duration FROM dual UNION ALL
3 SELECT 2, 6 FROM dual UNION ALL
4 SELECT 3, 6 FROM dual UNION ALL
5 SELECT 4, 4 FROM dual UNION ALL
6 SELECT 5, 6 FROM dual UNION ALL
7 SELECT 6, 6 FROM dual)
8 SELECT
9 period,
10 duration,
11 SYSDATE + SUM(duration) OVER (ORDER BY period RANGE UNBOUNDED PRECEDING) * 7 AS end_date
12 FROM data
13 ;
PERIOD DURATION END_DATE
1 4 16-NOV-07
2 6 28-DEC-07
3 6 08-FEB-08
4 4 07-MAR-08
5 6 18-APR-08
6 6 30-MAY-08
6 rows selected.
SQL> -
Using inbound service to produce data for outbound interface
Hi,
with SAP Enterprise services, we have lots of functionnality provided by SAP which we can use to easily get information
without having too much custom development done in the backend.
In our cas for example, we want to use an erecruiting enterprise service to extract data and send it to an external provider in an xml file.
here are the constraints
1) Reduce development as much as possible
2) Use PI to interface with external systems.
3) External system canot initiate the process.
It would be nice to reuse SAP content (Enterprise services) in order to extract the data and replicate it to the external system.
One way to do this would be to have a program which calls the method of the proxy that implements the enterprise service.
Then the program can just call PI to create a file with the contents returned by the method.
This is not an elegant solution ... , I would have liked PI to initiate the call at a specific time and with the response of the call send the xml file to the provider... this seems to be the reverse of what PI does...
I'm sure there are other solutions... any ideas ?
This is more of an extract and transfer scenario with PI...
Thanks.Hi Thierry,
we want to use an erecruiting enterprise service to extract data and send it to an external
provider in an xml file
Please consider that the Auto generated proxies in Enterprise services are mostly Inbound( to SAP)
and have request and response structure.
When you are bringing PI into picture then you will need to create outbound structures, which you need
to copy.You will face issues with work around as suggested above , the proxies are not editable
and to make it editable you will end up creating a copy which will add more work then reuse.
Also think if the customer wants to enhance few field in the Req/Resp strucutures
(we need to consider this for sure)enhancing the structure is possible using dependencies
but it required costom changes.If you are expecting enhancements then better don't use enterprise services.
As SAP standard is designed to accept request and send response , its always correct to
request third party (consumer) to ask/trigger for data,unlike trying to put PI as triggering agent.
Conclusion:
Regards,
$rinivas
Edited by: Srinivas on Aug 12, 2010 7:27 AM
Edited by: Srinivas on Aug 12, 2010 7:37 AM -
Getting the data for last month of every year
Hi,
How to declare the date if we want to pull the data from the December of every year.
For example if the query is run in march 2015 and they want the historical data it should pull only the data from dec 2014.
In the same way if they ran the query in future jun 2016 and if they want to historical data it should pull only data from dec 2015.
It should not coded manually. Please help me with date format that need to used.
BALUSUSRIHARSHAPlease follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for:
https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
A table has to have a key to be table. Here is my guess at a repair job:
CREATE TABLE Test_Data
(pu_id INTEGER NOT NULL
REFERENCES PU(pu_id),
pu_date DATE DEFAULT CURRENT_TIMESTAMP NOT NULL,
PRIMARY KEY (pu_id, pu_date),
x_count INTEGER,
y_count INTEGER);
Identifiers are not numeric in a good schema. What math do you do with them? They are also the key in the table that models the entity they identify. Where is the PU table (and what is a PU anyway)?
INSERT INTO Test_Data
VALUES
(28, '2014-01-01', 10, 20), -- crap! No key in this mess!!
(28, '2015-01-01', 30, 20), --
(28, '2014-12-12', 10, 20),
(28, '2015-02-02', 10, 20);
A PIVOT is not a query and not even part of SQL. It is how Microsoft programmers who do not know RDBMS or have a report writer violate the tiered architecture of SQL. We also do not use XML mixed in SQL. It is a bitch to maintain, has poor performance and again
violates the tiered architecture principle.
A query is not sorted because it is a table. A file in COBOL can be sorted and that seems to be what you really want to write.
Old COBOL love the Sybase CONVERT() string function to avoid SQL temporal data.
We never use SELECT * in production code; Google it. Not only are you generating code, you are generation bad code.
Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is a report period calendar that everyone uses so there is no way to get disagreements in the DML.
The report period table gives a name to a range of dates that is common to the entire enterprise.
CREATE TABLE Month_Periods
(month_name CHAR(10) NOT NULL PRIMARY KEY
CHECK (month_name LIKE <pattern>),
month_start_date DATE NOT NULL,
month_end_date DATE NOT NULL,
CONSTRAINT date_ordering
CHECK (month_start_date <= month_end_date),
etc);
These report periods can overlap or have gaps. I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the ISO-8601
data format required by Standard SQL and it is language independent. The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
This will port and waste time calling string function row by row.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
How do I get the data for this one?
CF 7, SQL Server 2005
I will try and explain this as clearly as possible, let me
know if I failed and I will attempt to clear it up.
The application keeps track of orders as they go through
phases of production. Lets assume there are two phases of
production, phase1 and phase2 with 3 statuses in each phase, new,
open, complete. (depending on the phase an order can be in more
than one phase at once.)
There is a phase_log table which is a reference table that
has a row for every time the order's status changes.
Lets say the row in the phase_log table looks like this:
phase_logID | OrderID | PhaseID | StatusID | etc...
The main page will have a table for each phase, showing a
list of the orders that currently have rows in the phase_log table
for that phase. The kicker is, I only want to pull one row (the
latest status change which will consequently be the highest status
ID) for each order per phase.
once I pull the data I guess I can populate a struct or
array, but I am new to this and I can't figure out how to get the
query/s I need to get it.
Any help is appreciated,
Thanksselect phase_logid, orderid, phaseid, etc, max(statusid)
status
from yourtables
where whatever
group by phase_logid, orderid, phaseid, etc -
Getting the date for the previous day
How do I get the previous day's date with LabView 7.0? Is there a built in function that will allow me to do this (taking into account the number of days in a month, leap years etc) or do I have to write my own vi?
Thank you,
KBAll you have to do is use the Get Date/Time in Seconds and then subtract the number of seconds in a day. The result is a time stamp that should account for everything.
Attachments:
Subtract_Day.jpg 4 KB -
LIS - To get the data for the missing data for the infostructure S906
Hi
We have performed an unicode conversion In our SAP ECC 6.0 system, after the conversion, the infostructure S906 (copy of S006) was not updated for the period 22nd June to 25th June 09.
Then we regenerated the infostructure S906 using the tcode MCS/ on 26th June and after which the update rules are working correctly in S906.
Now when we run the SOP report for this week, the data is missing for the period 22nd June to 25th June 09.
We have gone thru the note 64636 - to setup the infostructure from the begining, which needs more downtime.
Is there a possibility to get the missing data for the above period only, instead of setting up the infostructure from the beginning.
Thanks & Regards
SenthilYou did not tell us what kind of update are you using. Some transactions (e.g. OLI1) allow to run it by posting date; others (e.g. OLI9) for a range of the documents. You can find what document numbers were created in the period of question and then run it for them. Although I would recommend the full rebuild.
-
BAPI commit without using Wait? need to get the data for created order
I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
If i use call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
Can i use ABAP memory or SAP memory to get the details?
Please help...........Hi Tapas379,
Yes technically you can:
set data before commit
DATA memory_id(20) TYPE c.
CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
DELETE FROM DATABASE indx(as) ID memory_id.
EXPORT vbap_tab = vbap_tab "<-input
TO DATABASE indx(as)
CLIENT sy-mandt
ID memory_id.
Get data from anywhere after setting it.
data memory_id(20) type c.
concatenate 'VBAP_01_' sy-uname into memory_id.
import vbap_tab = vbap_tab " ->output
from database indx(as)
client sy-mandt
id memory_id.
delete from database indx(as) id memory_id.
Thanks,
Duy -
Not getting the data for delta for 0ASSET_ATTR_TEXT in RSA3
Hi All
In RSA3, I am not able to extract the delta for the datasource ASSET_ATTR_TEXT. But when it is on full update then i am gettign the records, when i changed to "D" it is giving me the error 'Errors occurred during the extraction' and the error messege says
"Errors occurred during the extraction
Message no. RJ012
Diagnosis
During the extraction phase an error occurred for the extractor. An exception, 'error_passed_to_mess_handler' was triggered.
System Response
A more precise description of the error can be found in the log.
Procedure
Check the function module or the call from the extractor check program
Kindly provide some inputs on the same
Regards
Abhihi Siggi,
I have checked Datasource in the ROOSOURCE Table for this datasource the DELTA IS - AIE. And do did the Init from the BW i got 8210 recods.Then i executed the Delta Pack. there was an error happend.
But When i loaded Delta i got the error as :
Diagnosis
Not all the initialization requests have been completed yet for this
DataSource, or there may be an incorrect initialization request.
System response
No delta requests can be processed whilst there is an initialization
request that has not been completed.
Procedure Wait until the initialization request has finished, or delete the entry
for the incorrect initialization request from the corresponding display
in the Scheduler.
Regards
Abhi -
In which transactions do i get the data for tables COEP
Hello;
I am trying to retrive some archived data from this table. I need to know which transactions correspond to this table. thx
SumantaCOBK (doc head) & COEP (line items)
Transaction S_ALR_87005050 - IMG Activity: SIMG_ORK3_COEP_SM30
Transaction KAID - Delete ALE-COEP(L) Line Items
Transaction TJ01 - Journal of transactions
Maybe you are looking for
-
Best Safari version for 10.6.6
I'm running Safari 5.0.2 on a 15" Macbook Pro running Snow Leopard 10.6.6. I'm having issues with some sites so wish to try another version of Safari to see if that will help. I downloaded versions 5.0.2 (just for safety if I had to return to it), 5.
-
Using a DropDownList in a DataGrid, both with dynamically loaded content
I just bought FlashBuilder 4.5 and even though I have been using ActionScript for years, I am having the hardest time to solve a seemingly simple task: I have a database table with names of employees: id name departmentid 1 Janet Jackson 2 2 Frank Za
-
Had you been the customer support,how would you resolve this?
Hi community, i would like to have your opinion on this matter i purchased a macbook pro 45 days ago and i noticed recently that the lid does not close flush with the bottom part of the unit. so i broght it to the apple store to have a look at it the
-
Report on Vendor selection according to material group
Hi gurus, I have a requirement from client where the client want a report of the vendors according to material group. There is a standard report for this in SAP T.C.---- ME6B. But this report is not working . it is throwing message that no vendor exi
-
Pls help muacbook doent want to connect with wifi . But the airport has signal and the network im using is also connected in the system preference