Substitution method to get Worktable name

Hi ,
Is there a subsitution method to get Work table name created by LKM within IKM ?
I see getFrom() being used in few IKM.

Thanks Cezar.
For tyring it for me. I am trying to read those field and wirte it to a file.
My Code under Jython is
import os,sys
srccolumns = [ <%=odiRef.getColList("", " [COL_NAME]", ",", "", "UD3")%> ]
filehandle= open('/tmp/sourcecolumns.txt','w')
for col in srccolumns:
filehandle.write(col)
filehandle.close()
I get no value in my variable srccolumns.
Thanks.
Edited by: user571269 on Apr 20, 2010 12:13 PM
Edited by: user571269 on Apr 20, 2010 12:17 PM

Similar Messages

  • Substitution method to get work rep name

    Hi all,
    what is the substitution method I need to use to get the work rep name.
    Thank you,
    K

    Hi Guru,
    Thank you for the reply.
    we can use the method <%=odiRef.getPrevStepLog("INSERT_COUNT")%> to get row count only for the previous step. I have a package here with almost 20 steps in it. I want to make sure none of these 20 steps have downloaded any records. Hence, I declared a variable and did a sum(NB_INS) from SNP_STEP_LOG for that particular session. And, I then evaluated if this variable is > 0. Any other better way of doing this? Thank you
    Regards,
    K

  • Substitution Method to get hostname(ODIServer)

    Any quick substitution method I can use to get the hostname of the server the Agent is running on? Im looking for the least impact possible, could set up a variable etc. but that would mean a lot of changes in my enviroment
    If I can do so with substitution method I can swipe the repos tables in one hit.
    Many thanks
    Alastair

    Hi,
    hoping to help you could use this workaround
    -create a flexfield on pysical agent
    -create a userfunction that decodes your agent name to its internal id
    -use in your interface
    <%=odiRef.getFlexFieldValue(myFunction(odiRef.getSession("AGENT_NAME"),"<AGENT_TYPE>","FLEX_HOSTNAME")%>
    I know it's quite twisted...

  • Is there any method to get page name in managed bean? jsf2.0

    Please help. Want to get page name in managed bean (application scoped). Page invoke bean through actionListener method.
    Thanks in advance.

    So, two solutions:
    FacesContext.getCurrentInstance().getViewRoot().getViewId() - actual page
    FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap().get("referer") - url in browser

  • Integration API method to get display name

    Is there a method in Integration API to get display name of columns.
    I want a method like getDisplayName(string fieldName) returns the name displayed on Primavera UI.

    Hi Onkar,
    not sure if you already testet it like that, but as far as I know the full username of an AD user is displayed just the way it is, for an enterprise user.
    Have you checked, if the full name is filled with AD information?
    If not, you might check your settings in the CMC -> "Authentication" -> "Windows AD" -> "Import Full Name and Email Address"
    I can not check it with our test system, cause our user names are identical to our full names.
    But it might give you a hint!
    Regards
    Jan
    Edited by: Jan Fröhlich on Jul 23, 2009 1:00 PM

  • How to get the name of a method?

    How can I get the name of a method, before measure its time of execution?

    [url
    http://java.sun.com/developer/JDCTechTips/2003/tt0318.
    html#2]DISCOVERING THE CALLING METHOD NAMEThis article uses Throwable.getStackTrace() which has been around longer than the one I mentioned (Thread.getStackTrace()):
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Throwable.html#getStackTrace()
    I actually meant to show Throwable.getStackTrace() in my original post but when I did a search on it Thread's was the first one I came across.

  • How to get Interface's Internal ID using substitution methods

    Do anyone have any idea, how can I get an Interface's internal ID. Is there any substitution method that I can use to get the ID.
    I want to use this ID in the steps of Knowledge Module (KM).

    But querying SNP_POP to get the ID in a refresh variable will force me to create a package. I can't afford to do that because my KM will be used in several interfaces and packages. So, I have to find all such packages and add this variable in all of them which is a tedious task.
    Anyways, thanks for your response!
    Edited by: Sheku08 on Apr 6, 2012 2:10 AM

  • Method to get all File names in a directory

    Hallo together,
    has Java any method, to get the file names in a specific directory?
    Regards,
    Martin

    ... or simply list() if you're interested in file names only.

  • How can i get the name of a method

    i have a method which is calling another method.
    how can this submethod get the name from the main method?
    Thanks
    Thorsten

    There was a post about this a while ago, but I can't find it.
    Check out the getStackTrace method of Throwable (not the printStackTrace method). getStackTrace returns a StackTraceElement array. Each StackTraceElement has a getMethodName() method. In the returned array, the StackTraceElement at index 0 is the stack frame that the Throwable was created in, and the element at index 1 is the stack frame that your method was called from.
        public String getCurrentMethodName () {
            StackTraceElement[] st = (new Throwable()).getStackTrace();
            // Index 0 is the stack frame of "getCurrentMethodName"
            // Index 1 is the stack frame of the method that called this.
            // Index 2 is the stack frame of the method that called THAT.
            // Note that st[1] should always exist because this method
            // will always be called from another method (main, at very
            // least).  
            return st[1].getMethodName();
        public void myMethod () {
            System.out.println("The name of this method is " + getCurrentMethodName());
        };Hope that helps. I didn't test it, but it should work.
    Jason

  • Variable Substitution Method

    Hi,
    When Im going through the variable substitution method with respect to the target directory:
    with the help of the blog
    An interesting usage of Variable Substitution in XI
    I dint understand what is the SID here. SID of different systems like DEV system, PRD system and etc. What exactly is an SID?
    If we take SID as a variable in the variable substitution method, then the value to VAR will be getting from the header i.e, Receiver_Service.
    From where does the Receiver_Service gets the SID? whenever the system is changed from DEV to PRD or to someother.
    Kindly let me know if i can get any such other blogs on this scenario.
    Thanks in Advance,
    Divya

    Hi ,
    As said above Message header contains the following informations
    sender_party
    sender_service
    receiver_party
    receiver_service
    interface_name
    interface_namespace
    message_id
    message_id_hex
    SID stands for System ID and is a three character unique name for a SAP system. It will be different for different systems like for Dev system it may be XXX and for quality system say YYY and similarly for production system say ZZZ. Message header values are accessed dynamically.
    Thanks!

  • How to get agent name dynamically

    Hi All,
    Is there any ODI method to get the agent name using which the current jobs are executing.
    Thanks,

    Hi,
    Yes, <%=odiRef.getSession("AGENT_NAME")%> Substitution API will retrieve the PHYSICAL agent which is running the current job.
    Please explore oracledi_api_reference.pdf for more info.
    Thanks,
    Guru

  • ODI substitution method in procedure

    Hi Gurus,
    I want to create an ODI procedure which will execute the code like
    delete from target_table where target_table.column in ( select some_other_table.column from some_other_table where some_condition )
    I want to use ODI substitution method for replacing target_table ,target_table.column ,some_other_table.column .
    Tried with getTable() Method , but it seems (to me) that it works only on KM and not on procedure .
    the following code returns error /exception "invalid table name specified "
    delete from <%=odiRef.getTargetTable("RES_NAME")%>
    By the way my source/target technology is Oracle.
    Where am I going wrong ?
    --Pujan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    can any one help me in this ?
    Observer the following
    In ODI package OdiOutFile , if I specify this command
    SELECT COUNT(1) FROM <%=odiRef.getObjectName("L","EMP","LOG_SRC","D")%>
    In the out file I get the correct command as SELECT COUNT(1) FROM SCOTT.EMP
    But if I specify the same command in a procedure then it is ruturning the following
    Description Tab : select count(1) from < % = odiRef.getObjectName("L","EMP","LOG_SRC","D") % >
    Execution Tab: 903 : 42000 : java.sql.SQLException: ORA-00903: invalid table name
    java.sql.SQLException: ORA-00903: invalid table name
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    --Pujan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can substitution methods other than the Global be used in a procedure ?

    Hi All,
    I am very much new to ODI .Apologies if the question seems silly.
    As part of an exercise I am working with ODI variables and substitution methods.
    My question is substitution methods like odiRef.getColList,odiRef.getFrom,getTargetColList() used in KM's for Code Generation while executing an interface,
    can they be used in a ODI procedure giving the necessary parameters as they require .
    Eg : Command on source :
    select     
         <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "")%>
    from <%=odiRef.getObjectName( "TABLE_NAME" )%>
    Command on target :
    insert into <%=odiRef.getTable("L", "TABLE_NAME", "D")%>
         <%=odiRef.getColList("", "[CX_COL_NAME]", ",\n\t", "","")%>
    values
         <%=odiRef.getColList("", ":[CX_COL_NAME]", ",\n\t", "","")%>
    Ofcourse ,this is what an interface does but my requirement is to pass table name as variables and run this code iteratively to load targets,which again will be passed as variable.
    Will this run as a ODI procedure ?I tried and am getting exception errors.The getobjectName being global works fine with the proper table name generated in the code,but the getCollist does not work .Hence wanted to know if this standalone procedure is possible or will this code run only as part of KM over a interface?
    Thanks,

    Hi ,
    I had gone through this document,and from other sources also got a same answer that it cant be used.But is there a way it can be done?
    Actually we have many number of the small tables with just 10 records to be brought into the warehouse.The idea is to instead of doing it via an interface , why not try with a control table with an just the relevant entries and a procedure as above posted code.
    Some ideas would help.
    Thanks,

  • FileName using Variable Substitution Method

    Hi SAP experts,
    I need some advise regarding this.
    I have here sample structure of message,
    DT_Root  --> root node
      Tree  --> occurence is 1 to unbounded
        SubTree1
        SubTree2
        SubTree3
    What will be my File Content Conversion parameters to be set in Variable Substitution Method in order for me to get the value of SubTree3 and make it as my filename?
    Also, the value of SubTree3 must not be present on my actual payload..
    var1:payload,1,SLI,1   ---?? what if it is unbounded?
    Kindly advise.
    Thank you very much.

    Hi Raj,
    I cannot open the link.
    Anyway, is it ok if you will advise me regarding my question a while ago?
    I have here sample message structure,
    CSV --> Message Type
    SLI  --> 1 .. unbounded (occurence)
      subSLI1
      subSLI2
      subSLI3
    FileNode --> 1..1 (occurence)
      FileName --> 1..1
    Here's my parameters in Variable Substituion method,
    FileName Scheme: %var1%.csv
    var1   --  payload:CSV,1,FileNode,1,FileName,1
    File Content Conversion Parameters:
    Recordset Structure: SLI,FileNode
    SLI.addHeaderLine: 3
    SLI.headerLine: PERIO;EAN;ILN,....
    SLI.fieldFixedLengths: 8;10;13;...
    SLI.fixedLengthTooShortHandling: Cut
    SLI.fieldSeparator: ;
    SLI.endSeparator: 'nl'
    FileNode.fieldFixedLengths: 0
    FileNode.fixedLengthTooShortHandling: Cut
    I must the output flatfile with a value of the filename in the FileName field.
    And the content of the flatfile must look like this,'
    PERIO;EAN;ILN;SALES;TURNO;PERFL;SUBSFL;SALUN;%CURRENCY%;STOCK;STOUN;ARTNR;ARKTX
    20071020;737052020198 ;4333342000008;         1;        9.95;W;X;ST ;EUR;0000000000;ST ;                                  
    20071020;737052056852 ;4333342000008;         1;       14.50;W;X;ST ;EUR;0000000000;ST ;                                  
    20071020;737052073552 ;4333342000008;         1;       12.95;W;X;ST ;EUR;0000000000;ST ;                                  
    *each field has a fixed field length.
    Kindly advise if my set parameters are correct.
    Thank you very much!

  • How get controls name from a class private data?

    How can i get the names of the controls inside a class private data?
    I am using Actor Framework and trying to create a method tha will be executed when launch the actor. This method need a list o all the control names inside the class data to search for the initial value inside a configuration file (config.ini), the key on the configuration file will be the name of the control.
    Thanks.
    Solved!
    Go to Solution.

    You are already making the overriding method just because you have to write to the Bundle By Name.  And then how are you going to handle all of the data types the keys could be.  You are making things more difficult than it should be for really very little benefit.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Rescue and Recovery failed destination network location can no longer be reached

    W510, running Windows 7 Pro SP1,  updated with ThinkVantage including BIOS 1.37 along with Rescue and Recovery 4.31 yesterday. Using Backup locations "Local hard drive" had not problem, but when it was set to "Network", it gave me "The backup failed

  • How to make windows 8.1 compatible with dng converter 8.1?

    I have installed the DNG Converter 8.1 so that I can view/edit RAW files on Photoshop Elements 12, but Windows 8.1 states "the source folder does not contain any supported camera raw files".  I have an Sony Alpha 6000 (version 8.4), and have moved th

  • Multiple query update

    Hi i am create a site for a solicitors which allows the clients to be able to keep updated on there case. The solicitors input the updates so that the clients can view there progress. I need to be able to update 2 or 3 records in a table which all ha

  • Error In MySQL Query With DATE_FORMAT

    this produses an empty query when it shouldn't. I've made some error when using DATE_FORMAT and filtering by MONTH and YEAR but not sure how to fix it: mysql_select_db($database_VALUATIONS, $VALUATIONS); $query_valuations = sprintf("SELECT val_Trans_

  • OC4J:BC4J;JSP;OC4J hangs after refresh

    Hi All, I've deployed my JSP-aplication which uses BC4J. The BC4J are deployed as plain jar-files. Everything runs well, until.... When i click my refresh-button in my browser several times real quick OC4J will hang! When I start a new session on a d