Select Query after the Event "GET node "
Hi,
My requirements is I am calling get object event in my report and preparing an internal table in the get event, after this i need to write a select query based on this internal table..
i want to avoid select query inside get event, my problem is to end the GET event and write a select query..
How can i do that..
can i write it in the end-of-selection.( i don't think so)
it looks like this.
start-of-selection.
get objec.
" Internal table preparation
????????event name needed??????????
select query.....
please suggest.
END-OF-SELECTION.
Effect
This statement defines an event block, whose event is raised by the ABAP-runtime environment during the calling of an executable program , if the logical database, with which the program is linked, has completely finished its work.
Moderator message - Sandeep - if you have to cut and paste from the help, please note it as such.
Edited by: Rob Burbank on Nov 26, 2009 12:42 PM
Similar Messages
-
Select query after the submit stmt
Hi,
Have used the submit stmt as
" SUBMIT pgm name WITH SELECTION-TABLE rspar_tab
EXPORTING LIST TO MEMORY
AND RETURN."
Now the o/p generated is saved in the memory.In the report which is generated I have to fetch only 2 values based on one field as criteria..How to write the select query.hi,
after the submit statement use the LIST_FROM_MEMORY
function module...this function module loads the list from ABAP memory to an internal table of row type ABAPLIST...
after the data has been saved in an internal table u can do selection on the basis of the field...
Edited by: siddharth kumar on Oct 10, 2008 2:01 PM -
Issue with Select Query in the Delivery userexit USEREXIT_SAVE_DOCUMENT
Hi All,
I am facing a strang issue with delivery userexit
1) I have a delivery user exit MV50AFZ1 - USEREXIT_SAVE_DOCUMENT.
2) In this user exit. I have written a select query as shown below
*Get the already delivered data
SELECT vbeln
vgbel
vgpos
erdat
erzet
lfimg
FROM lips
INTO TABLE t_lips
FOR ALL ENTRIES IN t_xlips_reference
WHERE vgbel EQ t_xlips_reference-vgbel
AND vgpos EQ t_xlips_reference-vgpos.
IF sy-subrc EQ 0.
ENDIF.
3) The use of the above select query is to find out if there is any delivery that has already been created for the reference slaes order for which the current delivery is being created.
4) The issue here is that for the FIRST DELIVERY, this select query should fail becuase there is no delivery created earlier and LIPS table would not have data. But, I am seeing some data getting populated in the internal table. The data that I am seeing in the internal table is the data of XLIPS which is nothing but the one that is about to get saved in the database after finishing this userexit.
5) STRANGE Point is that this is working fine in case if I create delivery using the transaction VL01N. But, if I create delivery using VL10A program I am facing this issue.
<< Removed >>
Thanks,
Babu Kilari
Edited by: Rob Burbank on Jun 16, 2010 4:22 PMThen why don't you add
AND vbeln NE likp-vbeln -
How to write selection Query for the following requirment.
Hi All,
I am new to ABAP, I need a help ,
I need to select all plants(WERKS) from MARC at Plant/Material level,
then I need to take all sales organozation(VKORG) from T001w,
then I need the company code(BUKRS) from TVKO based on VKORG,
then I need the currency key(WAERS) from T001 based on BUKRS,
Can any one help me in writing selection Query for the same?
Thanks All,
Debrup.Hi,
Its easy for you if you learn SELECT with JOIN to complete your task. So SEARCH the forum with SELECT statement and you will get a lot of examples using which you can write your own.
If you struck up anywhere revert back.
Regards
Karthik D -
How an INDEX of a Table got selected when a SELECT query hits the Database
Hi All,
How an Index got selected when a SELECT query hits the Database Table.
My SELECT query is as ahown below.
SELECT ebeln ebelp matnr FROM ekpo
APPENDING TABLE i_ebeln
FOR ALL ENTRIES IN i_mara_01
WHERE werks = p_werks AND
matnr = i_mara_01-matnr AND
bstyp EQ 'F' AND
loekz IN (' ' , 'S') AND
elikz = ' ' AND
ebeln IN s_ebeln AND
pstyp IN ('0' , '3') AND
knttp = ' ' AND
ko_prctr IN r_prctr AND
retpo = ''.
The fields in the INDEX of the Table EKPO should be in the same sequence as in the WHERE clasuse?
Regards,
VijiHi,
You minimize the size of the result set by using the WHERE and HAVING clauses. To increase the efficiency of these clauses, you should formulate them to fit with the database table indexes.
Database Indexes
Indexes speed up data selection from the database. They consist of selected fields of a table, of which a copy is then made in sorted order. If you specify the index fields correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan).
The primary index is always created automatically in the R/3 System. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE. If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVING clause, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
reference : help.sap.com
thanx. -
Ical problem already 3 weeks after the update, get the message every time username or password is incorrect as I do with this password and username in mobileme bowl. now get the message
The server responded with \ 'HTTP/1.1 409 Conflict \'.
can someone help meIcal problem already 3 weeks after the update, get the message every time username or password is incorrect as I do with this password and username in mobileme bowl. now get the message
The server responded with \ 'HTTP/1.1 409 Conflict \'.
can someone help me -
Event Time in iCal changed after the Event Date changed !!!!
I can not change either Date of Time of the Event because both of them will be changed to be the same value all the time.
Please see the picture below. I changed to date to 29th and the time changed to 29:00 !!!!
http://www.freemac.net/modules.php?name=Forums&file=download&id=18166
The Time Column in iCal look strange, too.
http://www.freemac.net/files/screenshot_2010-09-07_at_tuesday_7_september___24.09.14_am577.png
I always have my iCal sync with me.com and sync my iPhone with iCal.
Now I have to sync my iPhone with me.com directly to get correct information.
Could you please solve this problem?
I have to edit the event's time on either iPhone or me.com.Greetings,
iCal depends on the computer to tell it how to interpret time and ranges of time. If you change the time arrangement on the computer this can cause issues in iCal. It looks to me like you are using a non-standard time arrangement.
Go to Apple Menu > System Preferences > Language&Text > Formats > Region
This should NOT say "custom". If it does, choose the correct Region for your area of the world (or how you like the format to be).
Check out iCal and see if it is working.
Hope that helps. -
Select Query in the receiver JDBC
Hello all,
Is it Possible to use the select query in eceiver JDBC.
Thanks,
SrinivasaHi Srinivas,
You can either create the structure or can directly write the SQL_QUERY or| SQL_DML statement where you will specifty the action SQL_QUERY | SQL_DML .
So you can use either XML SQL Format or Native SQL Format. Please see this help srini:
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Regards,
---Satish -
Hi,
I need to get the value for the balance carried forward for the G/L Account Number.
In the program RFSSLD00, they have used a event GET SKC1A to get the value in the field UMSAV.
When this statement is executed, the structure is populated with the values.
Can anyone please help me of how to use this event? Whether any alternatives are available to get this value?
Please let me know. Thanks in advance.Hi Satish,
Thanks for the reply.
In the attributes of the program you need to give SDF as the logical database. Then you can use the statement GET SKC1A.
But, I have a question here. When I run the program, the statement get executed and has values in it. Which field is taken as input to get the values in SKC1A? In my program, I have given the values as company code = 0252 and year as 2008. But it is giving the values as follows.
SKC1A-BUKRS = 0160, SKC1A-SAKNR = 0001111020, SKC1A-GJAHR = 2008.
I am confused here. Can you please help on this?
Thanks in advance. -
How to write in selection screen after the select option field?
Hi
Please help me with this...
i need to write format of date after the select option field in the selection screen.
its like..
date ___________ to ___________ <b>yyyymmdd</b>
points will be awarded..
thanxUse selection-screen comment 1(31) text-005 -> this will give you format option.
See the below sysntax ,you have to use like this
Selection-screen begin of block b2 with frame title text-002.
selection-screen begin of line.
selection-screen comment 1(31) text-004.
parameter: r_1 radiobutton group rad1.
selection-screen end of line.
selection-screen begin of line.
Aging Report
selection-screen comment 1(31) text-005.
parameter: r_2 radiobutton group rad1.
selection-screen comment 40(30) text-003.
parameter: p_expir as checkbox.
selection-screen end of line.
selection-screen begin of line.
Materials with no Expiry Date
selection-screen comment 1(31) text-006.
parameter: r_3 radiobutton group rad1.
selection-screen comment 40(30) text-007.
parameter : p_bin as checkbox ."default 'X'.
selection-screen end of line.
selection-screen end of block b2.
selection-screen end of block b0. -
Query about the events in ALV List
Hi,
When does the events being triggered in the ALV?
Whta is its behavior? Thanks a lot!Hi,
Following this report is the sample report ALV. Kindly go through that one.
REPORT YMS_ALVDEMO .
TYPE-POOLS : SLIS.
TABLES : QALS.
DATA : BEGIN OF T_OUT OCCURS 0,
MATNR LIKE QALS-MATNR, "MATERIAL
WERK LIKE QALS-WERK, "PLANT
ART LIKE QALS-ART, "Inspaction Lot Type
OBJNR LIKE QALS-OBJNR, "Object Number
END OF T_OUT.
DATA : I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
I_LAYOUT TYPE SLIS_LAYOUT_ALV,
GS_LAYOUT TYPE LVC_S_LAYO,
G_REPID TYPE SY-REPID,
LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
SELECT-OPTIONS:S_PRFLOS FOR QALS-PRUEFLOS.
INITIALIZATION.
G_REPID = SY-REPID.
I_LAYOUT-ZEBRA = 'X'.
I_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
START-OF-SELECTION.
PERFORM FETCH_DATA.
END-OF-SELECTION.
PERFORM FILL_FIELDCAT.
PERFORM DISPLAY_ALV.
*& Form FETCH_DATA
* text
* --> p1 text
* <-- p2 text
FORM FETCH_DATA .
SELECT MATNR WERK ART OBJNR
FROM QALS
INTO TABLE T_OUT
WHERE PRUEFLOS IN S_PRFLOS.
ENDFORM. " FETCH_DATA
*& Form FILL_FIELDCAT
* text
FORM FILL_FIELDCAT .
REFRESH I_FIELDCAT[].
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = G_REPID
I_INTERNAL_TABNAME = 'T_OUT'
I_INCLNAME = G_REPID
CHANGING
CT_FIELDCAT = I_FIELDCAT[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
ENDFORM. " FILL_FIELDCAT
*& Form display_alv
* text
FORM DISPLAY_ALV .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = I_FIELDCAT[]
TABLES
T_OUTTAB = T_OUT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM. " display_alv
Thanks,
Sankar M -
IPod 4 touch. 3yrs old. Not charging when plugged in. But charges when the battery gets drained. when battery gets over I keep it for charging. It switches on and doesn't charge.. Plz help!!;;
Not Charge
- See:
iPod touch: Hardware troubleshooting
iPhone and iPod touch: Charging the battery
- Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
- Try another charging source
- Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
- Make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar -
I put an event on my calendar and within five minutes it gets deleted. I never delete any events. I already went and synced to all events and it still does it. I want it to stop. Can someone please help me?
go to settings>mail contacts and calenders> check and see if your calender is on under your email.. if so it is probably syncing to your emails calender and not the calender app on your phone..
-
Displaying different no. of records for a select Query for the same dbuser
Hi,
While querying from my machine after connecting to custom schema it is displaying 3000 rows.
When the same query was executed from different machine it is displaying just 31 records.
1. Connect as xxyy user and executed the below command
select count(*) from xxyy. XXYY_APAR_SUPP_CUST_MAST_V.
output is showing some 3000 records
2. Connect as xxto user and executed the below commands for a specific user and specific machine
select count(*) from xxyy. XXYY_APAR_SUPP_CUST_MAST_V.
output is showing just 31 records
Please help...!!Hi,
I hope you would have resolved the problem, if not, next step could be to check the TNS on both machines because now i suspect that your TNS on other machine points to some idfferent database.
What do you mean by following
2. Connect as xxto user and executed the below commands for a specific user and specific machineSo you connect with different users? If yes, then from both machines, if you connect with the same user, is result same?
When the same query was executed from different machine it is displaying just 31 records.Please paste the TNs entry for the database from both of your client machines from where you run the query.
Salman -
Case expression error with a select query in the condition
Consider the two query below:
1. The first one use a case expression :
select case when 3 > (select 1 from dual)*2 then 1 else 0 end from dual
2. The equivalent with a decode expression:
select
decode(sign(3-(select 1 from dual)*2),1,1,0) from dual
The first query return an ORA-00905 error but not the second one. It seems that the arithmetic operation (select 1 from dual)*2 cause the error. The folowing query doesn't return this error:
select case when 3 > (select 2 from dual) then 1 else 0 end from dual
I run the test with Oracle 8.1.7.3 Enterprise Edition. Is it a known bug ?
Thomasora8174>select case when 3 > (select 1 from dual)*2 then 1 else 0 end from dual;
select case when 3 > (select 1 from dual)*2 then 1 else 0 end from dual
ERROR at line 1:
ORA-00905: missing keyword
ora8174>select case when 3 > cast((select 1 from dual)*2 as number) then 1 else 0 end from dual;
CASEWHEN3>CAST((SELECT1FROMDUAL)*2ASNUMBER)THEN1ELSE0END
1
1 row selected.
ora8174>select case when 3 > to_number((select 1 from dual)*2) then 1 else 0 end from dual;
CASEWHEN3>TO_NUMBER((SELECT1FROMDUAL)*2)THEN1ELSE0END
1
1 row selected.
ora8174>@connect
Connected.
ora9204>select case when 3 > (select 1 from dual)*2 then 1 else 0 end from dual;
CASEWHEN3>(SELECT1FROMDUAL)*2THEN1ELSE0END
1
1 row selected.
Maybe you are looking for
-
Mail Adapter : Receiving a Dat file
Hi, I am sending an error message to MAIL adapter during a IDOC->XI<->HTTP Receive. I am getting the error message to my email id in the form of .DAT file(an attachment) The "Keep Attachments" is unchecked. Why is that i am not able to get this withi
-
I copied my Visual Studio 2008 projects to a new computer and am having trouble getting the database to attach to my website to continue with it. I uninstalled SQL 2005 express and installed SQL 2008 R2 Express. When I looked in the SQL Server config
-
I used the javac command in dos mode to compile my .java files , but in my recent program i have so many errors that they dont fit into the dos screen(in dos mode i cannot move up and down!). Is there any simple compiler for windows(or GUI) that coul
-
Configuration of Wires as payment method
What is the configuration done to set up "wires" as payment method. Please provide steps. I know setting up payment co. code, creating pmt methods per co. code and all those steps. All I want to know is what is needed to be configured in DME and the
-
Moving Screenshots in Camera Roll in Bulk to Desktop
I'm having trouble moving a bunch of iPhone screenshots (great feature) from the iphone to iTunes and/or my PC. For some reasons iTunes isn't recognizing the screenshots in the camera roll, and I can't figure out how to get this done. I can send the