CREATE and DELETE operations in MI7.1 for PDA

Hi,
We are developing a sample scenario for PDA in 7.1. Problem is we are able to implement GETLIST, GETDETAIL and MODIFY operations but not able to implement CREATE and DELETE operations. For GETLIST and GETDETAIL i have created queries. Modify is also simple (i am creating a form to edit and commiting data once i click on save). But to implement CREATE and DELETE we dont have any reference.
Regards,
Vinay

Hi,
Now i know the answer
There is a typed method on the service component model class for root node creation. Example for binding a new root instance to a context node:
wdContext.nodeCurrentEmployee().bind(Collections.singleton(model.createEmployeeSdoEmployee()));
where model is your webdynpro model.Employee is a context node model bounded to Employee model class.This node has to be manually created in context(and then can be context mapped and bound to elements in view)
wdContext.nodeCurrentEmployee().setLeadSelection(0);
Creating a child is done on the root itself, but persisting it is a two step process:
address = employeeRootNode.createNewAddresss(); <- this only creates the instance in memory
where employeeRootNode is the model object for which the child has to be created. If the element for which the child has to be created exists in context then it can be got by
wdContext.nodeEmployee().currentEmployeeElement.model()
employeeRootNode.addToAddresss(address);  <- this persists the new instance
wdContext.nodeCurrentAddress().bind(Collections.singleton(address));
wdContext.nodeCurrentAddress().setLeadSelection(0);
Delete of a root is also done on the sc model class:
model.removeEmployeeSdoEmployee(employeeRootNode);
Delete of a child is done one the root:
employeeRootNode.removeFromAddresss(address);
Hope this helps.
Regards,
Vinay
Edited by: Vinay TS on May 5, 2008 8:31 AM

Similar Messages

  • BAPI for purchase order .. to create and delete confirmation

    HI Gurus
    I need to create and delete PO(Purchase order) confirmation in SAP 4.7 R3 .
    Please let me know which BAPI i can use for .. in SAP 4.7
    1. Create PO confirmation
    2. Delete PO confirmation
    Many thanks and regards
    Sandeep Sharma

    Hi Sandeep,
    In SAP 4.7 R3 & ECC 5.0. we don't have BAPI to delete / create PO confirmatons.
    Use this FM for both : ME_CONFIRMATION_UPDATE
    In addition to above , we need to use this FM : ME_CONFIRMATION_REDISTR_ITEMS , for PO item update in MD04 transaction.
    In addtion to above 2 FM, you need to used Change doucment FM for write log data.
    Thanks.

  • How to identify combination of created and deleted Bank Details

    Hi Experts,
    I will develop a report similar to standard report RFKABL00. The requirement is to display the date, time, vendor number, vendor name, changed by, field name, company, purchasing org, new value and old value everytime a user make a change on the bank details (Bank Key and Bank Account only in XK02).
    The content of field name will be either Bank Key or Bank Account with its corresponding old and new value. Using transaction XK02, I tried to replace the Bank Account of the vendor and saved the data. The created and deleted values can be found in CDPOS using: objectclas: kred, tabname: lfbk and fname: key; but it is difficult to identify the correct combination of deleted and created values. I observed that for non-key fields in LFBK table there are entries for old and new values but for key fields like bank key and bank account they have nothing.
    How will we identify the correct combination of deleted and created values if there are many entries in CDPOS?

    Murali,
    As already specified in your previous thread. You can get the id using source code. or extend the CO and print the value of s2.
    Regards,
    Gyan
    www.gyanoracleapps.blogspot.com
    www.querenttech.com

  • Help on creating and deleting xml child elements using Toplink please.

    Hi there,
    I am trying to build a toplink xml demo illustrating toplink acting as the layer between my java code and an xml datasource.
    After pulling my custom schema into toplink and following the steps in http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/jaxb/index.htm related to
    Click on Mapping Workbench Project...Click on From XML Schema (JAXB)...
    I am able to set up java code which can run get and sets against my xml datasource. However, I want to also be able create and delete elements within the xml data for child elements.
    i.e. in a simple scenario I have a xsd for departments which has an unbounded element of type employee. How does toplink allow me to add and or remove employees in a department on the marshalled xml data source? Only gets and sets for the elements seem accessible.
    In my experience with database schema based toplink demos I have seen methods such as:
    public void setEmployeesCollection(Collection EmployeesCollection) {
         this.employeesCollection = employeesCollection;
    Is this functionality available for xml backended toplink projects?
    cheers
    Nick

    Hi Nick,
    Below I'll give an example of using the generated JAXB object model to remove and add a new node. The available APIs are defined in the JAXB spec. TopLink also supports mapping your own objects to XML, your own objects could contain more convenient APIs for adding or removing collection members
    Example Schema
    The following XML Schema will be used to generate a JAXB model.
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
         elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="department">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="employee" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="employee">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="name" type="xs:string"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>---
    Example Input
    The following document will be used as input. For the purpose of this example this XML document is saved in a file called "employee-data.xml".
    <department>
         <employee>
              <name>Anne</name>
         </employee>
         <employee>
              <name>Bob</name>
         </employee>
    </department>---
    Example Code
    The following code demonstrates how to use the JAXB APIs to remove the object representing the first employee node, and to add a new Employee (with name = "Carol").
    JAXBContext jaxbContext = JAXBContext.newInstance("your_context_path");
    Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
    File file = new File("employee-data.xml");
    Department department = (Department) unmarshaller.unmarshal(file);
    // Remove the first employee in the list
    department.getEmployee().remove(0);
    // Add a new employee
    ObjectFactory objectFactory = new ObjectFactory();
    Employee newEmployee = objectFactory.createEmployee();
    newEmployee.setName("Carol");
    department.getEmployee().add(newEmployee);
    Marshaller marshaller = jaxbContext.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
    marshaller.marshal(department, System.out);---
    Example Output
    The following is the result of running the example code.
    <department>
         <employee>
              <name>Bob</name>
         </employee>
         <employee>
              <name>Carol</name>
         </employee>
    </department>

  • How to create and delete an Endeca application in Windows

    HI,
    can you please help me in ,
    how to create and delete an Endeca application inWindows machine not in Linux Machine.
    Thanks.....

    Hi,
    Steps to create an Endeca Application are clearly given in Getting Started Guide.
    http://docs.oracle.com/cd/E38680_01/Common.311/pdf/GettingStarted.pdf (Chapter 6 : Deploying a Reference Application)
    If you want to create an endeca application so as to integrate with Product Catalog system such as ATG using ATG 10.1.1 or above , then create an endeca application using the discover-data-catalog-integration reference application. Steps for doing this are documented in ProductCatalogDTGuide
    http://docs.oracle.com/cd/E38679_01/ToolsAndFrameworks.311/pdf/ProductCatalogDTGuide.pdf (Deploying the Product Catalog Application)
    To delete an Endeca Application that you have created in Windows/linux
    1. Navigate to the control directory of the application that you want to remove and execute the script
    runCommand.bat --remove-app (Removes the provisioning information with EAC admin console)
    2. Remove the instance configuration files for the application using the emgr_update command line utility
    emgr_update.bat host localhost:8006 app_name My_app action remove_all_settings prefix My_prefix
    3. You can then explicitly delete the directory in the Endeca_apps directory where you have initially created your application.
    If you are using discover-data-catalog-integration, you can remove the CAS Record Store Instances by navigating to CAS/bin directory and executing
    ./component-manager-cmd.sh delete-component -n {YOUR_APP_RECORD_STORE_NAME}
    Thanks,
    Shabari

  • How to create stored procedure for insert update and delete operations with input output paramters?

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)          
     - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)            - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.
    Why you have to pass 14 parameters for DELETE and UPDATE? Do you have any Primary Key?  If you do NOT have primary key in your table then in case you have duplicate information, SQL will update both or delete them together. You need to provide DDL of
    you table. What are the data types of fields?
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • I was cleaning my macbook pro and i deleted all my files including itunes. Then when i turn on my itunes it says the folder"itunes" cannot be found or created, and is required. the default location for this folder is inside the "music" folder. help please

    My itunes keep saying The folder “iTunes” cannot be found or created, and is required. The default location for this folder is inside the “Music” folder.iTunes needs a library to continue. You may choose an existing iTunes library or create a new one. please help i presschooseexisting cuase i have one but then it says this The  file cannot be found or created. The default location for this file is in the “iTunes” folder in the “Music” folder. please help

    I was cleaning my macbook pro and i deleted all my files including itunes
    Restore your computer from your backup. 

  • Issue trying to use a Sharepoint document library as a network drive on which a software can create and delete content

    Hi,
    With my colleagues we are using a dictation/transcription software which automatically creates files, moves them from folders to folders and deletes them. Until now, all this was done on a network drive, but the drive will soon be unavailable and
    we will eventually have to use a SharePoint document library instead, and I am currently testing this option.
    I have created a document library (with no versioning and no check out required) and I mapped it as a drive in Windows Explorer to link the SharePoint folders with the dictation software. Everything seems to work fine except
    for one thing: when the dictation software tries to move files from one folder to another, the files are pasted in the destination folder but not deleted from the original folder and an error message pops up saying "delete operation has failed".
    So the softaware is able to automatically create new content in the document library but is unable to automatically delete (I can however delete manually through the software interface).
    Any idea on what is causing this issue and how to solve it?
    Thank you

    Hi,
    According to your description, my understanding is that the documents cannot be deleted in the original folder when using the software with SharePoint library.
    I recommend to verify the things below:
    Which credential did you use to map the document library as network drive?
    If the credential was windows logon, then I recommend to check if the documents can be deleted in the network drive which was connected to SharePoint library directly.
    If the documents can be deleted in the network drive which was connected to SharePoint library, then the issue may be due to the compatibility problem between the software and WebDAV. Then you need to check the issue using third-party software provider.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Database Auditing to record DELETE operation on a schema for all tables.

    Hi,
    I am using ORACLE DATABASE 11g. I want to apply the AUDIT feature to record all the DELETE operations happening on the schema tables.
    I did the following steps but dint got the proper output :-
    I logged into the SYS as sysdba user and set
    alter system set audit_trail=DB,EXTENDED scope=spfile;then i executed this command to record the sql which will use the DELETE privileges
    AUDIT DELETE ANY TABLE;Then i bounced back my DB and for testing purpose i created a table in SCOTT schema and inserted 10 rows in it and then DELETE all the rows from it.
    As per expectation i check the view
    select * from aud$
    where spare1 like '%MACHINE1%'
    and USERID='SCOTT'
    order by ntimestamp#;The output i got is :-
    34     168368     1     1          SCOTT     I-DOMAIN\MACHINE1     MACHINE1     100     0                                                                      Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=2565))          MACHINE1                    5          21-DEC-11 07.02.58.621000 AM               0     928:5024     0000000000000000               983697018     <CLOB>     <CLOB>     But here i don't see the SQL generated in the last column.
    What i was expecting is that if i fire a DELETE statement in the schema it will get logged here and with the help of this view i will be able to see that which user from which machine executed a DELETE statement and what that statement was?
    Please let me know what step i have missed here.
    PS:- The ACTION# column shows 100 , is it the code for DELETE action. I also accessed the DBA_AUDIT_TRAIL view but din't found any usefull info their.
    Thanks in advance.

    Try instead:
    audit delete table;AUDIT DELETE ANY TABLE is auditing use of DELETE ANY TABLE privilege.

  • Problem with creating and deleting row in table

    Hi
    I'm using JDev11.1.1.2.0. I have a table "A" with primary key X -> CHAR(1). I have created Entity and ViewObject (with the primary key X).
    I created an editable Table with CreateInsert and Delete actions.
    When I click Insert, a new record is added and I enter some data. Then I move selection to some other row, and return back to the new row. When I press Delete, It does not delete the new row, but the previous one selected.
    In the console, when I navigate back two the new added record: <FacesCtrlHierBinding$FacesModel><makeCurrent> ADFv: No row found for rowKey: [oracle.jbo.Key[null ]].
    I tried the same scenario with a different table, that has RowID as a primary key and it works correctly.
    Any Idea why this is happening ? I suppose it's connected somehow with the primary key.
    Thanks
    agruev
    Edited by: a.gruev on Nov 26, 2009 9:47 AM

    I changed my entity: unchecked the X column to be primary key added RowID as a primary key. Now it works.
    What's wrong with my CHAR(1) as a primary key ?
    I also tried to add a Refresh button:
      <af:commandButton text="Refresh" id="cb3"/>and in the table add a partialTarget to the button. Now when I add new row and press the Refresh button - then it works.
    So it seems that the problem is when I add new row and enter data, the table is not refreshed and the row is missing it's primary key.
    Any solutions?
    Edited by: a.gruev on Nov 26, 2009 4:18 PM

  • Add component and Delete Operation in Process order Using COR2

    Hello,
    I need to update any process order (Add components in it and delete some operations of it) on the save of the process order.
    Transaction for change PO: COR2.
    I have found a badi to change in process order (WORKORDER_UPDATE) Method: BEFORE_UPDATE.
    But this badi has all the parameters as Importing. Hence we can not change them.
    If we use field symbols in this badi to change the values,will it make any other issues?
    I have also identified a user exit EXIT_SAPLCOBT_001 but this exit is called very late in the processing, and you cannot change data into that user exit ...check Note (86553 - Documentation on user exits).
    Kindly post your valuable comments and answers.
    Thanks in advance.
    Edited by: Nitin Nyati on Sep 1, 2010 1:09 PM

    Hi ,
    Possibility  , in C202 , user may have changes the BOM first and re-assign the phase  but in process order level Read PP master did not call
    Another possibility manually change the process order component and assign this in Phase in COR2 .Please check  whether it has been added manually in order level . 
    Regards
    JH

  • Creating and deleting users using AM Client SDK

    Hi,
    I was wondering if anyone could tell me how to create and/or delete users from Access Manager from a standalone application using the AM Client SDK? From what I have read this can be done using the AMStoreConnection class but I can't find any examples on how to use this class to add and delete users. The only examples I have found is how to retrieve data from AM. I need to keep AM and the underlying directory server in sync with another identity datastore so I need to build a process in Java to do this. Any help is appreciated.
    Thanks
    -Jeff

    Lets assume we have a HR system and the user has got deleted in the system, the HR system drop a CSV file to a specified location with the details of the user to be deleted from the IDM system . Now the CSV GTC connector would need to read the record and delete the user .
    This can be done , I have done this using API calls , but i assume that there would be someway of doing this using the OOB GTC .I think we need to set the correct value for the status field to do this ..
    I am not sure what status to set.

  • Creating and deleting symbols dynamically

    I need help with getting this particular function implemented.
    I have 2 buttons with codes which I've added
    //Create button
    $.getJSON("content.JSON")
      .success(
      function(data){
      console.log("incoming data: ", data);
      //console.log("this is current value of var s", template);
      if (s == null)
      $.each(data, function(index, item){
      //var s = sym.createChildSymbol( "template", "content");
      s = sym.createChildSymbol( "template", "content" );
      // Creating the variable that save my new instance of mySymbol
      sym.setVariable("itemContainer"+i, s);
      console.log("item container name", s);
      s.$("title").html( item.item );
      s.$("description").html( item.description );
      s.play(index * -500);
      i++;
      //console.log("'dressbtn' inside was CLICKED");
      else
    //Delete button
    for(var p = 1; p <= i; p++)
    s = sym.getVariable("itemContainer"+p);
    s.deleteSymbol();
    i = 1;
    So the two buttons one will get the items from Json and display them, and the other will clear the symbols created.
    But I've only managed to clear the symbols on stage only once, and after that I'm getting Javascript error in event handler! Event Type = element
    The reason is because I'm trying to make an app that can get information off a json file from a webserver and able to update and display the lastest information in the app. So I've to be able to allow the user to press a button to refresh the page.
    Can anyone shine some light on this?
    Dropbox - test.zip

    Hi,
    Your issues (or troubles) come from your json file. Your json file is not well formed.
    Here is a correct one:
    {"shoes":[
    {"item":"red shoe","description":"prada red shoe"},
    {"item":"black shoe","description":"Black canvas shoe"},
    {"item":"tilith shoe","description":"tilith ballet shoe"},
    {"item":"gold shoe","description":"gold ballet shoe"},
    {"item":"ganma shoe","description":"ganma canvas shoe"}
    Then your buttons code:
    1) mybtn.click:
    //get json information and display
    $.getJSON("content.JSON")
      .success( function(data){
      console.log("incoming data: ", data);
      $.each( data.shoes, function(index, item){
      var s = sym.createChildSymbol( "template", "content");
      s.$("title").html( item.item );
      s.$("description").html( item.description );
      s.play(index * -500);
      } );//each
       } );//success
    2) btn_2.click:
    //deleting shoes (symbols)
    var symbols = sym.getChildSymbols();
    $.each(symbols, function(index, item){
      console.log("symbols on stage: ",item.getSymbolTypeName());
      if (item.getSymbolTypeName() == "template") item.deleteSymbol();
    Download link: test-2 - copie.zip - Box

  • What operating systems is recommende for PDA device and for laptop?

    Hi Gurus,
    What operating system and which version is best for  run the SAP MI applications in PDA and in the laptop?
    Thanks in Advance,
    Dharani

    Hi,
    if you run MI on Laptop. it is necessary to have Java vailable. so any OS with Java should work, Windows XP is recommended. Vista will work as well in latest versions of MI. On PDA: use WinCE operating System. In latest version of MI WinCE 6.0 Professional is supported - not the MobilePhone version, only the PDA Version.
    See MI PAM for more and uptodate details.
    Regards,
    Oliver

  • Create and send file to front-end for download.

    Hi,
    In a nutshell I need to give users the possibility to download the contents of a table as a CSV file.
    From what is understood, this would happen like this:
    1)loop over the context node and write a file (table.csv) with the contents of each cell separated with a semi-colon. (or is there an API available to write the contents of an entire node/table)
    2)send this file to the front-end so that a file download automatically begins and user can save it on the hard-disk.
    Has someone done this before? If so, is it possible to share the code?
    As usual, big points will be awarded.
    Thanks!
    faB

    Hi faB,
    Refer "Exporting Context Data into Excel Using the Web Dynpro Binary Cache" by Bertram Ganz. This document will be very much helpful for you in exporting the context data into excel.
    You can get the sample code and corresponding documentation from the following link
    "Tutorial on Excel Export Using the Web Dynpro Binary Cache - 34"
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on excel export using the web dynpro binary cache - 34.htm
    You can also use HSSF API for exporting the context data into excel
    "Create an excel file from JAVA using HSSF api" by Prakash Singh
    /people/prakash.singh4/blog/2005/03/16/create-an-excel-file-from-java-using-hssf-api
    Regards,
    Santhosh.C

Maybe you are looking for

  • How can i change an interface to a class?

    I created an interface with name XXX. But when i have finished and saved it,i learn the XXX was not an interface but a class. Then i delete the interface XXX in SE24,and creat it for a class with the same name XXX. But wrong message occur " There is

  • Chose 'Export to Shared Services' on a calc script....where did it go?

    I accidentally right-click and choose 'Export to Shared Services' on a Calc script in EAS. the help file is not much...I am curious...where did this export to in Shared Services? What is the point of this feature? Thanks JTS

  • Multiple deadlines for an activity

    HI guys,            I need to create a step in which if user does not take action for 3,5,10,20 days,we send him mail on his lotus notes.Single deadline,i think,can be done by 'latest end'.but how to tackle multiple deadlines.please help me.

  • Odd exchange calender issue

    I seem to have an issue with Exchange calendar entries on iOS 4 devices.  Create a meeting in Exchange, set it to not require responses to the meeting.  Invite users. Accept the meeting.  Notice now in the calendar on the device, it is now marked as

  • Official Apple repair services refuse to repair iPhone

    I have bought an iPhone in Barcelona. Now I have a hardware problem - the upper switch on/off button has stopped working (a common problem). As I a domicile in Moscow, Russia, I was explained that I am not entitled to a warranty. This is nonsense. Th