Display ascending order
i have retrived database data using below statement in jsp page, now i want to retrieve values in which it display ascending order of vou_no....
the vou_no is as follow:
BP0101001
BP0101002
BP0101003
BP0101004
("select * from pay_header, pay_detail where pay_header.vou_no = pay_detail.vou_no and pay_header.vou_no like 'BP%' ");
thanx for u r help
is there possible that i got a record from database, which is greater than all the voucher no.
it should fetch a full record for that particular record.
i have used following..but its coming error...
sql = conn.prepareStatement("select max(pay_header.vou_no) from pay_header,pay_detail where pay_header.vou_no=pay_detail.vou_no and pay_header.vou_no like 'BP%' ");
Similar Messages
-
How to display Column List (Search Bar - Do Not Display) in Ascending Order
Hi,
I am having a Interactive Report..
In the Search Bar we have Select Columns, under that we have Do Not Display.
where all the columns (currently not displayed) are listed.
How can we display these columns in Ascending order
Thanks,
DeepakDo you want to display these columns in the IR?
If yes. Select the column you want to display and click the the '>'.
In the interactive report regions - source, where you have your query to select the columns use order by to sort them in assn order.
Do you want to keep these columns as 'Do not display' and have them in assn order there?
Select all columns to display and move the columns back to the 'Do not display' region one by one making selections in assn order.
Or in the query select the columns in the order desired.
I don't know if I am helping. I fell like I got your question all wrong. Still...
Edited by: machan on Dec 11, 2009 11:01 AM -
PO date and Omaterial should display in the ascending order
Hi experts,
When i excute the rep0rt the POdate and Material is not displaying in asending order, based on this order am caluculating some other key feild.
Back ground this was a Function Module datasource whichwas extraced into BI , Until PSA am getting the values correct. But from Cube the materilal and Podate are not in sequence. How to make these 2 in order. In reporting is there any setting, i tried to display in ascending order in query properties this not makign any change.
POdate Material
Ex: - 01-0102010 4010100010
02-01-2010 40101000020
Regards,
singam.vHi,
Please check "Sorting" options in Query Designer. They are defined for each characteristic placed at rows or columns.
You can sort according to keys (InfoObject Primary Keys) or Name/Description (InfoObject Texts). Perhaps the query is sorting but according to a criterion which is different from what it is expected.
Another thing to take into account is the order in which columns are placed. Sorting order is defined from left to right.
For example, if the first column is 0CALDAY and the second is 0MATERIAL, the query first sorts by date and if there are records with the same date, it sorts according to material, and so forth.
I hope this helps you.
Regards,
Maximiliano -
Apache: showing images in ascending order by name
hi:
i have several detail pages where i show images contained in
a folder:
$folder = dir($path);
while ($folderEntry = $folder->read()){
if ($folderEntry <> "." && $folderEntry
<> ".." &&
substr($folderEntry, -6, 2) <> "00") {
echo '<li><img src="'.$path.$folderEntry.'"
/></li>';
$folder->close();
in the local server they appear in the way i want, in
ascending order by
name (img_01.jpg, img_02.jpg, img_03.jpg, ...) but in the
remote server
they appear in, apparently, random order
i activated FancyIndexing in the httpd.conf file but it
doesn't solved
the problem:
# Directives controlling the display of server-generated
directory
listings.
# FancyIndexing is whether you want fancy directory indexing
or
standard
IndexOptions FancyIndexing
# End of indexing directives.
i know i can store the filenames names in an array an sort it
but i
prefer to control it in the server
local (OS X 10.4.10)
Apache/1.3.33 (Darwin) PHP/5.1.6
remote (Red Hat Linux 2.6.9-34.ELsmp)
Apache/2.0.52
tia,
jdoeTempleton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
Hope this helps! bill
1 GHz Powerbook G4 Mac OS X (10.4.9) -
I want to know making a program in ascending order....
hi to all...happy holidays
i have a code of mine but it doesn't work, pls help me...
class Sorting{
void sort(int[]a){
int i,j;
int temp;
for (i=0;i<a.length-1;i++)
for (j=i+1;j<a.length;j++)
if (a[j]<a)
temp=a[j];
a[j]=a[i];
a[i]=temp;
that code is for 500 numbers i try to be in ascending order but i doesnt work...
i want it also that when I type the number it says that these are the numbers i type....Can someone help with a sample code even just up to 11 numbers it accept and displays the number i type first before the output in ascending order....
Thanks a lot for consideration and help....How about:public class Hello {
public static void main(String[] args) {
Hello hi = new Hello();
int[] b = {5,3,7,2,1};
hi.sort(b);
for (int k=0; k < b.length; k++)
System.out.println(b[k]);
void sort(int[] a){
int temp;
for (int i=0; i < a.length-1; i++) {
for (int j=i+1; j < a.length; j++) {
if (a[j] < a) {
temp=a[j];
a[j]=a[i];
a[i]=temp; -
Variable selection screen- text in ascending order
Hi All,
Is there a way to display the medium/long text description in ascending order in selection screen? rather than displaying the key in ascending order. is it possible?
thanksHi Abby,
you can arrange the variables only in the querydesigner. In the settings you can choose the order of the variables.
I hope this will help.
Kind regards,
André -
Show lov records in ascending order
we want lov to display the records in ascending order in forms. How can i do this ?
please help!Hi,
you can visit the following links. It will helps you to create a LOV using Form Personalization.
http://apps2fusion.com/apps-training/147-forms-personalizations
http://blog.optiosys.com/?p=202
http://erpschools.com/articles/change-displayed-data-in-lov-using-forms-personalization#13486622087461&59812::resize_frame
HTH
Sanjay
Edited by: Sanjay Desai on Sep 26, 2012 5:58 PM -
How to design and list out in ascending order from minimum to maximum with 6 inputs
hi,
How to design and list out in ascending order from minimum to maximum with 6 inputs in Labview?
This is easy to write it in C++, but not in Labview,may be I am new to Labview. i manage to get the 1st and the 6th after compared, but i cant get 2nd, 3rd, 4th, 5th.
and can i write c++ language in Labview VI ?
thanks.
Solved!
Go to Solution.
Attachments:
24-1-2012 display 4.vi 7 KBTry this:
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
Dear Expert,
I have one table called Tab1 & have a lot columns. For this schenario, i mentioned few of the columns.
The columns are
product_type varchar2(100),
curr_date date (storing with time stamp),
other1_cloumn varchar2(10),
other2_cloumn varchar2(10)
Now I want to display all the records in ascending order except most recent record for every product_type || Union all || Most recent records in ascending order in single query.
For example...
product_type curr_date date other1_cloumn other2_cloumn
1, "10-May-2005 10:10:10", 10, 10
1, "10-May-2005 10:10:11", 10, 10
1, "10-May-2005 10:10:12", 10, 10
1, "10-May-2005 10:10:09", 10, 10
2, "10-May-2005 10:10:10", 10, 10
2, "10-May-2005 10:10:11", 10, 10
2, "10-May-2005 10:10:12", 10, 10
2, "10-May-2005 10:10:09", 10, 10
3, "10-May-2005 10:10:10", 10, 10
3, "10-May-2005 10:10:11", 10, 10
3, "10-May-2005 10:10:12", 10, 10
3, "10-May-2005 10:10:09", 10, 10
Now I want to display (OUTPUT) like...
1, "10-May-2005 10:10:10", 10, 10
1, "10-May-2005 10:10:11", 10, 10
1, "10-May-2005 10:10:09", 10, 10
2, "10-May-2005 10:10:10", 10, 10
2, "10-May-2005 10:10:11", 10, 10
2, "10-May-2005 10:10:09", 10, 10
3, "10-May-2005 10:10:10", 10, 10
3, "10-May-2005 10:10:11", 10, 10
3, "10-May-2005 10:10:09", 10, 10
1, "10-May-2005 10:10:12", 10, 10
2, "10-May-2005 10:10:12", 10, 10
3, "10-May-2005 10:10:12", 10, 10
Plz, provide a solution....I want to display like...
select * from tab1 where (product_type,curr_date) in
(select product_type,max(curr_date) from tab1 group by product_type)
order by product_type
Union All
(select * from tab1 where (product_type,curr_date) NOT IN
(select product_type,max(curr_date) from tab1 group by product_type)
order by product_type)
But, In the above case, The ORDER BY Clause will not work...How to get this one...?
I mean.. I want to display all the records in ascending order except Most recent record base on Product type and next I want to display Most recent record in ascending order. I want to display both cases in a single query...? -
SSRS Chart to format the date in ascending order
Hi All;
I need to sort the dates on Horizontal axis in ascending order
hence in category group - sorting - i had used teh below formula
=format(CDate(Fields!goalstartdateValue.Value),"MMM yyyy")
but it still displays the date as below
Any help much appreciated
Thanks
Pradnya07Does it work if you use
CDate(Fields!goalstartdateValue.Value)
instead. -
Inserted rows are not sorted in ascending order
Hi,
in my code when i click on a button (UpdateSchedule) certain rows are displayed in the result table. My problem is the displayed data is not in ascending order I know by keeping sort enable on a particular field we can sort the data as req. But the first time the result which is displayed is not an ascending order , i want to tackle this issue.
As whatever rows are displayed are not yet committed in database so modifying the query using order by clause also wont solve the issue . This data gets committed on a click of another button(ok).Can this be tackle programmatically ?
I hope i have given proper elaboration of the issue.
Regards,
Anant.Reading this from Javadoc and understanding your requirement makes me feel that achieving it would not be easy, or may not be possible at all unless FWK provides some override to these rules.
Restrictions & limitations:
Sorting is performed by requerying the database.
May not work well with view objects (VOs) that contain custom 'expert-mode' SQL. Basically the VO.setOrderByClause() is invoked on the VO using the column name associated with this web bean. An alternative for 'expert-mode' SQL may involve overriding the view object setOrderByClause() and performing custom logic. Note: The orderByParameter will be the column name plus either " desc" or " asc".
Will not work with view objects that contain the view attribute expression "See the SQL...". To sort on these view attributes, modify the VO XML directly and change the view atttribute expression to the SQL column name.
Sorting is not allowed for tables that allow inserts.
Sorting is not supported for tables containing updateable columns (unless the updateable columns are mapped to transient VO columns.) No exception is thrown if the table contains updateable columns, since there may be a rare case when it makes sense, for example a table where the contents fit on one page.
Modified transient columns will be reset. This is normal and expected behavior.
Sorting is not supported on the 'Select' column - this is the first column of a table when it contains a checkbox or radio button.
The table bean will invoke the following two methods on the view object to perform sorting. Debugging can be performed by setting a break on these methods on the VO (or a superclass of the VO.)
viewObject.setOrderByClause(orderByClause);
viewObject.executeQuery();
Thanks
Tapash -
How To: Sort Numbers in Ascending Order in a Generated List
Greetings! How do I set up a Generated List of Paragraphs so that it sorts in true ascending order? What I want is:
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
I have tried every trick I can think of with the sort order listed on the reference page. But all I can get is something that sorts by individual number (ignoring the numeric value) like:
1.1
1.10
1.11
1.2
1.20
1.21
1.3
Any help is much appreciated!Hello there, Michael! Thanks so much for looking at my post! Alas, the LOP will not work. I should have explained more, but it was so complicated I thought folks would give up reading.
Here's the best I can render it without getting permission to share a good example document. I do not blame anyone if it's too cumbersome or convoluted to wade through...
This is a requirements document which has sort of a "legal" tinge to it--as the document evolves we must maintain traceability for individual requirements. This means, for example:
Version 1 - I have requirements 1 and 2.
Version 2 - I need to add a new requirement, which should appear before requirement 1 in the document. Even though it comes before requirement 1 in the document, numerically it will be requirement 3 and requirement 1 will remain requirement 1.
Version 3 - I need to remove requirement 2. Even though I now have only 2 requirements, their numbers will not change (they remain requirements 1 and 3, appearing in reverse order).
Version 4 - I need to move requirement 3 to be after requirement 1. Again, the requirements keep their original number, even though their position has changed and there is no longer a "requirement 2" number in use.
Originally, I told the team (I'm doing this for a different dept), that they would have to hand-number requirements, which they did for a while. But that was getting very cumbersome, and the scenarios above are limited to one or two occurrences per document. So I created an auto-number sequence for them to use in the initial version and added a little smoke-and-mirrors work process to take care of changes in later versions. The last bit of chicanery I cannot get to work is the index...
Even if there are no changes to the requirements after the initial version, the index still does not sort in ascending numeric order. It was working with the hand-numbered requirements because they were using leading zeros. But without being able to include leading zeros in the auto-numbering formats (I tried the "use a zero as a tab leader" solution and like to have thrown my new monitor out of the window), I cannot find a solution.
Or rather, I think the solution is "you have to hand-number requirements".
For anyone who has made it this far, I truly appreciate your time and patience!
SFT -
Report for displaying the order number & order date..
HI ALL,
can any body help me for displaying the order number,customer name,material name & order date..in report
i dnt know the which are the table i need to use...
can anybody tell me which are table do i need to use and fields in tables
input to report from the user are cutomer number,purchase order numbervendor number & sales number
waiting for positive reply form u people.....
thanks
Zabeerulla
Moderator message: "spec dumping", please work yourself first on your requirement, do some research, talk to a functional consultant near you.
Edited by: Thomas Zloch on Feb 28, 2011 2:14 PMThx dharma raj ...
problem is ,input to report from the user are cutomer number,purchase order number,vendor number & sales number
report should contain
customer name
order date
order #
vendor name
material name
can u please tell me which are the table do i need to use...
i have ,please look into it...let me know if am incorrect
customer name -> kna1_name where kna1_kunnr=knagv_kunnr
order date -> vbak_audat
order nunber->vbak_vbeln
vendor name -> LFA1_NAME where LFA1_LIFNR=MEPO_TOPLINE(superfileld)
material # -> VBAP_ARKTX where VBAP_VBELN=VBAK_VBELN
HELP ME OUT...
THX
ZABEER -
Displaying Purchase order in report
Hi Expert
I am modifing a report for Mangement , They want to display purchase order in the report .....So I did the following modification but when I run the report all the fields are displaying and purchase order is showing empty, though I have added the po in the table and if you see my coding for adding po
data: vbkd-bstkd.
clear po_number.
select single bstkd into po_number
from vbkd
where vbeln = s903-vgbel.
call function 'RSAQRT_TEXTFIELD_CONTEXT'
exporting name = 'S903'
struc = S903.
call function 'RSAQRT_TEXTFIELD_CALL'
exporting struc = S903
name = 'S903'
fname = 'MATNR'
importing text = TEXT_S903_MATNR.
Can anyone help me please ....................it is very urgent
include /1BCDWB/IQ000000000226DAT
*{ INSERT 2
constants:
begin of %iqid,"type aqliqid
workspace type aql_wsid value ' ',
usergroup type aql_ugroup value 'SALES',
query type aql_query value 'BILL_DEL',
lid type aql_lid value 'G00',
struct type aql_tname value '/1BCDWB/IQ000000000226',
infoset type aql_iset value 'S903',
end of %iqid.
data %runmode type aqlimode.
data %seloptions type table of rsparams with header line.
field-symbols <%selopt> type rsparams_tt.
data TEXT_S903_FKART like TVFKT-VTEXT.
data TEXT_S903_FKSTO like DD07D-DDTEXT.
data TEXT_S903_GEWEI like T006A-MSEHL.
data TEXT_S903_KDKG1 like TVKGGT-VTEXT.
data TEXT_S903_KDKG2 like TVKGGT-VTEXT.
data TEXT_S903_KDKG3 like TVKGGT-VTEXT.
data TEXT_S903_MATNR like MAKT-MAKTX.
data TEXT_S903_MATNR_01 like MAKT-MAKTX.
data TEXT_S903_PERIV like T009T-LTEXT.
data TEXT_S903_PKUNAG like KNA1-NAME1.
data TEXT_S903_PKUNAG_07 like KNA1-NAME1.
data TEXT_S903_PKUNWE_01 like KNA1-NAME1.
data TEXT_S903_PMATN like MAKT-MAKTX.
data TEXT_S903_SPART like TSPAT-VTEXT.
data TEXT_S903_VKBUR like TVKBT-BEZEI.
data TEXT_S903_VKBUR_05 like TVKBT-BEZEI.
data TEXT_S903_VKORG like TVKOT-VTEXT.
data TEXT_S903_VKORG_03 like TVKOT-VTEXT.
data TEXT_S903_VOLEH like T006A-MSEHL.
data TEXT_S903_VRKME like T006A-MSEHL.
data TEXT_S903_VSTEL like TVSTT-VTEXT.
data TEXT_S903_VTWEG like TVTWT-VTEXT.
data TEXT_S903_VTWEG_04 like TVTWT-VTEXT.
data TEXT_S903_WAERK like TCURT-LTEXT.
data TEXT_S903_WERKS like T001W-NAME1.
data TEXT_S903_WERKS_01 like T001W-NAME1.
data TEXT_S903_ZZ_MGN like DD07D-DDTEXT.
data SP_ADD like VBPA-ADRNR.
data CUST_NAME like KNA1-NAME1.
data SHADD like VBPA-ADRNR.
data SHNAME like KNA1-NAME1.
data ADDRS like ADRC-STREET.
data MANDCK like LIKP-BOLNR.
data CMDDOC like LIKP-XABLN.
data EXT_DEL like LIKP-LIFEX.
*****ADD BY PIROZ
data PO_NUMBER like VBKD-BSTKD.
*data TEXT_S903_MATNR like MAKT-MAKTX.
TOTAL
data %Z_0001 like S903-NETWR.
CON_MARG
data %Z_0004 like %Z_0001.
CON_MRG_PC
data %Z_0005 like %Z_0001.
tables S903.
Function----
FUNCTION /1BCDWB/IQ000000000226EXTR.
""Local interface:
*" TABLES
*" %SELOPT STRUCTURE RSPARAMS
*" %DTAB STRUCTURE /1BCDWB/IQ000000000226
*" CHANGING
*" VALUE(%RTMODE) TYPE AQLIMODE
*" EXCEPTIONS
*" NO_DATA
*" NO_AUTHORIZATION
*" ILLEGAL_PACKAGE
*" CURSOR_NOT_OPEN
call function 'RSAQRT_SET_IDENTIFICATION'
exporting iqid = %iqid
sscr_report = sy-repid
changing rtmode = %rtmode.
if %rtmode-pack_on = space or %rtmode-first_call = 'X'.
call function 'RSAQRT_FILL_SELECTIONS'
tables selopt = %selopt
changing rtmode = %rtmode.
endif.
call function 'RSAQRT_INIT_TEXTHANDLING'
exporting class = 'CL_TEXT_IDENTIFIER'
wsid = ' '
infoset = 'S903'.
if %rtmode-no_authchk = space
and ( %rtmode-pack_on = space or %rtmode-first_call = 'X' ).
refresh %auth_tabs.
append 'S903' to %auth_tabs.
call function 'RSAQRT_AUTHORITY_CHECK'
exporting
auth_tabs = %auth_tabs
changing
rtmode = %rtmode
exceptions
NO_AUTHORIZATION = 1.
if sy-subrc = 1.
raise no_authorization.
endif.
endif.
data: %l_no_further_fetch type flag, " stop fetching
%l_hits_cnt type i. " cnt for %dbtab entries
if %rtmode-pack_abort = 'X'.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
exit.
endif.
if %rtmode-pack_on = space or %rtmode-first_call = 'X'.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
open cursor with hold %dbcursor for
select FKDAT VBELN FKART VKORG PKUNAG PKUNWE_01 MATNR VKBUR FKIMG VRKME FKSTO WERKS NETWR WAERK MWSBP VGBEL VGPOS ERNAM POSNR
VSTEL AUBEL KZWI1 KZWI2 ZZ_CART ZZ_MINCAR ZZ_WKND ZZ_FUEL UMSMNG KZWI4 KZWI3 ZZ_MGN WAVWR SPTAG
from S903
where SPTAG in SP$00001
and ERNAM in SP$00012
and WERKS in SP$00008
and MATNR in SP$00006
and PKUNAG in SP$00004
and VKORG in SP$00005
and FKART in SP$00007
and VBELN in SP$00002
and FKDAT in SP$00003.
endif.
if %dbcursor is initial.
raise cursor_not_open.
endif.
while %l_no_further_fetch = space.
fetch next cursor %dbcursor
into corresponding fields of S903.
if ( ( %rtmode-acc_check = 'X' and
sy-dbcnt > %rtmode-acc_number )
or sy-subrc <> 0 ).
%l_no_further_fetch = 'X'.
else.
call function 'RSAQRT_TEXTFIELD_REFRESH'.
additional coding:
data: vbpa-kunnr,
vbpa-parvw,
vbpa-adrnr.
clear sP_add.
select single adrnr into SP_ADD
from vbpa
where vbeln = s903-vbeln and
kunnr = s903-pkunag and
parvw = 'AG'.
additional coding:
select single name1 into cust_name
from adrc
where addrnumber = sp_add.
additional coding:
data: adrc-name1,
adrc-addrnumber.
clear shadd.
select single adrnr into SHADD
from vbpa
where vbeln = s903-vbeln and
kunnr = s903-pkunwe_01 and
parvw = 'WE'.
additional coding:
clear shname.
select single name1 into shname
from adrc
where addrnumber = shadd.
additional coding:
*{ REPLACE 1
\ data: adrc-street.
\ select single street into addrs
\ from adrc
\ where addrnumber = shadd.
data: adrc-street.
select single street into addrs
from adrc
where addrnumber = shadd.
*} REPLACE
additional coding:
data: likp-bolnr.
clear mandck.
if s903-vgbel ne space.
select single bolnr into mandck
from likp
where vbeln = s903-vgbel.
endif.
check SP$00009.
additional coding:
data: likp-xabln.
clear cmddoc.
select single xabln into cmddoc
from likp
where vbeln = s903-vgbel.
check SP$00010.
additional coding:
data: likp-lifex.
clear ext_del.
select single lifex into ext_del
from likp
where vbeln = s903-vgbel.
check SP$00011.
additional coding:
data: vbkd-bstkd.
clear po_number.
select single bstkd into po_number
from vbkd
where vbeln = s903-vgbel.
call function 'RSAQRT_TEXTFIELD_CONTEXT'
exporting name = 'S903'
struc = S903.
call function 'RSAQRT_TEXTFIELD_CALL'
exporting struc = S903
name = 'S903'
fname = 'MATNR'
importing text = TEXT_S903_MATNR.
additional coding:
%Z_0001 = S903-NETWR + S903-MWSBP .
%dtab-FKDAT = S903-FKDAT .
%dtab-VBELN = S903-VBELN .
%dtab-FKART = S903-FKART .
%dtab-VKORG = S903-VKORG .
%dtab-PKUNAG = S903-PKUNAG .
%dtab-CUST_NAME = CUST_NAME .
%dtab-PKUNWE_01 = S903-PKUNWE_01 .
%dtab-SHNAME = SHNAME .
%dtab-ADDRS = ADDRS .
%dtab-MATNR = S903-MATNR .
%dtab-TEXT_S903_MATNR = TEXT_S903_MATNR .
%dtab-VKBUR = S903-VKBUR .
%dtab-FKIMG = S903-FKIMG .
%dtab-VRKME = S903-VRKME .
%dtab-FKSTO = S903-FKSTO .
%dtab-WERKS = S903-WERKS .
%dtab-NETWR = S903-NETWR .
%dtab-WAERK = S903-WAERK .
%dtab-MWSBP = S903-MWSBP .
%dtab-WAERK001 = S903-WAERK .
%dtab-VGBEL = S903-VGBEL .
%dtab-VGPOS = S903-VGPOS .
%dtab-MANDCK = MANDCK .
%dtab-CMDDOC = CMDDOC .
%dtab-EXT_DEL = EXT_DEL .
%dtab-ERNAM = S903-ERNAM .
%dtab-%Z_0001 = %Z_0001 .
%dtab-WAERK002 = S903-WAERK .
%dtab-POSNR = S903-POSNR .
%dtab-VSTEL = S903-VSTEL .
%dtab-AUBEL = S903-AUBEL .
%dtab-KZWI1 = S903-KZWI1 .
%dtab-WAERK003 = S903-WAERK .
%dtab-KZWI2 = S903-KZWI2 .
%dtab-WAERK004 = S903-WAERK .
%dtab-ZZ_CART = S903-ZZ_CART .
%dtab-WAERK005 = S903-WAERK .
%dtab-ZZ_MINCAR = S903-ZZ_MINCAR .
%dtab-WAERK006 = S903-WAERK .
%dtab-ZZ_WKND = S903-ZZ_WKND .
%dtab-WAERK007 = S903-WAERK .
%dtab-ZZ_FUEL = S903-ZZ_FUEL .
%dtab-WAERK008 = S903-WAERK .
%dtab-UMSMNG = S903-UMSMNG .
%dtab-VRKME001 = S903-VRKME .
%dtab-KZWI4 = S903-KZWI4 .
%dtab-WAERK009 = S903-WAERK .
%dtab-KZWI3 = S903-KZWI3 .
%dtab-WAERK010 = S903-WAERK .
%dtab-ZZ_MGN = S903-ZZ_MGN .
%dtab-WAVWR = S903-WAVWR .
%dtab-WAERK011 = S903-WAERK .
%dtab-PO_NUMBER = PO_NUMBER .
append %dtab.
%l_hits_cnt = %l_hits_cnt + 1.
if %rtmode-pack_on = 'X'
and %l_hits_cnt >= %rtmode-pack_size.
%l_no_further_fetch = 'X'.
endif.
endif.
endwhile.
if %l_hits_cnt = 0.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
raise no_data.
endif.
if %rtmode-pack_on <> 'X'.
close cursor %dbcursor.
endif.
read table %dtab index 1 transporting no fields.
if sy-subrc ne 0.
raise no_data.
endif.
endfunction.I had Done Like this All comments are as they are i.e. this code gives error (for endselect there is no select) so i commented the endselect statement.
read below code and plz do some improvement in it.
SELECT ekkoebeln ekkobedat ekpo~werks into CORRESPONDING FIELDS OF TABLE it_so FROM EKKO
INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
WHERE ekko~EBELN IN S_EBELN
AND BEDAT IN S_BEDAT
AND WERKS IN S_WERKS.
"SELECT hEBELN hMATNR hWERKS e FROM EKPO INTO CORRESPONDING FIELDS OF TABLE it_so
" WHERE EBELN IN S_EBELN
" AND WERKS IN S_WERKS.
MOVE EKKO-EBELN TO TNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F02'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'EKKO'
ARCHIVE_HANDLE = 0
"IMPORTING
" HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO IT_SO-TDLINE. " Header Note Selected.
MOVE EKKO-EBELN TO IT_SO-EBELN.
APPEND IT_SO.
endif.
ENDLOOP.
clear it_so.
"ENDSELECT. -
hello all,
i have an ALV report requirement like this,
on the initial screen i have displayed(for a given agreement number like in ME33K )
in the selection screen i have taken agreement number as EKPO-EBELN.
purchase document number item number short text target quantity net price
5400000019 1 xxx 1.000 304300.00
2 xxxx 1.000 500000.00
the above fields i have taken from EKPO table.....
and on double clicking the item number i have displayed
line number service number short text quantity units gross price quantity released
1 swr10 xxxx 2.00 kg 500 2
2 swr11 xxxx 5.00 EA 500 2
the above fields i have taken from ESLL (esll-extrow, esll-srvpos, esll-ktext1 , esll-menge etc......)
this i have done by passing EBELN to ESLH and getting PACKNO and passed this PACKNO to ESLL.
now my question is i need to display Purchase order, PO Item , Order Number ,entry sheet quantity ,entry sheet price ,invoice quantity, invoice price
against each line number above.....
from which table do i need to take these fields.....
please guide me....
thankq....Thanks Andra,
The problem is the multiple invoices is for non goods receipt item so there will be no delivery.At the time of creating a PO the GR is not checked so there will be no delivery .
Also this setting is for invoices which are comming from Vendors.But if we are genrating the invoices manually it is not blocking those invoices.Also i there is nowhere mentioned in Incomming invoice to set tolerence for incomming invoice.Are you talking about Vendor tolerences?
Thanks in advance
Edited by: Metroid01 on May 14, 2009 6:52 PM
Maybe you are looking for
-
My ipod touch is not being recognised as a device because it is disabled what do I do?
help
-
Ad malware on safari How to get rid of it
Keep getting this. Words are highlighted on many websites. Used Adware Medic but it didn't work.
-
HT201210 "This device isn't eligible for requested build" error on iTunes...
I don't have any third party security software on my computer, or any non stock apple software on my iPhone and I am still getting the error message, I need to restore my phone, how do I fix this? Running Mountain Lion (was getting this issues on the
-
Error installing pc suite/nokia cable drivers/noki...
hi..i'm using windows xp service pack 2,my phone is a nokia 5700MX on firmware version:3.83.1 i had the nokia pc suite version 6.82 installed on my pc but accidentally deleted some nokia pc suite files(common files),so i decided to uninstall and rein
-
Open the url in browser and freeze the form
I have a text item on the form. When I click on the text item it opens up the google maps in the default browser, for that I used host and even it is working with web.show_document. My question is, untill we are working on browser, the form should fr