Global Declartion for Transformation

Hi All,
Is it possible to create a global variable or intertable which can be available in all the data package of a load.
When I use Static internal table or normal internal table in the global declartion, the content of the initernal table is refreshed for next package.
Regards
Suresh Kumar

Hi,
Here is an extract from the link provided by vikash that is meant for your..issue.
Procedure
You are in the routine editor. To create a routine, enter the following:
1.      Between $$ begin of global ... and $$ end of global ...  you can define the global data declarations 'CLASS DATA'. These are available in all routines. Data declarations with u2018DATAu2019 can only be accessed in the current package.
This means that you can use intermediate results in other routines, for example, or reuse results when you call a routine again at a later time.
When you perform serial loads, one process instance is used for the entire request. In this case, data with the u2018CLASS DATAu2019 data declaration can be accessed for the entire request (all packages).
Several process instances are used when you perform parallel loads.
A single process instance can be used a more than once, depending on the number of data packages to be processed and the number of available process instances. This means that with parallel loads, data with the 'CLASS DATA' data declaration is not initialized for each data package and may still contain data from predecessor packages.
For this reason, use 'CLASS DATA' or 'DATA' for the global data, depending on the scenario.
In the routine editor, a maximum of 72 characters per line are currently permitted. Any additional characters are cut off when you save.
Hope this helps
Regards
Raj

Similar Messages

  • What for? (2nd part global declaration in transformation)

    Hi Experts,
    does anybody know, what for is the 2nd part global declaration in a routine of a transformation?
    Myself I'm a developer, so I can differ between global and local declaration in a class-definition. But the second possibility to declare variables is outside of class-definition and class-implementation.
    I checked start routine, end routine and character/ keyfigure routine. I can see both of the declaration. Does it makes any sence to use this declaration?
    $$ begin of global - insert your declaration only below this line  -
        ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
    $$ begin of 2nd part global - insert your code only below this line  *
    ... "insert your code here
    $$ end of 2nd part global - insert your code only before this line   *
    Thanks in advance.
    Greets Nico

    Hi Lijo,
    first, thank you for you answer.
    I'm not sure if I got it.
    If you want to use a global variable for all packages that will be processed, I have to declare a CLASS-DATA. That means the instance of the class won't be deleted the whole data package.
    If I want to use a global variable that will be used in character/ keyfigure routine it's sufficient to declare DATA in 1st or 2nd part of declaration.
    I understand it in a way, that the second declaration part is redundant. Is it right?
    Thanks in advance.
    Greets Nico

  • blank values using Global Address Cleanse Transform

    Hi,
    We are trying to cleanse Global Addresses using Global Address cleanse transform. (with USA and Global Engines). We are passing Locality, Region and Postal code as multiline items. In the output some of the records are not getting populated. For these records if we keep USA as defult country then the fields are getting populated. The problem is we cannot take USA as defult country because it has global addresses and for other countries also it is filling USA as country name. Why is it that without giving USA as default country the fields are not getting populated for some records?
    Below are some of the sample addresses.
    1)     10 INDUSTR. HWY MS6     LESTER     PA     19029
    2)     PO BOX_22964     JACKSON     MS     39225
    3)     306 EASTMAN     GREENWOOD     MS     38930
    4)     3844 W NORTHSIDE DR     JACKSON     MS     39209
    5)     259 W QIANJIANG RD     ZHEJIANG     CN     31440
    Can you please suggest a way to fill the countries for these addresses? Any inputs on this will be appreciated.
    regards,
    Madhavi

    Hi,
    As Lance indicates, you set up your address cleanse (for US I would suggest using the URAC transform) and map in your input fields as normal.  In the output, you will select to output postcode2 along with all the other standardized fields you want posted in the output.
    Note:  If an address is assignable using the CASS rules established by the USPS to the USPS referential data, the postcode2 will be populated.  In cases where it is not assignable, the postcode2 can be empty or the input postcode2 data could be preserved based on a user's settings.
    Thanks,
    Paula

  • Global variables in transformation routines

    Hi
    Where would I declare a global variable in my characteristic transformation routines?
    There's a spot that says:
    $$ begin of global - insert your declaration only below this line  -
    ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
    Is that it?
    Then what's the difference with:
    $$ begin of 2nd part global - insert your code only below this line  *
    ... "insert your code here
    $$ end of 2nd part global - insert your code only before this line   *
    Corne

    What for? (2nd part global declaration in transformation)

  • How to setup a global artwork for a TV Show

    Hi, I've a TV Show composed by 45 episodes where each one have his artwork but I don't know how to setup a global artwork for the TITLE of the TV Show while retaining the 45s artworks.
    ie. when watching the Tv Shows (library on iTunes) I would like to see the global artwork of the Tv Show that is different of the other 45s episodes contained.
    Bye, Roberto.

    Sorry, I don't believe that you have had a good look at the Foundation framework. I'll now hold your hand while we go through the basics.
    Here is the specific page http://foundation.zurb.com/docs/components/grid.html
    The default values are
    Em-base : 16px
    Row width: 62.5em (62.5em x 16px = 1000px)
    Columns per row: 12
    These and other default values can be changed. The fact of the matter is that if you stipulate a section width of 2 or 3 or 12 columns, the widths will automatically be calculated for you.
    In your case, if you want 7 columns, all you need to do is change the number of columns per row and the rest is done for you.

  • Setting a global margin for any documents to print

    Hello,
    On a Mac running OS X, I have a ruby/java script allowing me to open a Microsoft Word document and print it as a PDF (and extra stuffs, but that's not part of the problem). During the conversion from Word to PDF for most of my documents I get a dialog saying 'A footer of section X is outside of the printable area of the page...'. What I would like to do is not to write a script to click 'yes' when a dialog open but to try to set the default margin for printing to 0. In the 'page setup', there is an option to create customized 'paper size', with a giving width, height and margins (that I can set to 0). By default the paper size is selecting A4, but I would like to find a way to set this paper size as a default to my customized paper size for any document opened on Microsoft Word or printed as PDF!  If I select manually the customized paper size after I open the document on Word, I can print it without having the dialog.
    So my question is to know if there is a way to set a global margin for printing to 0 (let me know if I need to use Acrobat Pro, Distiller etc.), whatever the way is.
    Thank you very much!
    Vincent

    Alan,
    There is nothing specific with the SDK that you have to print a marketing document such as a Sales Order, PO, etc.  What you may want to look at in the 2005A SDK is the "PrintEvent" object.  This event lets you catch a print event in the SAP Business One application, get the relevant data that is sent to the printer and then edit it using a third-party editing tool such as Crystal Reports. The PrintEvent event provides an exit point that allows you to integrate third-party tools for reporting and document editing.
    You can look at the sample code for the PrintEvent here ...
    ..\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\20.PrintEvent
    HTH,
    Eddy

  • Create a Global Layout for Embargo Report

    Hi,
    Kindly advise on the below.
    I am attempting to create a Global Layout for the "Export Embargo Report for BP" .
    However, while attempting to save the same , the "user-specific" checkbox is turned on and grayed out.
    Kindly advise on how to go about to save a Global Layout.
    Thanks
    Jasmit

    Thanks Sameer , your understanding is correct.
    However, even if I save the layout as a default one ( Default checkbox set) , it will be applicable only for my id.. I am looking to create a layout, which everyone will be able to access the layout as well..
    Thanks
    Jasmit Kohli

  • How to create a global property for all the reports in Oracle BIP

    Hi,
    I am a new guy to Oracle BIP. I have a set of reports which is running perfectly. But now, I have to create a property something like this:
    If(bproperty)
    else
    I do not want to have a property for each of the reports but this should be a global one for all the reports.
    Please help. Your help is greatly appreciated :)
    Thanks,
    Karthik

    Hi,
    I am a new guy to Oracle BIP. I have a set of reports which is running perfectly. But now, I have to create a property something like this:
    If(bproperty)
    else
    I do not want to have a property for each of the reports but this should be a global one for all the reports.
    Please help. Your help is greatly appreciated :)
    Thanks,
    Karthik

  • Original System for transformations and DataSources

    Dear All,
    I have imported all DataSources and transformations from DEV box into QAS box. Transports ended without errors and they are working fine.
    I have the following questions, when check the Object Directory Entry (RSA1->Extras-> Object directory entry) for transformations and DataSources the Original System is QAS.
    Should not the original system be DEV?
    Transformations technical names in QAS are not the same as in DEV. Should not they have identical technical names?
    Details:
    BI70 SAP NetWeaver 2004s
    Support Packge 10
    Thanks,
    Carlos Weffer

    Transfornations' technical names change is normal.
    Also, when you see the object directory, the sysytem will eb Qa only as you would have converted the source system while transporting.
    Ravi Thothadri

  • TransformerException: No defined output handler for transformation result.

    I am attempting to write a Document object out to a file. However, when transformer.transform(domSource, streamResult) is executed, I get the following exception:
    Any thoughts?
    javax.xml.transform.TransformerException: No defined output handler for transformation result.
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:267)

    ideogon wrote:
    ngoonee wrote:
    My PERSONAL opinion, just dump OSS and never return. This is normally a flame-bait sort of topic, but for me its quite simple, regardless of merit or otherwise, with Ubuntu and the rest of the big distros adopting Pulseaudio en masse, it'll become (maybe already is) the default standard sound server, and it prefers to run on top of Alsa (don't think it can even run on an ossv4 backend).
    Not that that'll happen on Arch, with the focus on minimalism, but as more and more apps become Pulseaudio only, with perhaps support for ALSA as well, the choice will become easier. Or, put in another way, what apps require OSS and won't run on Alsa?
    See, I really don't have my background knowledge of the differences. I read up on ALSA vs. OSS in the Arch wiki when I built this system, and I made my decision somewhat arbitrarily.  I never even heard of Pulse until I started researching this particular issue with MPD.
    Anyway, thanks much for your perspective!
    The differences:-
    1. OSS runs on all UNIXes, ALSA only on Linux.
    2. OSS uses what some people call the 'right' UNIX way, where audio devices are just basically special files. ALSA abstracts the audio devices more.
    3. Due to licensing issues, Linux as a whole moved away from OSS (v3) years back. ALSA was developed to replace it.
    4. OSSv4 is currently available, supersedes OSSv3, but only has like 1 or 2 people working on it. ALSA is the default sound architecture to receive work in Linux.
    5. Because of 4. - driver support on most machines is better with ALSA, though there ARE quite a few user reports where ALSA is buggy with a particular device that OSS works just fine on. If you don't have this problem it doesn't apply to you.
    6. OSS has one big advantage over ALSA, per-app volume control built in. ALSA does not do this (you'd need Pulseaudio on top).
    Pretty basic stuff, you can get all of this and more from an afternoon of googling.

  • Version compatability for Transformation

    Hi,
    I developed code for transforming the xmls by using xsl contain java methods
    ex:
    <xsl:stylesheet version="2.0" xmlns:jiva="com.seq.sqlxml.xslutil" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="seq" >
    <xsl:output method="xml" indent="yes" encoding="utf-8"/>
    <xsl:param name="SEQXML"/>
    <xsl:template match="/">
    <ROOT>
    <xsl:attribute name="mapping-schema"><xsl:value-of select="seq:getMappingSchemaName($SEQXML)"/></xsl:attribute>
    <Cart relation="Cart" >
    <xsl:for-each select="pageXML/Cart" >
    <CartId> <xsl:value-of select="seq:getContextSequence($SEQXML, ./CartId, 'Cart_Sequence')" /> </CartId>
    </xsl:template>
    </ROOT>
    Here getContextSequence(int cartId,String CartSequence) is java function
    My problem is
    StreamSource stylesource = new StreamSource(new File(xSLFile));
    Transformer transformer = TransformerFactory.newInstance().newTransformer(stylesource);
    This code is working well for j2sdk 1.4 but it raises the Exception in JDK1.5
    Exception:
    ERROR: 'The first argument to the non-static Java function 'getMappingSchemaName' is not a valid object reference.'
    FATAL ERROR: 'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
    So please help to over come this problem.
    Thanks & regards
    Tiger

    Hi,
    I developed code for transforming the xmls by using
    xsl contain java methods
    ex:
    <xsl:stylesheet version="2.0"
    xmlns:jiva="com.seq.sqlxml.xslutil"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    exclude-result-prefixes="seq" >
    <xsl:output method="xml" indent="yes"
    encoding="utf-8"/>
    <xsl:param name="SEQXML"/>
    <xsl:template match="/">
    <ROOT>
    <xsl:attribute
    name="mapping-schema"><xsl:value-of
    select="seq:getMappingSchemaName($SEQXML)"/></xsl:att
    ibute>
    <Cart relation="Cart" >
    <xsl:for-each select="pageXML/Cart" >
    <CartId> <xsl:value-of
    select="seq:getContextSequence($SEQXML, ./CartId,
    'Cart_Sequence')" /> </CartId>
    /xsl:template>
    </ROOT>
    Here getContextSequence(int cartId,String
    CartSequence) is java function
    My problem is
    StreamSource stylesource = new StreamSource(new
    File(xSLFile));
    Transformer transformer =
    TransformerFactory.newInstance().newTransformer(styles
    ource);
    This code is working well for j2sdk 1.4 but it
    raises the Exception in JDK1.5
    Exception:
    ERROR: 'The first argument to the non-static Java
    function 'getMappingSchemaName' is not a valid object
    reference.'
    FATAL ERROR: 'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException:
    Could not compile stylesheet
    at
    t
    com.sun.org.apache.xalan.internal.xsltc.trax.Transform
    erFactoryImpl.newTemplates(TransformerFactoryImpl.java
    :824)
    at
    t
    com.sun.org.apache.xalan.internal.xsltc.trax.Transform
    erFactoryImpl.newTransformer(TransformerFactoryImpl.ja
    va:619)
    So please help to over come this problem.
    Thanks & regards
    TigerYou get that error because you are trying to invoke a method in the wrong object reference. I suspect your passed in parameter $SEQXML is not a
    com.seq.sqlxml.xslutil object instance.
    First make sure the method you are trying to invoke has the right signature. Second, if the method is not a static method, then make sure the object parameter you passed in is the correct instance.

  • Use global Variable for Formatstring

    Hello
    I wanna use a global variable for a format string. see picture. But I don't work.
    Can anybody give me an idea, why it won't work?
    Thanks a lot!!!
    Attachments:
    GlobalVariable.jpg ‏61 KB

    As others said, the problem is not the global.
    See attached a picture of how to do what you want. Since the Format String is unknown at edit time, you must provide the types to all inputs that are not DBL.
    From your example, the while loop has been coded exactly like a for loop. It can be replaced with a for loop with auto-indexing, unless you really want the local variable to be update at each iteration every 50 ms. This delay is not necessary unless the computed array is huge and you want to leave some CPU time to other code in your application. Even then you can enter a delay of 0ms to force to swap to other tasks.
    I don't know what your INT>BOOL VI does but using Scan from String you can read a number directly into a boolean. The number i
    s rounded to an unsigned integer and 0 is False and >0 is True.
    For example you scan a string for a boolean with format string %d.
    "0" --> False
    "24" --> True
    "-18" -- False (coerced to unsigned = 0)
    You scan a string for a boolean with format string %f:
    Negative number up to "0.5" --> False (coerced and rounded to 0)
    Number greater that 0.5 --> True
    LabVIEW, C'est LabVIEW
    Attachments:
    diag.jpg ‏15 KB

  • Updated 'Second GLOBAL Schema for Documentation' posted to OTN

    The Oracle OLAP Application Developer's Guide 10.2 uses a specific version of the GLOBAL schema for some of its examples. This version, global_doc.zip, has been updated and posted to OTN. In the previous version, Window users may have run into a problem installing the Second Global Schema for Documentation. It was discovered that in the global_install.sql script the line that imports the data is operating system specific. That line starts with "!imp" .
    The line to begin with "ho imp" has been changed so that it works for both Windows and Linux. You can find the new version of global_doc.zip at the following OTN site:
    http://www.oracle.com/technology/products/bi/olap/doc_sample_schemas/globalschemawithxml.html

    Hi,
    Try checking the table XML_LOAD_LOG as this contains details of all the jobs executed for your AW. I suspect the mapping for your source data columns to your cube measures and dimension keys is probably incorrect. If you check the load log table it will tell you if any rows were loaded into your cube and/or how many rows were rejected by the load. If you cannot see any data I suspect the load rejected all the records.
    Try using the following report to look at the load log table:
    select XML_LOADID as "Load ID"
    , XML_RECORDID as "Record ID"
    , XML_AW as "AW"
    , XML_DATE as "Date"
    , TO_CHAR(XML_DATE, 'HH24:MM:SS') as "Actual Time"
    , substr(XML_MESSAGE, 1, 9) as "Message Time"
    , substr(XML_MESSAGE, 9) as "Message"
    from olapsys.xml_load_log order by 1 desc, 2 descKeith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Global binding for radio buttons needs tweaking

    When selecting global binding for a text or numeric field, its corresponding field with the same name also changes to global binding.
    However when doing this for radio button exclusion groups, the other radio button groups don't automatically change to global. You have to do it manually.

    Found the problem in another topic:
    scott sheck - 1:30am Jun 29, 07 PST (#6 of 7)
    A pasted radio button is automatically added to an existing exclusion group if the last added item was a radio button. This is in the help.
    I wish there was a default to turn this off because I don't want to add a temporary item just to get a new exclusion group.

  • Solaris Cluster and Global Devices for sapmnt

    Hi,
    IHAC that is considering using Global Devices for /usr/sapmnt in a SAP environment, since they need all SAP nodes looking for the same sapmnt area. Is this a recommended approach?
    Generally, we are working with S11.1/Solaris Cluster 4.1 to implement Netweaver 7.2 and ERP 6.0.
    I appreciate your comments.
    Regards, Rafael.

    Hi Rafael,
    /usr/sapmnt is a file system, as such I assume when you ask about usage of global devices you really mean to ask about using a global file system (ie. an UFS file system with mount option global)?
    If that is true, then the answer is yes.
    The data service guide for SAP NetWeaver (http://docs.oracle.com/cd/E29086_01/html/E29440/installconfig-10.html#installconfig-34) does mention in the section "configuration considerations":
    "The SAP enqueue server and SAP replica server run on different cluster nodes. Therefore, the SAP application files (binary files, configuration files, and parameter files) can be installed either on the global file system or on the local file system. However, the application files for each of these applications must be accessible at all times from the nodes on which these applications are running."
    And the deployment example in the appendix (http://docs.oracle.com/cd/E29086_01/html/E29440/gmlbt.html#scrolltoc) makes use of a global mounted /sapstore file system.
    Regards
                 Thorsten

Maybe you are looking for

  • XSLT Mapping......xsl-xs difference

    Dear all, In one of our scenarios we have used an xsd file where in we used xs instead xs1 and at the begining there was no name space. Can you throw more light on the same as I am confused. Thanks, Srinivasa

  • Acrobat 8.1 has stopped working

    Lately, however I try to choose Create PDF from Scanner, I end up with a Windows monologue box:  Adobe 8.1 has stopped working.  A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is a

  • Error message when syncing; "required disc not found" ???

    when i try syncing i get the message that the required disc was not found,, what disc!? it never acted like this before. any helpp is greatly appreciated

  • Solution to send audio video & document by blutoot...

    what is the soloution to send file (audio video & document ) by bluetooth. though image can be send by blutooth. please do send the solution. N Solved! Go to Solution.

  • System is generating a document automatically .

    Hi all , When ever we create a case or an activity system creates one on its own . The auto generated document is not the copy of the document created by us , as it doesn't have any details .