EKPO and LIPS Data
I want to fetch LFIMG from LIPS based on EBELN,EBELP from EKPO
where VGBEL = EBELN and VGPOS = EBELP.
As VGBEL and VGPOS are not primary Key of LIPS ,Its casuing Performance issue of my program and taking long time.
Is there any other option/querry to get this value so that performace can be more.
Thanks
kumar
hi for the performance use many no of fields for getting the data . i thnk there are more number of fields as the common for these two tables.....use the link for getting the common fields for there two tablse ...just input the table names...
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/enter%252bany%252b2%252btables%252band%252bget%252bthe%252bcommon%252bfields
Similar Messages
-
Hi,
this join is syntactically correct but because ekpo-ebelp is the type numc(5) and lips-vgpos is the type numc(6) it's not working.
Example: ekpo-ebelp = 00010
lips-vgpos = 000010
What should i do? Please someone help me.
Thank you.
SELECT SINGLE e~ebelp e~aedat e~matnr e~menge e~netpr l~lfimg
INTO CORRESPONDING FIELDS OF it_joindata
FROM ekpo AS e LEFT JOIN lips AS l ON e~matnr = l~matnr AND
e~ebeln = l~vgbel AND
e~ebelp = l~vgpos AND
l~vbeln = pa_vbeln
WHERE e~ebeln = pa_ebeln AND e~idnlf = it_file-cod.
Edited by: Dan M. on Nov 3, 2008 5:14 PMHi Dan,
You'll have to exclude the line item criteria from the join I'm afraid.
I'd select both ebelp and vgpos into my internal table and then remove the unwanted ones after the select statement. You'll be able to use offsets to compare the two fields at this stage.
Darren -
Problem in Selecting the data from EKPO and KONV tables
Hi Experts,
Presently I am working on Report with Comparision-Sheet Between the vendor's Quotations. I have to display the Discount, Freight, Packing and Forwarding, Vat in Item level data based on the conditions made in PO.
As per my Knowledge, Condition Types are stored in KONV Table. But there is no relation between KONV and EKPO tables. So, I am unable to print the data for Discount, Freight, Packing and Forwarding, Vat... How can I get the values from EKPO and KONV tables?
Thanks in Advance.
Thanks n Regards,
Muralikrishna.Don't recall if this is correct, but you may need the condition number from the header (EKKO) combined with EKPO-EBELP or other field as you key to access KONV (KNUMH and KPOSN). My site doesn't run PP, so can't verify if the data is actually stored that, so just a possibility.
-
PO report with cost center, order and delivery date
Hi,
pls. I just need a report to display the next fields Account Assigment and Delivery Date.
I attempted with standard reports like ME2N, ME2K but it is impossible to display all the information in the same screen.
Thanks a lot for cooperation.
Regards.HI,
Create a Infoset query or ask ababper
Tables EKKN, EKPO, EKKO
Regards,
Pardeep Mlaik -
BAPI_PO_CHANGE is not updating Quantity and Delivary Date
HI All,
I am trying to update quantity and delivery date of PO by using BAPI_PO_CHANGE,
by Passing below parameters.
As per the documentation:
Parameter: PURCHASEORDER 4500003477
Parameter: POHEADER
PMNTTRMS = 0002
PUR_GROUP = 002
Parameter: POHEADERX
PMNTTRMS = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
CONF_CTRL = 0001
Parameter: POITEMX
PO_ITEM = 00001
PO_ITEMX = X
CONF_CTRL = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
QUANTITY = 10.000
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
QUANTITY = X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
GL_ACCOUNT = 0000400020
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
PO_ITEMX = X
SERIAL_NOX = X
GL_ACCOUNT = X
and executed bapi_transaction_commit FM immediate, i am getting below message
Purchase Orders 4500003477 changed
Error transferring ExtensionIn data for enhancement CI_COBL
No message generated for output of purchasing document
but quantity and delivery date was not changed..
why this quantity and delivery date is not changing?
<removed by moderator>
REgards,
Suresh.D
Edited by: Thomas Zloch on Feb 27, 2012Hi ,
Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
[http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
Thanks,
Anjaneya . -
Hi Experts,
IS there any link between VBAK and LIPS (VBELN AND VGBEL). Data is flow from header level VBAK to Item level LIPS is correct or Item level to item level.
Regards
RahulDear Rahul1234 ,
You can use the VBAK- VBELN or VBAP-VBELN
Put the same in VBFA as preceding document and fetch subsequent document where subsequent document category is J(delivery)
Now input that list in LIPS to get the required field.
This will work. If your ABAPer is telling that the logic is not correct, then you may demonstrate the same using a query (table join VBAK-VBFA-LIPS)
Thanks & Regards,
Hegal K Charles -
RFQ quantity and delivery date
Hi,
I created a smartform for RFQ.I am getting material details from EKPO.But i need RFQ quantity and delivery date to be displayed for each quantity.I found the field in structure RM06E.I tried by putting structure name in form.Its not working.
Any table to find these data(reg RFQ details)?How to solve this issue?Hi,
u can get the RFQ date and Quantity from EKKO & EKPO tables.
Quantity: EKPO-KTMNG;
RFQ No and Date: EKKO-EBELN, EKKO-AEDAT
Thanks,
Pavani. -
Combinataion between VBRK AND LIPS
hi,
I have a requirement, where i have to combine two tables , which doesnt have any field in common. but i have to combine the tables
VBRK and LIPS.
from lips
i have to select matnr and lfimg.
from vbrk, i have to take vkorg,vtweg, kunrg.
how can i take the materials from lips for the partiicular VKORG or KUNRG.?
the only possible link, i have got is linking vbuk with both the tables.since the vbuk-vbeln hold the vbeln of both these tables.
i m not willing to use join also.
I prefer for all entries.
can some one help me out with the codes.hi,
DATA:it_lips LIKE lips OCCURS 0 WITH HEADER LINE.
DATA:it_vbrp LIKE vbrp OCCURS 0 WITH HEADER LINE.
DATA:it_vbrk LIKE vbrk OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM lips
INTO TABLE it_lips
UP TO 1000 ROWS.
*where vbeln in s_vbeln and matnr in s_matnr.
IF NOT it_lips[] IS INITIAL.
SELECT * FROM vbrp INTO TABLE it_vbrp
FOR ALL ENTRIES IN it_lips
WHERE vgbel = it_lips-vbeln
AND vgpos = it_lips-posnr
AND vgtyp = 'J'.
ENDIF.
IF NOT it_vbrp[] IS INITIAL.
SELECT * FROM vbrk INTO TABLE it_vbrk
FOR ALL ENTRIES IN it_vbrp
WHERE vbeln = it_vbrp-vbeln.
ENDIF.
LOOP AT it_vbrk.
WRITE: / it_vbrk-vbeln,it_vbrk-vkorg,it_vbrk-vtweg,it_vbrk-kunrg.
ENDLOOP.
( If you are not getting entries into it_lips means you have to use conversion exit function module for vbeln in the tbale s_vbeln )
Regds
Sivaparvathi
Please dont forget to reward points if helpful..
Edited by: Siva Parvathi on Jan 10, 2008 8:50 AM -
Hi all,
Is there any relationship between EKPO and BKPF tables.
Thanks in advance.
PrinceEKPO would be your purchasing document item data, therefore when the Goods issue is done an invoice document is created in RSEG having EKPO-EBELN and EBELP as reference document.
This entry of RSEG will be used as reference to create a finance document G/L entry using FB** transactions which results in an entry in BKPF and BSEG tables having reference of both RSEG-MBLNR and EKPO-EBLEN,EBELP.
Let me know if you need more info. -
T-Code of DN release date and SA date
hi,
whats the T-code to show a list includes the date of delivery note creating and releasing, better also includes the SA date.
ThanksHai
If you want a report of sales order wise - Requested delivery date and Actual delivery creation date
As a functional member, Create a SQVI report by joining the Sales order and Delivery order table
LIPS-VGBEL = VBAP-VBELN
By this, you can prepare a ALV report with sales document and other dates in the selection screen and in the report sales order and Delivery order related details can be listed.
Then ask your system administrator to create a T code for the SQVI program and provide the T code authorization for the required users.
Any development please update.
Regards,
Mani -
Net Weight (NTGEW) does not populate in table VBRP and LIPS for Purch Order
The net weight field (NTGEW) does not populate in tables VBRP and LIPS when created from a Purchase Order. The field Net Weight (NTGEW) does populate when created from a sales order. Do you know if there is a way to make the field populate when created from a Purchase order?
Thanks,
TaHi,
Ta
In Material master Basic Data tab 1, you have to maintain Gross wgt and net weight. then when you creating purchase order, The Item level, Additional data tab you will able see Gross and net wgt.
I hope solved your problem.
Regards....
Sanjeev -
Table access Optimization ( VBAP- Sales Doc :item info and LIPS- Del item.
Hi All , Please optimise the below select statement .
It is taking lot of time to fetch the records from Lips table since VGBEL and VGPOS are not Key fields in LIPS table .
Please suggest if there are any other ways to improve the performence of this quary .
SELECT vbeln
posnr
matnr
lfimg
vgbel
vgpos
FROM lips
INTO TABLE li_lips FOR ALL ENTRIES IN i_vbap
WHERE vgbel EQ i_vbap-vbeln
AND vgpos EQ i_vbap-posnr.
Thanks.
Prithvi.Hi Prithvi,
As told try creating secondary indexes with fields mndt vbeln vgbel and vgpos.Firstly sort the internal table i_vbap by vbeln and posnr and delete adjacent duplicates comparing the fields vbeln and posnr.One more important thing u need to check out is put a break point in both the select statements for i_vbap and li_lips and check out how many entries are available in i_vbap.See the entries that u get in the i_vbap table is purely based on the selection screen ie which fields that ur entering and what is the range.I think u probably might be giving sales org,sales office,vbeln and posting date range(erdat) in the selection screen.See whether u r getting the entries in the table according to range that ur giving.If u could give me the i_vbap table select statements logic that u've written and please tell me what fields that ur using in the selection screen and what values ur entering or fields range that ur entering can precisely give me the idea to surely improve ur performance.
Please follow what i told u and try adding extra field in li_lips for the field erdat and check whether this erdat is existing in the i_vbap table and also in the selection screen too.Please let me know i'm sure i can solve ur issue.And dont forget to award points as this wud be my mark of appreciation.
Or check with this select statements.
sort i_vbap by vbeln posnr.
delete adjacent duplicates from i_vbap comparing vbeln posnr.
if not i_vbap[] is initial.
If ur giving erdat as date range in the selection screen then try wth this code also.
delete i_vbap where not erdat in s_erdat.
*name of ur selection screen this wud get the precise data that u need for the date range and the entries will also be precise for all entries in the next select statement li_lips.
SELECT vbeln
posnr
erdat "extra field
matnr
lfimg
vgbel
vgpos
FROM lips
INTO TABLE li_lips FOR ALL ENTRIES IN i_vbap
WHERE erdat in s_erdat
AND vgbel EQ i_vbap-vbeln
AND vgpos EQ i_vbap-posnr.
endif.
Award points if helpful
Thanks -
Relation between EKPO and EKKN
Hi, what is the relation between EKPO and EKKN?
I want to retrieve the requestor name (EKKN-WEMPF) for all open orders in EKPO. But I dont find any matching data between these two tables.Hi
But what do you really need to do?
The link between EKKN and EKPO are only the field EBELN and EBELP.
If you know the item you can know its data for account reading EKKN, you don't need to know how to relate KOSTL or AUFNR with EKPO.
SELECT * FROM EKPO WHERE EBELN = P_EBELN
SELECT * FROM EKKN WHERE EBELN = EKPO-EBELN
AND EBELP = EKPO-EBELN
>EKKN-KOSTL is the cost center of the position you're elaborating
Max -
Null and no data in field value
I transferring sql from MS Access to Oracle 9i.
In Access I have this
select * from tableOne where firstname <> ''
and firstname & '' = ''The firstname field can be edited where it could have data and the data could be deleted so I am trying to select records where firstname is not null and it has no data in it.I transferring sql from MS Access to Oracle 9i.
In Access I have this
select * from tableOne where firstname <> ''
and firstname & '' = ''
select * from tableOne where firstname IS NULL;
- or -
select * from tableOne where firstname IS NOT NULL;
as appropriate.
In Oracle there is no difference betwen being NULL and having data of length '0' -
Problem with item and/or data during page-processing-PS/SQL
Greetings!
On my page I have a custom report (from 2 tables) and a small form-field, that adds and edits data in the report. After generating the form with the wizard I added an extra item, to store the id from one of the tables from the report data.
Now, on submit a calculation should take place, that updates data according user input with a procedure in Page-Prosseses:
declare a number;
begin
case :PLATZ
when 1 then a:=100;
when 2 then a:= 50;
else a:=25;
end case;
update TBL_MITGLIEDER set TURNIERPUNKTE = TURNIERPUNKTE + a
where ID_MITGL = :P14_ID_MITGL;
end;
:PLATZ is user selected (1,2,3), :P14_ID_MITGL stores the reference to TBL_MITGLIEDER (and shows the change, when I select another record)
As I understand, that process should also run, when I submit a chance, but nothing happens then.
But when I try to save a new record (which worked without any problems before adding that process), I get this error message:
ORA-06550: line 1, column 64: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table TBL_TURNIERSIEGER.
Then, when I go back into the app-builder and try to run the page again, I get this message:
ORA-01403: no data found
Error Unable to fetch row.
I am not sure, if you guys have all the information you need, to know whats going on. Maybe this has to do with session-id and the whay, items are updated. I hope you can help me.
Thanks, best regards,
tobiFirst can you please post all log file errors
>> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
2. You can try reinstall from start (In this case you have to make sure that you un-install all)
[Personal Site] [Blog] [Facebook]
Maybe you are looking for
-
How to get user data in a user profile portlet
You would think that this would be easy. Its not? This was posted in the wrong forum: Re: Interaction (ALUI/WCI) Cutom User Profile Portlet "I have a custom portlet that returns user specific information using a portal user profile property. It works
-
How to view logs in case of stand alone deployment
Hi, I have deployed my UI app on a WLS server (A standalone deployment). And my UI has an LOV and i want to find out the exact query that it is firing when i click on the LOV (They query has some bind variables too). So for this i need to see the wls
-
( music ) windows to macbook pro
Hello I have friend who has copied music ( data disc mp3 ) on there windows system and I want to copy this to my MBP is there a plug in ect ? as i cannot seem to transfer this information ? Any help please ? Thanks
-
Hi, I want to learn how to sync one iPhone across two other devices (an iMac where the master backup & iTunes library exists) and my work Macbook Pro (where all my mail and business mail and calendar info is stored). Is this possible?
-
Changing dropdown list selected value in JSP
I would like a dropdown list to load with all values in a database table, which is no problem. But, I would then like it to display a selected text value from that list, depending on the value returned by a SQL query. As an example, say I was looking