Delete record confirmation
Hi:
I am working with David Powers' "your first dynamic website" tutorial in preparation for an upcoming project.
With a delete record behavior, how does one add a "Are you sure you want to delete" message?
Thanks, Ned
Hi Santosh,
Confirmation for Delete Statement get from two fields
1. sy-subrc
2. sy-dbcnt
if sy-subrc eq 0, then the record was deleted. if sy-subrc eq 4, then the record was not found in database table.
sy-dbcnt gives the count of deleted records.
u can use of this fields for confirmation Purpose.
regards,
balakrishnan k
Similar Messages
-
I've set up a simple database for adding event news to a
site. I'm pretty new to PHP, but I have the Insert, Update, and
Display pages working properly. However the Delete Record page is
being a big pain. I have it set up just as it explains in
Dreamweaver Help, as well as a tutorial i am using as a backbone
for this project. Its a form with a hidden filed that is
dynamically pulling my ID. I have the Delete behavior pointing at
the same ID and record set.
My Delete link is properly setting up a dynamic page with the
title of record to be deleted showing up just fine. Also, the
redirect page is correct after hitting the Delete button. Which
makes me believe the issue is happening in somewhere in the
behavior. None of my records are being deleted when I go back to
the Display page. They are still there. Im pointing the behavior at
my Primary record so im not sure what's going on. I'm a first-timer
to this. Any help would be much appreciated.
Here is my code:Hi
I was reading your post and realized that I had the same
troubles the first time I tried to setup a record deletion page.
I hope the following helps.
What I ended up doing was to set up 3 pages..
1) a user list page of all users in the users table
2) a confirmation page to show user info
3) a delete page which does the actual deletion
This first page was a simple repeat region table showing the
entire list of users in the database table. I linked the username
to the conformation page with a simple URL Parameter to isolate the
user I want to delete
Here is the code
<a href="admin_users_delconfirm.php?id=<?php echo
$row_rsUsers['id']; ?>
The on the confirmation page I have a delete button graphic
which is linked to the delete page in the same way.
Code:
<a href="admin_users_delete.php?id=<?php echo
$row_rsUsers['id']; ?>
Finally on the delete page I applied the" delete record"
server behaiviour so that the deletion is done when the page loads.
You can also have it redirect back to the master list of users when
the deletion is done.
It may seem a little redundant to have 3 pages, but the
purpose of the 2nd page is to give the user an opportunity to
change their mind and also to remind them that the delete action
cannot be undone.
I hope this helps you.
Good Luck and Good Coding! -
Deleting records - mySQL / PHP
I've just worked through this whole database thing from
scratch again after a little glitch, and it's all working pretty
well.
I do still have the issue with deleting records - I have the
search results page which is fine, and has a delete options at the
end of the row.
It was working just fine bringing up the 'confirm deletion'
page with the selected record - but it goes wrong after I add the
'delete record' server behaviour.
Basically after I do, when I click delete in the results
page, it skips the 'confirm deletion' page, going straight to the
'deletion confirmed' page.
It does still delete the record at least, but it would be
good to have the confirmation page.
Here's a
link
(if you need to log in use 'admin' and 'password'.)
This is all the script code in the 'confirm delete' page :
<?php require_once('../Connections/ConnHandprint.php');
?>
<?php
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = (!get_magic_quotes_gpc()) ?
addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
if ((isset($_GET['recordID'])) && ($_GET['recordID']
!= "")) {
$deleteSQL = sprintf("DELETE FROM Contacts WHERE
ContactID=%s",
GetSQLValueString($_GET['recordID'], "int"));
mysql_select_db($database_ConnHandprint, $ConnHandprint);
$Result1 = mysql_query($deleteSQL, $ConnHandprint) or
die(mysql_error());
$deleteGoTo = "contactdeleted.php";
if (isset($_SERVER['QUERY_STRING'])) {
$deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
$deleteGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $deleteGoTo));
$colname_Recordset1 = "1";
if (isset($_GET['recordID'])) {
$colname_Recordset1 = (get_magic_quotes_gpc()) ?
$_GET['recordID'] : addslashes($_GET['recordID']);
mysql_select_db($database_ConnHandprint, $ConnHandprint);
$query_Recordset1 = sprintf("SELECT * FROM Contacts WHERE
ContactID = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $ConnHandprint)
or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
Any ideas?
Cheers,
IainHi,
It is a good idea to do it in database level such that declare foreign key from child to parent table and specify DELETE CASCADE.
regards,
' -
Delete Record Behavior doesn't wait for Submit button
I have master / detail page set. From the detail set there are links to delete or update a record. When I click the link to delete the record, it goes to the confirmation page with the correct record. Now, when I add the delete record server behavior and a submit button, this is what happens. As soon as I click the link to go to the delete confirm page, the record deletes and the page redirects to the page I put in the server behavior. It doesn't show the confirm page and doesn't wait for me to hit the confirm button. The page runs and successfully deletes the page from the DB.
How do I get it to wait until I hit the submit button?You need to surround your delete query with an "If" statement that checks for a confirmation variable of some sort, then when the user clicks the confirmation link you can pass the necessary variable and the ID of the record the delete query is expecting.
As an alternative you could use a JS alert fuction to ask the user if they are sure they want to delete the record and then allwo the delet to run after confirmation. To do this you could use code like this...
<input type="submit" name="DELETE" value="DELETE"
onclick="return confirm('Are you SURE you want to DELETE this record?')">
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer -
Delete record works too well !
I've done this before successfully several times but now something strange is happening. I've stared at this for a couple of hours now and don't see what I'm missing, it must be something blindingly obvious.
I created a page showing all records in a table using a repeating region. I added a column with a big red X image so that users can delete the record by clicking on the "X". This links to a delete page which displays the record and asks "Are you sure" the user clicks "Yes" and the record should be deleted.
What's happening is when the user clicks on the big red X the record is deleted and control is returned back to the page showing all records. I know it's going to the confirmation page as I tried removing the Delete Record behavior and it successfully displays the record I want to delete. I tried creating a new delete page from scratch to delete the record just in case there was something left over from the page I started with to create the delete page in the first place, same result.
Anyone have any clues? I'm using DW CS4, PHP, MySQL and Win 7
Thanksoops sorry, here's the code for the delete page
<?php require_once('../Connections/adminconnection.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
if ((isset($_GET['reservationnumber'])) && ($_GET['reservationnumber'] != "")) {
$deleteSQL = sprintf("DELETE FROM dinner WHERE reservationnumber=%s",
GetSQLValueString($_GET['reservationnumber'], "int"));
mysql_select_db($database_adminconnection, $adminconnection);
$Result1 = mysql_query($deleteSQL, $adminconnection) or die(mysql_error());
$deleteGoTo = "admin2.php";
if (isset($_SERVER['QUERY_STRING'])) {
$deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
$deleteGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $deleteGoTo));
$colname_rsdeletedinntest = "-1";
if (isset($_GET['reservationnumber'])) {
$colname_rsdeletedinntest = $_GET['reservationnumber'];
mysql_select_db($database_adminconnection, $adminconnection);
$query_rsdeletedinntest = sprintf("SELECT * FROM dinner WHERE reservationnumber = %s", GetSQLValueString($colname_rsdeletedinntest, "int"));
$rsdeletedinntest = mysql_query($query_rsdeletedinntest, $adminconnection) or die(mysql_error());
$row_rsdeletedinntest = mysql_fetch_assoc($rsdeletedinntest);
$totalRows_rsdeletedinntest = mysql_num_rows($rsdeletedinntest);
?>
<!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=utf-8" />
<title>Untitled Document</title>
<link href="../styles/thrColLiqHdr.css" rel="stylesheet" type="text/css" />
</head>
<body class="oneColFixCtrHdr">
<div id="container">
<div id="header">
<h1>Header</h1>
<!-- end #header --></div>
<div id="mainContent">
<h1> Main Content </h1>
<p>L</p>
<p> </p>
<table width="400" border="1">
<tr>
<td>res name</td>
<td><?php echo $row_rsdeletedinntest['reservationname']; ?></td>
</tr>
<tr>
<td>num in pty</td>
<td><?php echo $row_rsdeletedinntest['numberinparty']; ?></td>
</tr>
<tr>
<td>paid</td>
<td><?php echo $row_rsdeletedinntest['amountpaid']; ?></td>
</tr>
</table>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="deletedinner.php">
<label>are you sure
<input type="submit" name="delete" id="delete" value="Submit" />
</label>
</form>
<p> </p>
<p>Donec nec libero.</p>
<h2>H2 level heading </h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
<!-- end #mainContent --></div>
<div id="footer">
<p>Footer</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
<?php
mysql_free_result($rsdeletedinntest);
?> -
Delete record behaviour (PHP/mySQL)
I've just worked through this whole database thing from
scratch again after a little glitch, and it's all working pretty
well.
I do still have the issue with deleting records - I have the
search results page which is fine, and has a delete options at the
end of the row.
It was working just fine bringing up the 'confirm deletion'
page with the selected record - but it goes wrong after I add the
'delete record' server behaviour.
Basically after I do, when I click delete in the results
page, it skips the 'confirm deletion' page, going straight to the
'deletion confirmed' page. It's as tho' simply going to the
confirmation page is triggering the deletion, rather than requiring
the 'delete record' button to be pressed. Does the form / button
require an 'action'? Although as far as I can tell I followed the
instructions
correctly, but something is going wrong on the confirmation page.
It does still delete the record at least, but it would be
good to have the confirmation page.
Here's a link (if you need to log in use 'admin' and
'password'.)
link
This is all the script code in the 'confirm delete' page :
<?php require_once('../Connections/ConnHandprint.php');
?>
<?php
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue)
: $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
if ((isset($_GET['recordID'])) && ($_GET['recordID']
!= "")) {
$deleteSQL = sprintf("DELETE FROM Contacts WHERE
ContactID=%s",
GetSQLValueString($_GET['recordID'], "int"));
mysql_select_db($database_ConnHandprint, $ConnHandprint);
$Result1 = mysql_query($deleteSQL, $ConnHandprint) or
die(mysql_error());
$deleteGoTo = "contactdeleted.php";
if (isset($_SERVER['QUERY_STRING'])) {
$deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
$deleteGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $deleteGoTo));
$colname_Recordset1 = "1";
if (isset($_GET['recordID'])) {
$colname_Recordset1 = (get_magic_quotes_gpc()) ?
$_GET['recordID'] : addslashes($_GET['recordID']);
mysql_select_db($database_ConnHandprint, $ConnHandprint);
$query_Recordset1 = sprintf("SELECT * FROM Contacts WHERE
ContactID = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $ConnHandprint)
or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
Any ideas?
CheersHello,
S. Khawar wrote:
my question is that when I execute DELETE_RECORD built in it fails due to constraint restriction and Oracle forms raise message that "Child record exist/unable to delete record " until here it's Ok but Oracle Forms still removes record from the screen/form and move up the remaining records(although record is failed to delete).Yet this is the default forms behaviour. Because when you press delete it will remove from the screen but not from the database till you use COMMIT as francois mentioned.
I want the Oracle Form to do not remove record from screen/form once it's failed to delete record actually.Yes, for this type of requirement. Why don't you check dependency of record before removing the record. What i mean is you can use the code in KEY-DELREC trigger like below (before using the DELETE_RECORD built-in) for checking if child record exists then show message otherwise remove. For example...
DECLARE
vCntRec NUMBER;
BEGIN
SELECT COUNT(*)
INTO vCntRec
FROM child_table_name
WHERE key_column = :form_key_column_name;
IF vCntRec>0 THEN -- Here means record found in child table so it will not remove from screen but message will appear.
MESSAGE('<Your error message goes here...>');
MESSAGE('<Your error message goes here...>');
RAISE FORM_TRIGGER_FAILURE;
ELSE -- Here mean there is not dependency so it will remove which is default forms behaviour.
DELETE_RECORD;
END IF;
END;So, when you will press button for delete first it will check for any child record if exsits then it will display message and will not vanish from the screen otherwise it will remove from the screen and furthor COMMIT will remove from database.
-Ammad
Edited by: Ammad Ahmed on Jul 7, 2010 8:48 AM -
Alert Button for delete record ASP
Hello I have a delete record and have added a javascript
alert box. I have 2 options. The first is OK and the second is to
cancel. The problem is that I having trouble with the cancel part.
It deletes the record regardless. I tried to pass information such
as if they click cancel <% TH_Proceed = "" %> and in the
delete Dreamweaver code put an if statement to see if the
TH_Proceed <> "" to proceed.
It seems like once it is clicked the information from the
form to delete is passed and it forgets about what I try to send.
Sorry I am not to experienced with this.
Thanks for any help<form, not </form
onSubmit = "return confirm_entry()"
If you don't return anything from the function call, the
submit will of
course go through since that's the default behavior.
The function itself must be altered, too. After your alert
saying the file
will be deleted, return true. After your alert saying the
file will not be
deleted, return false.
"Pixel Pusher" <[email protected]> wrote in
message
news:e8k38f$mtt$[email protected]..
> Thank you. But still not completely understanding. I
have details. Thank
> you
> again for the help.
>
> This is the form tag:
>
> </form id="frm_delete" name="frm_delete"
method="POST"
> onSubmit="confirm_entry()"
action="<%=MM_editAction%>">
>
> This is the submit button:
> <input type="submit" name="Submit" value="Delete This
File!" />
>
> This is the JavaScript:
>
> <script language="JavaScript">
> <!--
> function confirm_entry()
> {
> input_box=confirm("Click OK or Cancel to Continue");
> if (input_box==true)
>
> {
> // Output when OK is clicked
> alert ("The File Will be deleted");
> }
>
> else
> {
> // Output when Cancel is clicked Option
>
> alert ("The File Has Not Been Deleted");
> }
>
> }
> -->
> </script>
> -
CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?
When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective. I cannot use the server behavior. I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want. I cannot change that except in the server behavior, so I'm stuck. I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case. I will appreciate any suggestions! Is there any way to embed a call to a target page manually? All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page. That'll drive a user bonkers!
Thanks!
Delete Record in CS6 Dreamweaver using PHP & MySQL?Well, your error message is self-explanatory.
DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
It should work as expected.
If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
Let us know how it goes.
-ST -
Posting period issue while deleting a confirmation posted for a limit PO
Hi ..
I am facing an issue whiel deleting a confirmation posted for a limit PO.
Confirmation was posted for a limit PO in SRM and it created a service entry sheet in SAP. If I deleted that confirmation in the same posting period, then it is getting deleted. No issue here.
But if I deleted that confirmation in the next posting period then the reversal document is going to error in process. RZ20 is showing the error "Positng only possible in periods 2012/2 and 2012/3".
Posting date of reversal document is current date only and the backend posting period is 2012/3, but still it is failing with this posting period error.
If I tried to delete a confirmation posted for a normal PO then I could able to delete it even in next posting period by just changing the posting date.
Why this posting occurs while deleting the limit confirmation, even through the posting date is falls within the backenn posting periiod? Is it like, SAP system is trying to delete the service entry sheet in original posting period? Kindly help.
I am in SRM 5.0 (server 5.5) SP12.
Thanks,
ArunOK.
Well, if the variable is not used in any interval selection, then I would say "something happened to it".
I would make a copy of the query and run it to check if I get the same problem with period 12.
-> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
If so, then try removing the variable completely from the query and hardcode restriction to 12.
-> If problem still persists, I would have to do some thinking.
If problem is gone, then add the variable again. Check.
-> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
Good luck!
Jacob
P.S: what fisc year variant are you using?
Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM -
Error while deleting the confirmation- Reason has to be entered for 102
Hi,
When i try to delete the confirmation for Goods, an error -"A reason has to be entered for movement type 102" is occuring. I have maintained the reason for rejection in the document tab at the line item level while deleting the confirmation.The reason for movement field is mandatory in R/3 system for movement type 102. I have maintained this reason for rejection that has maintained in the R/3 system in the SRM config and able to select that during deletion of confirmation, but still i am getting this error. Please suggest.
Regards
GGLsorry for the very late reply..
Note 1345896 - Error due to reason for movement when deleting the GR in EBP
When we try to delete a goods confirmation with the Reason for Rejection text in SRM, we get the error "A reason has to be entered for movement type 102" (M7 325) thrown from the backend R/3 system.
Other terms
M7 325, RREJ, Reason for Rejection, MOVE_REAS, c_subtype_ca, LBBP_CFF60, FORM mapping_gr_for_backend.
Reason and Prerequisites
This is caused by a program error
it helps aothers too -
Delete record from the form and from the database
hi,
i want delete record from the form and the database ,but the record is only delete from the from !!!
this is my code :
if //condition then
delete_record;
commit;
end if ;
Any solutions ??
thnxYou have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
As oracle is not able to insert your commit fails and stops your deletion of record from table -
Delete records from tableA which are not in tableB
Table A contains milions of records which is the best way to delete records from tableA which are not in tableB
delete from tableA where empno not in (select empno from tableb)
or
delete from tableA where empno not exists (select empno from tableb
where b.empno=a.empno)
any helpHi
If you can do this, do with this:
create table tableC
as select a.*
from tableA a,
(select empno from tableA
minus
select empno from tableB) b
where a.empno = b.empno;
drop table tableA;
rename table tableC to tableA;
Ott Karesz
http://www.trendo-kft.hu -
Delete recording from VSMS server
In VSMS server, how can delete recording from storage? and can delete some of recording, like 1 hour from all recording or 1 day?
Hello mshah,
This is not recommended at all to delete recording files manually or for certain durations since every files has reference id created which are being associated to cameras.Deleting files in such can cause issue to the server.
What is the reason behind deleting those files from server?
Regards
Nadeem Ahmed -
How to delete record from table control in BDC?
Hello friends,
I am running a BDC program to delete records.
I have file with following records and i got these records into t_itab.
Material Plant Start date End date Cost
MQ100001 S001 09/01/2008 09/31/2008 55.00
MQ100004 S002 09/01/2008 09/31/2008 56.00
MQ100008 S003 09/01/2008 09/31/2008 57.00
Now, I have BDC transaction in which table control screen which contains following structure.
MQ100001 S001 09/01/2008 09/31/2008 55.00
MQ100002 S002 09/01/2008 09/31/2008 56.00
MQ100004 S003 09/01/2008 09/31/2008 47.00
MQ100005 S004 09/01/2008 09/31/2008 25.00
MQ100006 S012 09/01/2008 09/31/2008 76.00
MQ100007 S033 09/01/2008 09/31/2008 17.00
MQ100008 S011 09/01/2008 09/31/2008 95.00
MQ100009 S002 09/01/2008 09/31/2008 46.00
I have recorded from SHDB in which first record will be delete.
So, when i loop through t_itab,instead of deleting MQ100001,MQ100004 and MQ100008 from BDC screen,
it is deleting MQ100001,MQ100002 and MQ100004 (first record for each process ).
Which i don't want to.
Is there any facility in BDC to put records on top which i want to delete?
Please guide me.
Regards,
RHHi,
While doing recording check for Filter button available for the table control, if it available then do the recording for the same.
Once it is done while passing the data from internal table put the value into Filter field.
Hope it resolves your issue.
Thanks & Regards.
Nagaraj Kalbavi -
How to delete record from table control using BDC?
Hello friends,
I am running a BDC program to delete records.
I have file with following records and i got these records into t_itab.
Material Plant Start date End date Cost
MQ100001 S001 09/01/2008 09/31/2008 55.00
MQ100004 S002 09/01/2008 09/31/2008 56.00
MQ100008 S003 09/01/2008 09/31/2008 57.00
Now, I have BDC transaction in which table control screen which contains following structure.
MQ100001 S001 09/01/2008 09/31/2008 55.00
MQ100002 S002 09/01/2008 09/31/2008 56.00
MQ100004 S003 09/01/2008 09/31/2008 47.00
MQ100005 S004 09/01/2008 09/31/2008 25.00
MQ100006 S012 09/01/2008 09/31/2008 76.00
MQ100007 S033 09/01/2008 09/31/2008 17.00
MQ100008 S011 09/01/2008 09/31/2008 95.00
MQ100009 S002 09/01/2008 09/31/2008 46.00
I have recorded from SHDB in which first record will be delete.
So, when i loop through t_itab,instead of deleting MQ100001,MQ100004 and MQ100008 from BDC screen,
it is deleting MQ100001,MQ100002 and MQ100004 (first record for each process ).
Which i don't want to.
Is there any facility in BDC to put records on top which i want to delete?
Please guide me.
Regards,
RHOne option is to identify the table and find out the location as the number of row which should be deleted from the table and then in the bdc program instead of postioning the cursor on the row 1(using the statement perform bdc_cursor ....(01)), replace the 01 with the row number.
Second option is that if a filter control is available for the table control, then filter the data each and every time with the material number to be deleted and then delete the first row.
Regards
Farzan
Maybe you are looking for
-
*NEW IDEA* Document Management Specification
Hello. I am a final year software engineering student (Southampton, UK) and im thinking about developing a document management system as a part of my final year project. i have the notion that if the criteria for searching for documents was departmen
-
Hai Can Anybody tell me what is the description of the Standard Report of 1.list of Billing Document 2 list of sales orders Actually what those reports says what is the use of it?
-
Migration Assistant From MacBook Pro 10.4.11 to iMac 10.6.3
Hope somebody can help me, I just bought an iMac to use at home and I want to transfer some of my files from my MacBook Pro running 10.4.11 to my iMac 10.6.3, is this possible using a FireWire cable and if so what kind of FireWire cable do I need to
-
Multiple finder window piling up on desktop when starting computer
Anybody knows what to do: At start-up, a pile of finder windows appear on the desktop one above the other, in the middle of the screen. When I press the option key and I click to close the top window, they all disappear. At next start-up they all com
-
It is necessary to put a button in the homo page of the iPad an the iPhone to turn off the wifi page easily