Sample Script to delete maps in FDQM

Hi All,
Can someone please provide us the sample script of deleting the Maps in FDQM.
Advanced Thanks,

Hi Tony,
When we use this option(Delete All button on the mapping grid) we are getting the Stack trace error. we were suggested to use the script to delete the Maps in FDQM.
Error Message:
Application Error
Description: An exception occurred during the execution of the current web request. Please contact the administrator to review the stack trace in the event log for more information about the error.
Please provide the sample script for delete Maps in FDM.
Thanks in advance.
Edited by: venu_reddy on May 24, 2010 10:51 AM

Similar Messages

  • Sample scripts for streams setting source 9i-- destination10g

    I need to set up streams across 9i to 10g (both in windows OS)
    tried out sucessfully setting up across 9i-->9i(using OEM - using sample by oracle ) and
    10g-->10g(http://www.oracle.com/technology/obe/obe10gdb/integrate/streams/streams.htm#t6 which uses scripts)
    I need to implement streams from 9i to 10g. the problem is:
    packages used in 10g demo are not available in 9i.
    Do we have a sample script to implement streams across 9i-->10g?

    thanks Arvind, that would be really great.Me trying to have a demo so trying the demo scripts on dept table.Me trying since a month.I have moved my 9.2.0.1.0 source to 9.2.0.7 then applied the patchset 3 for 9.2.0.7 to fix the bug as i got to know there was a bug with streams across 9i,10g
    bug no:4285404 - PROPROGATION FROM 9.2 AND 10.1 TO 10.2
    Note: Executed the same script, with 4.2.2 and not 4.2.1(it is optional) ,as when i tried to export then import and then when i tried to delete supplimental log group from target it said "trying to drop non existant group"
    also when i query capture process it is showing LCRs getting queued,propogation also showing data is propagated from source, apply doesnt have errors but showing 0 for transactions assigned as well as applied.
    looks like destination queue not getting populated though at source propagation is sucessful
    Please find
    1.scripts
    2.init parameters of 9i (source)
    3. init parameters of 10g (target)
    SCRIPT:
    2.1 Create Streams Administrator :
    connect SYS/password as SYSDBA
    create user STRMADMIN identified by STRMADMIN;
    2.2 Grant the necessary privileges to the Streams Administrator :
    GRANT CONNECT, RESOURCE, AQ_ADMINISTRATOR_ROLE to STRMADMIN;
    GRANT SELECT ANY DICTIONARY TO STRMADMIN;
    GRANT EXECUTE ON DBMS_AQ TO STRMADMIN;
    GRANT EXECUTE ON DBMS_AQADM TO STRMADMIN;
    GRANT EXECUTE ON DBMS_FLASHBACK TO STRMADMIN;
    GRANT EXECUTE ON DBMS_STREAMS_ADM TO STRMADMIN;
    GRANT EXECUTE ON DBMS_CAPTURE_ADM TO STRMADMIN;
    GRANT EXECUTE ON DBMS_APPLY_ADM TO STRMADMIN;
    GRANT EXECUTE ON DBMS_RULE_ADM TO STRMADMIN;
    GRANT EXECUTE ON DBMS_PROPAGATION_ADM TO STRMADMIN;
    BEGIN
    DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => 'ENQUEUE_ANY',
    grantee => 'STRMADMIN',
    admin_option => FALSE);
    END;
    BEGIN
    DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => 'DEQUEUE_ANY',
    grantee => 'STRMADMIN',
    admin_option => FALSE);
    END;
    BEGIN
    DBMS_AQADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => 'MANAGE_ANY',
    grantee => 'STRMADMIN',
    admin_option => TRUE);
    END;
    BEGIN
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.CREATE_EVALUATION_CONTEXT_OBJ,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.CREATE_RULE_SET_OBJ,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.CREATE_RULE_OBJ,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    END;
    BEGIN
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.CREATE_ANY_RULE_SET,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.ALTER_ANY_RULE_SET,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.EXECUTE_ANY_RULE_SET,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.CREATE_ANY_RULE,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.ALTER_ANY_RULE,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.EXECUTE_ANY_RULE,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    END;
    BEGIN
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.EXECUTE_ANY_EVALUATION_CONTEXT,
    grantee => 'STRMADMIN',
    grant_option => TRUE);
    END;
    2.3 Create streams queue :
    connect STRMADMIN/STRMADMIN
    BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_table => 'STREAMS_QUEUE_TABLE',
    queue_name => 'STREAMS_QUEUE',
    queue_user => 'STRMADMIN');
    END;
    2.4 Add apply rules for the table at the destination database :
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'SCOTT.DEPT',
    streams_type => 'APPLY',
    streams_name => 'STRMADMIN_APPLY',
    queue_name => 'STRMADMIN.STREAMS_QUEUE',
    include_dml => true,
    include_ddl => true,
    source_database => 'str1');
    END;
    2.5 Specify an 'APPLY USER' at the destination database:
    This is the user who would apply all DML statements and DDL statements.
    The user specified in the APPLY_USER parameter must have the necessary
    privileges to perform DML and DDL changes on the apply objects.
    BEGIN
    DBMS_APPLY_ADM.ALTER_APPLY(
    apply_name => 'STRMADMIN_APPLY',
    apply_user => 'SCOTT');
    END;
    2.6 If you do not wish the apply process to abort for every error that it
    encounters, you can set the below paramter.
    The default value is 'Y' which means that apply process would abort due to
    any error.
    When set to 'N', the apply process will not abort for any error that it
    encounters, but the error details would be logged in DBA_APPLY_ERROR.
    BEGIN
    DBMS_APPLY_ADM.SET_PARAMETER(
    apply_name => 'STRMADMIN_APPLY',
    parameter => 'DISABLE_ON_ERROR',
    value => 'N' );
    END;
    2.7 Start the Apply process :
    BEGIN
    DBMS_APPLY_ADM.START_APPLY(apply_name => 'STRMADMIN_APPLY');
    END;
    Section 3
    Steps to be carried out at the Source Database (V920.IDC.ORACLE.COM)
    3.1 Move LogMiner tables from SYSTEM tablespace:
    By default, all LogMiner tables are created in the SYSTEM tablespace.
    It is a good practice to create an alternate tablespace for the LogMiner
    tables.
    CREATE TABLESPACE LOGMNRTS DATAFILE 'logmnrts.dbf' SIZE 25M AUTOEXTEND ON
    MAXSIZE UNLIMITED;
    BEGIN
    DBMS_LOGMNR_D.SET_TABLESPACE('LOGMNRTS');
    END;
    3.2 Turn on supplemental logging for DEPT table :
    connect SYS/password as SYSDBA
    ALTER TABLE scott.dept ADD SUPPLEMENTAL LOG GROUP dept_pk
    (deptno) ALWAYS;
    3.3 Create Streams Administrator and Grant the necessary privileges :
    Repeat steps 2.1 and 2.2 for creating the user and granting the required
    privileges.
    3.4 Create a database link to the destination database :
    connect STRMADMIN/STRMADMIN
    CREATE DATABASE LINK str2 connect to
    STRMADMIN identified by STRMADMIN using 'str2' ;
    //db link working fine.I tested it
    3.5 Create streams queue:
    BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_name => 'STREAMS_QUEUE',
    queue_table =>'STREAMS_QUEUE_TABLE',
    queue_user => 'STRMADMIN');
    END;
    3.6 Add capture rules for the table at the source database:
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'SCOTT.DEPT',
    streams_type => 'CAPTURE',
    streams_name => 'STRMADMIN_CAPTURE',
    queue_name => 'STRMADMIN.STREAMS_QUEUE',
    include_dml => true,
    include_ddl => true,
    source_database => 'str1');
    END;
    3.7 Add propagation rules for the table at the source database.
    This step will also create a propagation job to the destination database.
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES(
    table_name => 'SCOTT.DEPT',
    streams_name => 'STRMADMIN_PROPAGATE',
    source_queue_name => 'STRMADMIN.STREAMS_QUEUE',
    destination_queue_name => 'STRMADMIN.STREAMS_QUEUE@str2,
    include_dml => true,
    include_ddl => true,
    source_database => 'str1');
    END;
    Section 4
    Export, import and instantiation of tables from Source to Destination Database
    4.1 If the objects are not present in the destination database, perform an
    export of the objects from the source database and import them into the
    destination database
    Export from the Source Database:
    Specify the OBJECT_CONSISTENT=Y clause on the export command.
    By doing this, an export is performed that is consistent for each
    individual object at a particular system change number (SCN).
    exp [email protected] TABLES=SCOTT.DEPT FILE=tables.dmp
    GRANTS=Y ROWS=Y LOG=exportTables.log OBJECT_CONSISTENT=Y
    INDEXES=Y STATISTICS = NONE
    Import into the Destination Database:
    Specify STREAMS_INSTANTIATION=Y clause in the import command.
    By doing this, the streams metadata is updated with the appropriate
    information in the destination database corresponding to the SCN that
    is recorded in the export file.
    imp [email protected] FULL=Y CONSTRAINTS=Y
    FILE=tables.dmp IGNORE=Y GRANTS=Y ROWS=Y COMMIT=Y LOG=importTables.log
    STREAMS_INSTANTIATION=Y
    4.2 If the objects are already present in the desination database, there are
    2 ways of instanitating the objects at the destination site.
    1. By means of Metadata-only export/import :
    Export from the Source Database by specifying ROWS=N
    exp USERID=SYSTEM@str1TABLES=SCOTT.DEPT FILE=tables.dmp
    ROWS=N LOG=exportTables.log OBJECT_CONSISTENT=Y
    Import into the destination database using IGNORE=Y
    imp USERID=SYSTEM@str2FULL=Y FILE=tables.dmp IGNORE=Y
    LOG=importTables.log STREAMS_INSTANTIATION=Y
    2. By Manaually instantiating the objects
    Get the Instantiation SCN at the source database:
    connect STRMADMIN/STRMADMIN@source
    set serveroutput on
    DECLARE
    iscn NUMBER; -- Variable to hold instantiation SCN value
    BEGIN
    iscn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
    DBMS_OUTPUT.PUT_LINE ('Instantiation SCN is: ' || iscn);
    END;
    Instantiate the objects at the destination database with this SCN value.
    The SET_TABLE_INSTANTIATION_SCN procedure controls which LCRs for a table
    are to be applied by the apply process.
    If the commit SCN of an LCR from the source database is less than or
    equal to this instantiation SCN , then the apply process discards the LCR.
    Else, the apply process applies the LCR.
    connect STRMADMIN/STRMADMIN@destination
    BEGIN
    DBMS_APPLY_ADM.SET_TABLE_INSTANTIATION_SCN(
    source_object_name => 'SCOTT.DEPT',
    source_database_name => 'str1',
    instantiation_scn => &iscn);
    END;
    Enter value for iscn:
    <Provide the value of SCN that you got from the source database>
    Finally start the Capture Process:
    connect STRMADMIN/STRMADMIN@source
    BEGIN
    DBMS_CAPTURE_ADM.START_CAPTURE(capture_name => 'STRMADMIN_CAPTURE');
    END;
    INIT.ora at 9i
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_dest_1='LOCATION=D:\oracle\oradata\str1\archive'
    log_archive_format=%t_%s.dbf
    log_archive_start=true
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=str1
    # Diagnostics and Statistics
    background_dump_dest=D:\oracle\admin\str1\bdump
    core_dump_dest=D:\oracle\admin\str1\cdump
    timed_statistics=TRUE
    user_dump_dest=D:\oracle\admin\str1\udump
    # File Configuration
    control_files=("D:\oracle\oradata\str1\CONTROL01.CTL", "D:\oracle\oradata\str1\CONTROL02.CTL", "D:\oracle\oradata\str1\CONTROL03.CTL")
    # Instance Identification
    instance_name=str1
    # Job Queues
    job_queue_processes=10
    # MTS
    dispatchers="(PROTOCOL=TCP) (SERVICE=str1XDB)"
    # Miscellaneous
    aq_tm_processes=1
    compatible=9.2.0.0.0
    # Optimizer
    hash_join_enabled=TRUE
    query_rewrite_enabled=FALSE
    star_transformation_enabled=FALSE
    # Pools
    java_pool_size=33554432
    large_pool_size=8388608
    shared_pool_size=100663296
    # Processes and Sessions
    processes=150
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Security and Auditing
    remote_login_passwordfile=EXCLUSIVE
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=524288
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_retention=10800
    undo_tablespace=UNDOTBS1
    firstspare_parameter=50
    jobqueue_interval=1
    aq_tm_processes=1
    transaction_auditing=TRUE
    global_names=TRUE
    logmnr_max_persistent_sessions=5
    log_parallelism=1
    parallel_max_servers=2
    open_links=5
    INIT>ora at 10g (target)
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_format=ARC%S_%R.%T
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=str2
    # Diagnostics and Statistics
    background_dump_dest=D:\oracle\product\10.1.0\admin\str2\bdump
    core_dump_dest=D:\oracle\product\10.1.0\admin\str2\cdump
    user_dump_dest=D:\oracle\product\10.1.0\admin\str2\udump
    # File Configuration
    control_files=("D:\oracle\product\10.1.0\oradata\str2\control01.ctl", "D:\oracle\product\10.1.0\oradata\str2\control02.ctl", "D:\oracle\product\10.1.0\oradata\str2\control03.ctl")
    db_recovery_file_dest=D:\oracle\product\10.1.0\flash_recovery_area
    db_recovery_file_dest_size=2147483648
    # Job Queues
    job_queue_processes=10
    # Miscellaneous
    compatible=10.1.0.2.0
    # Pools
    java_pool_size=50331648
    large_pool_size=8388608
    shared_pool_size=83886080
    # Processes and Sessions
    processes=150
    sessions=4
    # Security and Auditing
    remote_login_passwordfile=EXCLUSIVE
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=str2XDB)"
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=65536
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    sga_target=600000000
    parallel_max_servers=2
    global_names=TRUE
    open_links=4
    logmnr_max_persistent_sessions=4
    REMOTE_ARCHIVE_ENABLE=TRUE
    streams_pool_size=300000000
    undo_retention=1000
    tahnks a lot...

  • Java Sample Script

    Hi Duncan,
    I have configured the java sample script example using the credentials sent to me by apple as an administrator. However, i do not have the cgi-bin directory on my server, so i created a folder on our web server and called it media. In the instructions in the Admin itunes guide indicate using the url http://example.com/cgi-bin/iTunesU to call the script from my browser. But since the directory name is different, can't i just substitute cgi-bin in the url for media and run the http://example.com/media/iTunesU instead? The media folder containing the java scripts is placed placed on our web server which can be called using the following url from my browser: http://www.college.edu/department/media/. Any suggestion how to call the file since the directory is called different. I have tried replacing cgi-bin with media and did not work. Thanks.

    It's necessary to tell your web server about the change in CGI location. Simply changing the URL to reflect a local path change will not work.
    Consider Apache as an example. On an Apache server, there is an association between "cgi-bin" in a URL and an actual directory on your webserver. The "real" directory doesn't have to be called "cgi-bin". In fact, if your Apache server happens to be Mac OS X Server, "cgi-bin" will actually map to /Library/WebServer/CGI-Executables. In other words, if you're running Mac OS X Server, you will need to place the compiled Java code in /Library/WebServer/CGI-Executables. If you do that, then you can use http://myu.edu/cgi-bin/iTunesU style URLs. The WebServer will map "cgi-bin" to "/Library/WebServer/CGI-Executables". Note that this is ONLY for Mac OS X Server. Different web servers map "cgi-bin" differently. For example, this page:
    http://www.parkansky.com/tutorials/bdlognt.htm
    gives a rough idea of how one might think about setting up a cgi-bin look-alike on an Microsoft IIS server.

  • Looking for help with PowerShell script to delete folders in a Document Library

    I'd like to create a PowerShell script to delete old folders in a Document library that are over 30 days old. Has anyone created something like this?
    Orange County District Attorney

    Hello Sid:
    I am trying to do the same and Iam running the script to delete the subfolders inside a folder  but I have some errors. 
    Could you please take a look?
    _______Script________
    $web = Get-SPWeb -Identity https://myportal.mydomain.com
    $list = $web.GetList("ar_mailingactivity")
    $query =  New-Object Microsoft.SharePoint.SPQuery 
    $camlQuery = '<Where><And><Eq><FieldRef Name="ContentType" /><Value Type="Computed">Folder</Value></Eq><Leq><FieldRef Name="Created" /><Value Type="DateTime"><Today OffsetDays="-30" /></Value></Leq></And></Where>'
    $query.Query = $camlQuery
    $items = $list.GetItems($query)
    for ($intIndex = $items.Count - 1; $intIndex -gt -1; $intIndex--)
       $items.Delete($intIndex);
    ________Errors_______
    Unable to index into an object of type System.Management.Automation.PSMethod.
    At C:\Script.ps1:2 char:22
    + $list =$webGetList <<<< "ar_mailingactivity"]
    + CategoryInfo
    :InvalidOperation: (ar_mailingactivity:String) [], RuntimeException
    + FullyQualifiedErrorID
    :CannotIndex
    You cannot call a method on  a null-valued expression.
    At c:\Script.ps1:6 char:24
    + $items = $list.GetItems <<<< ($query)
    + CategoryInfo
    :InvalidOperation: (GetItems:String) [], RuntimeException
    + FullyQualifiedErrorID
    :InvokeMethodOnNull

  • Script to Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    You can use an external table :
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    USERNAME
    USER1
    USER2
    USER3
    SYS@db102 SQL> !cat users_to_drop.txt
    USER1
    USER2
    USER3
    SYS@db102 SQL> create table test.users_to_drop
      2  (
      3     userx   char(30)
      4  )
      5    organization external
      6  ( type oracle_loader
      7    default directory work
      8    access parameters
      9     ( records delimited by newline
    10     )
    11     location ('users_to_drop.txt')
    12  )
    SYS@db102 SQL> /
    Table created.
    SYS@db102 SQL> begin
      2     for U in (select userx from test.users_to_drop) loop
      3             dbms_output.put_line('Dropping '||U.userx);
      4             execute immediate 'drop user '||U.userx||' cascade';
      5     end loop;
      6  end;
    SYS@db102 SQL> /
    Dropping USER1
    Dropping USER2
    Dropping USER3
    PL/SQL procedure successfully completed.
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    no rows selected
    SYS@db102 SQL>

  • XSLT samples for XML- ABAP mapping

    Hi all,
    Does anyone have a XSLT samples for XML->ABAP mapping ?
    regards

    first create XSLT program by copy pasting the below given code and give the program name as "Y_TEST"
    <b>XSLT code</b>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:output indent="yes"/>
      <xsl:template match="NewDataSet">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <OUTTAB>
              <xsl:for-each select="Table">
                <OUTTAB1>
                  <AIRPORTCODE>
                    <xsl:value-of select="AirportCode"/>
                  </AIRPORTCODE>
                  <CITYOFAIRPORTNAME>
                    <xsl:value-of select="CityOrAirportName"/>
                  </CITYOFAIRPORTNAME>
                  <COUNTRY>
                    <xsl:value-of select="Country"/>
                  </COUNTRY>
                  <COUNTRYABBRIVATION>
                    <xsl:value-of select="CountryAbbrviation"/>
                  </COUNTRYABBRIVATION>
                  <COUNTRYCODE>
                    <xsl:value-of select="CountryCode"/>
                  </COUNTRYCODE>
                  <GMTOFFSET>
                    <xsl:value-of select="GMTOffset"/>
                  </GMTOFFSET>
                  <RUNWAYLENGTHFEET>
                    <xsl:value-of select="RunwayLengthFeet"/>
                  </RUNWAYLENGTHFEET>
                  <RUNWAYELEVATIONFEET>
                    <xsl:value-of select="RunwayElevationFeet"/>
                  </RUNWAYELEVATIONFEET>
                  <LATITUDEDEGREE>
                    <xsl:value-of select="LatitudeDegree"/>
                  </LATITUDEDEGREE>
                  <LATITUDEMINUTE>
                    <xsl:value-of select="LatitudeMinute"/>
                  </LATITUDEMINUTE>
                  <LATITUDESECOND>
                    <xsl:value-of select="LatitudeSecond"/>
                  </LATITUDESECOND>
                  <LATITUDENPEERS>
                    <xsl:value-of select="LatitudeNpeerS"/>
                  </LATITUDENPEERS>
                  <LONGITUDEDEGREE>
                    <xsl:value-of select="LongitudeDegree"/>
                  </LONGITUDEDEGREE>
                  <LONGITUDEMINUTE>
                    <xsl:value-of select="LongitudeMinute"/>
                  </LONGITUDEMINUTE>
                  <LONGITUDESECONDS>
                    <xsl:value-of select="LongitudeSeconds"/>
                  </LONGITUDESECONDS>
                  <LONGITUDEEPERW>
                    <xsl:value-of select="LongitudeEperW"/>
                  </LONGITUDEEPERW>
                </OUTTAB1>
              </xsl:for-each>
            </OUTTAB>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:stylesheet>
    <b>just create a type 1 program and paste the below given code.</b>
    report y_consume_webservice .
    data: wf_user type string .
    data: wf_password type string .
    types: begin of outtab1 ,
       airportcode(6)  ,
       cityofairportname(50),
       country(30)  ,
       countryabbrivation(10),
       countrycode(6)  ,
       gmtoffset(10)  ,
       runwaylengthfeet(15),
       runwayelevationfeet(15),
       latitudedegree(10)  ,
       latitudeminute(10)  ,
       latitudesecond(10)  ,
       latitudenpeers(10)  ,
       longitudedegree(10)  ,
       longitudeminute(10)  ,
       longitudeseconds(10)  ,
       longitudeeperw(10) ,
       end of outtab1 .
    data: outtab type  table of outtab1.
    data: wf_o like line of outtab .
    data: g_okcode like sy-ucomm .
    data: my_container   type ref to cl_gui_custom_container .
    data: g_dock type ref to cl_gui_docking_container .
    data: mygrid type ref to cl_gui_alv_grid .
    data: wf_field_cat type lvc_t_fcat .
    data: wf_field_cat_wa like line of wf_field_cat ,
          wf_is_layout type lvc_s_layo .
    data: wf_fld_cat type slis_t_fieldcat_alv .
    data: wf_fld_cat_wa like line of wf_fld_cat .
    data: wf_repid like sy-repid .
    data: int_tab_name type slis_tabname .
    data: xslt_err type ref to cx_xslt_exception .
    constants:
    * encoding for download of XML files
    encoding     type string value 'utf-8' .
    data: rlength type i,
          txlen type string  .
    data: http_client type ref to if_http_client .
    data: wf_string type string .
    data: wf_string1 type string .
    data: wf_proxy type string ,
          wf_port type string .
    selection-screen: begin of block a with frame .
    parameters: uri2(132) type c lower case .
    selection-screen skip 1.
    parameters: user(50) lower case,
                password(50) lower case ,
                p_proxy(100) lower case default 'proxy.xxx.com' ,
                p_port(4) default '80'.
    selection-screen: end of block a .
    at selection-screen output.
      loop at screen.
        if screen-name = 'PASSWORD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    start-of-selection .
    clear wf_string .
    concatenate
    '<?xml version="1.0" encoding="utf-8"?>'
    '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    '<soap:Body>'
    '<GetAirportInformationByCountry xmlns="http://www.webserviceX.NET">'
    '<country>' uri2 '</country>'
    '</GetAirportInformationByCountry>'
    '</soap:Body>'
    '</soap:Envelope>'
    into wf_string .
    clear :rlength , txlen .
    rlength = strlen( wf_string ) .
    move: rlength to txlen .
    clear: wf_proxy, wf_port .
    move: p_proxy to wf_proxy ,
          p_port to wf_port .
    call method cl_http_client=>create
      exporting
        host          = 'www.webservicex.net'
        service       = '80'
        scheme        = '1'
        proxy_host    =  wf_proxy
        proxy_service =  wf_port
      importing
        client        = http_client.
    http_client->propertytype_logon_popup = http_client->co_disabled.
    wf_user = user .
    wf_password = password .
    call method http_client->authenticate
      exporting
        proxy_authentication = 'X'
        username             = wf_user
        password             = wf_password.
    call method http_client->request->set_header_field
      exporting
        name  = '~request_method'
        value = 'POST'.
    call method http_client->request->set_header_field
      exporting
        name  = '~server_protocol'
        value = 'HTTP/1.1'.
    call method http_client->request->set_header_field
      exporting
        name  = '~request_uri'
        value = '/airport.asmx'.
    call method http_client->request->set_header_field
      exporting
        name  = 'Content-Type'
        value = 'text/xml; charset=utf-8'.
    call method http_client->request->set_header_field
      exporting
        name  = 'Content-Length'
        value = txlen.
    call method http_client->request->set_header_field
      exporting
        name  = 'SOAPAction'
        value = 'http://www.webserviceX.NET/GetAirportInformationByCountry'.
    call method http_client->request->set_cdata
      exporting
        data   = wf_string
        offset = 0
        length = rlength.
    call method http_client->send
      exceptions
        http_communication_failure = 1
        http_invalid_state         = 2.
    call method http_client->receive
      exceptions
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3.
    clear wf_string1 .
    wf_string1 = http_client->response->get_cdata( ).
    replace all occurrences of
        '<' in wf_string1 with '<' .
    replace all occurrences of
    '>' in wf_string1 with '>' .
    replace all occurrences of
    'xmlns=' in wf_string1 with 'xmlns:xsl=' .
    try .
        call transformation (`Y_TEST`)
                source xml wf_string1
                result     outtab = outtab.
      catch cx_xslt_exception into xslt_err.
        data: s type string.
        s = xslt_err->get_text( ).
        write: ': ', s.
        stop.
    endtry .
    break-point .
    Try this and give me your feedback.
    Regards
    Raja

  • Need a script to delete files

    Hi
    Can someone advise me on how to create a script to delete certain files from a users home account at logout?
    The files that I want deleting are .plist files in there ~/lib.../preferences folder, this is so I can ensure that all users will have the same settings for certain files next time they login again.
    Thanks

    That being said, if you you still really want to do this you can create a logout hook and write a shell script to remove the files.  See "About Daemons and Services", Appendix B on writing a logout hook.
    But a far easier way is to create Account's login item that will cause a shell script to be launched to delete the files.  You can encapsulate the shell script so it runs as an application that can be added to the Login Items.  One such encapsulator is Platypus.
    Note, rather than delete them, if you want to ensure all the specific plists have specific settings, then create a master set of them and copy the master set into the Preferences directory (being careful to observe ownership and permissions settings of course).

  • Can any one please send me sample programs using java mapping..

    <b>Can any one please send me sample programs using java mapping with input and output?</b>
    please let me know how to get started with java mapping?
    Prerequisites for java mapping ?
    What are the jars need to be deployed for SAX,DOM.  And how to do it in NWDS?
    Use of Execute() and setparameter() ... StreamTransformation?
    Some sample program using java mapping with simple logic(input and output)?

    Hi,
    Did you go thro these blogs?
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    Nice blogs to start Java Mapping.
    Go thro this one too.
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    Regards,
    P.Venkat
    Message was edited by:
            Venkataramanan

  • Rule or script to delete specific attachments in Mail?

    Some people send signature images with every email, wasting disk space and making it difficult to search for emails with useful attachments.
    I would like to have a rule or script that deletes PointlessLogo.gif from incoming mail, while leaving other attachments intact.
    A search of the archives turns up a thread from years ago asking the same thing, apparently it was not possible with OS 10.4 (https://discussions.apple.com/message/4133181#4133181).
    Does this capability exist in Mountain Lion?

    Some people send signature images with every email, wasting disk space and making it difficult to search for emails with useful attachments.
    I would like to have a rule or script that deletes PointlessLogo.gif from incoming mail, while leaving other attachments intact.
    A search of the archives turns up a thread from years ago asking the same thing, apparently it was not possible with OS 10.4 (https://discussions.apple.com/message/4133181#4133181).
    Does this capability exist in Mountain Lion?

  • Can't delete Maps 'Recents' or save 'Bookmarks!

    As title really - I have a new iPhone 4 restored with backup from my 3G. I can't delete Maps 'Recents' or save 'Bookmarks'. If I clear 'Recents', they go away but reappear sometime over the next day or so. Also, I can save Bookmarks, but they've vanished some time later! This was happening on my 3G too.
    Anyone have an idea how to fix this?

    You will lose all created data on your phone: sms, call history, all settings, app data, etc. None of that is part of your iTunes library. Contacts & calendars should already be on your computer. Like your iTunes content, you sync that back to your phone after you restore as new. There is no way to do a "selective" restore from backup. The restore from backup process is all or nothing. In your case, restoring from a corrupted backup will only continue to restore your problem, thus the suggestion you start over from scratch & restore as new. But, they are your phones & it's your choice.

  • Is there a script to delete frames?

    Hi
    is there a script to delete frames on photos?
    often i have to delete black or white frames or others colors , i 'm looking for a script to do it
    thanks
    cheers

    Well, in cases like this, the only thing I can think of is to create an action which simply crops the canvas, but place a stop action on the script to allow you to manually enter how much you want to crop. But again, you would have to manually determine how many pixels you need to crop inwards.
    I thought you were going to show an image that had (say a 20 pixel white/black border) - then I would have said you could use the magic wand (or maybe "select color"), then create an action to reverse that selection then crop, but that wouldn't work with this photo. If all the images have the same thickness of border, you can create an action to just crop the image X amount of pixels. Do ALL your images have this exact border?

  • Script for deleting objects on pasteboard

    Anyone have a script that deletes all objects and text outside the page (or margins)?

    Unfortunately in my Indi CS6 any pasteboard and spread item is "instance of spread".
    So i consider geometrical bounds:
    myDocument = app.activeDocument
    cur_Ruler = myDocument.viewPreferences.rulerOrigin;
    with(myDocument.viewPreferences){
        rulerOrigin = RulerOrigin.spreadOrigin;}
    myDocument.zeroPoint = [0,0];
    aWidth = myDocument.documentPreferences.pageWidth*2+10;
    var objs = app.documents[0].pageItems.everyItem().getElements();
    while(obj=objs.pop()){
    a_left = obj.geometricBounds[1];
    a_right = obj.geometricBounds[3];
         if(a_right <0 || a_left > aWidth){obj.remove()}
    with(myDocument.viewPreferences){
        rulerOrigin = cur_Ruler} //back to the RulerOrigin

  • I would like SAP to make sure the sample scripts still work

    I'm very grateful to Sybase and now SAP for including sample scripts within the documentation, and as separate *.vbs files (see c:\program files\Sybase\PowerDesigner nn\VB Scripts). They really help me to understand the potential of PowerDesigner, adding more meat to the bones described in the documentation; they also help me with VBscript, which is not my natural environment. Unfortunately they do sometimes need debugging before they work. For example, there's a sample script within the 'ComparisonHelper' topic in the metamodel objects help that includes illegal calls to subroutines.
    Of course, some of these scripts will have been in the documentation a long time, and have been overtaken by events such as metamodel changes, or changes to VBscript itself. Is SAP planning to go through them and bring them up to date?

    I looked into the Comparison helper a bit more, and discovered a second script on the same page. I've created a composite script that creates two LDMs, compares them with the comparison helper, and then runs the Compare() method three times with different output formats. If you'd like a copy, please contact me via metadatajunkie.wordpress.com

  • Loading external div resp. java script resp. google maps resp. php in adobe edge animate

    Hi there,
    I made some nice webpage with adobe edge, and additionaly I would like to implement store finder made with google maps. Any idea how I should do this?
    Here the website:
    http://www.heelbopps.com
    And here the map:
    http://www.heelbopps.com/maps/map.php
    What I intend to to is to make a div between contact and disclaimer and load map.php in this div.
    Here how does the look the file: map.php
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <title>Google Maps AJAX + mySQL/PHP Example</title>
        <link href="style.css" rel="stylesheet" type="text/css" />
        <script src="http://maps.googleapis.com/maps/api/js?sensor=false"
                type="text/javascript"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
        <script src="storeLocator.js" type="text/javascript"></script>
              </head>
              <body style="margin:0px; padding: 0px;" onload="load()">
                        <div>
                                  <input type ="text" id="addressInput" size="10"/>
                                  <input type="button" onclick="searchLocations()" value="Suche"/>
                        </div>
                        <div><select id="locationSelect" style="width:100%; visibility: hidden"></select></div>
                        <div id="map" style="width: 100%; height: 80%"></div>
              </body>
    </html>
    How can I implement this code in adobe edge? Please help, because I am clueless, and it has to be done today.
    Many many thanks in advance...
    Stanko

    Dear Stanko, did you get my private message about fixing top menu ?
    Zaxist

  • Where is the new location of the OLAP option DBA sample scripts?

    Hello,
    OLAP option DBA sample scripts was used to be available on http://wiki.oracle.com/page/OLAP+option+-DBASample+Scripts
    Thanks,
    Lajos

    I see now OLAP DBA Scripts http://www.oracle.com/technetwork/database/options/olap/olap-dba-scripts-393636.zip under the Download section of OLAP otn home http://www.oracle.com/technetwork/database/options/olap/index.html

Maybe you are looking for

  • Derrubar Estratégia de Liberação de Pedido - Troca de Item

    Caros, Boa tarde. Estou com o seguinte caso em um cliente. Tenho configurada a Estratégia de Liberação para Pedidos de Compra de qualquer valor. Imaginem um PC com um Item A no valor de R$ 1.000,00 e já aprovado. Se o comprador eliminar a linha do It

  • Problem in getting current Date at runtime and parsing into my own format

    Hi all, In my program....I want to get the Date(current Date)....... How can I get it.... And also I want it to change it to my own format..... I should get this at runtime.... Plz tell me which class and method to use.... Any help will be greatly ap

  • Computer clock problem or is it AstroTimes v2.1.2

    For some reason, my AstroTimes local standard time (LST) differs from its selected location by 36 hours 36 minutes. For example, the LST for Melbourne Australia should be 1715 hours 04JAN, but the time displayed in AstroTimes is 2345 hours 05JAN. The

  • Colour in black and white digital image

    how do i colour in a black and white digital image please. I have never used this programme before, so any idiots guide you can give me would be great.

  • VAT Error in Billing

    We recently began using PeopleSoft's VAT functionality in a few countries. However, we now have an issue where when we go to "-->Billing-->Maintain Bills-->Standard Billing", and when we click to "Add New Value", if we select one of the business unit