Get Sales data based on MSEG entries
Hi,
I have retrieved some entries from mseg table by joining with MKPF based on budat. Now i would like to get the purchase related data based on the details in MSEG.
Could you please help joinig mseg entries with EKKO , EKPO ,LIKP, LIPS or VBEP.
Thanks in advance
Hi,
MSEG will have the details of PO and Line item. Based on these details, we can get the relevant Purchase Requisition from the table EKPO by passing the PO & Line item.
If the PR is creted with reference to Sale Order, then the details of the PR will be available in table VBEP. So that you can pass the PR number in VBEP and get the Sales Order Number. With Sales Order Number You can link LIKP & LIPS
Regards
Ramakrishna
Similar Messages
-
Getting aggregated data based on Date in Webi.
Hi,
I have a requirement to display last 6 Months Receviables Month Wise in Webi. And i am getting data based on clearing Date in Bex query. And data from Bex query will be like
Month Measure
01.01.2014 12
06.01.2014 15
15.01.2014 16
02.02.2014 8
05.02.2014 10
12.03.2014 4
14.03.2014 6
18.03.2014 10
21.03.2014 20
30.03.2014 30
03.04.2014 30
And i want aggregated data as
Month Measure
Jan 43
Feb 18
Mar 66
Apr 30Hi Satish,
Have you tried below:
Create Month1 object as =Month([Month]) and [total]as =Sum([Measure])
Then drag both Month1 and total objects in report block.
Regards,
Yuvraj -
How to get past date based on duration and factory calender?
Hi All,
when i enter the duration ,i want to get the past date based on factory calender w.r.t current date
i.e if current date is 26th jun and duration is 10 , the past date should be 12th jun (which should exclude all holidays and weekends).
Thanks
VasumathiHi,
Please check this FM: I think this will resolve ur issue.
END_TIME_DETERMINE
Cheers,
Vijay. -
I see the entry in history but can i get the date out of the entry
I can see an entry in history that Id like to be able to get the date of that entry. Is there a way? I right click and get not much info
If you view the entry in the Library dialog, you can adjust the columns displayed to include the last visit date. Either:
* Ctrl+Shift+h
* menu: History > Show All History
On the headings bar that shows Name, Location, or other headings, right-click to turn different columns on and off. Can you get the date?
Note that the Library dialog only shows the date and time of the latest visit, and not every visit. The information for other visits is harder to extract, but if it's essential, there is a way. See: [https://support.mozilla.org/en-US/questions/981055 Recalling a page from History erases the old history date. Any way to retain that older history entry along with the current one?] -
Getting the data based on dates
Hi All,
In my application i am not able to retrieve the data from database between two dates.
while entering the dates i am entring using :
+ "',to_date('+ fromdate+ "','DD-Mon-YYYY HH24:MI:SS'),"
as in database i have kept my fromdate type as "varchar2"
So while selecting data i have written the query as :
String sqlQuery =
"select SID,SERVER_NAME,DOWNTIMETYPE,FROMDATE,TODATE,FROMTIME,TOTIME,TIMETAKEN,DOWN_REASON from SS_UPDOWNTIME where (FROMDATE >='"
+ frmdate
+ "' OR (FROMDATE between '"
+ frmdate
+ "' and '"
+ todate
+ "')) ";
but i am not able to get the data between the two selected dates
Regards,
AnupamaHi Anupama,
'between' wont work because you have taken dates as varchar2.
Just try like this.
Take "Date" type in database and in java take java.sql.Date
java.sql.Date sqlDefaultDate = new java.sql.Date(System.currentTimeMillis());
System.out.println("sqlDate: "+sqlDefaultDate);
// this will be in the format 2008-11-13 , So we can pass sqlDefaultDate variable to backend
Regards,
Lakshmi Prasad. -
Where can i get sales data on my published book?
All I see on ITunes Connect is trends -- not very helpful, especially since it looks like I only have one purchased copy of my book!
You can get a data plan for your iPad if it is a cellular iPad. If it is a Wifi device, then you can not get cellular added. Does your iPad have a simcard slot?
-
Hello Experts,
Is there a function module to get the sales orders from CRM based on a given date range which
is for the field created_at? Also, is the field OBJECTID in table CRMD_ORDERADM_H can
be compared against VBAK-VBELN? Thank you guys and take care!Hi,
You can create your own function module for this. You can fetch sales order from table crmd_orderadm_h, put input data as date, and two conditions for sales order should be object type = 'BUS2000115' and PROCESS TYPE = 'TA' if you are looking for standard order.
You have to fetch object id from this table to get your order number.
Thanks,
Shweta
Message was edited by:
Shweta Verma -
How to get the data based on below data-----pls help me...
Hi,
i have the data in my table.......
SET_ID SET_Name Status date user_name
SET974 F698671 I 24/03/2011 10:40:05 TEST1
SET974 F698671 I 24/03/2011 10:40:05 TEST1
SET974 F698671 N 24/03/2011 10:40:05 TEST1
SET974 F698671 I 24/03/2011 10:40:05 TEST1
SET528 A258961 I 22/03/2011 9:40:05 TEST2
SET528 A258961 N 22/03/2011 9:40:05 TEST2
SET528 A258961 I 22/03/2011 9:40:05 TEST2
SET528 A258961 I 22/03/2011 9:40:05 TEST2
SET974 F698671 I 25/03/2011 13:40:05 TEST1
SET974 F698671 N 25/03/2011 13:40:05 TEST1
SET974 F698671 N 25/03/2011 13:40:05 TEST1
SET974 F698671 I 25/03/2011 13:40:05 TEST1
SET974 F698671 I 26/03/2011 15:40:05 TEST5
SET974 F698671 N 26/03/2011 15:40:05 TEST5
SET974 F698671 N 26/03/2011 15:40:05 TEST5
SET974 F698671 I 26/03/2011 15:40:05 TEST5
I want to know each user ,how many sets modified.
based on above input data,my output would be in the following way:
user_name no.of sets upated for single user
TEST1 2
TEST2 1
TEST5 1Based on your sample data, why does TEST1 have a count of 2? From what I can see, the only SET_ID that is associated with TEST1 is SET974 so I would think that you'd want TEST1 to have a count of 1.
If I ignore the data you posted and just look at the text of your requirements, I would guess that you wanted
SELECT user_name, COUNT( DISTINCT set_id ) cnt
FROM some_table
GROUP BY user_nameThis won't give the output you said you wanted based on the sample data you provided, however, for the reason I outlined above.
If you actually do expect to get the output you posted from the sample data you posted, can you explain in a bit more detail why TEST1 should have a value of 2? It would also be helpful to post the CREATE TABLE and INSERT statements rather than just dumping the data. If you provide DDL & DML, we can create the objects locally and verify our solutions rather than guessing based on eyeballing the data.
Justin -
Unable to Get the Data Using For All Entries
Hi everybody, i am using for all entries in a program. but when i am writing a code using for all entries i am getting an error as
Where condition does not refers to the FOR ALL ENTRIES tables...
SELECT KUNNR
NAME1
ORT01
LAND1
FROM KNA1 INTO TABLE ITAB1 WHERE KUNNR IN S_KUNNR.
IF NOT ITAB1 IS INITIAL.
SELECT VBELN
ERDAT
KUNNR
FROM VBAK INTO TABLE ITAB2 FOR ALL ENTRIES IN ITAB1 WHERE KUNNR = IT_KNA1-KUNNR.
ENDIF.
can anybody help out in this
regards
hyder aliThe correct one may be like this:
SELECT KUNNR
NAME1
ORT01
LAND1
FROM KNA1 INTO TABLE ITAB1 WHERE KUNNR IN S_KUNNR.
IF NOT ITAB1 IS INITIAL.
SELECT VBELN
ERDAT
KUNNR
FROM VBAK INTO TABLE ITAB2 FOR ALL ENTRIES IN ITAB1 WHERE KUNNR = ITAB1-KUNNR. "modified here
ENDIF.
Edited by: XuJian84 on Mar 9, 2010 4:25 AM -
Discoverer 11g - How to get Sales Data in different periods?
Good afternoon,
I am currently using Discoverer 4.1 and I can run reports that display all of these different types of sales.
I have a Cross tab and I want 5 columns showing the Sales below.
2013 Month Sales, 2013 YTD Sales, 2012 Month Sales, 2012 YTD Sales, and 2012 Total Sales
I installed Discoverer 11.1.1.3 and I copied my reports over, but no sales show up.
Does the NEW Discoverer need different calculations or conditions?
I couldn't find anything on it.
I have all of these checked.
My Conditions:
Short Date Range = '2013' AND Month = 'FEBRUARY'
My Calculations:
2012 Total = CASE WHEN "Year" = '2012' THEN Net Selling ELSE 0 END
2012 YTD = CASE WHEN YearMon IN ('201201', ‘201202’) THEN Net Selling ELSE 0 END
2012 Mth = CASE WHEN YearMon = '201202' THEN Net Selling ELSE 0 END
2013 YTD = CASE WHEN YearMon IN ('201301', ‘201302’) THEN Net Selling ELSE 0 END
2013 Mth = CASE WHEN YearMon = '201302' THEN Net Selling ELSE 0 END
Keep in mind, these conditions and calculations work perfectly in Discoverer 4.1.
Any help is appreciated.
Let me know if you require anymore information.
Thanks,
Andy HoangHave a look at the following note:-
Note 1573200 - How to restructure the statistic data of the sales information system (SIS)
But before trying to carry out the process as detailed in the above note, first check with other SIS reports like MCTA etc., and no reports are showing correctly, then you can proceed. Otherwise, you need to raise an OSS message with SAP.
G. Lakshmipathi -
How to get working Date based on factory Calendar and current date
Hi All,
I want to deletermine a date which is Invoice date + 3 working days excluding SAT, SUN and holidays. For e.g, if Invoice date is 18th Sept, 2009, then my desired date should 23rd Sept, 2009.
I do have factory calendar ID but i dont know the proper function module.
Can some one please help me...Hi,
check this code,
DATA:
w_date TYPE dats,
w_date1 LIKE scal-date, " dats
w_date2 LIKE scal-date,
i_factid LIKE tkevs-fcalid VALUE 'IN', " IN for India
it_dats TYPE TABLE OF rke_dat,
wa_dats LIKE LINE OF it_dats,
w_lines TYPE i.
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
days = '0'
months = '1'
start_date = sy-datum " for example '20090918'
IMPORTING
result_date = w_date. " 1 month added '20091018'
w_date1 = sy-datum.
w_date2 = w_date.
CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'
EXPORTING
i_datab = w_date1
i_datbi = w_date2
i_factid = i_factid
TABLES
eth_dats = it_dats. " number of working days between two dates
READ TABLE it_dats INDEX 4 INTO wa_dats.
WRITE :
/ wa_dats-periodat. " new date '20090923'
Hope this will be helpfull...
Regards
Adil -
Simple select to get data based on a date
Hi all
I have written some data to a table and am having issues trying to do a select and get that data based on the query.
I want to filter on a column called: TIMESTAMP based on the condition that the data was written to the DB on the following date:
01-OCT-09 10.47.35.597914000
I thought this would be enough:
select * from tableX
where current_value = 999
and TIMESTAMP = '01-Oct-2009'
I know the 999 exists because if I take out the last line I get the data I want.
A basic question I know but any help much appreciated.Dird wrote:
Hi Boneist,
When using > or < I use TO_DATE with DD-MON-YYYY or whatever format I need. TO_CHAR just comes to mind naturally when I need an equality test.
MikeHmm....
Let's see ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
Elapsed: 00:00:00.02
satyaki>
satyaki>
satyaki>select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected.
Elapsed: 00:00:00.07
satyaki>
satyaki>
satyaki>select *
2 from emp
3 where hiredate < to_date('01-MAR-1981','DD-MON-YYYY');
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
Elapsed: 00:00:00.00
satyaki>
satyaki>select *
2 from emp
3 where to_char(hiredate,'DD-MON-YYYY') < {noformat}'{noformat}01-MAR-1981{noformat}'{noformat} ;
no rows selected
Elapsed: 00:00:00.00
satyaki>
satyaki>So, as you can clearly see considering date as string may cost you heavy. Or don't you think so?
Regards.
Satyaki De.
N.B.: Some problem with the formatting. So, date is not appearing in the second case. :( -
Non serial Invoice data based upon GRPO
Hello Experts,
I want to made report on non serial based items.
Means i want data based upon the following way.
Suppose GRPONo 400 have three items Item A, Item B and Item C.
and suppose Item C is non serial based item,
so i have to get sales data(A/R) of Item C for GRPONo 400 only not the different GRPONO of Item C.
Ex:-
GRPONO GRPODate ITEMCode ItemQty SaleInvoiceNO SaleInvoiceDate SaleInvoiceQty
400 12/12/2009 Item C 50 900 15/02/2010 30
600 12/02/2010 20
I want only those Invoice sales data which is actually raised against particular GRPONo.
Thanks,Hello Gordon,
Thanks for the reply.We are basically used FIFO method for items.
I can able to discover the solution of Serial based items from OSRI and SRI1 table.
But for non serial based items there is no way to discover that particular GRPO Item quanity has been sale against which Invoice NO???????
I want the sales data of Non serial items for particular GRPO Item quantity.
I want to show that particular GRPO qty is sold against which which invoices..
I hope you are more clear about my requirement.
Regards, -
Custom Exit "Previous Date" based on sy-datum
Hi!
I want to make a custom exit that I can use as a variable to get previous date based on current date (sy-datum), but I have some problems getting it to work.
Here is the code:
WHEN 'ZCPRDAY'.
Returns the previous day for current calendar month*
CHECK i_step = 2.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = sy-datum - 1.
APPEND l_s_range TO e_t_range.
When a create an variable on this and use it on an infoobject, I get the message
Values for InfoObject SC_OP_DAT have a maximum length of 8 characters. The user exit for variable ZCPRDAY delivers value ", that is longer than 8 characters.
can anyone tell me what I am doing wrong here?
Thanks!Hi helge ovstedal,
Again type problem:
WHEN 'ZCPRDAY'.
* Returns the previous day for current calendar month
DATA: L_PREDAY TYPE SY-DATUM. " declare field with reference to sy-datum
CHECK i_step = 2.
L_PREDAY = SY-DATUM - 1.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
MOVE L_PREDAY TO l_s_range-low . "as datatypes are different, use move instead of =
APPEND l_s_range TO e_t_range.
Hope it Helps
Srini -
What is the transparent table to get status date of a QN number ?
Hi all,
I have a requirement to get the date based on status of a QN number. For example, a QN number might have status as APNO ( No approval) then I approve with ok then It becomes APOK, or I can I approve it with refused then It becomes APRF. And when all the tasks are completed It becomes ATCO.
Now I want to get APNO date, APOK date, APRF date and ATCO date for the QN number. What is the transparent table I can get the inofrmation ?
Thanks in Advance,
Hung- Current statuses are stored in JEST (OBJNR = QMEL-OBJNR) change log are in JCDS, status user profile in JSTO. Records are created in JEST first time status is set, when setting/unsetting a status a record is appended to JCDS.
- Don't forget to convert the status in internal status, and distinction between system (internal Innnn, conversion via TJ02T) and user (external Ennnn, conversion via TJ30T) statuses. Take a look at FM STATUS_TEXT_EDIT or STATUS_NUMBER_CONVERSION and STATUS_TEXT_CONVERSION.
Regards,
Raymond
Maybe you are looking for
-
Lync 2013 + Windows 8 phones not getting any notification but android and iphone works fine
Dear All, Issue : None of the windows 8 phones gets alert when someone pings in lync2013 Description: We get notification when someone pings to lync2013 im configured in android or iphone and it fails to notify when someone pings lync2013 configured
-
How do my wife and i share just one music account?
Ive had an iphone and an itunes account for a long time, and now that im married my wife also has an iphone, but with a seperate itunes account. i have thousands of songs, she has only one album. it seems dumb to me to have to purchase all that music
-
hi folks, i have a question here. in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper? looking forward your reply. thanks
-
Business Partner numbers not generating in sequence
Hello, For Business Partners, there are 2 Groupings maintained i.e. 1 for External Party and 1 for Employees. For both the groupings, internal number assignment has been maintained in T code BUCF. Also, "Define Groupings and Assign Number Ranges" has
-
No Idocs were getting generated after the system Refresh
Hello Experts, Recently my Sand box system has been refreshed with the Development system. (Its a system refresh and hence all the objects were also copied like Development). After the refresh, we have performed the below activities -- BDLS to change