Select For 500 Records
Hi,
i wont to do select just for 500 Records what is the best way to do that.
Regards
Hi Ric,
use ' UP TO 500 ROWS ' in ur querry..
syntax:- select <fieldname> from <table name> into table <internal table name> up to 500 rows.
plz reward points if it finds helpful 2 u..
Edited by: sreejith gn on May 13, 2008 9:36 AM
Edited by: sreejith gn on May 13, 2008 9:53 AM
Similar Messages
-
Receiver JDBC adapter to SELECT is null records?
Hi,
I have an interface with an Oracle database and I need to read only the records that have a null value in a field.
I have created the mappings and all work fine except the selection for this records, in other words I need simulate in the where clausule an 'is null'.
Select field1 field2 from table tab1 where field1 = 'A' and field2 = 'B' and boldfield3 is nullbold
I have try with attributes isNULL and hasQuot but doesn't works
Could somebody help me?Try this...
Select field1,field2 from tab1 where field1='A' and field2='B' and field3 IS NULL; -
Condition record selection for MATNR
Hi Experts,
I'm selecting the Condition Record Number(a505-knumh) for a Material Number like this.,(I want the record number whose validity date should be greater than today's date and whose begin date should be less than today's date.)
<b> select knumh from a505 into i_price-knumh
where kappl = 'V'
and kschl = 'ZR10'
and vkorg = '1000'
and pltyp = '01'
and matnr = itab-matnr
and datbi >= sy-datum
and datab <= sy-datum.</b>
But when I see the table a505, there are 3 records(knumh) for that material number (for eg: MATNR = 100813) like this:
-KAPPL|KSCHL |VKORG |PLTYP|MATNR|DATBI|DATAB |KNUMH|
V |ZR10|1000|01|100813 |11/30/1992|08/01/1989|0000037438|
V |ZR10|1000|01|100813 |04/07/1996|12/01/1992|0000037439|
V |ZR10|1000|01|100813 |12/31/2039|04/08/1996|0000042185|
My problem is: When i'm selecting the record like this, it should display the 3rd record as my value.
but it is showing up the wrong values.
plz tell me what is the wrong with the selection statement.
thnx,
Message was edited by: dev a
Message was edited by: dev aHi Dev,
Are you looping internal table itab?
If you are then each loop the program will overwrite the internal table i_price with the new value. In other word,
you only get the last value from the select statment result.
Please try like the following example instead of looping internal table itab.
SELECT * FROM A306
INTO CORRESPONDING FIELDS OF TABLE T_HEADER_A306
FOR ALL ENTRIES IN ITAB_KSCHL
WHERE KSCHL EQ ITAB_KSCHL-KSCHL AND
KSCHL IN KSCHL AND
VKORG IN P_1 AND
VTWEG IN P_2 AND
PLTYP IN L_1 AND
WAERK IN H_1 AND
MATNR IN L_3 AND
KFRST IN L_2 AND
DATAB >= DATLOW AND
DATAB <= DATHIGH AND
KAPPL = 'V'.
Hope this will help.
Regards,
Ferry Lianto -
I'm trying to make audio (MP3) tracks available for viewers of this Wedding dvd to select for listening. Is this possible in iDVD?
You will need to create a slide show for each of those songs with a minimum of 1 photo per slideshow and add the song to the slideshow audio bin. Set the audio to Fit to Music.
In your top/main menu add a submenu for the list of songs.
Add a slideshow for each song with the "+" button at the bottom:
Select the link in the menu and rename it for the song used in the slideshow. You can create a slide image for each song with the song name, composer, singer, etc. on the image to be used for the slideshow An image editor or Pages can be used for that and then convert to a jpeg file for use in iDVD.
The song/playlist menu could look like this depending on the theme you choose:
OT -
Clear the content of Checkbox without looping for every record
Hi all,
I am Karthik. I am working in Oracle EBS. I am developing one form in which it contain 2 checkbox. if checkbox1 is selected in 1st record it need to check checkbox2 all the record till the end of the block. when i uncheck it need to do reverse. what i facing during unchecking it need to loop through all the record and it assign the value. I use clear_item(even i know it use only for clearing the text_item) it is not working.
Is there any other way than this to uncheck?
Please specify apps property for set_block_property, set_window_property,set_item_instances_property,get_item_property,get_item_instance_property
the procedure is
/* This Procedure take care of post processing when button copy is pressed in form
It take care of
1.If the number of record in the block exceeds 1000 then it display a message, to confirm the copy to proceed
2.If it less than 1000 then it directly proceed to copy by enabling copy_from and copy_to checkbox.
3.Once copy button is pressed the label of copy button changed to cancel copy
4.Cancel copy button is pressed , copy_from and copy_to checkbox is disabled in form
Variable Declaration Purpose
no_alert_button This variable used to track which button is pressed by user when alert message is shown
PROCEDURE PROC_COPY_BTN_FCN IS
no_alert_button NUMBER;
BEGIN
IF Get_Item_Property('BLK_PROD_PROFILE.BTN_COPY',LABEL)='Copy'
THEN
IF PACK_FORM_VAR.no_record_count >1000
THEN
Fnd_Message.Set_String('Current Block Contain '|| PACK_FORM_VAR.no_record_count ||' Records. Copy may Take Time');
Fnd_message.Show;
no_alert_button :=Show_Alert('ALERT_RECORD_COUNT');
IF no_alert_button =ALERT_BUTTON1
THEN
--IF Get_Item_Property('BLK_PROD_PROFILE.BTN_COPY',label)='Copy'
-- THEN
-- :parameter.G_query_find := 'FALSE';
Set_Block_Property('BLK_PROD_PROFILE',Query_allowed,property_false);
App_Special.Enable('FILE.SMARTBAR_FIND',PROPERTY_OFF);
-- set_menu_item_property('VIEW.FIND',ICON_IN_MENU,property_off);
App_Special.Enable('VIEW.FIND',property_off);
Set_Window_Property('WIN_PROD_PROFILE',WIDTH,10.3);
Set_Block_Property('BLK_PROD_PROFILE',BLOCKSCROLLBAR_POSITION,9.691,.906);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_CONTINUE',VISIBLE,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_TO',VISIBLE,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',VISIBLE,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',ENABLED,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',UPDATE_ALLOWED,property_true);
--App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_DESELECT',VISIBLE,property_true);
Go_Item('BLK_PROD_PROFILE.TEXT_PROD_BRAND');
--App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',VISIBLE,property_false);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',label,'Cancel Copy');
END IF;
ELSE
Set_Block_Property('BLK_PROD_PROFILE',Query_allowed,property_false);
App_Special.Enable('FILE.SMARTBAR_FIND',PROPERTY_OFF);
-- set_menu_item_property('VIEW.FIND',ICON_IN_MENU,property_off);
App_Special.Enable('VIEW.FIND',property_off);
Set_Window_Property('WIN_PROD_PROFILE',WIDTH,10.3);
Set_Block_Property('BLK_PROD_PROFILE',BLOCKSCROLLBAR_POSITION,9.691,.906);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_CONTINUE',VISIBLE,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_TO',VISIBLE,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',VISIBLE,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',ENABLED,property_true);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',UPDATE_ALLOWED,property_true);
--App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_DESELECT',VISIBLE,property_true);
Go_Item('BLK_PROD_PROFILE.TEXT_PROD_BRAND');
--App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',VISIBLE,property_false);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',label,'Cancel Copy');
END IF;
ELSIF Get_Item_Property('BLK_PROD_PROFILE.BTN_COPY',label)='Cancel Copy'
THEN
Set_Block_Property('BLK_PROD_PROFILE',Query_allowed,property_true);
First_Record;
LOOP
IF :System.Cursor_Record = PACK_FORM_VAR.no_currec
THEN
:BLK_PROD_PROFILE.CKBX_COPY_FROM := 'N';
Set_Item_Instance_Property('BLK_PROD_PROFILE.CKBX_COPY_TO',current_record,UPDATE_ALLOWED,property_true);
ELSIF :System.Cursor_Record <> PACK_FORM_VAR.no_currec
THEN
:BLK_PROD_PROFILE.CKBX_COPY_TO := 'N';
Set_Item_Instance_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',current_record,UPDATE_ALLOWED,property_true);
Set_Item_Instance_Property('BLK_PROD_PROFILE.CKBX_COPY_FROM',current_record,INSERT_ALLOWED,property_true);
END IF;
EXIT WHEN:System.Last_Record ='TRUE';
Next_Record;
END LOOP;
/* go_item('BLK_PROD_PROFILE.CKBX_COPY_TO');
Clear_item;
go_item('BLK_PROD_PROFILE.CKBX_COPY_FROM');
Clear_item; */
:BLK_PROD_PROFILE.CKBX_SELECT_ALL :='N';
--App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_DESELECT',visible,property_false);
-- App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_DESELECT',enabled,property_false);
App_Item_Property.Set_property('BLK_PROD_PROFILE.CKBX_SELECT_ALL',visible,property_false);
App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_COPY',VISIBLE,property_true);
App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_COPY',ENABLED,property_true);
App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_CONTINUE',VISIBLE,property_false);
App_Item_Property.Set_property('BLK_PROD_PROFILE.CKBX_COPY_FROM',VISIBLE,property_false);
App_Item_Property.Set_property('BLK_PROD_PROFILE.CKBX_COPY_TO',VISIBLE,property_false);
--App_Item_Property.Set_property('BLK_PROD_PROFILE.BTN_DESELECT',label,'Deselect');
SET_BLOCK_PROPERTY ('BLK_PROD_PROFILE',BLOCKSCROLLBAR_POSITION,8.5,0.906);
set_window_property('WIN_PROD_PROFILE',width,8.9);
App_Item_Property.Set_Property('BLK_PROD_PROFILE.BTN_COPY',label,'Copy');
App_Special.Enable('VIEW.FIND',property_on);
App_Special.Enable('FILE.SMARTBAR_FIND',PROPERTY_ON);
END IF;
END;
Please help me to solve this issue.
thanks and regards
Karthik MYou are creating your vaiables in the declerative block as
<%!
String [] equipment=new String[60];
String [] type=new String[60];
int i=0;
int j=0;
%>
Place these declerations outside the declerative block i.e. in simple scriplets....
Now on each page access you will get fresh variables
Hope this helps... -
How to show multiple values for Unique records in Report
Here's my question/problem:
I've joined two tables, one table (TBL1) contains an object id (OBJ_ID) that repeats and the other table (TBL2) contains a date (DT), object type id (OBJ_TYP_ID), and object type description (OBJ_TYP_DES). The tables are joined by an inventory id (INV_ID).
The OBJ_ID repeats and has a Date value for each record. I want to report an unique OBJ_ID and show each Date for a particular OBJ_ID in multiple Columns.
An example of the current resultset looks like this:
OBJ_ID OBJ_TYP_ID OBJ_TYP_DES DATE
1 1 TYPE1 4/1/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009
1 2 TYPE2 5/3/2009
3 1 TYPE1 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
1 1 TYPE1 4/3/2007
1 1 TYPE1 3/30/2005
I want to express the resultset like this:
OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
1 2 TYPE2 5/3/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Hi,
cclemmons wrote:
I want to express the resultset like this:
OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
1 2 TYPE2 5/3/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Absolutely! You seem to have an instictive feeling that creating a separate table just for a query is inefficient. You instinct is 100% correct. Maybe in Oracle 7 there was a reason to do that, but today you can query results of other queries as if they were tables, so temporary tables like you describe are very rarely necessary, let alone convenient.
What you want to do is pivot the date columns. Here's one way
WITH original_query AS
SELECT obj_id
, obj_typ_id
, obj_typ_des
, dt -- date is not a good column name
FROM ... -- the rest of your original query goes here
, got_rnum AS
SELECT oq.*
, ROW_NUMBER () OVER ( PARTITION BY obj_id
, obj_typ_id
, obj_typ_des
ORDER BY dt DESC
) AS rnum
FROM original_query oq
SELECT obj_id
, obj_typ_id
, obj_typ_des
, MAX (CASE WHEN rnum = 1 THEN dt END) AS dt1
, MAX (CASE WHEN rnum = 2 THEN dt END) AS dt2
, MAX (CASE WHEN rnum = 3 THEN dt END) AS dt3
, MAX (CASE WHEN rnum = 4 THEN dt END) AS dt4
, MAX (CASE WHEN rnum = 5 THEN dt END) AS dt5
FROM got_rnum
GROUP BY obj_id
, obj_typ_id
, obj_typ_des
;As you can see, this adds two layers of queries on top of your original query. One of those layers is probably not needed; depending on what you're doing in your original main query, you can probably compute rnum there, and omit the got_rnum sub-query.
Also, depending on the relationship of obj_id, obj_typ_id and obj_typ_des, some of what I posted above may not be needed but including it won't really hurt.
If you want to know more about this technique, search for "pivot" or "rows to columns". A <tt>SELECT ... PIVOT ...</tt> keyword was introduced in Oracle 11, but most of what you'll find when you search for "pivot" doesn't assume you have Oracle 11 (nor does the query above require Oracle 11).
This assumes you know an upper limit (5 in the example above) of dts that can appear in any line of output.
See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3527823�] for a discussion of some alternatives. -
Number for every record that is retrieved from (query)
Hello
I wish to put a number for every record that is retrieved
from the record that is output by this query
For example
For the first recored/row
Generated number, ksnumber, date
1, gg111 11/05/05
2, oo235 12/06/05
the query returned 2 records 1 and 2 are the number that is
generated with this code.
In addition if there is a built in function, where in the
code do I put it???
<cfquery name="gelov datasource="kl90">
SELECT
FROM
WHERE
ORDER BY
<cfswitch expression="#Form.orderBy#">
<cfks value="KSNUMBER">
KS.KS_NBR
</cfks>
<cfks value="CREATIONDATE">
KS.KREATDAT
</cfks>
</cfswitch>
</cfquery>
<!---html report--->
<cfswitch expression="#Form.outputFormat#">
<cfks value="HTML">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Ctwye Kss Report</title>
</head>
<style type="text/css">
table{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
td{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
th{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
h2{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
h3{
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
</style>
<body>
<cfoutput>
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center">
<h3>Ctwye Kss
Report</h3><br><br></td>
</tr>
<tr>
<td align="center">
</h2>report returned #getCtwyeKss.RecordCount#
records</h2></td>
</tr>
<tr>
<td>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="160">Ks Number</td>
<td>Creation Date</td>
<!--- <td class="dataField">Address</td>
<td class="dataField">Type</td>
<td class="dataField">Description</td>--->
</tr>
<cfloop query="getCtwyeKss">
<tr bgcolor="<cfif currentrow mod
2>GHOSTWHITE<cfelse>WHITE</cfif>">
<td>#KS_NBR#</td>
<td>#dateformat(KREATDAT,"mm/dd/yyyy")#</td>
</tr>
</cfloop>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
</cfoutput>
</cfks>
<cfks value="CSV">
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=ctwye.csv">
<cfcontent type="application/msexcel">"Ks
Number","Creation Date"
<cfoutput
query="getCtwyeKss">#ltrim(KS_NBR)#,"#dateformat(KREATDAT,"mm/dd/yyyy")#"
<tr #IIF(getCtwyeKss.CurrentRow MOD
2,DE(''),DE('backgroundColor="##999"'))#>
<!---<tr bgcolor="<cfif currentrow mod
2>##808080<cfelse>##ffffff</cfif>"> --->
</cfoutput>
</cfks>
</cfswitch><cfks> is not a Coldfusion tag. Use <cfcase>
instead.
The following code will print the row numbers
<cfquery name="gelov" datasource="kl90">
select ksnumber, date
from yourTable
</cfquery>
<cfoutput query="gelov">
#currentrow#, #ksnumber#, #date#<br>
</cfoutput> -
Check for duplicate record in SQL database before doing INSERT
Hey guys,
This is part powershell app doing a SQL insert. BUt my question really relates to the SQL insert. I need to do a check of the database PRIOR to doing the insert to check for duplicate records and if it exists then that record needs
to be overwritten. I'm not sure how to accomplish this task. My back end is a SQL 2000 Server. I'm piping the data into my insert statement from a powershell FileSystemWatcher app. In my scenario here if the file dumped into a directory starts with I it gets
written to a SQL database otherwise it gets written to an Access Table. I know silly, but thats the environment im in. haha.
Any help is appreciated.
Thanks in Advance
Rich T.
#### DEFINE WATCH FOLDERS AND DEFAULT FILE EXTENSION TO WATCH FOR ####
$cofa_folder = '\\cpsfs001\Data_pvs\TestCofA'
$bulk_folder = '\\cpsfs001\PVS\Subsidiary\Nolwood\McWood\POD'
$filter = '*.tif'
$cofa = New-Object IO.FileSystemWatcher $cofa_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
$bulk = New-Object IO.FileSystemWatcher $bulk_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
#### CERTIFICATE OF ANALYSIS AND PACKAGE SHIPPER PROCESSING ####
Register-ObjectEvent $cofa Created -SourceIdentifier COFA/PACKAGE -Action {
$name = $Event.SourceEventArgs.Name
$changeType = $Event.SourceEventArgs.ChangeType
$timeStamp = $Event.TimeGenerated
#### CERTIFICATE OF ANALYSIS PROCESS BEGINS ####
$test=$name.StartsWith("I")
if ($test -eq $true) {
$pos = $name.IndexOf(".")
$left=$name.substring(0,$pos)
$pos = $left.IndexOf("L")
$tempItem=$left.substring(0,$pos)
$lot = $left.Substring($pos + 1)
$item=$tempItem.Substring(1)
Write-Host "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp" -fore green
Out-File -FilePath c:\OutputLogs\CofA.csv -Append -InputObject "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"
start-sleep -s 5
$conn = New-Object System.Data.SqlClient.SqlConnection("Data Source=PVSNTDB33; Initial Catalog=adagecopy_daily; Integrated Security=TRUE")
$conn.Open()
$insert_stmt = "INSERT INTO in_cofa_pvs (in_item_key, in_lot_key, imgfileName, in_cofa_crtdt) VALUES ('$item','$lot','$name','$timestamp')"
$cmd = $conn.CreateCommand()
$cmd.CommandText = $insert_stmt
$cmd.ExecuteNonQuery()
$conn.Close()
#### PACKAGE SHIPPER PROCESS BEGINS ####
elseif ($test -eq $false) {
$pos = $name.IndexOf(".")
$left=$name.substring(0,$pos)
$pos = $left.IndexOf("O")
$tempItem=$left.substring(0,$pos)
$order = $left.Substring($pos + 1)
$shipid=$tempItem.Substring(1)
Write-Host "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp" -fore green
Out-File -FilePath c:\OutputLogs\PackageShipper.csv -Append -InputObject "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"
Rich ThompsonHi
Since SQL Server 2000 has been out of support, I recommend you to upgrade the SQL Server 2000 to a higher version, such as SQL Server 2005 or SQL Server 2008.
According to your description, you can try the following methods to check duplicate record in SQL Server.
1. You can use
RAISERROR to check the duplicate record, if exists then RAISERROR unless insert accordingly, code block is given below:
IF EXISTS (SELECT 1 FROM TableName AS t
WHERE t.Column1 = @ Column1
AND t.Column2 = @ Column2)
BEGIN
RAISERROR(‘Duplicate records’,18,1)
END
ELSE
BEGIN
INSERT INTO TableName (Column1, Column2, Column3)
SELECT @ Column1, @ Column2, @ Column3
END
2. Also you can create UNIQUE INDEX or UNIQUE CONSTRAINT on the column of a table, when you try to INSERT a value that conflicts with the INDEX/CONSTRAINT, an exception will be thrown.
Add the unique index:
CREATE UNIQUE INDEX Unique_Index_name ON TableName(ColumnName)
Add the unique constraint:
ALTER TABLE TableName
ADD CONSTRAINT Unique_Contraint_Name
UNIQUE (ColumnName)
Thanks
Lydia Zhang -
Hello everyone,
Do someone meet this issue ? Do you know if it has a link with customization of ppm or customization of ITSM ?
Many thanks in advance for your replies !It seems that I've solved this issue. To get it work:
1. Select checkbox Time Recording and Travel Expenses via CATS for project type. Path: SPRO —> SAP Customizing Implementation Guide —> SAP Portfolio and Project Management —> Project Management —> Structure => Define Project Types
2. Run/schedule a synchronization with the report DPR_CATS_CPR_TRANSF (Transfer of CATS Itemizations to Project Management Application).
Time Recording from a Request for Change to a PPM ProjectTask - Working with Projects - SAP Library
Regards,
Alex -
Need a single point of view on date selections for Delta and Full load IP's
Hi Experts,
Every year we are facing issues on date selections for data extraction, for example the Delta or Full selections for particular IP is like 2005 to 2008 , in this situation, for the year 2009, this IP is picking 0 records as the selections are upto 2008 only.
My requirement is, I need to check the selections of all the IP's in the system and want to change on need base if the selections are getting expired instead of going and checking manually to each and every IP as the system is having around 3000 IP's, which is a tedious job.
Guys, please let us know if there exits a Table/Program or any other way to check it.
Inputs appreciated.
Regards
NanduHi
Persistent through module RSSM_SHIP_PSEUDO_DVERSION_WRI
Primary table RSLDPIOSH
RSLDPIO Links datasource to infopackages
RSLDPIOT InfoPackage Text Description
RSLDPRULE ABAP source code for InfoPackages
RSLDPSEL Hardcoded selections in InfoPackages
RSMONICDP Contains the request-id number by data target
RSPAKPOS List of InfoPackage Groups / InfoPackages
http://help.sap.com/saphelp_nw70/helpdata/en/2e/20d704d45be7458582cdfcc5487090/frameset.htm
Hope it helps -
How can I select the random records in u201Cstep loopu201D.
Hi, Experts,
I am using step loop to display the data on screen now I want to select the random records from this step loop display. Like 1st 3rd or 5th record, is there any way to select the records,
like I did in Table control there was a filed in internal table named marked char length 1, I gave this field name in u201Cw/ SelColumnu201D it fill that field with u2018Xu2019 from where I can get the info about the selected records, in this way I can easily perform the operation on that internal table with the help of that marked field.
Is there any way to select the records in step loop too ?
Kind Regards,
Faisalthanks for replay shwetali,
but i just gave you example of random records with 1st 3rd and 5th my goal is not select only these records. i want to select the random mean any records from the step loop display.
like we can select from the table control. and when select any record it place 'X' in the given internal table field.
Thanks and kind Regards,
Faisal -
URGENT: Selecting only 25 records at a time from a table
URGENT !!!!
Hi,
Im having a RFC which selects records from a table (say table_A) and depending on these selected records, further processing is done within that RFC.
Now my problem is, this table_A contains around 200 matching records. Due to this entire logical processing consumes lot of time. Hence my RFC is taking huge time to produce result. (apprx 10 mins).
Can i select these matching records in batch of 25 and display result for these 25 records??
I'll give this batch size as input to RFC?
Do anybody have any idea about how to tackle this situation and reduce response time?
If u hav any better solution than this then pls pls let me know ASAP..
Regards,
AmeyAmey Mogare ,
Do One thing , create a new importing parameter in your RFC , say current_trans_id. NOw on the first call pass the initial value for current_trans_id.
then inside the logic .. change the select to
select upto 25 rows where trnascation id > current_trans_id.
next time when u call teh rfc.. send the last selected id as a value for current_trans_id.
i think you can some how use this logic
Regards
Sarath -
Table cntrol field to be display/Change only For each record
Hi all,
How to set a particular Field in table control either as display only or
change only for <b>each row</b> based on certain condition.I need to set this property for each record in table control not for the entire coloumn?.I know the procedure for setting up an entire coloumn in table control either as diplay or change only using <b>Loop at screen</b> statement.
Conditions:
If Material is batch managed:
itab-batch field has to be <b>Display only</b> mode.
if material is not batch managed:
itab-batch field has to be <b>change mode</b>.
<b>O/p of Table Control :</b>
Material Batch
1000 Display only
2000 Change only
8000 Change only
3500 Display only
3600 Display onlyHi Ravi,
Thanks for your reply.I have put the code as u said. It is modifying the whole coloumn insted of modifying Current row of the coloumn.
I have tried to modify the screen property using Table control attributes (TC-COLS).The following commented code is that logic.Even that also doing the same thing.Can yoy please tell me how to do it.
MODULE tc_get_lines OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'X_ZPINV-CHARG'.
IF fg_batch = ' '.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
LOOP AT tc-cols INTO tc_wa
WHERE screen-name = 'X_ZPINV-CHARG'.
IF x_zpinv-matnr IS NOT INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = x_zpinv-matnr
IMPORTING
output = v_matnr.
SELECT SINGLE * FROM marc WHERE matnr = v_matnr
AND werks = w_plant.
IF marc-xchar IS INITIAL.
tc_wa-screen-input = 0.
ELSE.
tc_wa-screen-input = 1.
ENDIF.
MODIFY tc-cols FROM tc_wa INDEX sy-tabix." transporting screen-input
ENDIF.
ENDLOOP.
ENDMODULE. "TC_GET_LINES OUTPUT -
Advanced Selection for Source File + SourceFileSize = invalid file size?
Hi !
I have a File Adapter using FTP protocol. I've turn on all Adapter-Specific Message Attributes, including SourceFileSize. I've activated the Advanced Selection for Source File, and entered several patterns.
When I see my payload via the monitor, I get a "-" in the SourceFileSize value.
<sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">-</sap:Record>
If I disable the "Advanced Selection for Source File", the file size is ok.
Is it just me?
Thanksmaybe u need to check for some notes
-
F110 - No bank can be selected for comp code 8888 payment pethod C cur USD
Dear All Experts,
I am running F110 program, while doing getting this error
*No bank can be selected for comp code 8888 payment pethod C cur USD*
I have configured the FBZP section with possible all entries as follows :-
1 ) Payment Method in country - Currencies Allowed is blank - Means all aplicable.
2 ) Payment method company code data :- Forign currencies allowed option is Ticked.
3 ) Bank Determination - Ranking Order - Payment Method , currency USD , rank order , House Bank.
4 ) Bank Determination - Bank Account - House Bank , payment Method, currency USD , Account ID, Bank Subaccount.
Which part of configuration is missing ?
P.S. :- My company code currency is INR. Invoice posted in USD and require to pay in USD itself.
Experts guidance will be appreciable.
Regards,
Sharvari Joshi.Hi:
Please make sure that you have specified a House Bank in the vendor master record or line item.
Also have a look at what you have configured in FBZP . SAP reads the Bank Determination ,Ranking Order to determine whether payment method C can be used. Ranking Order, Bank Acocunts, Available Amounts and Value Date all should must be configured for payment method C. Also make sure the payment method C is assigned to the company code.
Please check these all and revert back.
Regards
Maybe you are looking for
-
Statement: SELECT{ CROSSJOIN({ [Product].[Product] }, { [Measures].[Shipping Units] })} ON ROWS FROM [Shipment] com.interlacesystems.iquery.QueryException: COLUMNS axis specification missing Statement: SELECT{ CROSSJOIN({ [Product].[Product] },
-
Mail returns to 'main menu/desktop'. My mail worked for over a year - now when i enter mail it returns to the 'mail menu' immediately. I disconnected wireless connection and it still returns to the main menu immediately. PLEASE HELP!
-
Absolute value in ckf, performance effect?
Hello BW Experts, req: always show positive values for one kf1 of a cube, even if you have negative values for kf1. options: create a ckf1 with the absolute value of kf1 -- 1) are there any other options in the backend or frontend? -- 2) what are the
-
Can't transfer video out of iPhoto...
Hi- hope this is the correct place to post this- if not please re-direct me. Thanks. question: I can't transfer video file from iPhoto (9.5.1) to iMovie (10.0.4). The video is 6 minutes and 465MB. I tried to trim but that doesn't shorten actual fi
-
How to I copy files across a Network using 10.9?
On earlier versions I could find another Mac on the network and log into it to enable me to see the file structure. To copy files from one machine to another i just dragged a file or folder full of files from the folder on the source machine to a fo