DataSource is getting created without desired JNDI Name using ANT task

Hi,
While referring to http://weblogic-wonders.com/weblogic/2010/07/24/datasource-creation-using-ant-task-wlconfig/ when we try to create a DataSource using ANT Task <taskdef name=”wlconfig” classname=”weblogic.ant.taskdefs.management.WLConfig”/>
We are unable to provide the Desired JNDI Name for our DataSource. It takes the DataSource Name itself as the JNDI Name of the DataSource. If we specify anyother JNDI Name then it doesnt reflect in the AdminConsole. But still the DataSource testing succeeds from the AmdinConsole.
Is there anything Missing in the Ant Script?
Thanks
Jay SenSharma

I think the attribute name should be JNDINames instead of JNDIName, this is also the name I always use in WLST (and is probably also used by wlconfig), for example,
videotheekDataSource = cmo.createJDBCSystemResource('VideotheekDataSource');
jdbcResource = videotheekDataSource.getJDBCResource();
names = ['jdbc/exampleDS'];
dataSourceParams = jdbcResource.getJDBCDataSourceParams();
dataSourceParams.setJNDINames(names);
Good luck and keep up the good work.

Similar Messages

  • Datasource is getting created without jndi name

    <?xml version="1.0" ?>
         <project name="deploy" default="createDataSource" basedir=".">
         <property name="weblogic.jar" location="C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar"/>
         <property name="wls.username" value="weblogic" />
         <property name="wls.password" value="weblogic" />
         <property name="wls.url" value="t3://000.00.000.000:7001" />
         <property name="wls.targetServer" value="AdminServer" />
         <property name="wls.targetServer" value="soa_server1" />
         <property name="wls.domainName" value="SOA" />
         <property name="database.url" value="jdbc:oracle:thin:@000.00.000.000:7001:DEV" />
         <property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource" />
         <property name="database.user" value="user" />
         <property name="database.password" value="password" />
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${weblogic.jar}"/>
         <taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig" classpath="${weblogic.jar}"/>
         <target name="createDataSource">
         <wlconfig username="weblogic" password="webfsaD1" url="t3://000.00.000.000:7001:7001">
         <query domain="SOA" type="Server" name="AdminServer" property="x" />
         <create type="JDBCConnectionPool" name="TestScriptDS" >
         <set attribute="CapacityIncrement" value="1"/>
         <set attribute="DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
         <set attribute="InitialCapacity" value="1"/>
         <set attribute="MaxCapacity" value="10"/>
         <set attribute="Password" value="Password"/>
         <set attribute="Properties" value="user=user"/>
         <set attribute="RefreshMinutes" value="0"/>
         <set attribute="ShrinkPeriodMinutes" value="15"/>
         <set attribute="ShrinkingEnabled" value="true"/>
         <set attribute="TestConnectionsOnRelease" value="false"/>
         <set attribute="TestConnectionsOnReserve" value="false"/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="URL" value="${database.url}"/>
         <set attribute="Targets" value="${x}" />
         </create>
         <create type="JDBCTxDataSource" name="TestScriptDS">
         <set attribute="JNDINames" value="jdbc/testScriptDS"/>
         <set attribute="PoolName" value="TestScriptDS"/>
         <set attribute="Targets" value="${x}"/>
         </create>
         </wlconfig>
         </target>
         </project>
    Thanks in Advance,

    Hi,
    set the following parameter with in the startup script like SetSOADomainEnv.sh file under java option and restart the server.
    -Dweblogic.jndi.retainenvironment=true
    Regards,
    Kal

  • Datasource is not getting created with jndi name though ANT

    Please help me to come out of this problem. JDBC DATA SOURCE is getting created without jndi name when iam executing below ANT Script.
    <?xml version="1.0" ?>
         <project name="deploy" default="createDataSource" basedir=".">
         <property name="weblogic.jar" location="C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar"/>
         <property name="wls.username" value="weblogic" />
         <property name="wls.password" value="weblogic" />
         <property name="wls.url" value="t3://000.00.000.000:7001" />
         <property name="wls.targetServer" value="AdminServer" />
         <property name="wls.targetServer" value="soa_server1" />
         <property name="wls.domainName" value="SOA" />
         <property name="database.url" value="jdbc:oracle:thin:@000.00.000.000:7001:DEV" />
         <property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource" />
         <property name="database.user" value="user" />
         <property name="database.password" value="password" />
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${weblogic.jar}"/>
         <taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig" classpath="${weblogic.jar}"/>
         <target name="createDataSource">
         <wlconfig username="weblogic" password="webfsaD1" url="t3://000.00.000.000:7001:7001">
         <query domain="SOA" type="Server" name="AdminServer" property="x" />
         <create type="JDBCConnectionPool" name="TestScriptDS" >
         <set attribute="CapacityIncrement" value="1"/>
         <set attribute="DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
         <set attribute="InitialCapacity" value="1"/>
         <set attribute="MaxCapacity" value="10"/>
         <set attribute="Password" value="Password"/>
         <set attribute="Properties" value="user=user"/>
         <set attribute="RefreshMinutes" value="0"/>
         <set attribute="ShrinkPeriodMinutes" value="15"/>
         <set attribute="ShrinkingEnabled" value="true"/>
         <set attribute="TestConnectionsOnRelease" value="false"/>
         <set attribute="TestConnectionsOnReserve" value="false"/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="URL" value="${database.url}"/>
         <set attribute="Targets" value="${x}" />
         </create>
         <create type="JDBCTxDataSource" name="TestScriptDS">
         <set attribute="JNDINames" value="jdbc/testScriptDS"/>
         <set attribute="PoolName" value="TestScriptDS"/>
         <set attribute="Targets" value="${x}"/>
         </create>
         </wlconfig>
         </target>
         </project>
    Thanks in advance,

    Thank u very much for ur quick reply.
    C:\ANT_DataSource>ant -v
    Apache Ant(TM) version 1.8.2 compiled on December 20 2010
    Trying the default build file: build.xml
    Buildfile: C:\ANT_DataSource\build.xml
    Detected Java version: 1.6 in: C:\Oracle\Middleware\jdk160_24\jre
    Detected OS: Windows 7
    parsing buildfile C:\ANT_DataSource\build.xml with URI = file:/C:/ANT_DataSource/build.xml
    Project base dir set to: C:\ANT_DataSource
    parsing buildfile jar:file:/D:/ANT/apache-ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/D:/ANT/apache-ant-1.8.2/lib/ant.jar!/org/a
    pache/tools/ant/antlib.xml from a zip file
    Build sequence for target(s) `makeDataSource' is [makeDataSource]
    Complete build sequence is [makeDataSource, ]
    makeDataSource:
    Property "AdminServer" has not been set
    Property "SoaServer" has not been set
    Property "AdminServer" has not been set
    Property "SoaServer" has not been set
    [wlconfig] QUERY -pattern SOA:*,Name=AdminServer,Type=Server
    [wlconfig] Set size is 1
    [wlconfig] QUERY -pattern SOA:*,Name=soa_server1,Type=Server
    [wlconfig] Set size is 1
    [wlconfig] Created MBEAN: SOA:Name=SampleDS,Type=JDBCConnectionPool
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Capa
    cityIncrement 1
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Driv
    erName oracle.jdbc.xa.client.OracleXADataSource
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Init
    ialCapacity 0
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property MaxC
    apacity 50
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Stat
    ementTimeout 600
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Pass
    word USER
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Prop
    erties user=PASSWORD
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Refr
    eshMinutes 0
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Shri
    nkPeriodMinutes 15
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Shri
    nkingEnabled true
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    ConnectionsOnRelease false
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    ConnectionsOnReserve false
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    ConnectionsOnCreate true
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
    TableName SQL SELECT 1 FROM DUAL
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property URL
    jdbc:oracle:thin:@100.10.000.100:1601:DEVDB
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Targ
    ets SOA:Name=AdminServer,Type=Server;SOA:Name=soa_server1,Type=Server
    [wlconfig] Ok
    [wlconfig] Created MBEAN: SOA:Name=SampleDS,Type=JDBCTxDataSource
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property JNDINa
    me jdbc/SampleDS
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property PoolNa
    me SampleDS
    [wlconfig] Ok
    [wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property Target
    s SOA:Name=AdminServer,Type=Server;SOA:Name=soa_server1,Type=Server
    [wlconfig] Ok
    [wlconfig] QUERY -pattern SOA:*,Name=AdminServer,Type=WebServer
    [wlconfig] Set size is 1
    [wlconfig] SET -mbean SOA:Name=AdminServer,Type=WebServer,Server=AdminServer -p
    roperty LogFileName logs/access.log
    [wlconfig] Ok
    BUILD SUCCESSFUL
    Total time: 41 seconds
    Edited by: soa.dev on 12-Sep-2012 02:09

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

  • How to get unique users through resource name using OIM 10g API

    Hello,
    I have a scenario where i have a resource 'TRY' with multiple request allowed,so if user 'A' requests for
    resource 'TRY' 3 times then i can see in user 'A' resource profile 3 occurrences of resource 'TRY' & when i
    use getAssociatedUsers() API it gives me 3 occurrences of user 'A',so is there any available API for searching
    unique users based on resource name ?
    Thank-You
    Rahul Shah

    You can get the logged in user name using the below java code:
    ADFContext adfCtx = ADFContext.getCurrent();
    SecurityContext secCntx = adfCtx.getSecurityContext();
    String user = secCntx.getUserPrincipal().getName();
    HTH

  • Using Ant task wlserver/wlconfig: Received exception while creating connection for pool.

    Hi,
    I am using ant tasks wlserver and wlconfig to configure my weblogic server. while creating a connection pool as shown below
    <target name="jdbcinfo">
    <wlconfig password="weblogic"
    username="weblogic"
    url="${url}"
    <query domain="mydomain" type="Server"
    name="myserver" property="serverbean"
    />
    <create type="JDBCConnectionPool"
    name="jdbcpoolA"
    property="jdbcPoolProp">
    <set value="false"
    attribute="ShrinkingEnabled"
    <set value
    attribute="
    <set value="${serverbean}"
    attribute="Targets"/>
    The JDBCConnectionPool is created as long as I don't specified the attribute "Targets"
    Once I add the target I get the following error
    <JDBC> <BEA-001129> <Received exception while creating connection for pool "poolname" invalid arguments in call>
    Please any help will be greatly appreciated.
    Thanks

    In your applicaion module configurations check if you are using 'JDBC URL' or 'JDBC DataSource'. You should use JDBC DataSource. Then make sure that your deployment descriptor (menu 'Application->Application Properties->Deployment) has the 'Auto Generate ...' checkbox set.
    Timo

  • EJB not getting bound to JNDI name using Sun App Server upon deployment

    Hello,
    I've created a very simple "HelloWorld" EJB (2.1-style) and have successfully deployed it to my local application server (Sun Java System App Server Platform Edition 9.0). I now want to invoke the EJB (I have single stateless session bean that returns a string) using a simple remote client app (the client app is executing outside of the app server within its own JVM).
    From my client app I am able to create the InitialContext object, but I get error when trying to lookup my EJB's home object. My client looks as follows:
                   jndiProperties = new Properties();
                   jndiProperties.put("java.naming.factory.initial",
                        "com.sun.jndi.cosnaming.CNCtxFactory");
                   jndiProperties.put("java.naming.provider.url",
                        "iiop://localhost:3700"); // ORB listener is listening on port 3700...
                   context = new InitialContext(jndiProperties);
                   home = context.lookup("ejb/HelloWorldEJB"); // this line throws an exception (line 54)
                   ...The exception I receive is:
                   [java] 234  ERROR [main] net.blueslate.sample.ejb.helloworld.HelloWorldClient     - javax.namin
    g.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.
    org/CosNaming/NamingContext/NotFound:1.0]
         [java]     at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
         [java]     at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
         [java]     at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
         [java]     at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
         [java]     at net.blueslate.sample.ejb.helloworld.HelloWorldClient.main(HelloWorldClient.java:5
    4)
         [java] Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/Naming
    Context/NotFound:1.0
         [java]     at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72
         [java]     at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
         [java]     at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
         [java]     ... 4 moreHere is my ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar
         xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
         version="2.1">
         <enterprise-beans>
              <session>
                   <ejb-name>HelloWorldEJB</ejb-name>
                   <home>net.blueslate.sample.ejb.helloworld.HelloWorldRemoteHome</home>
                   <remote>net.blueslate.sample.ejb.helloworld.HelloWorldRemote</remote>
                   <local-home>net.blueslate.sample.ejb.helloworld.HelloWorldLocalHome</local-home>
                   <local>net.blueslate.sample.ejb.helloworld.HelloWorldLocal</local>
                   <ejb-class>net.blueslate.sample.ejb.helloworld.impl.HelloWorldImpl</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
         </enterprise-beans>
    </ejb-jar>Here is my sun-ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
    <sun-ejb-jar>
         <enterprise-beans>
              <ejb>
                   <ejb-name>HelloWorldEJB</ejb-name>
                   <jndi-name>HelloWorldEJB</jndi-name>
              </ejb>
         </enterprise-beans>     
    </sun-ejb-jar>I believe the root cause is that my EJB is not bound to a name within the app server. If I browse the "JNDI tree" from the app server admin console, I can see there is a root element "ejb," but there is nothing underneath. I guess I just expected to find the name of my EJB, "HelloWorldEJB." I swear I could have read somewhere in the documentation for the app server that when you deploy an EJB, the name of the EJB as specified by the "<ejb-name>" element of the ejb-jar.xml deployment descriptor gets automatically bound within the naming server to its home object.
    At this point I would appreciate any insight anyone might have regarding this problem. I suspect there is something extra I need to do when deploying my EJB so that its name gets binded to its home object; I just don't have a clue at this point what that is.
    I should also mention that I have played with the parameter passed to 'context.lookup()' - I tried passing: "ejb/HelloWorldEJB", "HelloWorldEJB", etc - nothing seems to work. FWIW, if I just pass in "ejb", I don't receive an exception (I was glad to see this work since the JNDI tree-view from the app server admin console shows "ejb" as one of the root-elements within the naming-tree - this indicated to me I was on the right track in my diagnosis of the problem; i.e., it's probably not a connectivity or protocol issue)
    Thank you very much for your time and help.

    Nevermind folks - I got it to work. All my configuration was correct; I had other issues with the ejb-jar file that the verifier informed me of (my previous deployments were with the verifier turned-off).

  • Excise invoice should not get created without PGI

    Hi,
    I have a scenario where the billing document is being generated by the customer without PGI after creation of outbound delivery for exports. (This is as per customer's requirement - Copy control maintained in VTFL for the same - copying requirements 11 )
    This creates a situation - excise invoice can be created without PGI - which creates problems for customer. This should not happen.
    Customer wants a check during the excise invoice creation - excise invoice should not get created if PGI has not been done.
    Kindly advise as to how this can be done.
    Regards,
    T Saravanan

    Dear Saravanan
    Two options are there
    -  in your existing routine itself, you can specify the control in such a way that unless the preceding document is PGId
    -  apply excise user exits like J_1I7_USEREXIT_EXCISE_BEF_SAVE to achieve the requirement.
    thanks
    G. Lakshmipathi

  • Excise Invoice should not get created without J1ID data for all material

    Dear All,
    We  have a requirement that excise invoice should not get generated unless chapter ID data is maintained for all the materials in the invoice.( when there is more than one item and chapter id is not maintained for all the items)
    At present excise invoice is getting generated for single item which has chapter ID maintained and  the items without chapter ID data are left out from the excise invoice. This results in an incorrect invoice.
    We want to ensure that excise invoice is not created, unless all the items in the billing document have chapter ID maintained.
    Kindly advise as to how this can be done.
    Regards,
    T Saravanan

    Dear Muralidhar, Lakshmipathi,
    Thanks for the solution.
    I have been able to solve the problem using the user exit mentioned by you.
    Regards,
    T Saravanan

  • STO - JEX invoice getting created without Post goods issue of delivery

    Dear Experts,
                We have configured the "Stock Transport Purchase Order" process between 2 different plants within same company code. To satify the Indian legal process, after PGI issue we configured the process as "Proforma" invoice creation using Billing type ZJEX (Copy of JEX). And then Excise Invoice creation using J1IIN.
                      Now problem we are facing is, without "Post Goods Issue" of delivery ZNL also system is allowing to create the invoice using ZJEX type. We are using the standard NLN item category only. But our requirement is, without "Post goods issue" system should not allow to create the sales invoice.
    Can anybody give your suggestion on this issue.
    Thank u
    Regards,
    Nag

    Dear Experts,
            Thanks for your feedback. As per your suggestion i modified the copying requirement in to "034". But during invoice creation i am getting the message that "The item is not relevant for billing". So not successful.
    Can you please give suggestion to solve this issue
    Regards,
    Nag

  • Sales Order is getting created without quantity field getting populated?

    Hi All,
    I am creating sales order with the help of IDocs. Here I am using the standard function module IDOC_INPUT_ORDERS.
    But, when I execute this function module idocs are getting generated successfully but the quantity field is not getting updated. It is getting populates as Zero.
    With in this function module there is a perform to check_idoc_orders, when the data flow comes to this point quantity field MENGE is getting cleared.
    So just want to know what could be the reason why quantity field is getting cleared.
    Raghu

    Hello
    Q1 )
    If I change option 1 or 2 :
    1 User decides on creation if material is missing
    Answer:If Material is not Created the system wont allow to add you that material until unless you create the material master created.I am considering here that you don't have material master
    2 Creation even though no material is available
    Answer:It will allow you to create the work order.i am considering here that you don't have sufficient stock.
    Q2) what should be the expected Status for Option 1 or 2.
    Before Config it was showing
    Status is showing Mat.availability not checked ( MANC ).
    After Option 1 or 2, Expected Status ?
    Answer: You need to enter value 02 on the Availability Check field on the MRP3 tab of Material Master via TC MM02.
    you will be  get Material committed MACM after Saving the Order.
    Br
    Rakesh

  • ST22 , Need to  get the Transaction and Pgm name using a FUNCTION MODULE ?

    Hi All,
    I need to create a Report for monitoring Dumps which is seen in ST22 every day.
    The function module RS_ST22_GET_DUMPS gives the dump information . But i need to fetch the Program name and the transaction where the dump has happened for my report.(Like when we double click the alv output in ST22 and the next list gives us the complete information , Transaction , Main program name ...etc)
    Kindly suggest me and help me on this .
    Regards,
    Richard A

    Hi
    Funcion module RS_ST22_GET_DUMPS will return the program names where the dump has taken place.
    Pass this program name to function module RPY_TRANSACTION_READ to get the trascation code of the program.
    Regards
    Srilaxmi

  • How to get the CLIENT OS USER NAME using Apex

    Dear All,
    I know there are many other posts (some of them are very old) discuss about this issue. But unfortunately most of the posts endup with NO PROPER ANSWER. But still I believe that tehre has to be some way to do this. So this is my requirement.
    I am using custom authentication module and I want to get the CLIENT MACHINE OS USER NAME for that. But I do not want to do any authentication against the client user domain.
    How can I get this?
    * There are some other way to get this using VB Scripts. But thats not a real solution for this due to followings
    01. User has to manually allow to run VB scripts. So if user dissable that then we canot get the required info
    02. Its working only with specific browsers(Mainly in IE and also we can get that thing work after installing plugins to Firefox.). So this is also depends with the bvrowser and plugings.
    What I want to do is to get this info using a common way which is not depends with the browser or any thirdparty plugins.
    Thanks,
    Alex

    Its good that you did some searching in the forums before you posted the question.
    Most modern browsers would consider what you require as a security/privacy issue and prevents such information from being transmitted available(easily). IE might let you pull out this using a VB script or activex control. Browser specific addons/extension could work but they need some kind of installation to start with. Java could be a way to do it with all browsers, but the end user still has to grant access before it can do any such thing.
    Lets say you were able to pull out such information from an end user, what would be next, get his mail id from outlook ? , access his browsing history, steal credit card information or read cookies?
    Add to that , what if the end user accesses it using any other OS(linux,macintosh or even a smartphone) ? what about windows vista and windows 7 OS's , are you going to write code to handle all those cases too ?
    Here's a blog posting which explains using NTLM authentication with Apex(it still needs configuration from the end user)
    What I want to do is to get this info using a common way which is not depends with the browser or any thirdparty plugins.I guess if this is the question, then the answer would have to be no. I don't think you will be able to find a method that passes this information from the client side without any modification/configuration at their side

  • How to get the active document file name using illustrator CS2 plugin code?

    I wanna take file name from active document using illustrator plugin CS2. Plz anybody help me..
    Thanks in advance..

    AIDocumentSuite::GetDocumentFileSpecification() should get you that information. Note that it will only work properly if you've already saved the document (or opened it from a file). I'm not sure what the result looks like if you're calling that on a new, unsaved file.

  • Ls shows ??.html after creating file with arabic name using java applicatio

    Hi,
    I have a java application which is taking attachments and saving to the file system. when somebody attaches any file with the file name in arabic, the ls command shows ??.html , ????.html etc. The application is also not able to find the file later, cos it expects the arabic named file. How can I accomplish this task (" how can i rename a text file with an arabic name")
    Any help would be highly appreciated
    Many thanks in advance
    Ushas Symon

    I found a sample class that also uses HttpServlet and it won't work on my computer Either:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class Circle extends HttpServlet
        public void doGet(  HttpServletRequest request,
                            HttpServletResponse response)
                                throws ServletException, IOException
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println( "<BODY><H1 ALIGN=CENTER> Circle Info </H1>\n");
            try
                String sdiam = request.getParameter("diameter");
                double diam = Double.parseDouble(sdiam);
                out.println("<BR><H3>Diam:</H3>" + diam +
                "<BR><H3>Area:</H3>" + diam/2.0 * diam/2.0 * 3.14159 +
                "<BR><H3>Perimeter:</H3>" + 2.0 * diam/2.0 * 3.14159);
            catch ( NumberFormatException e )
                out.println("Please enter a valid number");
            out.println("</BODY></HTML>");
    }As for IE I tried setting all of my security to the lowest settings I have but it didn't work. I just noticed though that the IE explorer bar at the bottom states :
    Exception null.
    When the applet is first started. Not sure what to make of that.
    I don't think it's a dependancy error because when I make a reference to something that the compiler can't find I get a different error. Or if I miss importing something it just refuses to compile.
    I'm wondering if there's something wrong with my Java or the Servlet classes?
    Thanks
    Ga'an djin

Maybe you are looking for