Can anyone give me an example of for all entries in case of inner join
Hi abapers,
I am trying to replace an inner join with for all entries.
So kindly give me a demo code so that i can understand the use and apply it.
And plz tell me in which case it is better to use for all entries and in which case to use inner join so that better performance will occur.
With Regards
Ansuman
Hello Ansuman,
For example:
DATA:
BEGIN OF fs_eket,
ebeln LIKE ekko-ebeln, " Purchasing Document Number
ebelp LIKE ekpo-ebelp, " Item Number of Purchasing Doc
END OF fs_eket. " fs_eket
DATA:
t_eket LIKE " Purchase table
STANDARD TABLE
OF fs_eket.
Using joins:
select ebeln ebelp
into corresponding fields of table t_eket
from ekko join ekpo
on ekkoebeln eq ekpoebeln
where ebeln in s_sbeln.
The select statement can be replaced by
SELECT ebeln
FROM ekko
INTO CORRESPONDING FIELDS OF TABLE t_eket
WHERE ebeln IN s_ebeln.
IF sy-subrc EQ 0.
sort t_eket by ebeln.
SELECT ebeln
ebelp
FROM ekpo
INTO CORRESPONDING FIELDS OF TABLE t_eket
FOR ALL ENTRIES IN t_eket
WHERE ebeln EQ t_eket-ebeln.
The duplicate entries are removed by using FOR ALL ENTRIES. Or else by using the join, you have teh sort the table by key fields and then delete adjacent duplicates.
Hope it helps you
Regards
Indu
Similar Messages
-
Can anyone give me an example?
I want to lucubrate M-UI ,CAN anyone give me an example just for my beginning?
What is "lucubrate M-UI ,CAN"???
CUL8er,
Nick. -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
Can anyone give me an example for crm_svy_..._pai?
Hi all, I have a survey, there are several questions. After I input the answers, I click the 'CHECK' button, I will check the answers. There will be different response to my answers. If the answer is not correct, I will post an error message.
And I also need to retrieve data from tables to fill the blank.
I am a beginner for CRM survey, can anyone help me? I create a FM:crm_svy_..._pai, and code in it right? But how can I do it?
Can anyone give me an example for crm_svy_..._pai to do what I need?
Many many thanks in advance!!
Heare is an example, but I don't its function and how does it work..
read table lt_all_values into ls_value
with key answer_id = 'get_value'.
if sy-subrc = 0.
data: lt_values type crm_svy_api_string_t.
append ls_value-value to lt_values.
call method ir_survey_values->values_set
exporting
i_question_id = 'set_value'
i_answer_id = 'set_value'
it_values = lt_values.
endif.Hi Yu,
Could you tell how you solved your issue?
Regards and tx in advance,
Mon -
Can anyone give me step by step for calling FM from one SAP to another SAP
can anyone give me step by step for calling FM from one SAP to another SAP
points will be rewarded,
thank you,
Regards,
Jagrut BharatKumar Shukla*& Report RFC_FOR_CUSTOMER_LIST
*& RFC to a Fn. module from another system which implements BAPI
REPORT rfc_for_customer_list.
DATA:
fl_status TYPE i.
DATA:
fs_message TYPE bapiret2.
DATA:
BEGIN OF fs_customers,
id TYPE s_customer,
name TYPE s_custname,
END OF fs_customers.
DATA:
t_customers LIKE
STANDARD TABLE
OF fs_customers.
CALL FUNCTION 'Z_BAPI_GET_CUSTOMER_LIST' DESTINATION 'R3N'
IMPORTING
return = fs_message
TABLES
customerlist = t_customers.
IF sy-subrc EQ 0.
fl_status = 1.
LOOP AT t_customers INTO fs_customers.
WRITE:
/10 fs_customers-id,
30 fs_customers-name.
AT LAST.
WRITE:
/,/5 'No of customers in R3N = ', sy-tabix.
ENDAT.
ENDLOOP.
ELSE.
MESSAGE 'RFC failed' TYPE 'S'.
EXIT.
ENDIF.
TOP-OF-PAGE EVENT *
TOP-OF-PAGE.
IF fl_status NE 0.
WRITE:
/12 'ID' COLOR 6,
32 'NAME' COLOR 6.
SKIP.
ENDIF.
This is one small example...
Regards,
Pavan -
Can anyone give me an example of direct, queued and unserialized delta?
hi all,
Can anyone give me an example of direct, queued and unserialized delta for fi and sd applications.
thanxs in advance
regds
harihi,
Update Methods,
a.1: (Serialized) V3 Update
b. Direct Delta
c. Queued Delta
d. Un-serialized V3 Update
Note: Before PI Release 2002.1 the only update method available was V3 Update. As of PI 2002.1 three new update methods are available because the V3 update could lead to inconsistencies under certain circumstances. As of PI 2003.1 the old V3 update will not be supported anymore.
a. Update methods: (serialized) V3
Transaction data is collected in the R/3 update tables
Data in the update tables is transferred through a periodic update process to BW Delta queue
Delta loads from BW retrieve the data from this BW Delta queue
Transaction postings lead to:
1. Records in transaction tables and in update tables
2. A periodically scheduled job transfers these postings into the BW delta queue
3. This BW Delta queue is read when a delta load is executed.
Issues:
Even though it says serialized , Correct sequence of extraction data cannot be guaranteed
V2 Update errors can lead to V3 updates never to be processed
Update methods: direct delta
Each document posting is directly transferred into the BW delta queue
Each document posting with delta extraction leads to exactly one LUW in the respective BW delta queues
Transaction postings lead to:
1. Records in transaction tables and in update tables
2. A periodically scheduled job transfers these postings into the BW delta queue
3. This BW Delta queue is read when a delta load is executed.
Pros:
Extraction is independent of V2 update
Less monitoring overhead of update data or extraction queue
Cons:
Not suitable for environments with high number of document changes
Setup and delta initialization have to be executed successfully before document postings are resumed
V1 is more heavily burdened
Update methods: queued delta
Extraction data is collected for the affected application in an extraction queue
Collective run as usual for transferring data into the BW delta queue
Transaction postings lead to:
1. Records in transaction tables and in extraction queue
2. A periodically scheduled job transfers these postings into the BW delta queue
3. This BW Delta queue is read when a delta load is executed.
Pros:
Extraction is independent of V2 update
Suitable for environments with high number of document changes
Writing to extraction queue is within V1-update: this ensures correct serialization
Downtime is reduced to running the setup
Cons:
V1 is more heavily burdened compared to V3
Administrative overhead of extraction queue
Update methods: Un-serialized V3
Extraction data for written as before into the update tables with a V3 update module
V3 collective run transfers the data to BW Delta queue
In contrast to serialized V3, the data in the updating collective run is without regard to sequence from the update tables
Transaction postings lead to:
1. Records in transaction tables and in update tables
2. A periodically scheduled job transfers these postings into the BW delta queue
3.This BW Delta queue is read when a delta load is executed.
Issues:
Only suitable for data target design for which correct sequence of changes is not important e.g. Material Movements
V2 update has to be successful
hope it helps
partha -
Can anyone give a good contact number for someone in the upper level of customer service
can anyone give a good contact number for someone in the upper level of customer care i have talked to two of the worst people from customer service, the "supervisor" who was very appropriate did give me a address to mail a complaint which i will but being a disabled veteran of the Iraq war and a member of the wounded warrior project i get upset at certain people who show no respect for the average person and even worse of an attitude to those injured serving their country. I'm in no way saying I'm better its just that i expect a grain of respect as a person, a fellow American working everyday just to get by. my issue was not an impossible issue to resolve but i was told by one rep that it was not possible after my call being "dropped" i called back and talked to another. Luke from call center Washington state told me it was possible but that the phone i ordered two days prior (that rep failed to finish the order)was no longer available and i could pick a different phone not on back order.......i mentioned my confusion to the lack of service and being told two separate things. i asked why this was when i was not the one who made the mistake he told me it was not there fault and pushed the blame to me....he then called me dude and started to speak over me. when i asked to speak to a supervisor he asked why i told him i was no longer interested in talking to him he said why, i asked to be transferred again he kept refusing saying listen man I'm trying to help you what do you want. i asked to speak to his supervisor at least three more times he refused. i asked for his employee information so i could call back to report his rude behavior he refused to give me anything except at the end he finally told me his name.. there is more but my hand is tired is there anyone who can help me? if i find an answer as i will be posting this to many sites i will post it here.
Hello hazzard0011, I want to first and foremost say we truly appreciate your hard work and dedication to our country. It is our commitment to provide a top notch customer experience. My apologies that this hasn't been the case in your recent interactions. We can definitely submit feedback to our upper leadership regarding the matter. Can you please send us a direct message so that we can further investigate? Also, please share details regarding the initial issue. Here's steps to send a direct message: http://vz.to/1b8XnPy
WiltonA_VZW
VZW Support
Follow us on twitter @VZWSupport -
Can anyone give me user exit name for create/update purchase order partners
Hello guys
Can anyone gives me user exit name for create/update purchase order partners?
Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N) by using user exit.hi,
check these exits.
Transaction Code - ME21N Create Purchase Order
Enhancement/ Business Add-in Description
Enhancement
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
M06B0003 Number range and document number -
Can anyone give a good contact number for someone in the upper level of customer care
Duplicate post - please see:
can anyone give a good contact number for someone in the upper level of customer service
Message was edited by: Admin ModeratorHello hazzard0011, I want to first and foremost say we truly appreciate your hard work and dedication to our country. It is our commitment to provide a top notch customer experience. My apologies that this hasn't been the case in your recent interactions. We can definitely submit feedback to our upper leadership regarding the matter. Can you please send us a direct message so that we can further investigate? Also, please share details regarding the initial issue. Here's steps to send a direct message: http://vz.to/1b8XnPy
WiltonA_VZW
VZW Support
Follow us on twitter @VZWSupport -
Can anyone give me a bean class for JAVAMAIL, for using in JSP?
Can anyone give me a bean class for JAVAMAIL, for using in JSP?
I hate coding everything inside a jsp page!! Anyone out there who can help me out??hi
see my post in the javamail forum... here you can see a bean.. I'm trying to connect it with the mysql database - may you can help me -
Can anyone give me the process flow for MTBF report?
hi all
can anyone give me the process flow of MTBF Report?
regards
ashaAnd Full form of MTBF is ???
Regards
Amitava -
I want to move my iPhoto from my internal hard drive to an external hard drive to free up space. Can it be moved entirely and function the same as before with all features and the software itself on the hard drive? Also, can anyone give step by step instructions on how to do this? I'm having a difficult time figuring this out on my own by trying to search through Apple support.
Oops...
Here you go...
iPhoto: How to move the Library to an EHD
Make sure that the EXT Drive is formatted as Mac OS Extended (journaled).
That's what iPhoto Likes... -
Can anyone give me an example of a custom TableColumn
I just can't get to grips with creating a custom TableColumn
can somone give me a hand or a pointer to a tutorial, I just cant find one anywhere
ThanksFrom that thread's description, I think everything you are asking to do can be controlled by the TableModel itself. The data, types, etc. (that are the data that drive the table) are all defined in your table model.
Just subclass AbstractTableModel and implement the necessary methods. If while running, you change the # of columns, data types, etc. just fire the appropriate event from your TableModel fireTableStructureChanged(), etc. The columns, etc. will be rebuilt using the updated information from your table model. Not sure given your description if you will need to do any of that though. I think you can just extend the abstract table and with your own logic in getValueAt() to return the appropriate value from your data.
Note that the table expects all of the data in a column to be the same type. If your underlying data may have values in different types (classes) you will need to convert them to something generic before returning them from your model (like as a String).
Read up on this tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
You pretty much don't have to muck with the TableColumnModel stuff unless you want to do advanced/tricky things like provide a generic way to hide/show columns, etc. -
I have been trying to get night time "landscape" photos with a full or partial moon in them. The mountains, water, sky and stars all come out great but the moon and its reflection come out very bright, round and pretty blurry. I usually use my kit lens, tripod, shutter remote;100 to 400 ISO, 8-30 seconds on the shutter speed, aperture 4 to 8,10,16...,metering mode "spot", and using the Manual zone. Is there a way to "get it all"? ~Thanks!
You can do this... but the "trick" is to take the shot the evening BEFORE the "full" moon moon and not the of the full moon.
Whenever you have substantially mixed lighting problems (bright moon, dark city), you usually want to look for ways to bring the radically different exposure needs closer together so that the exposure needs from the moon are not so substantially different than the exposure needs of the city. By shooting the cityscape at "dusk" instead of at "night" you are helping to bring the exposures closer together AND usually a deep blue (end of dusk) sky color looks more appealing than a black sky anyway.
The moon rises a bit later each day (since there are 24 hours in a day but there are about 29.5 days in a Lunar month). The actual time between moonrises varies a bit.
You want to be in position a bit before sunset. You'll notice that the moon actually appears to be pretty much "full" one day before it it is technically the official "full" moon. But since you are taking the shot a day early, you'll get a dusky blue sky behind the full moon rather than a black sky. On the night of the full moon, the Earth is between the Sun and Moon -- so the moonrise actually occurs "at" sunset. At that time, however, the moon will be right on the horizon and not up high enough to be visible over the buidlings in your city nightscape shot. By the time the Moon is high enough, dusk will have completely ended and the sky will be black.
By getting there a a day EARLY, there will still be some light once the Moon is high enough. This will completely change your exposure.
The Moon looks best photographed with something called the "Loony 11" rule -- which suggests a correct exposure with f/11 and setting the shutter speed to the inverse of the ISO speed. So at ISO 100 you'd use 1/100th sec if you are using f/11 (and if you use something other than f/11 you can change the shutter speed to compensate.) But this rule is for when the moon is high. Nearer to moonrise the thick atmosphere will reduce the amount of light and will likely require an extra stop to expose (e.g. you may need to slow the shutter to 1/50th at ISO 100 with f/11 - use a tripod or boost ISO speed slightly (I'd use a tripod).
Incidentally, if you use a long focal length it will create the illusion of a very large moon relative to the size of the cityscape below.
You can use the "Photographer's Ephemeris" website (or application) to your advantage here. I use a mobile app named "Sun Surveyor" but I see the folks who made the "Photographer's Ephemeris" website have also created an app. The idea behind it is you give it the location and date and it will tell you not only the rise & set times for the Sun and Moon... it'll visually plot the position angle (compass heading) and altitude angle up from the horizon for any time of the day. And they also use a map. So... suppose you want to get a picture of a city with the moon just above a specific building... the website and/or app will tell you exactly where you need to stand AND at what time you need to be standing there to get that shot with the moon precisely where you want it to be.
Photographers Ephemeris: http://photoephemeris.com
Sun Surveyor: http://www.sunsurveyor.com
Both of these do "roughly" the same thing (I first learned about Photographer's Ephemeris... but at that time the only way to use them was via their website and desktop app (which is free, btw) -- they didn't have an app. So you had to use your computer to pre-plan you shot before leaving home.) That was great -- but didn't help me on vacations where my computer is back at home.
Then I learned about Sun Surveyor (which was basically Photographer's Ephemeris... but in "App" form for my iOS mobile device.) After I bought Sun Surveyor (it's a few dollars).... Photographer's Ephemeris launched their own app. So now you have at least a couple of options.
Good luck!
Tim Campbell
5D II, 5D III, 60Da -
Where could I find some example code in DaqCard-1200 Register_level programming Manual
This forum is for discussion of Measurement Studio for Visual C++. You can post questions about DAQ to the Multifunction I/O secition here.
Best Regards,
Chris Matthews
National Instruments
Maybe you are looking for
-
Lync 2013 client not processing history spooler folder (conversation history)
We have been using Lync 2013 fully patched up to latest & greatest, along with Exchange 2013 for about 6 months now & everything is working great. (I did a AD migration from our old parent company in the UK as well as migrated exchange from 2010 to 2
-
How to launch my java application in a web browser?
Hi. I try to launch my java application, e.g. "HellowWorld.java", using web browser. 1. How can I change my java application program to java applet in general way? I read "Java: An Introduction to Computer Science and Programming, Third Edition" by W
-
How long til elements 7 Camera RAW 5.4 for Canon 500D????
I have recently upgraded from Canon 400D to 500D. I was merrily editing away with the 400D but since the 500D, I haven't been able to convert the RAW files at all. Research on this site shows that there is a trial 5.4 for the 500D but for CS4 only!!
-
My Trackpad is not working properly, What shall i do?
Trackpad is not functioning properly once i updated my computer last night it worked perfectly but by the end of the night it start to act funny!
-
My internal cd/dvd drive has recently broke. Does anyone know of a decent external drive that will load software, and cd's. Dvd's not as important, nor is the recording option. Thank you for all your help.