Org Data from activities

Hey Pros,
I just have one short question. I search for the Table where the organizational data of an activity is stored.
Also I seach for the connection between the crmc_orderadm_h and the specific org data.
Thanks for your answers.
Greets Christian

Hi Christian,
What I can understand from the query is that you need to search the Activity data for the transaction type.
If this is the case, you can find it in CRMD_ACTIVITY_H table.
Link to this table can be found in CRMD_LINK table.
Hope this helps!
Regards,
Saumya

Similar Messages

  • Transferring ORg Data From ECC to CRM

    Hi,
    An ORg structure was maintianed manually in our CRM system. Without deleting the strucutre we tried to generate the ORg strucutre from ECC using the program CRMC_R3_ORG_GENERATE .
    Now it created problems and our products and business partners are not picking up the Sales Org Data.
    When we tried to regenerate the org using CRMC_R3_ORG_GENERATE a dump error is observed.
    We tried deleting the org strucutre using report rhrhdl00 but it didnt worked.
    Can you guys help us in bringing the Sales Org Data from the ECC

    Hello Vijay,
    you can delete the complete org structure in order to copy it again
    from the R/3. For that please use report RHRHDL00 to completely
    delete all org units.
    Enter "O" for object type and the number of your root org unit as ID.
    Enter "ORGEH" as evaluation path and execute the program (you can first
    check what will happen by leaving the "test" flag set). Kindly refer
    to the documentation attached to this report in trx. SE38. You should
    repeat this for all other root org units.
    Unfortunately this report does not delete the corresponding Business
    partners created in role Organisational unit, but they can be deleted
    by means of trx. BUPA_DEL.
    With report RHCHECKRELATIONS you might delete evetualy remained
    relations for these objects.
    Before reprocess report  CRMC_R3_ORG_GENERATE you need to
    refresh the buffer(before note 696229, generated records were
    considered as already saved in PPOMA_CRM).
    For example this report could be :
    REPORT  CRM_ORGMAN_R3_ORGDATA_DEL_GEN.
    DATA: lv_answer TYPE char1.
    START-OF-SELECTION.
    popup to confirm
      CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
        EXPORTING
          defaultoption = 'N'
          titel         = text-001
          textline1     = text-002
        IMPORTING
          answer        = lv_answer.
      IF lv_answer = 'J'.
    refresh buffer
        DELETE FROM DATABASE indx(st) ID 'KEY'.
      ENDIF.
    Execute this report and then CRM org data could be created via
    trnasaction CRMC_R3_ORG_GENERATE
    Regards, Gerhard

  • How to send Org data from sender system thorugh ALE inbound switch

    Hi All,
    Could anyone please provide some input for sending the Org Data through ALE inbound switches.
    The requirement is to make changes in the distribution model BD64 so that the org data will not be passed in the filter criteria. And when we execute PFAL then the Org data should flow directly to the receiver system through ALE switches.
    Thanks in Advance.

    Hi,
    So first you need to set your distribution model in BD64  (create model views and add message type). Please refer to note 312090 to set your filter settings. After this definition, we have to distribute the source system into the target system (Edit > Model view> distribute). In the target system, we have to generate partner profiles (environment> generate partner profiles).
    So you have to create Partner profiles (transaction WE20). The best way is to define for outbound and inbound parameters into source system and target system with message type HRMD_A.
    In the source system, we have two options :
    -Transfer IDOC immediately
    -Collect idocs
    In the target system, you have also two options:
    -Trigger by background programu2026 means that once datas are distributed, we have to run RBDAPP01 to process   them.
    -Trigger immediately (do not have to run any program)
    Then after setting this distribution model, please review the way to distribute HR datas :
    1- Using transaction PFAL, sending the objects C, O, S successively in Update mode with the infotypes 1000, 1002 and 1028 only, without using evaluation paths (all existing objects).
       => The objects will then be created without relationship, and no error must be reported.
    2- Using transaction PFAL, sending the object P in Update mode.
       => As the structure objects are already present, no error message must be generated. If some are, please analyse them, and correct them before the next step.
    3- Using transaction PFAL, sending the objects C, O, S successively in Update mode (without restrictions, or only the infotype 1001).
       => The relationships which were not sent in step 1 are then distributed.
    4- The changes pointers can now be activated and processed, as the initialization has been done (steps 1 to 3).
    Please also check note 550055 for further information,
    Hope it helps,
    Kind Regards
    Christine

  • Actual dates from confirmed activities are not rolled up to wbs

    Hi
    In my Business Scenario, I need Project Definition, WBS, and Network
    header to derive dates from activities assigned to them. I indicate the
    Project definition start date and rest of the schedule need to happen
    which is achieved through config i have done
    I have created a project with two WBS and one network attached to
    project definition. 4 activities of the network are attached to these
    WBS
    When I have done the scheduling, the basic dates are properly
    calculated for Project Definition, network header and WBS
    Now I have released the project and started confirming the activities.
    After complete conformation of 1st activity, i have schedule the
    project to see the dates. Now the dates of Project Definition, network
    header and WBS are derived by the activities which are not confirmed.
    Ideally the basic dates of Project Definition, network header and WBS
    are to be derived from activities confirmed and yet to be confirmed the
    way the basic dates are derived before confirmation.
    As a result of this the basic dates are showing wrong dates which are
    derived from unconfirmed activities
    Warm regards,
    Ramakrishna

    Hi,
    This is standard system behaviour.
    Basic dates at WBS level do not change based on activity confirmation. However, actual dates at WBS level  get updated from network activities based on confirmation.
    "Tentative actual start date for WBS element" and "Tentative actual finish date" get updated from activity confirmation in the case of WBS with activities assigned to it.
    This tentative dates can later be transferred as actual dates.
    Basic dates do not get automatically updated based on confirmation of activities
    Muraleedharan.R
    091 9880028904
    [email protected]

  • Reading the data from one component view into another component view

    Hi All,
    I have requirement to read the data from one component into another component while creating the service order. Here are the details.
    Main View for Service order: BT116H_SRVO in that we have two assignment blocks like Organizational data(BTORGSET) and amount allocation(BTAMNTALL).This two blocks are two different component which are associated with main component(BT116H_SRVO).
    I need to read the sales org data from component/View(BTORGSET/Orgsetdata) into Component/View(BTAMNTALL(HdrBillPlanDet) method DO_VALIDATE_INPUT.
    I searched in SDN but all the posts are related to the data exchange between two views in same component. But My scenario is different as explained above.
    Refer the attachments for the component link..
    Please let me know how we can achieve this one..
    Thanks,
    Sapsar.

    Finally I was able to fix my code...My Mistakes were need to read the parent node above three levels and need to use the relation entity name while reading the data..
    Below is the correction code
    IF iv_index IS NOT INITIAL.
         lr_iterator ?= collection_wrapper->get_iterator( ).
         lr_current ?= lr_iterator->get_by_index( iv_index ).
         lr_entity ?= lr_iterator->get_by_index( iv_index ).
       ELSE.
         lr_current = collection_wrapper->get_current( ).
       ENDIF.
    *loop back to root entity
             WHILE lr_entity->get_name( ) NE 'BTAdminH'.
               lr_entity = lr_entity->get_parent( ).
             ENDWHILE.
    *Get the related entity
             IF lr_entity IS BOUND.
               lr_collection ?= lr_entity->get_related_entities( iv_relation_name = 'BTHeaderOrgmanSet' ) .
               IF lr_collection IS BOUND.
                 lr_orgset_m = lr_collection->get_current( ).
    *            lr_orgset = lr_orgset_m->get_related_entity( iv_relation_name = 'BTOrgSet' ).
                 lr_orgset = lr_orgset_m->get_property_as_string( 'SALES_ORG' ).
               ENDIF.
             ENDIF.
    Thanks,
    Sapsar.

  • Extracting an Org's date from eBusiness Suite

    Hi,
    Our client has eBusiness suite 11.5.10 (PO,AP,AR,GL,etc...) running multi-org, however another company has recently acquired one of their organisations and a condition of the acquisition requires them to provide all of the data from eBusiness Suite relating to that Org
    We cannot simply provide all the data and at present the only option we think we've got is to investigate all of the tables throughout all of the apps schema's and write SQL scripts to extract it but that is obviously going to be a mammoth task.
    We don't need to purge the data at this point, just to take an extract anything that relates to the Org
    Has anybody any experience of doing this or know of any tools to help or any ideas ?
    Thanks
    Malcolm

    There are third-party solutions out there - http://www.tierdata.com/products/autopilot-platform.html (see last paragraph)
    HTH
    Srini

  • How to delete the sales org information from BP Master Data in SAP CRM 5.0

    Hi Guruu2019s
    How to delete the sales org information from BP Master Data in SAP CRM 5.0
    Thanks...
    Mahesh Pasupunuri

    Hello
    There is a report attached to [SAP Note 725857|https://service.sap.com/sap/support/notes/725857] that performs the deletion.
    Regards
    Joaquin

  • I want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these

    i want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these
    IF I CREATE SERVICE ORG WITH SERVICE SCENARIO ORG DATA PROFILE,
    MY PRICING IS NOT GETTING DETERMINED AS IT IS LINKED TO SALES ORG AND DISTRIBUTION CHANNEL THROUGH PRICING DETERMINATION SO HOW TO DO THE CUSTOMIZATION FOR THIS SITUATION
    WITH REGARDS,
    SATHISH

    Hi Satish,
    Please assign the org det. rules to org det. profile with Sales and Service scenarios and then assign the org. det. profile to transaction type. The below screenshot is just for your reference.
    Hope it would fix your issue.
    Regards,

  • Org data in Derived role differ from Parent role

    Hi there
    I need some help please, I am in the process of creating various parent / derived roles and have found that when I update the parent role (org data) and I do a generate do a derived role update the values in the org data is not correctly pulled through to the derived roles.
    e.g.
    In the parent role for Org data "Purchase Org" the previous value was "/" so that it could be specified in the derived roles should they require the split on this field, however the business has decided that they do not require a restriction on this field so I went back to the parent role and changed the value to "*", so I generated the parent role, updated the derived roles, but when I go to any of my derived roles that field value is still blank, it did not pull through the value * .
    We are currently on
    SAP_ABA  701           0005    SAPKA70105
    SAP_BASIS  701        0005     SAPKB70105
    I have created the derived roles with the parent role as the derived from role, it does pull through the values but just does not update it once I do make changes.
    Your help / suggestions would really be appreciated as I need to create MANY roles.
    Regards
    Sonja

    Hi Sonja,
    obviously there is a misunderstanding of how the derivation works....
    > Thanks guys for the feedback, but surely I do not only need to maintain the ORG data in the derived roles individually, if I have got an Org field that should be the same for all the derived roles I must be able to update the Parent role with this value which then upon generate, and generate / activate the derived roles must update the derived roles.
    -->no.
    Only the first time of derivation, if the field content in the derived roles are initial...
    help.sap.com:
    quote
    The organization level data is only copied the first time the authorization data is adjusted for the derived role. If data is maintained for the organizational levels in the derived role, and if you have maintained the organizational levels using the dialog box, the data is not overwritten by another conciliation (See SAP Note 314513).
    unquote
    The whole stuff:  http://help.sap.com/saphelp_nw70ehp2/helpdata/en/1c/c38028816c11d396bc0000e82de14a/frameset.htm
    otherwise the maintained org.fieldvalues would get overwritten by the value of the master role every time. And that is exactly, what has to be avoided!
    b.rgds, Bernhard

  • Org.data determination is possible for product scenario

    org.data determination is possible for based on product scenario in transaction like for BP ? how can we do this? Pls guide me? 
    Thanking u in advance.

    Hi
    Marketing Organization
    The marketing organization is an attribute of marketing plans and campaigns. It is part of the SAP organizational model that enables you to define how your company structures responsibilities in its marketing activities. You use the marketing organization to map the marketing logical enterprise structure to the organizational units in your company.
    The marketing organization has the following attributes:
    Product category
    Country
    Reference currency
    You use these attributes to describe the marketing organization. For example, if you base your organizational units on brands, you can use the product category for the brand.
    The marketing organization can be completely different from the sales organization or the service organization in CRM.
    Marketing organizations are relevant for campaigns and marketing plans only. They are not relevant for trade promotions or deals. Consequently, the Marketing Org. field is available for campaigns and marketing plans only.
    You can use the marketing organization attribute for:
    Authorization checks
    You can use the marketing organization in authorization checks, for example, to determine whether a user is authorized to change a particular campaign.
    There are no marketing-specific authorization objects for the marketing organization. You can add authorization checks on the level of the marketing organization by using standard Organizational Management structural authorizations, or authority object PLOG. You can go down to the level of user name to build the authorization environment. To make settings for the structural authorizations, see Customizing for SAP Web Application Server, under  Application Server  Business Management  SAP Business Workflow  Authorization Management  Structural Authorizations .
    Automatic entry and checking of marketing attributes
    The system can use the marketing organization for providing default entries to certain fields in Marketing.
    Partner determination
    For example, you can use the marketing organization to determine the appropriate marketing manager for the assigned marketing organization, and assign it to the campaign (on the Partner assignment block).
    Workflow routing
    You can assign a marketing organization to a campaign, and then start a workflow based on the attributes of the campaign. For example, you change the status of a campaign with a particular product category to For Approval. The system routs a workflow item to all users who are assigned to a marketing organization with this particular product category.
    Cost planning
    Cost planning enables you to split key figures across multiple dimensions. For example, you can use the marketing organization to distribute the costs of a campaign across several marketing organizational units.
    Reporting
    You can use the marketing organization in reporting. For example, you can measure the success of a particular organizational unit.
    Regards
    Manohar

  • Can not get data from mySql

    I prepared a GUI user connection application in NebBeans 5.5 accessing mySql database in the company server. The application run very well in desktop.
    However, when I post it to the company server web, it gets nothing from the database.
    Can any one give advice???
    Thank you in advance.
    The following is my application
    import java.util.Vector;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class UserConnection extends javax.swing.JFrame {
    //constants for database
    private final String userName = "labmanage";
    private final String password = "labmanage";
    private final String server = "jdbc:mysql://svr.corp.com/labmanage";
    private final String driver = "com.mysql.jdbc.Driver";
    private JDBCAdapter data = new JDBCAdapter(server, driver, userName, password);
    //variables
    private String user, pwd;
    private Vector<Vector<String>> userTable = new Vector<Vector<String>>();
    private Vector<String>colUserNames = new Vector<String>();
    * Creates new form UserConnection
    public UserConnection() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    userLabel = new javax.swing.JLabel();
    pwdLabel = new javax.swing.JLabel();
    userTextField = new javax.swing.JTextField();
    passwordField = new javax.swing.JPasswordField();
    submitButton = new javax.swing.JButton();
    statusLabel = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    statusTextArea = new javax.swing.JTextArea();
    changePwdButton = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("User's Connection");
    setBackground(new java.awt.Color(153, 204, 255));
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setFont(new java.awt.Font("aakar", 1, 12));
    userLabel.setText("User Name:");
    pwdLabel.setText("Password:");
    submitButton.setText("Submit");
    submitButton.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    submitButtonMouseClicked(evt);
    submitButton.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    submitButtonActionPerformed(evt);
    submitButton.addKeyListener(new java.awt.event.KeyAdapter() {
    public void keyTyped(java.awt.event.KeyEvent evt) {
    submitButtonKeyTyped(evt);
    statusLabel.setText("Status:");
    statusTextArea.setColumns(20);
    statusTextArea.setEditable(false);
    statusTextArea.setLineWrap(true);
    statusTextArea.setRows(3);
    statusTextArea.setText("Initial assigned password is \"dime\".");
    statusTextArea.setWrapStyleWord(true);
    jScrollPane1.setViewportView(statusTextArea);
    changePwdButton.setText("Change password");
    changePwdButton.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    changePwdButtonActionPerformed(evt);
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .addContainerGap()
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(userLabel)
    .add(pwdLabel)
    .add(statusLabel))
    .add(35, 35, 35)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(submitButton)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(changePwdButton))
    .add(passwordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
    .add(userTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE))
    .addContainerGap())
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .addContainerGap()
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(userLabel)
    .add(userTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(pwdLabel)
    .add(passwordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(statusLabel)
    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(15, 15, 15)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(submitButton)
    .add(changePwdButton))
    .addContainerGap(27, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void submitButtonKeyTyped(java.awt.event.KeyEvent evt) {                                     
    if(evt.getKeyCode() == KeyEvent.VK_ENTER) {
    submitButton.doClick();
    submitButton.requestFocus();
    changePwdButton.requestFocus();
    private void changePwdButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
    String command = evt.getActionCommand();
    if(command.equals("Change password")) {
    passwordField.setText("");
    //Get connection to the changing password panel
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new ChangePassword().setVisible(true);
    private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
    // TODO add your handling code here:
    String command = evt.getActionCommand();
    if(command.equals("Submit")) {
    user = getUser();
    pwd = getPwd();
    data = new JDBCAdapter(server, driver, userName, password);
    data.executeQuery("SELECT * FROM USERTABLE");
    colUserNames = data.getColumnNames();
    userTable = data.getDataTable();
    if(colUserNames.elementAt(0).equals("")) {
    statusTextArea.setText("Can not connect to database");
    boolean checkUser = false;
    int i = 0;
    while(!checkUser && i<userTable.size()) {
    if(user.equalsIgnoreCase((String) userTable.elementAt(i).elementAt(0))) {
    //Find the user in database
    checkUser = true;
    //Check user's password
    if(pwd.equals((String)userTable.elementAt(i).elementAt(1))) {
    //Check for initial default password. The user is requested
    //to change his password
    if(pwd.equals((String) "dime")) {
    statusTextArea.setText("You are requested to change your " +
    "initial assigned password. Click 'Change password' please.");
    else {
    //Set UserConnection Panel to invisible
    setVisible(false);
    dispose();
    //Get connection to the table
    if(userTable.elementAt(i).elementAt(2).equals("0")) {
    //Get connection to non-editable table
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    PVRackReportNonEdit rackReport = new PVRackReportNonEdit();
    rackReport.createAndShowDialog();
    else {
    if(userTable.elementAt(i).elementAt(2).equals("1")) {
    //Get connection to editable table
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    PVRackReport rackReport = new PVRackReport(user);
    rackReport.createAndShowDialog();
    //PVRackReport rackReport = new PVRackReport();
    else statusTextArea.setText("You do not get approval for viewing data. " +
    "Please contact the administrator for details.");
    else {
    passwordField.setText("");
    statusTextArea.setText("Please enter corrected password or" +
    "the administrator for details.");
    i++;
    if(!checkUser) {
    passwordField.setText("");
    statusTextArea.setText("Not find such user's name." +
    "contact the admistrator for details.");
    private void submitButtonMouseClicked(java.awt.event.MouseEvent evt) {                                         
    // TODO add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new UserConnection().setVisible(true);
    public String getUser() {
    return userTextField.getText();
    public String getPwd() {
    return passwordField.getText();
    // Variables declaration - do not modify
    private javax.swing.JButton changePwdButton;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPasswordField passwordField;
    private javax.swing.JLabel pwdLabel;
    private javax.swing.JLabel statusLabel;
    private javax.swing.JTextArea statusTextArea;
    private javax.swing.JButton submitButton;
    private javax.swing.JLabel userLabel;
    private javax.swing.JTextField userTextField;
    // End of variables declaration
    Here is my JDBCAdapter
    package rackdemo2;
    * This is an adaptor which transforms the JDBC interface
    * to the PVRackTableDialogue
    import java.util.Vector;
    import java.sql.*;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.event.TableModelEvent;
    public class JDBCAdapter {
    Connection connection;
    Statement statement;
    ResultSet resultSet;
    Vector<String> columnNames = new Vector<String>();
    Vector<Vector<String>> rows = new Vector<Vector<String>>();
    ResultSetMetaData metaData;
    public JDBCAdapter(String url, String driverName,
    String user, String passwd) {
    try {
    Class.forName(driverName);
    connection = DriverManager.getConnection(url, user, passwd);
    statement = connection.createStatement();
    catch (ClassNotFoundException ex) {
    System.err.println("Cannot find the database driver classes.");
    System.err.println(ex);
    catch (SQLException ex) {
    System.err.println("Cannot connect to this database.");
    System.err.println(ex);
    public void executeQuery(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    resultSet = statement.executeQuery(query);
    metaData = resultSet.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    // Get the column names and cache them.
    // Then we can close the connection.
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames.addElement(metaData.getColumnLabel(column+1));
    // Get all rows.
    while (resultSet.next()) {
    Vector<String> newRow = new Vector<String>();
    for (int i = 1; i <= columnNames.size(); i++) {
    String tempString = resultSet.getString(i);
    if(!tempString.equals("null")) {
    newRow.addElement(tempString);
    else {
    newRow.addElement("");
    rows.addElement(newRow);
    //Modify dataTable to add empty row to separate chassis
    if(numberOfColumns>1) {
    int nRow = rows.size();
    Vector<String> row = new Vector<String>();
    for(int i=0; i<numberOfColumns; i++){
    row.add("");
    if(nRow>0 || numberOfColumns>0) {
    //Adding blank row to separate chassis
    int i = 0;
    while(i<nRow) {
    if(!rows.elementAt(i).elementAt(0).equals("")) {
    if(i>0) {
    rows.add(i, row);
    i++;
    nRow = rows.size();
    i++;
    close();
    catch (SQLException ex) {
    System.err.println(ex);
    public void close() throws SQLException {
    resultSet.close();
    statement.close();
    connection.close();
    // MetaData
    public Vector<String> getColumnNames() {
    return columnNames;
    public Vector<Vector<String>> getDataTable() {
    return rows;
    public int getColumnCount() {
    return columnNames.size();
    // Data methods
    public int getRowCount() {
    return rows.size();
    }

    Thank you for your answer.
    I'm very new to mySql as server. When I was assigned
    to write the application, the administrator has set
    up mySql database in the company web server for my
    application. My program runs very when using my
    workplace desktop with java web start or with java
    web start in netbeans (all paths should be link to my
    desktop hard disk, i.e. users/application/). I can
    not run the application at home because I can not
    access to the company intranet server (for security
    purpose). The problem happens when I post the
    application in the company web page (I have to modify
    all paths in jnlp file to the company web address).
    The program then runs without exception except it
    seems that it gets no data from the database (for
    example, when I type my username, it returns that
    "There is no such user name. contact.." as what I
    code in the application for not correcting user name)
    It happens for not only using my company desktop but
    also for others.
    Please help me.
    Thank you in advance.And all this could have been answered yesterday, in your other thread, when I asked you "Is the DB configured to allow that user to connect to the DB from where that user is attempting to connect from?"
    Seeing as how you get that error, the obvious answer was, "No." At which point we could have continued.
    Configure the needed users into the DB, without forgetting to allow them access from the machines from which they are going to access from.
    Although, I agree with Rene, that you should set up a server of some sort, located on the same machine as the DB, for communicating with the DB.

  • Not able to get data from ce_reconciled _transactions_v in a function after intialising the view

    Hi all ,
    I have written a function  to  get the gl_date from ce_reconcilied transactions_v . but when i call th function in a select query , it is not returning any data.
    I have used the following intialization in the function
    Mo_Global.set_policy_context('S',p_org_id);
    cep_standard.init_security;
    But when i use anonymous block to get gl_date printed it is fetching data from the view.
    Below is the  code for Function
    CREATE OR REPLACE Function l3get_gl_date(p_org_id NUMBER,p_statement_line_id NUMBER)
    RETURN DATE
    AS
    v_gl_date DATE;
    ct NUMBER;
    BEGIN
    Mo_Global.set_policy_context('S',p_org_id);
    cep_standard.init_security;
    SELECT count(*) into ct from ce_reconciled_transactions_v where org_id=p_org_id ;
    dbms_output.put_line('count:' ||ct || 'org ' ||p_org_id || ' line ' ||p_statement_line_id);
    SELECT  gl_date INTO v_gl_date
      FROM ce_reconciled_transactions_v where statement_line_id=p_statement_line_id;
      RETURN v_gl_date;
    EXCEPTION
    WHEN OTHERS
    THEN
    dbms_output.put_line('unable to get GL_DATE' ||SQLERRM);
    RETURN NULL;
    END;
    below is tha anonymous block
    declare
    p_org_id NUMBER;
    p_statement_line_id NUMBER;
    ct NUMBER;
    v_gl_date DATE;
    BEGIN
    select org_id into p_org_id from ce_bank_acct_uses_all where bank_account_id=10911;
    select statement_line_id  into p_statement_line_id from ce_statement_lines where statement_header_id=41130 and line_number=4;
    Mo_Global.set_policy_context('S',p_org_id);
    cep_standard.init_security;
    SELECT count(*) into ct from ce_reconciled_transactions_v where org_id=p_org_id ;
    dbms_output.put_line('count:  ' ||ct || 'org  ' ||p_org_id || ' line  ' ||p_statement_line_id);
    SELECT  gl_date INTO v_gl_date
      FROM ce_reconciled_transactions_v where statement_line_id=p_statement_line_id;
    dbms_output.put_line('GL Date:   ' || v_gl_date);
    EXCEPTION
    WHEN OTHERS
    THEN
    dbms_output.put_line(SQLERRM);
    END;
    please suggest .

    Hi,
    Try adding the following code so we can verify the org is set in your function:
    Add to the definition:
    v_org_id number;
    Add after setting the policy:
    select MO_GLOBAL.get_current_org_id()
    into v_org_id from dual;
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Current MO Org_id='||v_org_id);
    This will verify that the org_id was set.
    Are you getting any errors, or simply no data found.
    Cheryl

  • Upload data from excel to crm using BDOC possible or not

    Hi all,
    I need to upload data from excel to crm(opportunity management) .is it possible using bdoc or not. Please provide the list of methods to upload data from EXCEL and also provide the best method for this scenario .

    BDocs are used to transfer data from one SAP system to another like from CRM to ECC or R3.
    If u want to upload data from excel to CRM, this can be done with the help of idocs and not bdocs (method 1 - using LSMW).
    Take help of a crm technical consultant and define lsmw projects. The project will take care of field mapping and conversion. Once that is done, 4 steps need to be done.
    1. Read data
    2. Convert data
    3. Generate idocs
    4. Post idocs
    Once the posting of idocs happen error-free, the data will be available in crm system.
    Another method will be using transaction SECATT.
    Here u can define test scripts and record what all activities are done in a transaction. Then define ur test configs which will contain the excel sheet data and then upload the data.
    Reward with points if this helps.

  • When I extracting data from DSO to Cube by using DTP.

    When i am extracting data from DSO to Cube by using DTP.
    I am getting following erros.
    Data package processing terminated (Message no. RSBK229).
    Error in BW: error getting datapakid cob_pro (Message no. RS_EXCEPTION105).
    Error while extracting from source 0FC_DS08 (type DataStore) - (Message no. RSBK242).
    Data package processing terminated. (Message no. RSBK229).
    Data package 1 / 10/04/2011 15:49:56 / Status 'Processed with Errors'. (Message no. RSBK257).
    This is the brand new BI 7.3 system. Implementing the PSCD and TRM.
    I have used the standard business content objects in FI-CA (dunning history header, item,activities) and standard Datasource (0FC_DUN_HEADER ,0FC_DUN_ITEMS, 0FC_DUN_ACTIVITIES). I have extracted data till the DSO level . when I try to pull the data to info provider level(cube) using DTP . I am getting fallowing error.
    my observation: when ever I use the DSO as source to any target like another DSO or cube. its throwing same kind of error for any flow including simple Flat file .
    please suggest any one whether do I need to maintain basic settings since its a brand new BI 7.3.
    please help me out on this issue . I am not able to move forward .its very urgent

    hello
    Have you solved the problem ?  
    I have the same error...
    as you solve this error,
    can you help me please I have the same error
    yimi castro garcia
    [email protected]

  • How do I retrieve data from a HD that cannot be repaired with utility disk?

    Hi,
    I have a macbook pro 15 inch mid 2010. It has 4gb of ram and 500gb of storage. I recently upgraded to Mavericks OSX10.9,4.
    First of all, when turning on my mac the screen just loads forever, hence it does not pick up the HD. It also displayed the circle with a line through icon once.
    Upon noticing this, I tried to repair the disk but it said it was unable to. The other disks are ok but the MAC HD says it stopped repairing when I attempted to repair it.
    Using single user mode (command + s): I tried this, but it continued to says the same i/o error code:
    disk0s2: i/o error.n
    0 [level 3] [facility com.apple.system.fs] [errtype IO] [IOType Read] [PBlkNum 57547320] [LBlkNum 67604]
    0 [level 3] [facility com.apple.system.fs] [DevNode root_device] {mountPt /] [Path /private/var/db/dyld/dyld_shared_cache_x86_64]
    And it kept going and going.
    I'm afraid to try anything else. I have no Mac back up in time machine (I know) but I have an external. Is it possible to retrieve the data by wiping the external and using the utility disk to transfer to HD to the external? Is that what people call cloning? Is this physical damage/can i still recover the data/use it and section off the damaged parts and use the spare space?
    Help would be appreciated!

    i/o errors generally mean that a part of the disk cannot be read. That can prevent the disk mounting or prevent the entire disk being read after the error.
    Disk Utility is not great at addressing issues like this & data recovery specialists are the safest (and most expensive) option for recovering data from a disk in this state.
    As others have said it's critical to avoid any use of the disk since if it's a mechanical fault it could seize or finally give up functioning.
    If you are intent on recovering 'on your own & on the cheap' you could look at ddrescue – it clones a disk by copying the data stream whilst ignoring errors from the source disk, the data on the second disk could be 'repairable' with additional tools.
    http://www.gnu.org/software/ddrescue/ddrescue.html
    TestDisk & Photorec are also good when used for the right fault.
    http://www.cgsecurity.org
    These are all *nix tools & require competence at the command line! Just installing can be too much for some non technical users.
    You also need lots of spare disks to move data onto to run the tools.
    Kappy, is CNET Downloads really a good recommendation? They have a habit of bundling other junk with third party app installers. Go straight to the vendors site would be my advice (using 'https' where available).

Maybe you are looking for