Problem in finding PO no in ekko table
Hi all
I have one invoice document 9000451049. in vf03 i have displayed the document . in item details of that inovice i found one PO no 123560-3.
but when i opened ekko table this PO no is not found.
it is not found in me23n transaction also.
plz tell me why is that PO no not found in ekko table and me23n but is present in the item details of that invoice??
Hi
This is not vendor PO data. This PO number we enter in Sales Order. That is only Text Entry.
We maintain PO number in Sales Order, which carries to Billing Document. In Table VBKD, it is stored in BSTKD. We can maintain this at header and item level also.
You will not find this in EKKO table.
Regards,
Vishwa.
Similar Messages
-
Finding Sum of grouped lines / Tables EKKO, EKPO
Hi, am using the following tables:
TABLES: ekko,ekpo.
with Inner Join
select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam ekpobrtwr
into CORRESPONDING FIELDS OF TABLE itab from ekko
inner join EKPO on ekPOEBELN = ekkoebeln.
end-OF-SELECTION.
Basically i want to group the result of this SQL statement by Purchasing Doc (ekko~ebeln) and display the
sum of Gross value (ekpo~brtwr) for the line items of each Purchasing Doc.
Note: i want the Purchasing Doc to appear one time only in the report
i have tried the following :
select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam sum( ekpobrtwr )
into CORRESPONDING FIELDS OF TABLE itab from ekko
inner join EKPO on ekPOEBELN = ekkoebeln
WHERE ekkobukrs IN S_bukrs AND ekkobsart IN s_bsart
Group By ekkoebeln ekkobukrs ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekko~ernam.
then loop through the ITAB:
LOOP at itab.
write:/ itab-bukrs under 'Company Code',
itab-ebeln UNDER 'PO-Number',
itab-aedat UNDER 'Date' ,
itab-bsart UNDER 'Doc-Type' ,
itab-ekgrp UNDER 'Purchase-Grp' ,
itab-lifnr UNDER 'Vendor' ,
itab-waers UNDER 'Currency',
itab-wkurs UNDER 'Rate' ,
itab-brtwr under 'Gross Value',
itab-ernam UNDER 'Created By'.
ENDLOOP.
but it is not working with me, am not able to show the result of sum( ekpo~brtwr ) am getting 0 in all lines
thanks a lot for your help" My Full Code.
TABLES: ekko,ekpo,ekbe,rbkp.
data: BEGIN OF itab OCCURS 0, "EKKO TABLE"
inco1 like ekko-inco1,
inco2 like ekko-inco2,
bukrs like ekko-bukrs,
ebeln like ekko-ebeln,
aedat like ekko-aedat,
bsart like ekko-bsart,
ekgrp like ekko-ekgrp,
lifnr like ekko-lifnr,
waers like ekko-waers,
wkurs like ekko-wkurs,
ernam like ekko-ernam,
BRTWR LIKE ekpo-brtwr,
end of itab.
SELECT-OPTIONS : s_bukrs FOR itab-bukrs OBLIGATORY,
s_ebeln for itab-ebeln ,
s_aedat FOR itab-aedat ,
s_bsart for itab-bsart ,
s_ekgrp FOR itab-ekgrp ,
s_lifnr FOR itab-lifnr ,
s_budat FOR jtab-budat ,
s_bewtp for jtab-bewtp .
DATA ProceesITAB LIKE SORTED TABLE OF ITAB WITH UNIQUE KEY TABLE LINE.
AT SELECTION-SCREEN on s_bukrs.
START-OF-SELECTION.
select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam ekpobrtwr
into CORRESPONDING FIELDS OF TABLE itab from ekko
inner join EKPO on ekPOEBELN = ekkoebeln.
end-OF-SELECTION.
LOOP at itab.
write:/ itab-bukrs under 'Company Code',
itab-ebeln UNDER 'PO-Number',
itab-aedat UNDER 'Date' ,
itab-bsart UNDER 'Doc-Type' ,
itab-ekgrp UNDER 'Purchase-Grp' ,
itab-lifnr UNDER 'Vendor' ,
itab-waers UNDER 'Currency',
itab-wkurs UNDER 'Rate' ,
itab-brtwr under 'Gross Value',
itab-ernam UNDER 'Created By'.
ENDLOOP.
TOP-OF-PAGE.
write:/70 'Company'.
uline.
skip.
write:/5 'Company Code',25 'PO-Number',40 'Date',55 'Doc-Type',70 'Purchase-Grp',85 'Vendor',100 'Currency',115 'Rate',125 'Created By',
140 'Gross Value'.
ULINE.
SKIP.
Edited by: YasinN on Mar 24, 2010 9:45 AM -
How to find out structure of internal table?
Hi
is there any way how to find out name of structure upon which internal
table was created?
i got internal table passed to function module by any table
type. There can be different types of table passed in. Inside of
module a need to find out the structure of table.
I've found a tricky way how to find this information using following
command 'DESCRIBE FIELD dobj INTO td.', but its probably not a correct
way because using this command is not recommended in application
programs.
Is there any function module, or something i can use for getting this information?
ThanksThanks very much
This has solved my problem:
DATA descr_ref TYPE ref to cl_abap_typedescr.
DATA tabname TYPE string.
descr_ref = cl_abap_typedescr=>describe_by_data( itab ).
tabname = descr_ref->absolute_name. -
Where is the Memory field in EKKO table located in ME21 transaction
Hi,
there is a field memory in the EKKO table . What is purpose of that field . Where can i find that field in ME21N transaction.Hi Josephine,
The Dataelement documentation says as follows:
<i><b>"You can use the Hold function to store faulty or incomplete purchase
orders in the SAP System.
You can then continue processing or complete these POs that you have put
"on hold" in this way at some later date.
A PO that is on hold is not transmitted to the vendor. It is, however,
MRP-relevant.
The following functions are not not possible in the case of a PO that is
on hold:
o Message output (printing or transmission of documents in message
form)
o Posting a goods receipt
o Posting an invoice
Note:
If a PO has been saved, it cannot later be processed using the Hold
function."</b></i>
Regards,
Ravi -
How to find global index in partition table
Hi guys ,
need one help
How to find global index on partition table
How to find local index on partition table
Need query
Thanks in advance
Edited by: nav on Feb 17, 2012 6:51 AMnav wrote:
Hi Solomon,
so I have to identify partition & index are created or not,
also I have check the status of index ( both global and local)So what's the problem? Table/index partition is an object, so you can query DBA_OBJECTS:
SELECT SUBOBJECT_NAME,
CREATED
FROM DBA_OBJECTS
WHERE OWNER = partitioned-table-owner
AND OBJECT_NAME = partitioned-table-name
AND CREATED >= TRUNC(SYSDATE)
/This will give you partitions created today. So if you run this right after your job (I hope your job doen't run too close to midnight), you'll get table partition name your job created. Same logic can be applied to indexes.
SY. -
Finding common attributes in a table
Finding common attributes in a table
Hello,
I am sometimes faced with the following problems and I don’t know if it can be solved with SQL or how it could be solved with PL/SQL. I appreciate your help on this.
I have a customer table with a cust_id key and 10 their customer attributes in the table.
1. Given a set of cust_id keys, what are the common attributes of that set. That is, of the other 10 attributes, which ones are the same for each cust_id in the set?
2. Given a set of attributes, what is the set of cust_id keys for which they are all the same?
Thanks for your help and suggestions.
GarySomething like:
select case
when min(attr1) = max(attr1) then 'All attr1 values are ' || max(attr1)
else 'Attr1 values range form ' || min(attr1) || ' to ' || max(attr1)
end attr1,
case
when min(attr2) = max(attr2) then 'All attr2 values are ' || max(attr2)
else 'Attr2 values range form ' || min(attr1) || ' to ' || max(attr2)
end attr2,
case
when min(attr10) = max(attr1) then 'All attr10 values are ' || max(attr10)
else 'Attr10 values range form ' || min(attr10) || ' to ' || max(attr10)
end attr10
from customer
where cust_id in (cust_id_set)
select cust_id
from customer
where attr1 = attr1_val
/SY.
P.S. You need to tell how you wnat to treat NULL values. -
To find max effdt from a table
i am facing problem in finding max effdt for every employee from a table.
i have to fetch emplid's from a table according to a particular deptid but there are many entries for a employee depending on effdt.I have to fetch the entry which is of max effdt.
i wrote query like dis,is it ok?
select emplid,effdt from ps_job where deptid='10000' and effdt in (select max(effdt) from ps_job group by emplid)You need to correlate the effdt and the empid is some fashion There are a few ways to do this. The closest correct way to what you have is:
SELECT emplid, effdt
FROM ps_job o
WHERE deptid='10000' and
effdt IN (SELECT MAX(effdt) FROM ps_job i
WHERE i.emplid = o.emplid)A one-pass method, assuming you can use analytics would be:
SELECT emplid, effdt
FROM (SELECT emplid, effdt, deptid,
ROW_NUMBER() OVER(PARTITION BY emplid
ORDER BY effdt DESC) rn
FROM ps_job o)
WHERE deptid='10000' and
rn = 1John -
How to find a string inside Excel table
Hi,
I am trying to find a string inside Excel table, and it does not work. Please see attached figure. I use the find Invoke Node and do not get anthing.
Please help
Attachments:
find_excel.JPG 21 KBSee attached files.
Thanks,
David
Attachments:
Excel_table.xls 15 KB
Read_XL.vi 42 KB -
How can I find This field in what table OBMNG (Open quantity) Tcode Me23n
hello,
I need to find this field in a table and not in a structure because I am doing an extract. The structure that has this field is MEPO1320, but i cant pull data from it. I tried st05, where used in and i could not find it, can someone help? please.Hi,
Go To the structure in SE11 and put the cursor on the required field and try a where used list.In the selection criteria check the checkbox Tables and continue.If not for the field chk for the data element.
Regards,
Lakshman. -
Find missing values in third table based on two other tables
Hi- I have tried to do this on my own but the answer eludes me. Can someone please point me in a better direction? We have a table project_categories with project_IDs and related project category_IDs. We have another table contact_categories with contact_IDs and related contact category_IDs. We use these two tables to link contacts to projects by at least one category_ID. It works well for email notifications. We have a third table for "planholders" who are interested in particular projects. The planholder table has contact_IDs and related project_IDs. I want to find contacts who have expressed interest in a project, by inserting a row in the planholder table, but they have not selected any of the project categories in contact categories. This would be an unusually rare exception, so to test it I added myself as a contact 100010 and as a project "planholder", but deliberately did not select any of the related project categories in contact categories.
select ph.contact_id, ph.project_id, pc.category_id, cc.category_id
from purchasing_planholder ph, purchasing_project_categories pc, purchasing_contact_categories cc
where ph.project_id=pc.project_id
and ph.contact_id=cc.contact_id
and ph.contact_id||ph.project_id||cc.category_id
not in (select ph.contact_id||pc.project_id||pc.category_id
from purchasing_planholder ph, purchasing_project_categories pc, purchasing_contact_categories cc
where ph.project_id=pc.project_id
and ph.contact_id=cc.contact_id)
and ph.contact_id=100010
This gives me every category for the test contact and every category for the project. I want to find contacts in the planholder table who have not selected any of the categories related to the specific project they selected in the planholder table. I tried minus, outer joins, etc. Does this require PL/SQL and a temp table, or can I find the exceptions with a report? Or do I need a different approach? The ideal answer would display one row with the contact_ID and the project_ID, where the contact has not selected any of the project categories. This would be used to alert them that they need to select at least one of the project categories on the contact form. Thanks for any feedback.
Peter
CONTACT_ID PROJECT_ID CATEGORY_ID CATEGORY_ID
100010 701 1 19
100010 701 1 18
100010 701 16 19
100010 701 16 18
100010 701 21 19
100010 701 21 18
100010 701 24 19
100010 701 24 18
8 rows selectedHi User,
When you Post a Question in Forum, Please be clear of the Inputs to be given, the expected output and the tries you made,
the errors/results you faced.
Also, see this link of BluShadow.
SQL and PL/SQL FAQ
Please enclose the query or programs in code tags for a formatted code.
Just Try something like this,
SELECT *
FROM emp c
WHERE NOT EXISTS (SELECT *
FROM emp a
WHERE EXISTS (SELECT *
FROM emp b
WHERE a.empno = b.empno));In the Inner Query, the conditon checked is empno same in both the tables, and for example some rows are obtained, other than
this rows all other results are obtained from the outer query.
In the above case no rows are returned.
Thanks,
Shankar -
How to find middle row in a table ?
Hi Friends,
Is it possible to find middle row in a table by SQL Query.
KarTiK.Solution: sort the rows in order to create an ordered
sequence and then there will be a "middle row".Well, not quite.
If there are an odd number of rows then, yes, there will be a middle row in an ordered sequence, however if there is an even number of rows then the middle is between two rows... or... you could take it as the two rows either side of the middle....
SQL> select * from emp order by empno;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17/12/1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20/02/1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22/02/1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02/04/1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28/09/1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01/05/1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09/06/1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19/04/1987 00:00:00 3000 20
7839 KING PRESIDENT 17/11/1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08/09/1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23/05/1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03/12/1981 00:00:00 950 30
7902 FORD ANALYST 7566 03/12/1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23/01/1982 00:00:00 1300 10
14 rows selected.
SQL> select e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno
2 from (select emp.*, row_number() over (order by empno) as rn from emp) e
3 ,(select round(count(*)/2) as middle, round(((count(*)+1)/2)) as middle2 from emp) m
4 where e.rn in (m.middle, m.middle2)
5 /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 CLARK MANAGER 7839 09/06/1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19/04/1987 00:00:00 3000 20
SQL> insert into emp values (1111, 'WILLIS', 'CLERK', 7902, sysdate, 900, null, 20);
1 row created.
SQL> select * from emp order by empno;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
1111 WILLIS CLERK 7902 18/01/2008 12:18:14 900 20
7369 SMITH CLERK 7902 17/12/1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20/02/1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22/02/1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02/04/1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28/09/1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01/05/1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09/06/1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19/04/1987 00:00:00 3000 20
7839 KING PRESIDENT 17/11/1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08/09/1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23/05/1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03/12/1981 00:00:00 950 30
7902 FORD ANALYST 7566 03/12/1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23/01/1982 00:00:00 1300 10
15 rows selected.
SQL> select e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno
2 from (select emp.*, row_number() over (order by empno) as rn from emp) e
3 ,(select round(count(*)/2) as middle, round(((count(*)+1)/2)) as middle2 from emp) m
4 where e.rn in (m.middle, m.middle2)
5 /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 CLARK MANAGER 7839 09/06/1981 00:00:00 2450 10
SQL> -
How to find Transaction for a Known Table maintenance View
Hello Friends,
May I know how to find transaction for a known table maintenance View.
Thanks,
Best Regards,
Sudhanshu GargGoto SE16 Transaction and enter TSTCP Table
Here PARAM = /SM30 VIEWNAME=Table name*;UPDATE=X;
enter table name in bold.
Thanks
Seshu -
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
Moving data between tables (how to find out if the 2nd table is empty)
Hi,
I have 2 tables, and I'm copying records from one table to another.
I've followed the Wiki: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/movingdatabetween+tables]
So far, everything works ok.
Here is my question: how do I get the number of records passed?
I mean, how do I know the number of rows in the 2nd table? (Remember that this number is variable, because it depends on how many rows I've inserted and deleted on the 2nd table).
I've tried to achieve that using a data store with a numeric field, but I couldn't find the way to increment/decrement the numeric field on data store, and insert/delete the row on table at the same time .
All I want is to find out if the 2nd table is empty or not.
Any ideas to solve this?
Thanks in advance!
Help will be point-rewarded.
MarceloHi Ahmed
thanks for your reply, it was very helpful!! (I've assigned points to you)
However the user can add twice or more times the same row... so the counter doesn't reflect the real number of rows in the 2nd table.
I've partially solved this also using a data store with a parameter called key_list, where I add (I mean, concatenate) the key field for the selected row.
So, if I have a table with 4 rows with key fields "key1", "key2", "key3", the parameter key_list would get "key1;key2;key3".
So far, it's ok. But when I remove a row previosly added.... I can't remove the key from the key_list parameter. (I mean, from 2nd table I choose to remove the "key2" row, but I don't know how also remove the key name from the key_list)
I hope be clearly enough.
Any help will be really appreciated and point-rewarded.
Thanks again.
Best Regards
PS: is there any way of "mark" a row that has been added to the 2nd table? I mean, using (for example) a hidden boolean field named "added", that becomes true when the selected row is added to the 2nd table. -
How to find out the Non Partitioned Tables used 2Gb on oracle
Hi team
how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
regardsheres 1 I made earlier
set pagesize 999
set linesize 132
col owner format a25
col segment_name format a60
select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
from dba_segments
where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
and segment_type = 'TABLE'
having (bytes/1024/1024) > 2000
group by bytes, segment_Type, segment_name, owner
order by 4 asc
Maybe you are looking for
-
Co-Install CS5.5 & 6.0
I have a copy of CS 5.5 Design Standard and I recently received a copy of CS6 Production Premium. I'm hoping to be able to install both on my new Macbook Pro under OSX 10.8.1 - Mountain Lion. (The only overlap is Photoshop and I'd take that from CS6)
-
Hi- Is there any way to change how Jdev 10g auto-formats code? For instance, if I enter a new function: public void foo() {[enter] Jdev automatically converts this to: public void foo() |[cursor] I like my opening curly brace on the same line as the
-
Strip Timeline from compiled swf
Hello, I am using a shared .fla file for my games with similar design and shared modules (lobby, etc.). To only export those classes that I need per game, I disabled "export to first frame" in the game specific definitions and instead add them to the
-
Automate install...
Hi all, I am trying to build an Automator workflow to install (actually to copy) an application to the Application folder of a computer, and copy a link to a website onto the desktop folder of the remote computer also. For some reason I can only get
-
Mass Allocation Generate Accounting Error
when Trying to Generate Accounting For Mass Allocation after validating the formula the request results in the following Error ORA-00942: table or view does not exist Any one Can help Regards, Mohammed Badry