Don't Show Results in obiee.
Hi Frnds,
I have a requirement saying that - for any selection of filters. If my Detail Report has less than 5 records then it should show a message saying 'less than 5 records' and don't show the results.
If the Report has more than 5 records then - user need to view the results.
Eg: Filters - Manager Id , Department Id
Report 1 on Dashboard - Employee name, Employee Salary, Department Id, Manager Id
Report 2 on Dashboard - Employee Address, Employee SSN , Manager Name
For above selection of Filters if the Total No. Of Records for Report1 < 5 (" Show - No Results ") , If Total no. of Records for Report1 > 5 (Show - Results)
Similarily, even for Report2.
Please, let me know how should i need to work on this.
Thank you.
You can try filtering MAX(RCOUNT("Manager ID")) > 5. Hope this helps.
Bharath
Similar Messages
-
Af:table filtering(inputDate) don't show results for a specific search date
Hi again to every one.
I have a database table as :
sql> describe YES_NO_DATE_TEST
FECHA TIMESTAMP(6) --> param search
DESCRIPCION VARCHAR2(200 CHAR)
VERIFICADO VARCHAR2(1 CHAR)
I created my Bussines Components, I have a search page, I drag and drop this DataControl as af:table, called : YES_NO_DATE_TESTView1, to a jspx page ( search page ), I enabled sorting and filtering properties in the af:table .
af:inputDate value="#{vs.filterCriteria.Fecha}" id="id1">
<af:convertDateTime pattern="#{bindings.YesNoDateTestView1.hints.Fecha.format}"/>
</af:inputDate>
I run the search page, and show me a : af:inputDate , for choose and put a date.
but, when I choose a date, and press the enter key, the search result by af:inputDate, do not show me nothing.
How I can solve that ?
Note :
In the UI Hints of View Object I put this properties :
format type : simple date
format : dd-MM-yyyy
I'm using JDeveloper 11.1.2.0.0wht is the database column type..??
It's a TimeStamp Type. ----> FECHA TIMESTAMP(6)
what is the query that is getting executed in the backend... when you do the search... ?
My query in the server is :
Select
FECHA,
DESCRIPCION,
VERIFICADO
FROM YES_NO_DATE_TEST;
are you getting the expected results when you run the query..??
Yes , I m . The query above is made for the View Object. But I don't why when I put a date in the af:inputDate the search don't show me the results that I hope.
Or , Need I to Programaticallly access to the InputDate and passed to a bind variable on the query ?? -
Safari 6 "Images" search results don't show digital storage size info anymore - Fix?
I've now noticed, finally using Safari 6 more often now .... that when doing a google subject search (and selecting the "images" results versus the "search" results at the top header bar of Safari), that Safari 6 now only shows a huge listing the images themselves. If you slide your cursor over any of the images, a small black highlight bar appears under the image and shows its pixel dimensions (as in 000 x 000 pixel dimentional size), but Safari 6 shows no digital size info of the image in kb's (kilobites) or posibly MB's (megebites) .... like it used to in the past.
On previous Safari google "image" search results you saw the images, along with their pixel dimentional size (000 x 000) and their storage size ( 00kb / 00MB) listed in small text under the image.
Is there any way to set Safari to show not only the "images" dimensions (which it now does), but also to show the images over all storge size?
I know if you use the additional "search tools" selection text, that a sub set of selector menus appears, listing "any size", "any color", Any type" Any time" All results" .... but none of these will set "images" storage sizes (kb, MB, etc.). Even using a "larger size" only selection setting doesn't always guarantee that a larger size only seach results will be of larger pixel quality.
I often use Safari and google to find "comp" art images, etc. for rough art placement on projects, and it's now almost impossible to search through Safari's google "images" results without knowing what "quality size" the image can be found at.
Any thoughts on this fix?Actually, as I forgot to mention .... is this above issue a Safari 6 or Google search result issue? I'm starting to think that it may be Google's "images" results that don't show the images storage size anymore, and possibly not Safari's problem.
Either way, is there any fix to this issue ... a plug-in, etc.? -
I've successfully downloaded audio books to my iPod for years but now they don't show up on iTunes, not under Music, not under books or Audiobooks - nowhere!
And I want to delete some...Hello, mimi2216.
Thank you for visiting Apple Support Communities.
This could be a result of Automatic Downloads not being enabled, the apps were too large to download via the cellular data network or a cellular data connection was not available at the time of download. The best option would be to download the missing apps via the steps in the second article below.
iTunes Store: How to enable Automatic Downloads
http://support.apple.com/kb/ht4539
Downloading past purchases from the iTunes Store, App Store, and iBooks Store
http://support.apple.com/kb/ht2519
Cheers,
Jason H. -
Some photos don't show in LIbrary view--just the outlines of them
Tonight I tried to transfer a bunch of digital photos from a CD my daughter burned into my iPhoto library, into the 2006 year folder.
I opened the CD and in the icon view, the pictures looked fine--jpeg files.
After I transferred them, these pictures don't show in my initial iPhoto window (the one that opens first when you click on iPhoto in the Dock, and shows all the pictures in my Library sorted by (in my case) roll/date.
Then photo thumbnails from years prior to 2005 show up, fine, but for the most recent year of pictures, all I get are the outlines of where the thumbnails ought to show. When I click on one of the blank thumbnails, of course I get a blank ...but the frame in the lower left shows the ID info for the picture and the picture counts, etc.
I can open the folders from the Pictures file and see them...they just won't show up in the overall Library window.
So...I moved the transferred ones out of the iPhoto library and just put them in the Pictures folder for now.
But what did I do? And how do I "fix it" to make all the thumbnails show up again? This is probably some simple thing...but I can't figure it out. I tried showing just the last 12 months...and I get all the blank outlines.
G4 iBook Mac OS X (10.3.9) Using iPhoto 5, 768MB RAM,Hi john,
First problem. You need to import photos into the iPhoto Library the correct way which is while iPhoto is open. Drag the photos out of where you put them (you already did) now you can import them into iPhoto from there.
Read on for more info....--First thing to know and remember is this...Do not drag any images, folder of images into the iPhoto Library in the Finder. Images have to be imported into iPhoto within the application. Do not scan images and save them into the iPhoto Library folder in the Finder. Save them to another location such as the Pictures folder or even the desktop. You can then import them into iPhoto.
If you have already put files/folders in the iPhoto Library folder in the Finder then you will also find out that if you try to import them into iPhoto you will get an error message. No worry, just drag them to the desktop and import from there.
--All images that you import are shown in the library view. You can choose how you want to view, by rolls, by date, by rating, etc. When you put images in an Album, slideshow, book, etc, you are actually just putting pointers to those images in the library. You are not adding more images. If you delete an image from the Album it will still be in the library. If you delete an image from the library it is deleted from iPhoto's database and your hard drive (unless you have it backed up somewhere else)
--You have a folder of images on your hard drive and want to import them into iPhoto. Drag the folder of images into an open iPhoto Library window and the folder of photos will be copied into the library, resulting in a new roll with the name of the folder. You now have two copies of those photos, the ones in iPhoto's database and the ones on your desktop. You can keep the ones on your desktop that you just imported as backup or you can delete that folder.
-- you scan a picture/pictures and save it in a folder. You cannot scan directly into iPhoto or the iPhoto Library folder in the Finder.
You want all your photos in iPhoto so you import them into iPhoto.
Now you have two copies of that picture/pictures, so you can delete the originals that were in the scanned folder and keep the one/ones that were imported into iPhoto.
-- You download pictures from your camera into iPhoto.
There is now one copy of each of the pictures. (DO NOT HAVE IPHOTO DELETE THE IMAGES FROM YOUR CAMERA! DELETE THEM MANUALLY WITH THE CAMERA-if something goes wrong with the import and they are never imported and then they are deleted from the camera you might end up losing those images)
You want to change something about a picture you imported, such as
cropping it or changing the size, or changing the orientation.
Once you do that to a picture, you now have two copies of the picture
in iPhoto, the original and the edited one. The edited one will be in the library organize view. The original is packed away in an Original folder in your iPhoto Library folder under the date of the roll. You can always revert to the original by control clicking on the photo and choose "revert to orginal" You will not have this choice if you used iPhoto Diet to get rid of the Originals.
(a quick note on cropping within iPhoto...when you are in edit mode, you automatically will be in the crop mode with cross hairs to highlight the crop area. To finish cropping you must click the crop button and then go back to library view and your cropped picture will be there.
3.You want to use Photoshop or another graphic program to edit a picture in your iPhoto library.
You can open up prefs for iPhoto and choose "when double clicking on
photo ..do" choose "other" and select Photoshop. Now you can edit all
pictures in your iPhoto library in PhotoShop by double clicking. If you save the photo with the same name and as a flattened file it will be saved right into iPhoto and you will see the changes. If you don't want to save it into iPhoto then do a "save as" and save to the desktop. You will then have the original photo still in iPhoto and your new edited photo on the desktop.
Or, with iPhoto open, you can drag a picture from the library window
to your desktop (you see a + sign on the pic you are dragging). You now
have two of the same picture, one in the iPhoto library and one on your desktop. You can open up the one on your desktop in any graphic program and work on it. The one in iPhoto stays the same. You can also share/export the picture/pictures to your desktop or folder to work on them or do batch processing, etc. You will still have the originals in your iPhoto Library.
Or, you can open up the ~/Pictures/iPhoto Library/folders and option drag any
picture out of the folder to your desktop. Notice that you will see a plus sign while dragging the photo. This is copying the file to your desktop
I would advise anyone not to do this as they might forget to use the option key and drag the photo out. Next time you open iPhoto the photo will be missing.
Two Apple kbs for you to read
Don't tamper with files in the iPhoto library folder
About the iPhoto Library folder
Don't forget that in Library view you can Control click on any picture and get a contextual menu with many options. One is to revert to original.
Now to get to your next problem...do a "get info" on your iPhoto Library folder.
Get info on the iPhoto Library folder
Make sure the owner is you and you have read/write" permission. If not, click the lock to unlock and change to you as the owner with Read/write. Click the button at the bottom.
iPhoto Library Info
Get back with results or any more info. -
Quits while importing; pictures in library folder don't show in window
Quits while importing; photos are in iPhoto Library, but don't show up
I have about 6500 photos in iPhoto 5.0.4. Everything worked well until this week when I went to import a series of new pictures. I import from a Scandisk card reader.
The process appeared to go well until the progress bar showed 1 photo remaining. After a time the application quit.
I tried again with the same result, several times.
I tried rebuilding the library. It appeared not to work.
I copied the library to another disk drive and tried to create a new library and copying back the pictures into the new library. It didn't work.
I trashed the software and reinstalled it, then copied the old pictures into the library and the new ones from my camera. Then I had to recreate the albums I had before. It worked.
This morning I shot more pictures and tried to add them to the library. Déja vu. It got to one picture remaining and quit.
I rebuilt the library. This time it seemed to work. The "new" pictures were still in the library folders on the hard drive but did not show up on the screen (one for each time I'd tried to load them with _1, _2, etc. added to the name, for each additional attempt, including the last one in the series).
I tried to add to the library. It quit at the one photo remaining point again.
Suggestions, please.
Alex NortonHi Alex,
Two things to suggest:
-Try a different card reader
-Use Image Capture to import your images to the computer. You will have much more control. Once images are downloaded you can put them in dated folders then import the folders to iPhoto.
This is my preferred method and is what I do.
Using Image Capture to download images and video clips:
Open up Image Capture which is found in the Applications folder.
When it is opened, go to Image Capture/Preferences
Under the General button choose
Camera: When a camera is connected, open Image Capture.
The next time you connect your camera Image Capture will open.
In the window that opens you will see an Options button. Click on that button to set your options.
To find out more about Image Capture (it can do a lot more) Click on Help in the menu bar when Image Capture is open.
iPhoto: How to Change the "Open Automatically" Preference
If you find you can't change any of Image Captures preferences or can't access any drop down menus or they are greyed out, check to make sure Image Capture is loose in the Applications folder and not within a sub folder.
Lori -
Keywords imported but don't show up with photos
I am not getting keywords to show up with imported photos. i've done a lot of searching on this and other forums to try to figure out what is different about my situation but to no avail. here's what I've deduced though:
the keywords will import if I deselect “Copy the items to the iPhoto Library”. But if I leave the default box checked", I will not get keywords associated with the photos.
(the rest of my discussion deals with a library where the imported photos ARE copied to the library)
Interestingly, the keywords ARE imported into iPhoto (if one looks at the keyword list); they just aren't attached to the photos (i.e. clicking <Get Info> shows no keywords, as opposed to them being there but just not showing up on the screen with the image). Most (but not all) of my imported photos show up in iPhoto without any keywords attached. Most Events are all-or-nothing; i.e. all the photos of the event either have keywords or don’t. At least one Event is a mix. I cannot make any sense as to why some do, as the ones that do will be part of an event that all the other photo's don't show the keywords; additionally, neither the ones with nor the ones without keywords share any common feature or change (e.g. edited, rotated, file type, keyword/tag name, etc.).
I'm a pretty basic user when it comes to photos (but with a fair amount of common sense and computer knowledge); not trying to do anything fancy here. I don't know much about photography, so I'm not manipulating photo settings on my camera and am not (purposefully/knowingly) manipulating the metadata directly from the file. So, I'm baffled as to why my system would be acting differently than any other "out of the box" iMac.
In case it matters:
-- the photos being imported originated from a Windows-based PC and tagged by Adobe Photoshop Elements. I have the same problem regardless of whether I export them (using Photoshop) to a file on the iMac or directly import them over the network from the PC using iPhoto.
-- (Using iPhoto Library Manager) I created another iPhoto library to see if the same thing would happen with photos imported to a different library -- same problem. (BTW, I checked the new library's Keywords BEFORE I imported to make sure the keyword "library" wasn't somehow replicated from the previous library.)
-- In one of your forum discussions, you said that these “copies” would be in the “Originals” folder within the iPhoto package, right? If so, then they are the same size as the files being imported minus a few KBs, presumably due to the lack of associated keywords.
I assume that these "copied" files are suppose to retain their keyword/tag info. Any ideas why they aren't and/or what I can do about it? I tried rebuilding the database too but that didn't do any good. I'm figuring on trying to reimport everything again, but I fear I'll get the same result.Welcome to the Apple Discussions. First try the simple fix: delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder. Launch iPhoto and see if the keywords show up. If not, then launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select the first three options.
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete. -
Problem with store ResultSet and show result in table
Hi, I'm kind of new in ADF, I need to store ResultSet and show result in table-component. I have two problems:
1) I get my ResultSet by calling callStoredProcedure(...) and this returns actually ref_cursor as ResultSet.
When I try to println() contains of this result set in this method - it works OK (commented part),
but when I want to println() somewhere else (eg. in retrieveRefCursor() method) it doesn't work.
The problem is that the scrollability of the ResultSet is lost - it becomes a TYPE_FORWARD_ONLY ResultSet.
Is there any way to store data from ref_cursor for a long time?
2) My second problem is "store any result set and show this data in table". I have tried use method storeNewResultSet() but
without result (table contains only "No rows yet" and everything seems to be OK - no exception, no warning, no error...).
I have tried to call this method with ResultSet from select on dbs (without resultSet as ref_cursor ) - no result with createRowFromResultSet(),
storeNewResultSet(), setUserDataForCollection()...
I've tried a lot of ways to do this, but it doesn't work. I really don't know how to make it so it can work.
Thanks for your help.
ADF BC, JDev 11.1.1.0
This is my code from ViewObjectImpl
package tp.model ;
import com.sun.jmx.mbeanserver.MetaData ;
import java.sql.CallableStatement ;
import java.sql.Connection ;
import java.sql.PreparedStatement ;
import java.sql.ResultSet ;
import java.sql.ResultSetMetaData ;
import java.sql.SQLException ;
import java.sql.Statement ;
import java.sql.Types ;
import oracle.jbo.JboException ;
import oracle.jbo.server.SQLBuilder ;
import oracle.jbo.server.ViewObjectImpl ;
import oracle.jbo.server.ViewRowImpl ;
import oracle.jbo.server.ViewRowSetImpl ;
import oracle.jdbc.OracleCallableStatement ;
import oracle.jdbc.OracleConnection ;
import oracle.jdbc.OracleTypes ;
public class Profiles1ViewImpl extends ViewObjectImpl {
private static final String SQL_STM = "begin Pkg_profile.get_profile_list(?,?,?,?);end;" ;
public Profiles1ViewImpl () {
/* 0. */
protected void create () {
getViewDef ().setQuery ( null ) ;
getViewDef ().setSelectClause ( null ) ;
setQuery ( null ) ;
public Connection getCurrentConnection () throws SQLException {
// Note that we never execute this statement, so no commit really happens
Connection conn = null ;
PreparedStatement st = getDBTransaction ().createPreparedStatement ( "commit" , 1 ) ;
conn = st.getConnection () ;
st.close () ;
return conn ;
/* 1. */
protected void executeQueryForCollection ( Object qc , Object[] params , int numUserParams ) {
storeNewResultSet ( qc , retrieveRefCursor ( qc , params ) ) ;
// callStoredProcedure ( qc , SQL_STM ) ;
super.executeQueryForCollection ( qc , params , numUserParams ) ;
/* 2. */
private ResultSet retrieveRefCursor ( Object qc , Object[] params ) {
ResultSet rs = null ;
rs = callStoredProcedure ( qc , SQL_STM ) ;
return rs ;
/* 3. */
public ResultSet callStoredProcedure ( Object qc , String stmt ) {
CallableStatement st = null ;
ResultSet refCurResultSet = null ;
try {
st = getDBTransaction ().createCallableStatement ( stmt , 0 ) ; // call
st.setObject ( 1 , 571 ) ; //set id of my record to 571
st.registerOutParameter ( 2 , OracleTypes.CURSOR ) ; // my ref_cursor
st.registerOutParameter ( 3 , Types.NUMERIC ) ;
st.registerOutParameter ( 4 , Types.VARCHAR ) ;
st.execute () ; //executeUpdate
System.out.println ( "Numeric " + st.getObject ( 3 ) ) ;
System.out.println ( "Varchar " + st.getObject ( 4 ) ) ;
refCurResultSet = ( ResultSet ) st.getObject ( 2 ) ; //set Cursoru to ResultSet
// setUserDataForCollection(qc, refCurResultSet); //don't work
// createRowFromResultSet ( qc , refCurResultSet ) ; //don't work
/* this works but only one-time call - so my resultSet(cursor) really have a data
while ( refCurResultSet.next () ) {
String nameProfile = refCurResultSet.getString ( 2 ) ;
System.out.println ( "Name profile: " + nameProfile ) ;
return refCurResultSet ;
} catch ( SQLException e ) {
System.out.println ( "sql ex " + e ) ;
throw new JboException ( e ) ;
} finally {
if ( st != null ) {
try {
st.close () ; // 7. Close the statement
} catch ( SQLException e ) {
System.out.println ( "sql exx2 " + e ) ;
/* 4. Store a new result set in the query-collection-private user-data context */
private void storeNewResultSet ( Object qc , ResultSet rs ) {
ResultSet existingRs = getResultSet ( qc ) ;
// If this query collection is getting reused, close out any previous rowset
if ( existingRs != null ) {
try {
existingRs.close () ;
} catch ( SQLException s ) {
System.out.println ( "sql err " + s ) ;
setUserDataForCollection ( qc , rs ) ; //should store my result set
hasNextForCollection ( qc ) ; // Prime the pump with the first row.
/* 5. Retrieve the result set wrapper from the query-collection user-data */
private ResultSet getResultSet ( Object qc ) {
return ( ResultSet ) getUserDataForCollection ( qc ) ;
// createRowFromResultSet - overridden for custom java data source support - also doesn't work
protected ViewRowImpl createRowFromResultSet ( Object qc , ResultSet resultSet ) {
ViewRowImpl value = super.createRowFromResultSet ( qc , resultSet ) ;
return value ;
}Hi I have the same problem like you ...
My SQL Definition:
CREATE OR REPLACE TYPE RMSPRD.NB_TAB_STOREDATA is table of NB_STOREDATA_REC
CREATE OR REPLACE TYPE RMSPRD.NB_STOREDATA_REC AS OBJECT (
v_title VARCHAR2(100),
v_store VARCHAR2(50),
v_sales NUMBER(20,4),
v_cost NUMBER(20,4),
v_units NUMBER(12,4),
v_margin NUMBER(6,2),
v_ly_sales NUMBER(20,4),
v_ly_cost NUMBER(20,4),
v_ly_units NUMBER(12,4),
v_ly_margin NUMBER(6,2),
v_sales_variance NUMBER(6,2)
CREATE OR REPLACE PACKAGE RMSPRD.NB_SALES_DATA
AS
v_sales_format_tab nb_tab_storedata;
FUNCTION sales_data_by_format_gen (
key_value IN VARCHAR2,
l_to_date IN DATE DEFAULT SYSDATE-1,
l_from_date IN DATE DEFAULT TRUNC (SYSDATE, 'YYYY')
RETURN nb_tab_storedata;
I have a PLSQL function .. that will return table ..
when i use this in sql developer it is working fine....
select * from table (NB_SALES_DATA.sales_data_by_format_gen('TSC',
'05-Aug-2012',
'01-Aug-2012') )
it returning table format record.
I am not able to call from VO object. ...
Hope you can help me .. please tell me step by step process...
protected Object callStoredFunction(int sqlReturnType, String stmt,
Object[] bindVars) {
System.out.println("--> 1");
CallableStatement st = null;
try {
st = getDBTransaction().createCallableStatement("begin ? := " +"NB_SALES_DATA.sales_data_by_format_gen('TSC','05-Aug-2012','01-Aug-2012') ; end;", 0);
System.out.println("--> 2");
st.executeUpdate();
System.out.println("--> 3");
return st.getObject(1);
catch (SQLException e) {
e.printStackTrace();
throw new JboException(e); -
Hi!
I am unable to get the result for my one of the item as checkbox. Other two are working properly .Please check and let me know wheres the problem please.
***INCLUDE ZSD_CONTRACT_LIST_T01_RENTAL1 .
TABLES: vbak, vbap, wbrk, zsdsched,vbkd, fplt, fpla, tvlvt.
TYPE-POOLS: slis.
data: BEGIN OF gt_report occurs 0,
vbeln LIKE vbak-vbeln, "Sales Document
posnr LIKE vbap-posnr, "Item
ernam LIKE vbak-ernam, "Created by
erdat LIKE vbak-erdat, "Created on
audat LIKE vbak-audat, "Document Date
vbtyp LIKE vbak-vbtyp, "SD document category
auart LIKE vbak-auart, "Sales Document type
vkorg LIKE vbak-vkorg, "Sales Org
vtweg LIKE vbak-vtweg, "Distribution Channel
spart LIKE vbak-spart, "Division
vkbur LIKE vbak-vkbur, "Sales Office
guebg LIKE vbak-guebg, "Valid from date
gueen LIKE vbak-gueen, "Valid to date kunnrt LIKE kna1-name1, "Sold-to Name
kunwet LIKE kna1-name1, "Ship-to Name
kunnrt LIKE kna1-name1, "Sold-to Name
kunret LIKE kna1-name1, "Bill-to Name
kunnr LIKE vbak-kunnr, "Sold-to party
kunnrt LIKE kna1-name1, "Sold-to Name
kvgr4 LIKE vbak-kvgr4, "Territory
matnr LIKE vbap-matnr, "Material
arktx LIKE vbap-arktx, "Material Short Text
charg LIKE vbap-charg, "Batch
matkl LIKE vbap-matkl, "Material Group
pstyv LIKE vbap-pstyv, "Item Category
zmeng LIKE vbap-zmeng, "Target Quantity
zieme LIKE vbap-zieme, "Target Unit
kdmat LIKE vbap-kdmat, "Customer Material Number
werks LIKE vbap-werks, "Plant
lgort LIKE vbap-lgort, "Storage Location
vstel LIKE vbap-vstel, "Shipping Point
route LIKE vbap-route, "Route
netpr LIKE vbap-netpr, "Net Price
kpein LIKE vbap-kpein, "Condition Price Unit
kmein LIKE vbap-kmein, "Condition Unit
shkzg LIKE vbap-shkzg, "Returns Item
oidrc LIKE vbap-oidrc, "DRC Code
kunwe LIKE vbap-oid_ship, "Ship-to
aufnr LIKE vbap-aufnr, "Order Number
vkaus LIKE vbap-vkaus, "Usage
kunwet LIKE kna1-name1, "Ship-to Name
zzwprofid LIKE vbap-zzwprofid, "Waste Profile ID
kunre LIKE wbrk-kunre, "Bill-to
kunret LIKE kna1-name1, "Bill-to Name
addl_schd LIKE icon-id, "Push Button For addl line
datab LIKE zsdsched-datab, "Valid-From Date
datbi LIKE zsdsched-datbi, "Valid To Date
zschdfreq LIKE zsdsched-zschdfreq, "Contract schedule frequency
frequency LIKE zsdsched-frequency, "Frequency
monday LIKE zsdsched-monday, "Mondays
tuesday LIKE zsdsched-tuesday, "Tuesdays
wednesday LIKE zsdsched-wednesday, "Wednesdays
thursday LIKE zsdsched-thursday, "Thursdays
friday LIKE zsdsched-friday, "Fridays
saturday LIKE zsdsched-saturday, "Saturdays
sunday LIKE zsdsched-sunday, "Sundays
dzieme LIKE zsdsched-dzieme, "Target quantity UoM
comments LIKE zsdsched-comments, "Comments
END OF gt_report.
data: Begin of gt_report1 occurs 0,
fksaf LIKE fplt-fksaf,
afdat LIKE fplt-afdat,
fakwr LIKE fplt-fakwr,
fkdat LIKE fplt-fkdat,
nfdat LIKE fplt-nfdat,
fpart LIKE fpla-fpart,
bedat LIKE fpla-bedat,
endat LIKE fpla-endat,
horiz LIKE fpla-horiz,
bezei LIKE tvlvt-bezei,
vbeln LIKE vbak-vbeln,
erdat LIKE vbak-erdat,
ernam LIKE vbak-ernam,
guebg LIKE vbak-guebg,
gueen LIKE vbak-gueen,
auart LIKE vbak-auart,
kunnr LIKE vbak-kunnr,
kvgr4 LIKE vbak-kvgr4,
vkbur LIKE vbak-vkbur,
vkorg LIKE vbak-vkorg,
vtweg LIKE vbak-vtweg,
vbtyp LIKE vbak-vbtyp,
name1 LIKE kna1-name1,
pstyv LIKE vbap-pstyv,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
oid_ship LIKE vbap-oid_ship,
kpein LIKE vbap-kpein,
kmein LIKE vbap-kmein,
netpr LIKE vbap-netpr,
kdmat LIKE vbap-kdmat,
posnr LIKE vbap-posnr,
matkl LIKE vbap-matkl,
aufnr LIKE vbap-aufnr,
vkaus LIKE vbap-vkaus,
route LIKE vbap-route,
kunre LIKE wbrk-kunre, "Bill-to
kunwe LIKE vbap-oid_ship, "Ship-to
kunwet LIKE kna1-name1, "Ship-to Name
kunnrt LIKE kna1-name1, "Sold-to Name
kunret LIKE kna1-name1, "Bill-to Name
End of gt_report1.
data: gs_report LIKE LINE OF gt_report,
gs_report1 LIKE LINE OF gt_report1,
gt_sched TYPE TABLE OF zsdsched,
gt_sched_tmp TYPE TABLE OF zsdsched,
gs_sched TYPE zsdsched,
gt_sel LIKE gt_report OCCURS 0,
gt_sel1 LIKE gt_report1 OCCURS 0,
gt_vbpa TYPE TABLE OF vbpa,
gs_vbpa TYPE vbpa,
gv_auart TYPE auart,
gv_counter TYPE i.
**-- ALV variables
DATA: ls_fieldcat TYPE slis_fieldcat_alv, "Field Catalog list
gt_fieldcat TYPE slis_t_fieldcat_alv, "Field Catalog
ls_sort TYPE slis_sortinfo_alv, "Sorting list
gt_sort TYPE slis_t_sortinfo_alv, "Sort
gs_layout TYPE slis_layout_alv, "List Layout
gs_variant TYPE disvariant, "Display Variant
gv_repid LIKE sy-repid,
gv_save(1) TYPE c,
ls_fieldcat1 TYPE slis_fieldcat_alv, "Field Catalog list
gt_fieldcat1 TYPE slis_t_fieldcat_alv, "Field Catalog
ls_sort1 TYPE slis_sortinfo_alv, "Sorting list
gt_sort1 TYPE slis_t_sortinfo_alv, "Sort
gs_layout1 TYPE slis_layout_alv, "List Layout
gs_variant1 TYPE disvariant, "Display Variant
gv_repid1 LIKE sy-repid,
gv_exit(1) TYPE c.
CONSTANTS: gc_a TYPE c VALUE 'A',
gc_g TYPE c VALUE 'G',
gc_re(2) TYPE c VALUE 'RE'.
Screen-control Variables
CONTROLS:
tctrl_sched TYPE TABLEVIEW USING SCREEN 1010. " Schedule lines.
*& Report ZSD_CONTRACT_LIST
*& Created on: January 21, 2007
*& Description: List of Contracts - ALV
REPORT zsd_contract_list_rental1.
INCLUDE zsd_contract_list_t01_rental1.
Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK m1 WITH FRAME TITLE text-t01.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02.
SELECT-OPTIONS: s_vkorg FOR vbak-vkorg MEMORY ID vko,
s_vtweg FOR vbak-vtweg MEMORY ID vtw,
s_spart FOR vbak-spart MEMORY ID spa,
s_vkbur FOR vbak-vkbur MEMORY ID vkb.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
s_erdat FOR vbak-erdat,
s_ernam FOR vbak-ernam,
s_guebg FOR vbak-guebg,
s_gueen FOR vbak-gueen,
s_auart FOR gv_auart MEMORY ID vta
MATCHCODE OBJECT h_vakz,
s_fkarv FOR fplt-fkarv.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS:
s_kunnr FOR vbak-kunnr,
s_kunwe FOR vbap-oid_ship,
s_kunre FOR wbrk-kunre.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t03.
SELECT-OPTIONS: s_werks FOR vbap-werks MEMORY ID wrk,
s_lgort FOR vbap-lgort MEMORY ID lag,
s_vstel FOR vbap-vstel MEMORY ID vst,
s_route for vbap-route,
s_matnr FOR vbap-matnr.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t04.
PARAMETERS: p_varia TYPE disvariant-variant MEMORY ID wrk,
p_all AS CHECKBOX DEFAULT 'X',
p_group AS CHECKBOX DEFAULT 'X',
p_rental AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN END OF BLOCK m1.
Start of Selection
START-OF-SELECTION.
PERFORM get_data.
Display ALV
END-OF-SELECTION.
IF gt_report[] IS INITIAL.
MESSAGE s419(brain).
ELSE.
PERFORM create_alv.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varia.
PERFORM f01_f4_variant CHANGING p_varia.
*& Form get_data
text
FORM get_data .
select the appropriate rental data.
IF p_rental IS NOT INITIAL AND ( ( p_all IS INITIAL ) AND ( p_group IS INITIAL ) ).
SELECT avbeln aerdat aernam aaudat avbtyp aauart a~vkorg
avtweg aspart avkbur aguebg agueen akunnr a~kvgr4
bpstyv bmatnr bwerks boid_ship bkpein bkmein
bnetpr bkdmat bposnr bmatkl baufnr bvkaus b~route
dbezei efkarv eafdat efakwr efkdat enfdat e~fksaf
ffpart fbedat fendat fhoriz flodat ftndat b~oid_ship AS kunwe
INTO CORRESPONDING FIELDS OF TABLE gt_sel1
FROM vbak AS a
INNER JOIN vbap AS b ON avbeln = bvbeln
INNER JOIN vbpa as c ON avbeln = cvbeln
INNER JOIN vbkd AS g ON avbeln = gvbeln
INNER JOIN fplt AS e ON gfplnr = efplnr
INNER JOIN fpla AS f ON efplnr = ffplnr
INNER JOIN tvlvt AS d ON bvkaus = dabrvw
WHERE a~vbeln IN s_vbeln
AND a~erdat IN s_erdat
AND a~vbtyp = gc_g
AND a~ernam IN s_ernam
AND a~vkorg IN s_vkorg
AND a~vtweg IN s_vtweg
AND a~spart IN s_spart
AND a~vkbur IN s_vkbur
AND a~guebg IN s_guebg
AND a~gueen IN s_gueen
AND a~auart IN s_auart
AND a~kunnr IN s_kunnr
AND b~oid_ship IN s_kunwe
AND b~werks IN s_werks
AND b~lgort IN s_lgort
AND b~vstel IN s_vstel
and b~route in s_route
AND b~matnr IN s_matnr
AND e~fkarv IN s_fkarv
AND e~fksaf = 'A'
OR e~fksaf = 'B'.
sort gt_sel1.
*ENDIF.
IF NOT gt_sel1[] IS INITIAL.
Get Bill-to Party's for Item Lines
SELECT vbeln posnr parvw kunnr INTO CORRESPONDING FIELDS OF TABLE gt_vbpa
FROM vbpa
FOR ALL ENTRIES IN gt_sel1
WHERE vbeln = gt_sel1-vbeln
AND parvw = gc_re.
Loop through captured data for additional information
LOOP AT gt_sel1 INTO gs_report1.
Find the bill-to party
READ TABLE gt_vbpa INTO gs_vbpa WITH KEY vbeln = gs_report1-vbeln
posnr = gs_report1-posnr
parvw = gc_re.
IF sy-subrc <> 0.
READ TABLE gt_vbpa INTO gs_vbpa WITH KEY vbeln = gs_report1-vbeln
parvw = gc_re.
CHECK sy-subrc = 0 AND gs_vbpa-kunnr IN s_kunre.
ELSE.
CHECK gs_vbpa-kunnr IN s_kunre.
ENDIF.
gs_report1-kunre = gs_vbpa-kunnr.
Get the Customer's Name
gs_report1-kunnrt = zcl_kna1=>get_name1( itp_kunnr = gs_report1-kunnr ).
gs_report1-kunwet = zcl_kna1=>get_name1( itp_kunnr = gs_report1-kunwe ).
gs_report1-kunret = zcl_kna1=>get_name1( itp_kunnr = gs_report1-kunre ).
Get the scheduling lines for the item line.
CLEAR gv_counter.
APPEND gs_report1 TO gt_report1.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM gt_report1.
*ENDIF.
ELSE.
IF ( ( p_all IS NOT INITIAL ) OR ( p_group IS NOT INITIAL ) ) AND p_rental IS INITIAL.
Select the appropriate contract data.
SELECT a~vbeln a~erdat a~ernam a~audat a~vbtyp a~auart a~vkorg
a~vtweg a~spart a~vkbur a~guebg a~gueen a~kunnr a~kvgr4
b~posnr b~matnr b~charg b~matkl b~arktx b~pstyv b~zmeng
b~zieme b~kdmat b~werks b~lgort b~vstel b~netpr b~kpein
b~kmein b~shkzg b~oid_extbol b~oid_miscdl b~oidrc b~oid_ship AS kunwe
b~zzwprofid c~datbi c~datab b~route
baufnr bvkaus d~bezei
INTO CORRESPONDING FIELDS OF TABLE gt_sel
FROM vbak AS a
INNER JOIN vbap AS b ON a~vbeln = b~vbeln
INNER JOIN tvlvt AS d ON bvkaus = dabrvw
LEFT OUTER JOIN zsdsched AS c ON b~vbeln = c~vbeln AND
b~posnr = c~posnr
WHERE a~vbeln IN s_vbeln
AND a~erdat IN s_erdat
AND a~vbtyp = gc_g
AND a~ernam IN s_ernam
AND a~vkorg IN s_vkorg
AND a~vtweg IN s_vtweg
AND a~spart IN s_spart
AND a~vkbur IN s_vkbur
AND a~guebg IN s_guebg
AND a~gueen IN s_gueen
AND a~auart IN s_auart
AND a~kunnr IN s_kunnr
AND b~oid_ship IN s_kunwe
AND b~werks IN s_werks
AND b~lgort IN s_lgort
AND b~vstel IN s_vstel
and b~route in s_route
AND b~matnr IN s_matnr.
SORT gt_sel.
ENDIF.
IF NOT gt_sel[] IS INITIAL.
Get Bill-to Party's for Item Lines
SELECT vbeln posnr parvw kunnr INTO CORRESPONDING FIELDS OF TABLE gt_vbpa
FROM vbpa
FOR ALL ENTRIES IN gt_sel
WHERE vbeln = gt_sel-vbeln
AND parvw = gc_re.
endif.
Select the remaining records from the ZSDSCHED Table.
IF p_group IS NOT INITIAL.
SELECT * FROM zsdsched
INTO TABLE gt_sched
FOR ALL ENTRIES IN gt_sel
WHERE vbeln = gt_sel-vbeln
AND posnr = gt_sel-posnr.
SORT gt_sched.
ENDIF.
Loop through captured data for additional information
LOOP AT gt_sel INTO gs_report.
Find the bill-to party
READ TABLE gt_vbpa INTO gs_vbpa WITH KEY vbeln = gs_report-vbeln
posnr = gs_report-posnr
parvw = gc_re.
IF sy-subrc <> 0.
READ TABLE gt_vbpa INTO gs_vbpa WITH KEY vbeln = gs_report-vbeln
parvw = gc_re.
CHECK sy-subrc = 0 AND gs_vbpa-kunnr IN s_kunre.
ELSE.
CHECK gs_vbpa-kunnr IN s_kunre.
ENDIF.
gs_report-kunre = gs_vbpa-kunnr.
Get the Customer's Name
gs_report-kunnrt = zcl_kna1=>get_name1( itp_kunnr = gs_report-kunnr ).
gs_report-kunwet = zcl_kna1=>get_name1( itp_kunnr = gs_report-kunwe ).
gs_report-kunret = zcl_kna1=>get_name1( itp_kunnr = gs_report-kunre ).
Get the scheduling lines for the item line.
CLEAR gv_counter.
IF NOT p_group IS INITIAL.
If we are grouping the lines add the icon button.
LOOP AT gt_sched INTO gs_sched WHERE vbeln = gs_report-vbeln
AND posnr = gs_report-posnr.
IF gv_counter > 0.
gs_report-addl_schd = '@1E@'.
CONTINUE.
ENDIF.
MOVE-CORRESPONDING gs_sched TO gs_report.
ADD 1 TO gv_counter.
ENDLOOP.
ELSE.
Otherwise get the rest of the schedule information
READ TABLE gt_sched INTO gs_sched
WITH KEY vbeln = gs_report-vbeln
posnr = gs_report-posnr
datbi = gs_report-datbi
datab = gs_report-datab.
IF sy-subrc = 0.
MOVE-CORRESPONDING gs_sched TO gs_report.
ENDIF.
ENDIF.
APPEND gs_report TO gt_report.
ENDLOOP.
Remove any duplicates from the reporting table
DELETE ADJACENT DUPLICATES FROM gt_report.
If Show all records is initial, delete non-scheduled lines (ex. Sub-items)
IF p_all IS INITIAL.
DELETE gt_report WHERE datbi = 0
AND datab = 0.
ENDIF.
endif.
endif.
ENDFORM. " get_data
*& Form create_alv
text
FORM create_alv .
if ( ( p_all is not initial ) or ( p_group is not initial ) ) and p_rental is initial.
PERFORM initialize_fieldcat USING gt_fieldcat[].
PERFORM populate_layout CHANGING gs_layout
gs_variant.
PERFORM populate_sort USING gt_sort[].
PERFORM display_alv_report.
else.
if p_rental is not initial and ( ( p_all is initial ) and ( p_group is initial ) ).
PERFORM initialize_fieldcat1 USING gt_fieldcat1[].
PERFORM populate_layout1 CHANGING gs_layout1
gs_variant1.
PERFORM populate_sort1 USING gt_sort1[].
PERFORM display_alv_report1.
*endif.
*endif.
ENDFORM. " create_alv
*& Form initialize_fieldcat
Get and enhance the field catalog data
-->L_FIELDCAT[] text
FORM initialize_fieldcat USING l_fieldcat TYPE slis_t_fieldcat_alv.
IF p_rental IS NOT INITIAL .
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZSD_CONTRACT_LIST_RENTAL1'
i_internal_tabname = 'GT_REPORT1'
i_inclname = 'ZSD_CONTRACT_LIST_T01_RENTAL1'
CHANGING
ct_fieldcat = l_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'VBELN'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Contract'.
ls_fieldcat-hotspot = 'X'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNNRT'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sold-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNWET'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Ship-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNRET'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Bill-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'ADDL_SCHD'.
IF NOT p_group IS INITIAL.
ls_fieldcat-seltext_s = 'Schd'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Additional Scheduling Lines'.
ls_fieldcat-icon = 'X'.
CLEAR: ls_fieldcat-key,
ls_fieldcat-ref_fieldname,
ls_fieldcat-ref_tabname,
ls_fieldcat-reptext_ddic,
ls_fieldcat-ddic_outputlen.
ls_fieldcat-hotspot = 'X'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
ELSE.
DELETE l_fieldcat INDEX sy-tabix.
ENDIF.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'DATAB'.
ls_fieldcat-seltext_s = 'Schd From'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sched. From Date'.
CLEAR: ls_fieldcat-key.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat1 WITH KEY fieldname = 'DATBI'.
ls_fieldcat-seltext_s = 'Schd To'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sched. To Date'.
CLEAR: ls_fieldcat-key.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
ELSE.
IF p_rental IS INITIAL.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZSD_CONTRACT_LIST_RENTAL1'
i_internal_tabname = 'GT_REPORT'
i_inclname = 'ZSD_CONTRACT_LIST_T01_RENTAL1'
CHANGING
ct_fieldcat = l_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'VBELN'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Contract'.
ls_fieldcat-hotspot = 'X'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNNRT'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sold-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNWET'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Ship-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'KUNRET'.
ls_fieldcat-seltext_s =
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Bill-to Name'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'ADDL_SCHD'.
IF NOT p_group IS INITIAL.
ls_fieldcat-seltext_s = 'Schd'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Additional Scheduling Lines'.
ls_fieldcat-icon = 'X'.
CLEAR: ls_fieldcat-key,
ls_fieldcat-ref_fieldname,
ls_fieldcat-ref_tabname,
ls_fieldcat-reptext_ddic,
ls_fieldcat-ddic_outputlen.
ls_fieldcat-hotspot = 'X'.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
ELSE.
DELETE l_fieldcat INDEX sy-tabix.
ENDIF.
READ TABLE l_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'DATAB'.
ls_fieldcat-seltext_s = 'Schd From'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sched. From Date'.
CLEAR: ls_fieldcat-key.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
READ TABLE l_fieldcat INTO ls_fieldcat1 WITH KEY fieldname = 'DATBI'.
ls_fieldcat-seltext_s = 'Schd To'.
ls_fieldcat-seltext_m = ls_fieldcat-seltext_l = 'Sched. To Date'.
CLEAR: ls_fieldcat-key.
MODIFY l_fieldcat FROM ls_fieldcat INDEX sy-tabix.
ENDIF.
ENDIF.
ENDFORM. " initialize_fieldcat
*& Form populate_layout
text
<--GS_LAYOUT
<--GS_VARIANT
FORM populate_layout CHANGING gs_layout TYPE slis_layout_alv
gs_variant TYPE disvariant.
gs_layout-colwidth_optimize = 'X'.
gs_layout-allow_switch_to_list = 'X'.
gs_layout-zebra = 'X'.
gs_variant-report = sy-repid.
ENDFORM. " populate_layout
*& Form populate_sort
text
-->l_SORT[] text
FORM populate_sort USING l_sort TYPE slis_t_sortinfo_alv.
ENDFORM. " populate_sort
*& Form display_alv_report
FORM display_alv_report .
gv_repid = sy-repid.
IF p_rental IS INITIAL.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = gv_repid
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'GT_REPORT'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sort
IT_FILTER =
IS_SEL_HIDE =
i_default = 'X'
i_save = gc_a
is_variant = gs_variant
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_report
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ELSE.
IF p_rental IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = gv_repid
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'GT_REPORT1'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sort
IT_FILTER =
IS_SEL_HIDE =
i_default = 'X'
i_save = gc_a
is_variant = gs_variant
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = GT_REPORT1
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
endif.
endif.
ENDFORM. " display_alv_report
*& Form initialize_fieldcat1
Get and enhance the field catalog data for rental fields
-->L_FIELDCAT[] text
*FORM initialize_fieldcat1 USING l_fieldcat1 TYPE slis_t_fieldcat_alv.
**if ***
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZSD_CONTRACT_LIST_rental1'
i_internal_tabname = 'GT_SEL1'
i_inclname = 'ZSD_CONTRACT_LIST_T01_rental1'
CHANGING
ct_fieldcat = l_fieldcat1
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
**else.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZSD_CONTRACT_LIST_rental1'
i_internal_tabname = 'GT_SEL1'
i_inclname = 'ZSD_CONTRACT_LIST_T01_rental1'
CHANGING
ct_fieldcat = l_fieldcat1
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
***endfi.
*ENDFORM. " initialize_fieldcat
*& Form populate_layout
text
<--GS_LAYOUT
<--GS_VARIANT
*FORM populate_layout1 CHANGING gs_layout1 TYPE slis_layout_alv
gs_variant1 TYPE disvariant.
gs_layout1-colwidth_optimize = 'X'.
gs_layout1-allow_switch_to_list = 'X'.
gs_layout1-zebra = 'X'.
gs_variant1-report = sy-repid.
*ENDFORM. " populate_layout
***& Form populate_sort
text
-->l_SORT[] text
*FORM populate_sort1 USING l_sort TYPE slis_t_sortinfo_alv.
*ENDFORM. " populate_sort
***& Form display_alv_report
*FORM display_alv_report1 .
gv_repid = sy-repid.
if p_rental is not initial and ( ( p_all is initial ) and ( p_group is initial ) ).
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = gv_repid
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'gt_sel1'
is_layout = gs_layout1
it_fieldcat = gt_fieldcat1
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sort1
IT_FILTER =
IS_SEL_HIDE =
i_default = 'X'
i_save = gc_a
is_variant = gs_variant1
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_sel1
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*endif.
*ENDFORM. " display_alv_report
*& Form f01_f4_variant
Get the Layout variant for the user.
FORM f01_f4_variant CHANGING c_variant TYPE disvariant-variant.
DATA: ls_variant TYPE disvariant,
l_exit TYPE char1.
ls_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = ls_variant
i_save = 'A'
it_default_fieldcat =
IMPORTING
e_exit = l_exit
es_variant = ls_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit EQ space.
c_variant = ls_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " f01_f4_variant
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
READ TABLE gt_report INTO gs_report INDEX rs_selfield-tabindex.
CHECK sy-subrc = 0.
CASE rs_selfield-fieldname.
WHEN 'VBELN'.
Set parameter ID for transaction screen field
CHECK NOT gs_report-vbeln IS INITIAL.
SET PARAMETER ID 'KTN' FIELD gs_report-vbeln.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
WHEN 'ADDL_SCHD'.
CHECK NOT gs_report-addl_schd IS INITIAL.
REFRESH gt_sched_tmp.
LOOP AT gt_sched INTO gs_sched
WHERE vbeln = gs_report-vbeln
AND posnr = gs_report-posnr.
APPEND gs_sched TO gt_sched_tmp.
ENDLOOP.
CHECK sy-subrc = 0.
CALL SCREEN '1010' STARTING AT 5 5.
ENDCASE.
ENDCASE.
ENDFORM. "user_command
*& Module STATUS_1010 OUTPUT
text
MODULE status_1010 OUTPUT.
SET PF-STATUS 'MAIN_1010'.
SET TITLEBAR '1010' WITH gs_report-vbeln gs_report-posnr.
ENDMODULE. " STATUS_1010 OUTPUT
*& Module USER_COMMAND_1010 INPUT
text
MODULE user_command_1010 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'CANC'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_1010 INPUTHi !
This report shows the schedule line items , group schedule line items and rental contact (billing plan) lines when particular checkbox is checked. The checkboxs p_all(non-schedule line) , p_group(group schedule line items) are working in my above alv report and showing result but unfortunately when p_rental is checked it dosent give me result , it says no data selected. This when checked has to show result based on a different set of selections as I have done, but its not shwoing me the result .
Kindly help please.
Thanks -
Custom field not getting populated in the "Show Results where" drop down
Hi all,
In appointment detail page by clicking on Add button on the user related information section , it takes us to a search layout showing the list of available users.
Here we have to filter the user's based on a custom field which has already been created in the user object. But I am not able to add the custom field in the "Show results where" drop down for which the search has to be done.
It is getting reflected in the normal search layouts.So Can any one tell me why the change is not getting reflected in the user related info search layout?I tested your use case and you are correct. I would recommend that you submit a service request to CRM On Demand customer care in reference to this issue.
-
All episodes don't show up in Grid view
I've got 20 seasons of Top Gear all converted and waiting to be added to iTunes. They exist on my external HD, so when I drag them in to iTunes I hold in Alt/Option, so they stay there.
If I drag in the folders for seasons 1 through 13, all episodes show up, and if I select the show in iTunes I see "tabs/buttons" for Season 1, Season 2, etc etc. Pic here: https://dl.dropboxusercontent.com/u/2213114/2013-08-23_18-05-00.jpg
However if I drag season 1 through 14 (or more), only season 1 shows up in iTunes grid view. However all episodes/season show up in List view, and all are available on my Apple TV.
If I drag just, say, season 14 through 20, they add fine. But if I then add 1 through 13, again only 1 season shows in Grid view.
In all cases the correct number of "New" episodes shows on the blue banner on the cover (i.e "99+").
Top Gear generally has about 6 to 10 episodes per season.
I have exactly the same problem with The Simpsons.
All my other shows added fine. Just The Simpsons and Top Gear had issues. I doubt it's a co-incidence those are the only 2 shows I have with hundreds of episodes and 20+ seasons each. It's almost as if iTunes has some kind of limit…
Running iTunes 11.0.5 and OS X 10.8.4.Your website has a link to a feed at
http://feeds2.feedburner.com/CrossCultureCalvaryChapelPodcast?format=xml
This feed contains the itunes:new-feed-url tag, forwarding to a feed at
http://calvarychapel.nl/index.php?option=comsermonspeaker&task=podcast&feed=RSS2.0&nohtml=1
This latter feed is what is being used when you click on the 'subscribe' button in the iTunes Store, and the result matches the feed. (The list you have under 'Podcasts' in your own iTunes application probably includes earlier episodes: removing them from the feed doesn't remove them once downloaded, but the removed episodes don't show for new subscribers).
However, the iTunes Store page lists 114 episodes, the last being 28-3-09, thus not showing later additions, and shows earlier episodes present in neither feed. Therefore the page has the correct feed link for subscribers but itself has not updated since March - since when you have changed the URL and deleted earlier episodes. Why this should be I can't say: there is usually a delay before changes show, but only a day or two. It's peculiar that it should have failed to update the Store page but has the correct link on the 'Subscribe' button, and I can only suggest you try contacting Support:
http://www.apple.com/support/itunes/store/podcast/ -
I send people their key by e-mail. In most cases, when they click on it and it loads Contribute and they plug in the password, it will show up in the Admin listing of users. Other times, the same process is followed but they don't show up on any user list. What can I do to get them listed?
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
Regards
TD -
Tags from 'Comments' field in Windows Explorer don't show up in iTunes
I have thousand of files where I allready put tags directly in the comments field in the files proberties in Windows Explorer, but the tags don't show up in iTunes comments field?
I can then manually put tags directly in iTunes comments field and they will not show up in the proberties of the files in Windown Explorer!
So I ask, why on earth aren't those fields (in iTunes and in Windows Explorer) compatible, when all other fields (for example name, artist, year) are compatible?Okay, thanks for replies and for your time, but the problem continues.
First: I've ripped CD's in different ways (before starting to use iTunes). I've used Nero, Windows Media Player, Lame and imported mp3 files directly from the internet. Some files have been through Flash Renamer and TigoTago. After importing the files I've tagged them with comments and other stuff directly in Windows Explorer. And then I decided to use iTunes because of buying iPods and playing music through AirPort Express.
What I've tried to right now:
I've tried to check files with MP3Val, but it said the files were OK.
Then I tried - with another laptop - to install I new iTunes program (English language to be sure and there after I imported/ripped a new CD using iTunes to import. Before importing I put a tag in the Comments field in iTunes and it never showed up in Windows Explorer Comment field. I also tried after that to put tags directly in Windows Explorer Comment field and add the files once again to iTunes library, but again, no comments in iTunes. Also again put tags in iTunes, but no tags in Windows Explorer.
Then I did more or less the same using Realplayer to import the CD, but with the same negative results.
*Then I went back to my old laptop, imported a CD using iTunes and then tagged the comment field in Windows Explorer and suddenly I got comments in iTunes! But the comments look like this: "00000000 00000210 000008E8 0000000000775908 00000000 0040E5E1 00000000 00000000 00000000 00000000 00000000 00000000".*
I don't know what to do with this?
And apparently, it's only when importing new files using iTunes to rip the CD, that this happens. Otherwise, nothing happens at all. -
Run Time Errors (Don't show this dialog again...)
We often create some long TestStand (TS 4.0) sequences and run them overnight or weekend. Occasionally, for one reason or another, we may see the "Run Time Error" messagebox pop up, stopping the test sequence.
If you then select the checkbox in the Run Time Error window "Don't show this dialog again for this execution", the sequence will continue.
Is there a way to set up TestStand to ALWAYS ignore the Run Time Errors and just generate a failure error instead?
Setup for TestStand as a confuguration?
or
Setup as a command in our Custom Steps?
MikefHi Mikef,
One solution would be to use the SequenceFilePostStepRuntimeError callback sequence. Have a look at the example ErrorHandlerExample.seq in the TestStand\Examples\Callbacks\PostStepRuntimeErrorCallback folder.
Obviously you wont what a dialog to appear, but using the callback, you can reset the Step.Result.Error, maybe set the status and record that an error did occur in the Steps ReportText.
Hope this helps.
Regards
Ray Farmer
Regards
Ray Farmer -
After upgrade to 9.2 my thumbnails don't show up
After upgrade to 9.2, my thumbnails don't show up. I know the photo is there because I can click on the space where the outline is and get a picture. Anyone??
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to rebuild the thumbnails. This can take three or four goes.
Regards
TD
Maybe you are looking for
-
Not able to retrive the recordset from oracle stored procedure in VC++
Hi, I am trying to retrieve the records from the reference cursor which is an out parameter for an oracle 9i store procedure in VC++ application. But it is giving the record count as -1 always. Meanwhile i am able to get the required output in VB app
-
Calendar changes colour on its own
Starting about a month ago, the calendar app on OS X kept changing my blue calendar into purple for no apparent reason. I've changed it back to blue every now and then and it worked, but today it's especially stubborn and keeps changing the colour ba
-
Loading, cropping and saving jpg files in Flex
I'm attempting to apply the code for selecting, cropping and saving image data (.jpg, .png) as shown on the web site: http://www.adobe.com/devnet/flash/quickstart/filereference_class_as3.html#articlecontentAd obe_numberedheader_1 The sample applicati
-
Is it possible to trigger a bpel process from a database object.
Hi, We want to schedule a bpel process to run daily .So we want to trigger it from a database job. Is it possible to call a bpel process from database..? Or Is there any way to schedule a bpel process from bpel server it self. Thank you Gayaz
-
Some RTF commands not working in Oracle XML Publisher Desktop 5.6.3
Hello, I am using Oracle XML Publisher Desktop 5.6.3 (Patch 5887917) and seems like some of the RTF command are not working. I am following Tim Dexter's blog (http://blogs.oracle.com/xmlpublisher/2007/10/here_are_my_terms_conditions.html ) and could