Displaying the successfully created records as messaage after bdc execution
Hi all,
I want to display the number of successfully created records as message(information) after execution of batch session created in sm35.
could anyone suggest me any solution regarding this?
Thanks and Regards,
Ashik
for error log code check this
[click here for error log code|http://wiki.sdn.sap.com/wiki/display/ABAP/BDC-Howtohandleerrorlogfiletouploadthedataincalltransaction+method]
for BDC Session - Automatic Execution from Report
[click here|http://wiki.sdn.sap.com/wiki/display/ABAP/BDCSession-AutomaticExecutionfromReport]
Similar Messages
-
Displaying the selected multiple records from node using onleadselect event
Hi all,
How to display the selected multiple records from node to node using onleadselect event.
i came to know tht to fulfill this requirement i need to use the method get_selected_elements,
how to use this method in my event??
sreeHi Sree,
Try below code..
DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node, // This is first node
lo_el_it_lips TYPE REF TO if_wd_context_element,
ls_it_lips TYPE wd_this->Element_it_lips,
lt_it_lips TYPE wd_this->Elements_it_lips.
DATA: wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set.
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
CALL METHOD lo_nd_it_lips->get_selected_elements
EXPORTING
INCLUDING_LEAD_SELECTION = ABAP_true
RECEIVING
set = lt_temp.
DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node. //Second Node
DATA lo_el_pack_mat TYPE REF TO if_wd_context_element.
DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_it_lips.
ls_pack_mat-vbeln = ls_it_lips-vbeln.
ls_pack_mat-material = ls_it_lips-matnr.
ls_pack_mat-vgbel = ls_it_lips-vgbel.
append ls_it_lips to lt_unpack.
CLEAR ls_pack_mat.
ENDLOOP.
Cheers,
Kris. -
How can i display the success msg using module pool
Hi frnds,
I want to display the error mesg or success msg in a dialogbox with ok button through module pool,
Pls help me any one.
Thanks in advance.Hi,
Check this example in SAP:
DEMO_MESSAGES -
> This is a good example of displaying messages given by SAP.
For more information on messages please visit this link:
http://help.sap.com/saphelp_nw04/helpdata/en/91/dec863880411d194cb0000e8353423/content.htm
This will tell you the complete status of each messages in the ABAP with its displaying position on the screen.
May this information helps you.
Thanks
Deepak Sharma -
How to count and display the number of records in a database table
My webpage has a list of items and their details, every item has a button
Read / Make comments that loads the item in its own page displaying
a comments form and previous comments.
This is all working fine.
I would like to add to each item information stating how many comments have
been made about that item.
Allowing the user to see before hand if it is worth while clicking on the
Read / Make comments button.
Ideally each item will have a different number of comments.
The problem I have is outputing the number of comments associated with each item.
My comments table is called guest my items table is called titles.
I'm sure mysql statement is correct -
The table guest currently has 7 comments,
Item 1 has 3 comments
Item 2 has 2 comments
Item 3 has 1 comment
Item 4 has 1 comment
When I test the query in dreamweaver
$Recordset1 = "SELECT COUNT(guest.software_id) as COUNT, titles.id FROM titles LEFT JOIN guest ON titles.id = guest.software_id GROUP BY guest.software_id";
the outoput is a list showing 2, 3, 1, 1
My problem is, getting the totals into my repeat region.
I tried the following line
<td align="left" valign="top" bgcolor="#e5f8cb">Current comments:<?php echo $row_Recordset1['COUNT']; ?></td>
resulting in all comments so far displaying 0
I have highlighted in bold the parts that I am having difficulty with.
<?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;
$colname_rsTitles = "-1";
if (isset($_GET['id'])) {
$colname_rsTitles = $_GET['id'];
mysql_select_db($database_abe, $abe);
$query_rsTitles = sprintf("SELECT title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE id = %s ORDER BY id ASC", GetSQLValueString($colname_rsTitles, "int"));
$rsTitles = mysql_query($query_rsTitles, $abe) or die(mysql_error());
$row_rsTitles = mysql_fetch_assoc($rsTitles);
$totalRows_rsTitles = "-1";
if (isset($_GET['id'])) {
$totalRows_rsTitles = $_GET['id'];
$colname_rsTitles = "-1";
mysql_select_db($database_abe, $abe);
$query_rsTitles = sprintf("SELECT title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE id = %s ORDER BY id ASC", GetSQLValueString($colname_rsTitles, "int"));
$rsTitles = mysql_query($query_rsTitles, $abe) or die(mysql_error());
$row_rsTitles = mysql_fetch_assoc($rsTitles);
$totalRows_rsTitles = mysql_num_rows($rsTitles);
mysql_select_db($database_abe, $abe);
$query_rs_comments = "SELECT * FROM guest";
$rs_comments = mysql_query($query_rs_comments, $abe) or die(mysql_error());
$row_rs_comments = mysql_fetch_assoc($rs_comments);
$totalRows_rs_comments = mysql_num_rows($rs_comments);
mysql_select_db($database_abe, $abe);
$query_rs_users = "SELECT * FROM users";
$rs_users = mysql_query($query_rs_users, $abe) or die(mysql_error());
$row_rs_users = mysql_fetch_assoc($rs_users);
$totalRows_rs_users = mysql_num_rows($rs_users);
mysql_select_db($database_abe, $abe);
$query_Recordset1 = "SELECT COUNT(guest.software_id) as COUNT, titles.id FROM titles LEFT JOIN guest ON titles.id = guest.software_id GROUP BY guest.software_id";
$Recordset1 = mysql_query($query_Recordset1, $abe) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
mysql_select_db($database_abe, $abe);
if(!isset($_POST['softwareLevel'])){
if (!isset($_GET['class_id'])) {
//show all software titles
$query_rsTitles = "SELECT id, title, company, `description`, resources, location, url, image, keyword, copies FROM titles ORDER BY id ASC";
}else{
//show software titles filtered by Literacy of Numeracy (using URL GET variable)
$query_rsTitles = "SELECT id, title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE titles.class_id = ". GetSQLValueString($_GET['class_id'], "int") ." ORDER BY id ASC";
}else{
//show software titles filtered by Level (using Form POST variable)
$query_rsTitles = "SELECT id, title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE titles.level_id = ". GetSQLValueString($_POST['softwareLevel'], "int") ." ORDER BY id ASC";
$rsTitles = mysql_query($query_rsTitles, $abe) or die(mysql_error());
$row_rsTitles = mysql_fetch_assoc($rsTitles);
$totalRows_rsTitles = mysql_num_rows($rsTitles);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $pagetitle="ABE Software Locator"?>
<html xmlns="http://www.w3.org/1999/xhtml" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $pagetitle ?></title>
<link rel="stylesheet" href="../../includes/styles.css" type="text/css" media="screen" />
<style type="text/css">
body {
background-color: #FFF;
</style>
</head>
<body>
<?php include("../../includes/header.php"); ?>
<div><table width="70%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="29%" height="50" align="center"><a href="software_detail.php">Back to Locator</a></td>
<td width="50%" align="center"><a href="../../index.php">Welcome Page</a></td>
<td width="21%" align="center"><a href="../../logout.php">Log Out</a></td>
</tr>
<tr>
<td colspan="3" align="center"><strong> There Are <span class="totalrecordsnumber"><?php echo $totalRows_rsTitles ?></span> Software Titles Listed</strong></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<?php do { ?>
<table width="820" border="0" align="center" cellpadding="3" cellspacing="2">
<tr>
<td width="206" height="200" rowspan="3" align="center" bgcolor="#FFFFFF"><img src="images/<?php echo $row_rsTitles['image']; ?>" alt="<?php echo $row_rsTitles['title']; ?>" /></td>
<td colspan="3" align="center" bgcolor="#086b50"><h2><?php echo $row_rsTitles['title']; ?></h2></td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#f6b824"><strong>Made by:</strong> <?php echo $row_rsTitles['company']; ?></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top" bgcolor="#e5f8cb"><p class="ptaglineheight"><strong>Description: </strong><?php echo $row_rsTitles['description']; ?></p></td>
</tr>
<tr>
<td colspan="2" align="left" valign="top" bgcolor="#e5f8cb"><span class="tabletext"><strong>Keywords</strong></span><strong>: </strong><?php echo $row_rsTitles['keyword']; ?></td>
<td colspan="2" align="left" valign="top" bgcolor="#e5f8cb"><strong>Resources:</strong> <?php echo $row_rsTitles['resources']; ?></td>
</tr>
<tr>
<td colspan="4" align="left" valign="top" bgcolor="#e5f8cb"><strong>Web Address:</strong> <a href="<?php echo $row_rsTitles['url']; ?>" target="_blank"><?php echo $row_rsTitles['url']; ?></a></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top" bgcolor="#e5f8cb"><strong>Is installed on:</strong> <?php echo $row_rsTitles['location']; ?></td>
<td width="195" align="left" valign="top" bgcolor="#e5f8cb"><strong>Copies available:</strong><?php echo $row_rsTitles['copies']; ?></td>
</tr>
<tr>
<td colspan="3" align="left" valign="top" bgcolor="#e5f8cb"><a href="fulltitle.php?software_id=<?php echo $row_rsTitles['id']; ?>&id=<?php echo $row_rsTitles['id']; ?>">Read / Make Comments About This Software</a></td>
<td align="left" valign="top" bgcolor="#e5f8cb">Current comments:<?php echo $row_Recordset1['COUNT']; ?></td>
</tr>
</table>
<br />
<?php } while ($row_rsTitles = mysql_fetch_assoc($rsTitles)); ?>
</div>
<?php include("../../includes/footer.php"); ?>
</body>
</html>
<?php
mysql_free_result($rsTitles);
mysql_free_result($rs_comments);
mysql_free_result($rs_users);
mysql_free_result($Recordset1);I changed the mysql as you suggested GROUP BY titles.id
and added a while loop to iterate over the data
mysql_select_db($database_abe, $abe);
$query_Recordset1 = "SELECT COUNT(guest.software_id) as COUNT, titles.id FROM titles LEFT JOIN guest ON titles.id = guest.software_id GROUP BY titles.id";
$Recordset1 = mysql_query($query_Recordset1, $abe) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
$row_Recordset1 = mysql_query($query_Recordset1) or die(mysql_error());
<td>Current comments:<?php
if($row_Recordset1)
while($row = mysql_fetch_array($row_Recordset1))
echo $row['COUNT'];
} ?></td>
The first item now displays the following,
comments:2311000000000000000000000000000
all others
comments:
the number matched the database table exactly, 30 records 4 of which have 2, 3, 1, 1 comments.
It looks as if the problem is trying to get the repeat region to pick up on it! -
How to display the vertical coloumns(records) in a single row?
Hi all,
I need a requirement in SAP where in the internal table records are in vertical placement as follows:
1 2 3 4 5 | a1 b1 c1 d1 e1
1 2 3 4 5 | a2 b2 c2 d2 e2
1 2 3 4 5 | a3 b3 c3 d3 e3
and so on..........
now as per the requirement I need all the records to be displayed in a single row in the output as follows:
1 2 3 4 5 | a1 b1 c1 d1 e1 | a2 b2 c2 d2 e2 | a3 b3 c3 d3 e3 |.....so on
Any pointers on this would be of great help.
thanks in advance,
Vamsee.Loop at itab.
at new f1.
write : itab-f1. <--- here don't give '/' .. which will write in new line ...
endif.
write : itab-f2, <--- here don't give '/' .. which will write in new line ...
itab-f3,
itab-f4,
itab-f5,
itab-f6.
at end of f1.
write :/ ''.
endat.
endloop. -
Trying to read a recorded file that display the x-axis recorded time stamp?
How do I read a recorded file with (XY) data, meaning I want to plot the x-time recorded data and be able to scroll back and forth.
Hi Gina,
If I understand your question correctly, it sounds like you are trying to plot some data that you have saved in a file. I am assuming that this data is in the form of X and Y values.
If this is correct, the easiest solution would be to use an XY-Graph in LabVIEW. I would start by using LabVIEW's File I/O VIs to load the data into an array or even a string indicator. You can then parse the data that you need and separate it into two arrays, one for X values and one for Y values. You can then bundle these two arrays together and feed the resulting cluster into an XY-Graph.
I have attached an example that may help to point you in the right direction when it comes to the actual programming.
I hope this helps!
Matthew C
Applications E
ngineer
National Instruments
Attachments:
Example.zip 61 KB -
Displaying messages after BDC execution
Dear All,
I am running a BDC to change the pricing of the return document in transaction VA02. The BDC is getting executed after the execution of one report which is diaplying some records in the output. The output values of the report are : Check Box, Sales Document No & Billing Document No.
After the BDC is executed for the selected records, I am getting a screen which displayes me for each record if that has been executed successfully or is there any error while executing BDC.
Now, I want that after the BDC has been executed, a list should be displayed which just shows about the Sales Document No which has been processed successfully by the BDC and another list which displays about the Sales Document No which are not processed successfully.
Kindly guide me on how I can proceed on this.
Waiting for your reply.
Warm Regards,
N.Jainhi Nishu..
Use the BDCMSGCOLL structure to capture the Messages:
Using BDCMSGCOLL Structure we have to declare an itab.
DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .
Then We can catch the messages using:
CALL TRANSACTION 'MK01'
USING IT_BDCDATA
MODE 'N'
MESSAGES INTO IT_MSG.
IF sy-subrc ne 0.
LOOP AT IT_MSG INTO WA_MSG
WHERE MSGTYP = 'E' OR MSGTYP = 'A'..
<<process Error messages>>
ENDLOOP.
Else.
LOOP AT IT_MSG INTO WA_MSG
WHERE MSGTYP = 'S'
<<process Success messages>>
WRITE:/ 'Doc No', WA_MSG-MSGV1.
ENDLOOP.
Endif.
<b>reward if Helpful.</b> -
How to display the Internal table records in table format?
Hi Gurus,
I want to display my print prg internal table records in d appropriate form in a table format, give some solution
with regards
ThambeThere are lot many options to do that
one way is create template in the maikn window and define the line types according to your data cretae text and put your data in the text and go to output options and give the line type to be used . You can also select details option to have lines in your output.
similarly YOU CAN CREATE TABLE IN THE MAIN WINDOW FOR THIS YOU DONT NEED TO DEFINE THE LINE TYPES .
WHEN YOU ARE IN MAIN WINDOW RIGHT CLICK ON TABLE AND GO TO PATH
CREATE -> TABLE
-> TEMPLATE
REWARD IF USEFUL
Regards,
Nageswar -
Displaying the checkbox created at runtime
hai all,
i have created the checkboxes at runtime but they are getting displayed in the same line.
i need to display them one after the other in next lines.please help me its urgent.
Thanks n Regards
Sharanya.RHi,
To solve the problem, I have created one Java class
public class UIHandler {
Call this method to create node in Component controller as the data should be shared among
multiple views
@param rootInfo is NodeInfo for wdContext in Component Controller
@param name of Value node to be created
@param Collection represents the list of attributes to be created for check boxes
public static IWDNodeInfo createChildNode(
IWDNodeInfo rootInfo,
String name,
Collection collection) {
IWDNodeInfo node =
rootInfo.addChild(
name,
null,
true,
true,
false,
true,
false,
true,
null,
null,
null);
for (Iterator iter = collection.iterator(); iter.hasNext();) {
String str = (String) iter.next();
node.addAttribute(str, "com.sap.dictionary.boolean");
return node;
Call this method to create node in view to create list of check boxes
public static IWDNodeInfo createMappedChildNode(
IWDNodeInfo nodeInfoOrigin,
IWDNodeInfo rootInfo,
String name) {
IWDNodeInfo nodeInfoView =
rootInfo.addMappedChild(
name,
null,
nodeInfoOrigin.isSingleton(),
nodeInfoOrigin.isMandatorySelection(),
nodeInfoOrigin.isMultiple(),
nodeInfoOrigin.getPathDescription(),
false,
true);
for (Iterator iter = nodeInfoOrigin.iterateAttributes();
iter.hasNext();
IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
nodeInfoView.addMappedAttribute(
attrInfo.getName(),
attrInfo.getName());
return nodeInfoView;
Create list of check boxes
public static void createCheckBoxes(
IWDView view,
String rootContainerName,
IWDNodeInfo nodeInfo) {
IWDTransparentContainer rootCont =
(IWDTransparentContainer) view.getElement(rootContainerName);
IWDTransparentContainer cont =
(IWDTransparentContainer) view.createElement(
IWDTransparentContainer.class,
"Container");
IWDGridLayout layout =
(IWDGridLayout) cont.createLayout(IWDGridLayout.class);
layout.setColCount(2);
rootCont.addChild(cont);
for (Iterator iter = nodeInfo.iterateAttributes(); iter.hasNext();) {
IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
IWDLabel label =
(IWDLabel) view.createElement(
IWDLabel.class,
attrInfo.getName());
label.setText(attrInfo.getName());
IWDCheckBox cbx =
(IWDCheckBox) view.createElement(
IWDCheckBox.class,
attrInfo.getName() + "cbx");
cbx.bindChecked(attrInfo);
label.setLabelFor(cbx.getId());
cont.addChild(label);
cont.addChild(cbx);
Now, to create context node in component controller, use following code,
List list = new ArrayList();
list.add("Label of check box");
IWDNodeInfo nodeInfo = UIHandler.createChildNode(wdThis.wdGetTestController().wdGetContext().getNodeInfo(), "Data", list);
UIHandler.createMappedChildNode(nodeInfo, wdContext.getNodeInfo(), "Data");
To create check box, use following code in wdModifyView,
if(firstTime) {
IWDNode node = wdContext.getChildNode("Data", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
UIHandler.createCheckBoxes(view, "RootUIElementContainer", nodeInfo);
And to access the values of the check boxes in different view, put the following code in wdInit()
IWDNodeInfo nodeInfo = wdThis.wdGetTestController().wdGetContext().getChildNode("Data", 0).getNodeInfo();
UIHandler.createMappedChildNode(nodeInfo, wdContext.getNodeInfo(), "Data");
And in wdModifyView
if(firstTime) {
IWDNode node = wdContext.getChildNode("Data", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
UIHandler.createCheckBoxes(view, "RootUIElementContainer", nodeInfo);
Thanks,
Puspendu -
Modifying the number of records to skip after importing the flat file
I imported a flat file and the first row was the column header. I also created an external table for that flat file. The sqlldr is skipping the first record during the load. Is there a way to change this in the flat file module or External table?
If you marked this row as the header in the sample wizard then you will see the following in the External Table:
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
CHARACTERSET WE8MSWIN1252
STRING SIZES ARE IN BYTES
NOBADFILE
NODISCARDFILE
NOLOGFILE
SKIP 1
So the external table is skipping this.
Now the issue with changing it is interesting because you cannot change this after the sampling... I think this is a bug which I will file.
Let me know if this answers the question,
Jean-Pierre -
Prob in displaying the dynamically created ui elements on click of a button
hi all
i created 1 inputfield, 2 buttons & i wrote the following code in wddomodifyview() of view.
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
inf1.bindValue("Student.name");
IWDButton but1=(IWDButton)view.createElement(IWDButton.class,"button1");
but1.setText("Button1");
IWDButton but2=(IWDButton)view.createElement(IWDButton.class,"button2");
but2.setText("Button2");
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer");
tc.addChild(inf1);
tc.addChild(but1);
tc.addChild(but2);
IWDButton button1= (IWDButton) view.getElement("button1");
IWDAction theAction=wdThis.wdCreateAction(IPrivateDynCompView.WDActionEventHandler.DISPLAY,"");
but1.setOnAction(theAction);
IWDParameterMapping bm1 = button1.mappingOfOnAction();
bm1.addParameter("id", "b1");
IWDButton button2= (IWDButton) view.getElement("button2");
IWDParameterMapping bm2 = button1.mappingOfOnAction();
bm1.addParameter("id", "b2");
and i wrote the following code in onactiondisplay()
if (id.equals("b1"))
wdContext.currentStudentElement().setName("First Button Clicked");
else
wdContext.currentStudentElement().setName("Second Button Clicked");
when i run the application, the following error is displaying.....
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
com.sap.tc.webdynpro.services.exceptions.WDCreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:75)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:89)
at com.sap.dynactions.DynCompView.wdDoModifyView(DynCompView.java:140)
at com.sap.dynactions.wdp.InternalDynCompView.wdDoModifyView(InternalDynCompView.java:240)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:190)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:398)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.modifyView(ClientApplication.java:679)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:381)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:65)
... 30 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
pls tell me how to run this application without errors.....
thanks & regards,
vila.Hi Vila,
Issue here is you are trying to create Input field with already used id "inf1" in first line of code
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
Please change it to
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf2");
and correspondingly line
tc.addChild(inf2);
Your code will work.
Please note that you should follow....following code style in wdDoModifyview
if(firstTime)
//dynamic view elements creation -
How to cancel the newly created record
Hi,
I have created a record in a table, but i want to cancel that record before pressing the apply button.
How to do this like "Clear Record' in oracle forms?
Thanks in advance,
SANHi,
Use below code to delete a record in Advance table...
AM:
public void Delete(String dseqnum)
Number dsequm;
int fetchedrowcount;
int dseqnumtodelete;
RowSetIterator deleteIter;
OADBTransaction tr = getOADBTransaction();
DisconutVOImpl dvo = getDisconutVO1();
DisconutVORowImpl row=null;
dseqnumtodelete=Integer.parseInt(dseqnum);
fetchedrowcount=dvo .getRowCount();
deleteIter = dvo .createRowSetIterator("deleteIter");
deleteIter.setRangeStart(0);
deleteIter.setRangeSize(fetchedrowcount);
for(int i=0;i<fetchedrowcount;i++)
row= (DisconutVORowImpl)deleteIter.getRowAtRangeIndex(i);
dsequm=(Number)row.getAttribute("SequenceNumber");
if(dsequm.compareTo(dseqnumtodelete)==0)
row.remove();
break;
deleteIter.closeRowSetIterator();
Call above method in co on delete action:
CO:
if("Delete".equals(pageContext.getParameter(EVENT_PARAM)))
String delete_mpid=pageContext.getParameter("MPeriodid");
AM.Delete(pageContext, webBean,delete_mpid);
Note:Set below properties for Delete button..
Disable Server validation:*TRUE*
Disable Client validation:*TRUE*
Regards
Meher Irk -
How-To Display the Number of Records Returned from a List to the User?
We currently are using lists to identify accounts that meet various criteria. Because the territories vary from 4k to 60k customers the users have stated that they don't know the size of the list and therefore don't know if they need to refine the list. Currently they are exporting to Excel to look at the row count to see if they need to further refine their searches. This takes quite a while and while shuffling through many lists is a bit painful. Isn't there a way to just show the total records returned from the list down at the bottom of the screen where it allows you to see 25/50/75/100 records at a time?
There is probably a simple way to do this but it is a large user dissatisfier at the time because we simply don't know how to make this show up. Again we are using lists and not analytics for simple lists at this time.
- john
Edited by: user11286597 on Jun 19, 2009 11:02 AMThanks Bobb. I can't believe that one wasn't in R1 :)
Is there a link to the items being worked in the next release by any chance?
- john -
How To Display Recently Created Records
Hi
I want to display the recently created records into a table in sapui5.
Is there any control to display the recently created records.
Please suggest me if any control is there.
Thanks
SathishSQL> WITH T AS (
2 SELECT 'SANKAR' NAME, 10 NO FROM DUAL
3 UNION ALL
4 SELECT 'BALAJI', 20 FROM DUAL
5 UNION ALL
6 SELECT 'SANKAR', 10 FROM DUAL
7 UNION ALL
8 SELECT 'MANI', 30 FROM DUAL
9 UNION ALL
10 SELECT 'BALAJI', 20 FROM DUAL
11 UNION ALL
12 SELECT 'MANI', 30 FROM DUAL
13 UNION ALL
14 SELECT 'BALA', 10 FROM DUAL
15 UNION ALL
16 SELECT 'KALA', 20 FROM DUAL)
17 SELECT NAME, NO
18 FROM (SELECT NAME,
19 NO,
20 SUM(RNO) OVER(PARTITION BY NAME,NO) SNO
21 FROM (SELECT T.*,
22 ROW_NUMBER() OVER(PARTITION BY NAME,NO ORDER BY 1) RNO
23 FROM T))
24 WHERE SNO > 1
25 /
NAME NO
BALAJI 20
BALAJI 20
MANI 30
MANI 30
SANKAR 10
SANKAR 10
6 rows selected.Thanks,
Karthick -
Regarding the displaying the PO smart form in english
Hi Experts,
The problem is that the user had created the vendor master data and specified KOREAN language. After that user created the Purchase Order and checked the print preview displays the PO in KOREAN Language.
User went back and changed the Vendor master data from KOREAN Language to ENGLISH Language. Even after that output of the form in KOREAN Language.
The one solution what i think is that ask the user recreate the purchase order once more and the problem will be solved.
Please let me know is there any other alternate way to display the smartform in english language even after changing it from KOREAN language to ENGLISH in Vendor Master Data.
The system is 4.7.
Thanks in Advance.
Sunil Kumar.Go to SE63 and change the korean text elements to english.
Manas M.
Maybe you are looking for
-
Ontem eu comprei o PlayStation 4 the last of us que vem incluso uma assinatura da psn por 1 ano e que viria impresso na nota fiscal (receipt). O problema é que não veio esse código. Eu queria saber como proceder nesse caso.
-
Hi , I created sample user's under Native directory and assigned some groups to them. When i tried to verify their roles from Sample-->(R.C) Provision--> ... i don't see any roles, the roles from right side is blank. But when i login with the sample
-
How to activate Acrobat Pro XI on a non persistant VDI desktop?
Hi, I installed Acrobat Pro XI on a Citrix XenDesktop non persistant environment. I used the customization wizard and all seems to work without any questions for activation, but... When I logon to the desktop I start Acrobat Pro XI and I don't have t
-
my iphone5 calendar is not picking up my outlook calendar updates. it picked up at set up but never since
-
Hi Friends- when am using PNP ldb its working fine for all other selection but for any of the radio button like current month or current date the pnpbegda and pnpendda not showing any value they are initial why so ? pls help me to understand