Please tell me the Three table INNER JOIN Sql statement
Hi experts,
I got requirement like by using INNER JOIN i have to write the code in MY program i.e using 3 tables VBAK VBAP and VBUK.And the common field is VBELN .SO please give the INNER JOIN SQL statement for above three tables...
vbak-vbeln,erdat
vbap-vbeln,posnr
vbuk-vbeln,RFSTK
Thanks in Advance
hi guglani please see my total code b.caus DATA is not extracting...once see the code correct error.
DATA:V_VBELN TYPE VBAK-VBELN. "VBAK,VBAP AND VBUK
SELECT-OPTIONS SORDER FOR V_VBELN.
TYPES:BEGIN OF T_VBAK,
VBELN TYPE VBELN_VA,
ERDAT TYPE ERDAT,
END OF T_VBAK.
TYPES:BEGIN OF T_VBAP,
VBELN TYPE VBELN_VA,
POSNR TYPE POSNR_VA,
END OF T_VBAP.
TYPES:BEGIN OF T_VBUK,
VBELN TYPE VBELN,
RFSTK TYPE RFSTK,
END OF T_VBUK.
TYPES:BEGIN OF FS,
VBELN TYPE VBELN_VA,
ERDAT TYPE ERDAT,
POSNR TYPE POSNR_VA,
RFSTK TYPE RFSTK,
END OF FS.
DATA:WA1 TYPE T_VBAK,
WA2 TYPE T_VBAP,
WA3 TYPE T_VBUK,
WA TYPE FS.
DATA:ITAB1 TYPE TABLE OF T_VBAK,
ITAB2 TYPE TABLE OF T_VBAP,
ITAB3 TYPE TABLE OF T_VBUK,
ITAB TYPE TABLE OF FS.
select a~vbeln a~erdat b~posnr c~rfstk
from vbak as a inner join vbAP as b on a~vbeln = b~vbeln
inner join vbuk as c on a~vbeln = c~vbeln
into table itab
where A~vbeln eq SORDER.
IF NOT ITAB IS INITIAL.
SORT ITAB BY VBELN.
ENDIF.
LOOP AT ITAB INTO WA.
WRITE:/ WA-VBELN,WA-ERDAT,WA-rfstk.
ENDLOOP.
CLEAR WA.
REFRESH ITAB.
Similar Messages
-
Please tell me the table where customer contact persons mail id is stored
Hi,
Can any body please tell me where the Please tell me the table where customer contact persons mail id is stored .
That we are maintaing in the XD02 transaction in the E-Mail option for the customer.
Please tell me as it is very urgent.
ThanksHi
pls check ADR6 <b>SMTP </b>
Customer Master Data Tables
KNA1 - Customer Master
KNB1 - Customer / Company Master
KNVV - Customer Sales Data
KNBK - Bank Details Master
KNVH - Customer hierarchy Master
KNVP - Customer partners Master table
KNVS - Shipment data for customer table
KNVK - Contact persons Master table
KNVI - Customer master tax indicator table
Message was edited by:
SHESAGIRI.G -
Dear Whom it may concern ,
I am Coco Lao , I come from Dong Guan Data Target Electronic Limited.
We are applying to join MFI program . September 26,2013, you ask us to join the facing to facing meeting at Apple Beijing Office . You just give us the address . Could you please tell us the date of meeting ?Could you please tell me the contact means of dedicated person at Apple Beijing Office ?
I am looking forward to your early reply .
Best Regards,
Coco Lao
<E-mail Edited by Host>You are not talking to Apple here only other users like yourself. No one here will be able to help ypu with this.
You will need to contact the person who sent you this information. -
Sum1 Please tell me the Table to extract Cost element category (SAP ). Cost
Sum1 Please tell me the Table to extract Cost element category (SAP ). Cost element category should be unique key?
Hi,
I don't see the cost element categ in CSKA (chart of account based).
Better try CSKB (controlling area based.
The Domain is KATYP and you can find cost element categ description in its value range
[genereic extraction possible for these texts...]
hope that helps...
Olivier.
Message was edited by:
Olivier Cora -
Inner Join. How to improve the performance of inner join query
Inner Join. How to improve the performance of inner join query.
Query is :
select f1~ablbelnr
f1~gernr
f1~equnr
f1~zwnummer
f1~adat
f1~atim
f1~v_zwstand
f1~n_zwstand
f1~aktiv
f1~adatsoll
f1~pruefzahl
f1~ablstat
f1~pruefpkt
f1~popcode
f1~erdat
f1~istablart
f2~anlage
f2~ablesgr
f2~abrdats
f2~ableinh
from eabl as f1
inner join eablg as f2
on f1ablbelnr = f2ablbelnr
into corresponding fields of table it_list
where f1~ablstat in s_mrstat
%_HINTS ORACLE 'USE_NL (T_00 T_01) index(T_01 "EABLG~0")'.
I wanted to modify the query, since its taking lot of time to load the data.
Please suggest : -
Treat this is very urgent.Hi Shyamal,
In your program , you are using "into corresponding fields of ".
Try not to use this addition in your select query.
Instead, just use "into table it_list".
As an example,
Just give a normal query using "into corresponding fields of" in a program. Now go to se30 ( Runtime analysis), and give the program name and execute it .
Now if you click on Analyze button , you can see, the analysis given for the query.The one given in "Red" line informs you that you need to find for alternate methods.
On the other hand, if you are using "into table itab", it will give you an entirely different analysis.
So try not to give "into corresponding fields" in your query.
Regards,
SP. -
Please tell me the procedure .
I am using eclipse IDE.
I see a.java and b.java file in my eclipse IDE.
Now i put c.java and d.java in the same physical location side by side to a.java and b.java
But , i dont see those in the eclipse IDE !!
i want those files inside the IDE...what needs to be done ?
please tell me the procedure .
thanksRight click svn update only two actions!!!!
cmd = open prompt cd to dir then svn
Thats three!!!
That extra moment could be priceless lolIf you're used to working with command-line tools, you'll have at least a couple of shells open all the time anyway. I always have a few, one of which is already at the root of whatever source code I'm working on. The shell has all the common tasks in it's history, so a quick tap on the up arrow and you're there :-)
Plus, I'm not using Windows so Tortoise is irrelevant anyway -
Please tell me the functionality of this piece of code
vl_faedn = sy-datum - 15.
All amount fields are 0.00 initially.
Please tell me the functionality of this code.What is the purpose of each query?
YD = Commission Advance
AB = Automatic Clearing Doc
Y4 = Commission Invoice
X4 = Commission Credit Memo
K1 = Commission Adj. Invoice
K2 = Commission Adj.Credit Memo
Retrieve the YD document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'C' AND
UMSKZ = 'C' AND
BLART = 'YD' AND
ZFBDT <= VL_FAEDN.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT = VL_YD_AMNT + VL_WRBTR.
ENDSELECT.
Retrieve the AB document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'G' AND
UMSKZ = 'G' AND
BLART = 'AB' AND
ZFBDT <= VL_FAEDN.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_AB_AMNT = VL_AB_AMNT + VL_WRBTR.
ENDSELECT.
Retrieve the Y4 document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
( blart = 'Y4' OR blart = 'X4' OR blart = 'K1' OR blart = 'K2' ).
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_Y4_AMNT = VL_Y4_AMNT + VL_WRBTR .
ENDSELECT.
VL_Y4_AMNT = -1 * VL_Y4_AMNT.
Retrieve the YD document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
blart = 'YD'.
( BLART = 'YD' OR BLART = 'K1' OR
BLART = 'K2' ). " Insert
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT1 = VL_YD_AMNT1 + VL_WRBTR.
ENDSELECT.
VL_YD_AMNT1 = -1 * VL_YD_AMNT1 .
IF VL_Y4_AMNT = 0.
VL_TOT_AMOUNT = VL_YD_AMNT1 - VL_AB_AMNT.
ELSE.
VL_TOT_AMOUNT = VL_Y4_AMNT - ( VL_YD_AMNT + VL_AB_AMNT ).
ENDIF.Hi
I dont know what functionality you are asking, Still I try to answer some things, If it's not forgive
vl_faedn = sy-datum - 15.
All amount fields are 0.00 initially.
Please tell me the functionality of this code.What is the purpose of each query?
YD = Commission Advance
AB = Automatic Clearing Doc
Y4 = Commission Invoice
X4 = Commission Credit Memo
K1 = Commission Adj. Invoice
K2 = Commission Adj.Credit Memo
Retrieve the YD document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'C' AND
UMSKZ = 'C' AND
BLART = 'YD' AND
ZFBDT <= VL_FAEDN.
The Above query retrieves field values WRBTR SHKZG from BSID table to the Local Variable VL_WRBTR & VL_SHKZG , if it satisfies the WHERE condition mentioned for the YD docu type for the Customer
What I suggests , the IF operation should be outside the SELECT-ENDSELECT. May be you have a requirement, I dont know
Atleast You have to perform SUBRC check.. Before the IF operation. for the VL_SHKZG = 'H'.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT = VL_YD_AMNT + VL_WRBTR.
ENDSELECT.
i.e., What , Here every SELECT query is performing for some document type for customer and vendor with some variable arithmetic operations .
Retrieve the AB document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'G' AND
UMSKZ = 'G' AND
BLART = 'AB' AND
ZFBDT <= VL_FAEDN.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_AB_AMNT = VL_AB_AMNT + VL_WRBTR.
ENDSELECT.
Retrieve the Y4 document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
( blart = 'Y4' OR blart = 'X4' OR blart = 'K1' OR blart = 'K2' ).
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_Y4_AMNT = VL_Y4_AMNT + VL_WRBTR .
ENDSELECT.
VL_Y4_AMNT = -1 * VL_Y4_AMNT.
Retrieve the YD document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
blart = 'YD'.
( BLART = 'YD' OR BLART = 'K1' OR
BLART = 'K2' ). " Insert
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT1 = VL_YD_AMNT1 + VL_WRBTR.
ENDSELECT.
VL_YD_AMNT1 = -1 * VL_YD_AMNT1 .
IF VL_Y4_AMNT = 0.
VL_TOT_AMOUNT = VL_YD_AMNT1 - VL_AB_AMNT.
ELSE.
VL_TOT_AMOUNT = VL_Y4_AMNT - ( VL_YD_AMNT + VL_AB_AMNT ).
ENDIF.
Reward points if useful
Edited by: GP on May 10, 2008 9:02 PM -
Please tell me the T.codes
Hi
please tell me the t.codes for the following.
1)Creditors payable Reports
2)Creditors Ageing Reports
3)Debtors Ageing Reports
4)TDS register
5)Vat Register
i will give full pointsHi,
FBL1 Display Vendor Line Items
FBL1N Vendor Line Items
FBL2 Change Vendor Line Items
FBL2N Vendor Line Items
FBL3 Display G/L Account Line Items
FBL3N G/L Account Line Items
FBL4 Change G/L Account Line Items
FBL4N G/L Account Line Items
FBL5 Display Customer Line Items
FBL5N Customer Line Items
FBL6 Change Customer Line Items
FBL6N Customer Line Items
Customer Aging Report - s_alr_87012178
Vendor Aging Report : s_alr_87012084
VAT details can be viewed from Table LFAS.
Hope this will help.
Regards,
Naveen. -
Please tell me the driver program of the sapscript J_1i_are1 ?
Please tell me the driver program of j_1i_are1 and which table is populating before printing ?
I have to add chapter id for the particular material is it feasible ?
Please help .Hi Aanchal,
TADIR Entries
Object Description TADIR Entry
Program ID Object Type Object Name Program ID Object Type Object Name
LIMU REPS J_1IPRNTARE R3TR PROG J_1IPRNTARE
Therefore the program name is J_1IPRNTARE
Regards,
Md Ziauddin -
Please tell me the use of ranges , when it should be used
please tell me the use of ranges , when it should be used.
Anytime you have to equate to multiple values in your programs. Say for example, you need to get data for two company codes from a table.
data: it001 type table of t001.
ranges: r_bukrs for t001-bukrs.
r_bukrs-sign = 'I'.
r_bukrs-option = 'EQ'.
r_bukrs-low = '0010'.
append r_bukrs.
r_bukrs-sign = 'I'.
r_bukrs-option = 'EQ'.
r_bukrs-low = '0020'.
append r_bukrs.
select * into table it001 from t001 where bukrs in r_bukrs.
Regards,
Rich Heilman -
Please tell me the difference between CREATE OBJECT & CREATE DATA ,statements in CRMTECHNICAL
Please tell me the difference between CREATE OBJECT & CREATE DATA ,statements in CRMTECHNICAL
found it on my own . the best way to do this is use the RetriveLimitedHierTreeCommand with a search on the taxonomy table.
-
Please tell me the query,If i want to fetch before 5 days data from sqlite database in ios ?
kumar190 wrote:
Please Can you send me the link of Sq-lite(Making own Schema). Which will be help full for me...
Here is the general concept for a database schema: http://en.wikipedia.org/wiki/Database_schema
This is how you would create a table in SQLite: https://sqlite.org/lang_createtable.html -
I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections
You should be able to just place them in your Books library in iTunes and check to ensure that your Book library is configured to sync to your iPod when you sync your iPod to iTunes.
-
Can anyone please tell me the cause of the msg-The song" " could no be used
because the original file could not be found-and how I might correct that problem? LouI stupidly tried to copy my music files to an external drive so I could transfer them to my new iMac (old Macbook Pro is being retired). I now know I should've tried home sharing or something to transfer the music.
Anyway, the situation I am in is that I have not managed to transfer anything and I now cannot access the music on my old Macbook Pro either! I have the message "the song 'xyz' could not be used because the original file could not be found. Would you like to locate it?". I understand that this is because iTunes cannot locate the files. When I try to locate the files I find nothing.
I have tried searching my whole Macbook Pro for mp3 files and m4a files and Spotlight cant find any! The tracks are all still listed in iTunes. I also searched the external hard drive. I definitely haven't deleted anything. So where could they have gone and is there anything else I can do to search for them? I have a feeling I am just not searching for them in the right way because I have not deleted anything.
Old computer is Macbook Pro OS X 10.6.8 with iTunes 10.4.1
New computer is iMac OS X 10.7.2 with iTunes 10.5
All I want to do is to set everything back to how it was so I can try the transfer a better way.
Please help. Thanks, Dashford. -
Please tell me the soluation How can I give the soluation bilow issue.
Dear Experts,
Please tell me the soluation How can I give the soluation bilow issue.
Currently user are facing one problem with respect of Line item report.
In any of the line item report (i.e. FBL1N, FBL3N, FBL5N) we want to view header reference as column data wonu2019t appear in any of the reference filed.
For Example in Bank G/L Cheque number was enter in reference field but same is not apear
In Sales G/L or tax G/L invoice number is to be appear which is again invoice number as reference in document.
Regards
Devendra.
Moderator: Give proper titles to your threadsHi,
To add Reference field in line item report do below.
From FBL1N output screen.
Click change layout / (clr + F8)
Now add Hidden field u2018Referenceu201D to column content and push copy button.
Now you should be able to view reference field (BKPF- XBLNR) in line item report.
Best Regards,
Raju
Maybe you are looking for
-
How much recording time on my iphone 4 voice memo?
How much recording time on iphone4 voice memo?
-
Just downloaded Firefox4 and can't read the top line menu because it's in some strange language with symbols instead of letters. How do I get it to display English in the top line menu? If I could read the menu, I'd go to tools and see if there were
-
This server 192.2.2.1 at XDB requires a username and password
Hi all, I am installing Apex 4.2 in Oracle 10.2.0.4 on SLES 11 But I got the above error. :( I tried to google the error but to no avail. I see lots of similar error since 5 years ago and it seems there is no solution yet. sad sad sad. Is Apex 4.2 no
-
friends, can any one plz give little details of what an abaper will be doing when working with FICO people, i mean , the specific programs which an abaper will develop while working wih FICO. thanks in advance for the help.
-
Hi, I'd like to create a dynamic combobox that will add entries according to user input from a dialog box. Can anyone advise on how to achieve this? Thanks in advance Bulleo