Make entry disabled column in a query input column

Hi,
I would like to disable a column to entry by the user in a query which is input enabled query.
The requirement is
Original and Current budgets are being copied from ECC (in Funds Management) - Let us say 0 and 1
remaining versions 2 - 12 are changeable versions from April to Feb. for changing.
Version 2 will be copied from version 1 (which is a current budget)
Then the users will make changes in IP to the version 2 and will retracted back to ECC.
Once the version 2 is retracted back to ECC, it will locked and version 2 will be copied to version 3 in IP.
Then the users will make changes to version 3 in IP and the same will be retracted back to ECC.
The same sequence will continue till version 12.
This version 12 will be approved in ECC and will become Original Budget in ECC.
The whole cycle continues again for the next year.
If anybody can give some inputs on this, it would be much appreciated.
Regards,
Ravi

Hi,
I would do this by developing data slices together with a concept that locks versions depending on the activities you have (e.g. closing a version and retracting it => this version is added to the "locked versions").
Hope that helps?
Regards,
Andreas

Similar Messages

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • Cannot make entries in Partner Profiles - disable buttons - WE20

    Hi all,
             I cannot make entries for inbound/outbound parameters for idoc in we20.
    The add/del buttons are disabled. Could you please let me know what could be the prob??

    Hi Ashok,
                     Thanks for the immediate reply. But this is only a test server, from SAP labs, i m accessing it online.
    I m currently doing XI implementation. Should I contact SAP then to get the authorization?

  • Add Forecasting column to a Query

    Hi,
    The user wants to add a forecasting column to a query that has the actual and plan costs. He wants the option to change the values of this column in the query. Can I use any planning cubes for this?
    My plan is to make a copy of the cube that has the the budget data, but make it real time. Add a column in the query with this cube. Make this column editable.
    Will this work? Will the history of the changes be stored in the cube, or is it a overwrite function?
    Any input will be appreciated.
    Thanks
    Sam

    Hi,
    Yes you are on the right path. Using real time cubes, you can build an input ready query using which user can make manual entries. But you need not copy your budget data (not to be edited) to real time cube. Its better to keep it and the plan data in real time cube seperatel; build a multiprovider over both the cubes and build your planning application over the multi.
    Regarding storing history of changes, it does get preserved in planning cube, but you need to check if the default planning functionality satisfies your reporting requirements. If not, you might need to implement this in your planning model.

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Query on column hierachy

    I have a problem like this
    There is a table which has two columns. (actually we can ignore other columns) say X and Y. entry in Y says that X uses Y. This is soemthing like a hierachy in a mesh structure.
    If i do a select on Y i can get the places where Y is used only in one level of the heirachy. (just above level of Y) But I want to get the places where Y is used in all the places not just as direct decendant.
    For example say there are 3 entries A,B,C. A use children a1,a2 and a2 use a3. B use b1,a2,b2. C use c1,c2 and c2 use B.
    So what i want is when i make a query where entry = 'a3' my expected result should be a2,A,B,c2 and C. Can anyone help me to do this..
    Hope this is clear

    Duplicate Thread.
    Answers over here...
    Query on column hierachy

  • SharePoint 2013 search analytics reports - 'query text' column value is empty in 'top queries by month' report

    Hi,
    We are using ContentBySearchWebPart to facilitate search through the site.
    We have used display template to format the results. We are deploying the web part on the desired page through a feature. We have below markup for web part in the elements.xml file to add the web part -
    <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
    <metaData>
    <type name="Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart, Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="StatesJson" type="string">{}</property>
    <property name="UseSharedDataProvider" type="bool">False</property>
    <property name="UseSimplifiedQueryBuilder" type="bool">False</property>
    <property name="QueryGroupName" type="string">f5646507-4a7a-4d75-b5c4-d435b9128e2a</property>
    <property name="LogAnalyticsViewEvent" type="bool">True</property>
    <property name="SelectedPropertiesJson" type="string">["Title","Path","Description"]</property>
    <property name="PropertyMappings" type="string" />
    <property name="ShowAdvancedLink" type="bool">True</property>
    <property name="NumberOfItems" type="int">10</property>
    <property name="EmitStyleReference" type="bool">True</property>
    <property name="ShowPreferencesLink" type="bool">True</property>
    <property name="ServerIncludeScriptsJson" type="string">null</property>
    <property name="IncludeResultTypeConstraint" type="bool">False</property>
    <property name="Height" type="string" />
    <property name="MaxPagesBeforeCurrent" type="int">4</property>
    <property name="ResultType" type="string" />
    <property name="ShowDidYouMean" type="bool">False</property>
    <property name="StartingItemIndex" type="int">1</property>
    <property name="AlwaysRenderOnServer" type="bool">False</property>
    <property name="GroupTemplateId" type="string">&#126;sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Group_Content.js</property>
    <property name="ResultTypeId" type="string" />
    <property name="ItemTemplateId" type="string">&#126;sitecollection/_catalogs/masterpage/Display Templates/Search/Item_LearningGroup.js</property>
    <property name="AllowConnect" type="bool">True</property>
    <property name="HelpUrl" type="string" />
    <property name="ResultsPerPage" type="int">10</property>
    <property name="RenderTemplateId" type="string">&#126;sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/ListWithPaging.js</property>
    <property name="AllowEdit" type="bool">True</property>
    <property name="AllowZoneChange" type="bool">True</property>
    <property name="AddSEOPropertiesFromSearch" type="bool">False</property>
    <property name="AdvancedSearchPageAddress" type="string">advanced.aspx</property>
    <property name="HitHighlightedPropertiesJson" type="string">["Title","Path","Author","SectionNames","SiteDescription"]</property>
    <property name="TitleUrl" type="string" />
    <property name="EmptyMessage" type="string" />
    <property name="ShowBestBets" type="bool">False</property>
    <property name="ShowViewDuplicates" type="bool">False</property>
    <property name="AllowHide" type="bool">True</property>
    <property name="BypassResultTypes" type="bool">True</property>
    <property name="Description" type="string">Content Search Web Part will allow you to show items that are results of a search query you specify. When you add it to the page, this Web Part will show recently modified items from the current site. You can change this setting to show items from another site or list by editing the Web Part and changing its search criteria.As new content is discovered by search, this Web Part will display an updated list of items each time the page is viewed.</property>
    <property name="ShowSortOptions" type="bool">False</property>
    <property name="ExportMode" type="exportmode">All</property>
    <property name="AllowMinimize" type="bool">True</property>
    <property name="ShowPersonalFavorites" type="bool">False</property>
    <property name="ChromeType" type="chrometype">None</property>
    <property name="ShowPaging" type="bool">True</property>
    <property name="ChromeState" type="chromestate">Normal</property>
    <property name="CatalogIconImageUrl" type="string" />
    <property name="HelpMode" type="helpmode">Modeless</property>
    <property name="TitleIconImageUrl" type="string" />
    <property name="ItemBodyTemplateId" type="string" />
    <property name="AlternateErrorMessage" type="string" null="true" />
    <property name="Hidden" type="bool">False</property>
    <property name="TargetResultTable" type="string">RelevantResults</property>
    <property name="AllowClose" type="bool">True</property>
    <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
    <property name="ShowResultCount" type="bool">True</property>
    <property name="ShowLanguageOptions" type="bool">True</property>
    <property name="ShowUpScopeMessage" type="bool">False</property>
    <property name="Width" type="string" />
    <property name="RepositionLanguageDropDown" type="bool">False</property>
    <property name="Title" type="string">Search Learning Groups</property>
    <property name="ScrollToTopOnRedraw" type="bool">False</property>
    <property name="ShowResults" type="bool">True</property>
    <property name="ShowAlertMe" type="bool">False</property>
    <property name="OverwriteResultPath" type="bool">True</property>
    <property name="PreloadedItemTemplateIdsJson" type="string">null</property>
    <property name="MaxPagesAfterCurrent" type="int">1</property>
    <property name="ShowDefinitions" type="bool">False</property>
    <property name="ShouldHideControlWhenEmpty" type="bool">False</property>
    <property name="AvailableSortsJson" type="string">null</property>
    <property name="DataProviderJSON" type="string">{"QueryGroupName":"f5646507-4a7a-4d75-b5c4-d435b9128e2a","QueryPropertiesTemplateUrl":"sitesearch://webroot","IgnoreQueryPropertiesTemplateUrl":false,"SourceID":"8413cd39-2156-4e00-b54d-11efd9abdb89","SourceName":"Local SharePoint Results","SourceLevel":"Ssa","CollapseSpecification":"","QueryTemplate":"Path:{SiteCollection.URL} AND :{SearchBoxQuery} ","FallbackSort":[],"FallbackSortJson":"[]","RankRules":[],"RankRulesJson":"[]","AsynchronousResultRetrieval":false,"SendContentBeforeQuery":true,"BatchClientQuery":true,"FallbackLanguage":-1,"FallbackRankingModelID":"","EnableStemming":true,"EnablePhonetic":false,"EnableNicknames":false,"EnableInterleaving":false,"EnableQueryRules":true,"EnableOrderingHitHighlightedProperty":false,"HitHighlightedMultivaluePropertyLimit":-1,"IgnoreContextualScope":true,"ScopeResultsToCurrentSite":false,"TrimDuplicates":false,"Properties":{"TryCache":true,"Scope":"{Site.URL}","UpdateLinksForCatalogItems":true,"EnableStacking":true,"ListId":"60ae8593-eddc-45e0-802a-27f78059ce26","ListItemId":4},"PropertiesJson":"{\"TryCache\":true,\"Scope\":\"{Site.URL}\",\"UpdateLinksForCatalogItems\":true,\"EnableStacking\":true,\"ListId\":\"60ae8593-eddc-45e0-802a-27f78059ce26\",\"ListItemId\":4}","ClientType":"ContentSearchRegular","UpdateAjaxNavigate":true,"SummaryLength":180,"DesiredSnippetLength":90,"PersonalizedQuery":false,"FallbackRefinementFilters":null,"IgnoreStaleServerQuery":false,"RenderTemplateId":"DefaultDataProvider","AlternateErrorMessage":null,"Title":""}</property>
    <property name="Direction" type="direction">NotSet</property>
    </properties>
    </data>
    </webPart>
    When we are downloading the 'Top Queries by Month' or 'Top Queries by Day' report, while we see numbers in 'Total Queries' and '% of all queries' columns, we are not finding anything in 'Query Text' column, its empty. Not sure while the analytics is
    not able to fetch/report the 'Query Text' itself - the report doesnt make any sense without 'Query Text' information.
    Is there anything in the web part markup I pasted above- is any of the property value is affecting this?
    Or it can be some configuration/error with the logging/analytics process?
    Please suggest. Thanks in advance.
    Regards,
    Mahavir
    MOSS programmer

    Hi,
    Hope you are doing well. Would you help to try to run the script to start the timer job manually:
    Run the script to start the timer job:
    ==================
    $ua = Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
    $ua.GetAnalysisInfo()
    $ua = get-sptimerjob -type microsoft.office.server.search.analytics.usageanalyticsjobdefinition
    $ua.DisableTimerJobSchedule()
    $ua.StartAnalysis()
    $ua.EnableTimerJobSchedule()
    $ua = Get-SPTimerJob -Identity ("job-usage-log-file-import")
    $ua.RunNow()
    ==================
    2.  Please install the SharePoint 2013 March update if our version is before this:
    SharePoint 2013 March update:
    http://support.microsoft.com/kb/2767999
    Best Regards,
    Dats Luo

  • Can't make entries into Roboform Lite 2.1?

    I have loaded and reloaded RFL (and have disabled KeeFox), but I still am not able to make any entries. For example, when clicking on the Identity icon, the tooltip says I should "set an active identity," but there is no dropdown into which information can be entered. Furthermore, when typing into a blank field, I get two, not one as usual, vertical cursor lines that follow the typing. When RFL is disabled, this doubling goes away. To tell you the truth, I'd be happy (I think for the time being) with KeeFox and form filler. I did dl Autofill, but it seems to be rather complicated in its setup.
    EDIT
    Have found out how to make entries into RFL: Download Roboform, make entries, and the RFL will pick up those entries. So now my self-debate is to continue with the combo of Keefox+Autofill which is working well, or go over to RF+RFL?

    This will fix your google toolbar and it works with firefox 7 or 8 or any of them, even if you can't sign in it will still have spell check and all the other stuff. Down load this firefox add on and then it will bring up another page with instructions after you down load and restart firefox, restart it twice and you're good to go. below is the link. https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/?src=api|https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/?src=api

  • Component has not input columns and/or input columns have invalid id when creating package programmatically

    I am developing an ETL tool which has to create SSIS packages dynamically (and later execute them without being edited in Data Tools). One of my proto type scenarios is a simple data flow from a flat file to a flat file - without anything in between.
    However there is a problem with the columns of the flat file destination - it says it doesn't have any.
    Saving the package to XML and opening the destination component in the advanced editor (tab "Input and Output Properties") really shows that are no input columns defined. One click on the tab "Column Mappings" however solves the
    problem. The columns and the mapping are generated, the package can run.
    I already tried to place "ReinitializeMetaData()" calls nearly anywhere in the code, for both components, unfortunately without success:
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    The actual error during validation is (When the line for column mapping in the code below is commented out):
    "0xC020201B - The number of input columns for Flat File Destination.Inputs[Flat File Destination Inputs] cannot be zero"
    I am also trying to insert a column mapping - this leads to a com error: 0xC020201B
    In this case I am wondering why Data Tools tell me that there are no input columns yet I can iterate over them - they just don't have a valid ID (0x8000004B / -2147483573) which is then causing the 0xC020201B.
    See also "PROBLEM HERE" marker in the code below.
    How can I make the destination component recognize the columns programmatically, as when I click on the "Column Mappings" tab of the advanced editor of the component in Data Tools?
    Here is the complete proto type code:
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Dts = Microsoft.SqlServer.Dts;
    namespace msdatapipe
    class Program
    static void Main(string[] args)
    Dts.Runtime.Application application = new Dts.Runtime.Application();
    Dts.Runtime.Package package = new Dts.Runtime.Package();
    package.Name = "Data Commander DTS Package";
    // ADD PIPELINE TASK
    Dts.Runtime.Executable pipelineExecutable = package.Executables.Add("STOCK:PipelineTask");
    Dts.Runtime.TaskHost pipelineTaskHost = (Dts.Runtime.TaskHost)pipelineExecutable;
    pipelineTaskHost.Name = "Data Commander Pipeline Task";
    Dts.Pipeline.Wrapper.MainPipe pipelineTask = (Dts.Pipeline.Wrapper.MainPipe) pipelineTaskHost.InnerObject;
    // ADD SOURCE COMPONENT TO THE PIPELINE TASK
    String sourceFilePath = "C:\\cmi\\tmp\\data.csv";
    Dts.Runtime.ConnectionManager sourceConnectionManager = package.Connections.Add("FLATFILE");
    sourceConnectionManager.ConnectionString = sourceFilePath;
    sourceConnectionManager.Name = "Source Connection";
    sourceConnectionManager.Description = "Source Connection Manager";
    sourceConnectionManager.Properties["ColumnNamesInFirstDataRow"].SetValue(sourceConnectionManager, "True");
    sourceConnectionManager.Properties["Format"].SetValue(sourceConnectionManager, "Delimited");
    sourceConnectionManager.Properties["TextQualifier"].SetValue(sourceConnectionManager, "\"");
    sourceConnectionManager.Properties["CodePage"].SetValue(sourceConnectionManager, "65001");
    sourceConnectionManager.DelayValidation = false;
    // START --- MANUALLY READ COLUMNS FROM TEXT FILE AND ADD TO SOURCE CONNECTION MANAGER COLUMNS
    IDTSConnectionManagerFlatFile100 sourceConnectionInterface = sourceConnectionManager.InnerObject as IDTSConnectionManagerFlatFile100;
    using (StreamReader reader = new StreamReader(sourceFilePath))
    String firstSourceFileLine = reader.ReadLine();
    String[] columnNames = firstSourceFileLine.Split(',');
    for (int i = 0; i < columnNames.Length; ++i)
    columnNames[i] = columnNames[i].Substring(1, columnNames[i].Length - 2);
    IDTSConnectionManagerFlatFileColumns100 sourceColumns = sourceConnectionManager.Properties["Columns"].GetValue(sourceConnectionInterface) as IDTSConnectionManagerFlatFileColumns100;
    IDTSConnectionManagerFlatFileColumn100 column = null;
    foreach (String columnName in columnNames)
    column = sourceColumns.Add();
    column.DataType = DataType.DT_TEXT;
    column.ColumnDelimiter = ",";
    column.TextQualified = true;
    (column as IDTSName100).Name = columnName;
    Console.WriteLine(columnName);
    column.ColumnDelimiter = "\r\n";
    // END --- MANUALLY READ COLUMNS FROM TEXT FILE AND ADD TO SOURCE CONNECTION MANAGER COLUMNS
    sourceConnectionInterface.RowDelimiter = "\r\n";
    Dts.Pipeline.Wrapper.IDTSComponentMetaData100 sourceComponent = pipelineTask.ComponentMetaDataCollection.New();
    sourceComponent.Name = "Flat File Source";
    sourceComponent.ComponentClassID = "DTSAdapter.FlatFileSource";
    sourceComponent.ValidateExternalMetadata = true;
    CManagedComponentWrapper sourceComponentWrapper = sourceComponent.Instantiate();
    sourceComponentWrapper.ProvideComponentProperties();
    // LINK CONNECTION TO THE SOURCE COMPONENT
    sourceComponent.RuntimeConnectionCollection[0].ConnectionManager = Dts.Runtime.DtsConvert.GetExtendedInterface(sourceConnectionManager);
    sourceComponent.RuntimeConnectionCollection[0].ConnectionManagerID = sourceConnectionManager.ID;
    // Connect to the data source, and then update the metadata for the source.
    //sourceComponentWrapper.Validate();
    //sourceComponentWrapper.ProvideComponentProperties();
    sourceComponentWrapper.AcquireConnections(null);
    sourceComponentWrapper.ReinitializeMetaData();
    sourceComponentWrapper.ReleaseConnections();
    // ADD DESTINATION CONNECTION MANAGER
    Dts.Runtime.ConnectionManager destinationConnectionManager = package.Connections.Add("FLATFILE");
    destinationConnectionManager.ConnectionString = "C:\\cmi\\tmp\\data_out.csv";
    destinationConnectionManager.Name = "DatComConOut";
    destinationConnectionManager.Description = "Data Commander Connection Manager";
    destinationConnectionManager.DelayValidation = false;
    destinationConnectionManager.Properties["Format"].SetValue(destinationConnectionManager, "Delimited");
    destinationConnectionManager.Properties["TextQualifier"].SetValue(destinationConnectionManager, "\"");
    destinationConnectionManager.Properties["CodePage"].SetValue(destinationConnectionManager, "65001");
    // ADD DESTINATION COMPONENT
    Dts.Pipeline.Wrapper.IDTSComponentMetaData100 destinationComponent = pipelineTask.ComponentMetaDataCollection.New();
    destinationComponent.Name = "Flat File Destination";
    destinationComponent.ComponentClassID = "DTSAdapter.FlatFileDestination";
    destinationComponent.ValidateExternalMetadata = true;
    CManagedComponentWrapper destinationComponentWrapper = destinationComponent.Instantiate();
    destinationComponentWrapper.ProvideComponentProperties();
    destinationComponent.RuntimeConnectionCollection[0].ConnectionManager = Dts.Runtime.DtsConvert.GetExtendedInterface(destinationConnectionManager);
    destinationComponent.RuntimeConnectionCollection[0].ConnectionManagerID = destinationConnectionManager.ID;
    // CREATE PATH
    Dts.Pipeline.Wrapper.IDTSPath100 pipelinePath = pipelineTask.PathCollection.New();
    pipelinePath.AttachPathAndPropagateNotifications(sourceComponent.OutputCollection[0], destinationComponent.InputCollection[0]);
    // DESTION CONNECTION MANAGER COLUMNS
    IDTSConnectionManagerFlatFile100 destinationConnectionInterface = destinationConnectionManager.InnerObject as IDTSConnectionManagerFlatFile100;
    IDTSConnectionManagerFlatFileColumns100 destinationColumns = destinationConnectionManager.Properties["Columns"].GetValue(destinationConnectionManager) as IDTSConnectionManagerFlatFileColumns100;
    // START --- MANUALLY READ COLUMNS FROM DESTINATION COMPONENT AND ADD THEM TO DESTIONATION CONNECTION MANAGER COLUMNS
    foreach (IDTSInput100 input in destinationComponent.InputCollection)
    IDTSVirtualInput100 virtualInput = input.GetVirtualInput();
    IDTSConnectionManagerFlatFileColumn100 column = null;
    foreach (IDTSVirtualInputColumn100 virtualInputColumn in virtualInput.VirtualInputColumnCollection)
    column = destinationColumns.Add();
    column.DataType = DataType.DT_TEXT;
    column.ColumnDelimiter = ",";
    column.TextQualified = true;
    (column as IDTSName100).Name = virtualInputColumn.Name;
    column.ColumnDelimiter = "\r\n";
    // END --- MANUALLY READ COLUMNS FROM DESTINATION COMPONENT AND ADD THEM TO DESTIONATION CONNECTION MANAGER COLUMNS
    // NEED TO CREATE NEW META DATA AFTER COLUMNS
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    // MAP INPUT COLUMNS
    foreach (IDTSInput100 input in destinationComponent.InputCollection)
    IDTSVirtualInput100 virtualInput = input.GetVirtualInput();
    foreach (IDTSVirtualInputColumn100 virtualInputColumn in virtualInput.VirtualInputColumnCollection)
    Console.WriteLine("VIC " + virtualInputColumn.Name + "(" + virtualInputColumn.ID + ")");
    destinationComponentWrapper.SetUsageType(input.ID, virtualInput, virtualInputColumn.LineageID, DTSUsageType.UT_READONLY);
    foreach (IDTSExternalMetadataColumn100 metadataColumn in input.ExternalMetadataColumnCollection)
    if (virtualInputColumn.Name.Equals(metadataColumn.Name)) {
    // PROBLEM HERE:
    // An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in msdatapipe.exe
    // Additional information: Exception HRESULT: 0xC0047072
    // at this point is virtualInputColumn.ID = -2147483573
    destinationComponentWrapper.MapInputColumn(input.ID, virtualInputColumn.ID, metadataColumn.ID);
    // if the code is commented out and the program rerun there is a package validation error instead: 0xC020201B
    // 0xC020201B - The number of input columns for Flat File Destination.Inputs[Flat File Destination Inputs] cannot be zero
    // NEED TO CREATE META DATA AFTER COLUMNS HAVE BEEN ADDED TO THE DESTIONATION MANAGER
    // AND USAGE TYPE HAS BEEN SET OR WE'LL GET A VS_NEEDSNEWMETADATA
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    // SAVING DTSX PACKAGE FOR DEBUGGING
    application.SaveToXml("C:\\Users\\CMI\\documents\\visual studio 2010\\Projects\\SSIS Tutorial\\SSIS Tutorial\\generated.dtsx", package, null);
    Microsoft.SqlServer.Dts.Runtime.DTSExecResult packageResults = package.Execute();
    Console.WriteLine("package execution result: " + packageResults.ToString());
    // Basic check for errors
    foreach (DtsError error in package.Errors)
    Console.WriteLine("ErrorCode : 0x{0:X}", error.ErrorCode);
    Console.WriteLine(" SubComponent : {0}", error.SubComponent);
    Console.WriteLine(" Description : {0}", error.Description);
    Console.WriteLine("press the return key hard to continue...");
    Console.Read();

    I suggest you revise your code against examples given in http://blogs.msdn.com/b/mattm/archive/2008/12/30/samples-for-creating-ssis-packages-programmatically.aspx
    Arthur My Blog

  • Make entries in table T095

    Hi all,
    Iam unable  to make entries in table T095, if i use through se11->utilitis then create entry option is disabled. if i use sm30 then it saying " The maintenance dialog for T095 is incomplete or not defined" please give me procedure to maintain the table t095.
    Thanks&Regards,
    RP

    Hi,
    T095 is a standard SAP table and you wont be allowed to insert or update entries in this table directly.
    If you have authorization for SPRO, you can update this table via Financial Accounting. Otherwise, you can ask your FI functional consultant to provide you with values in the table so that you are able to use these in your program.
    The last option would be to write a few lines of codes in an ABAP program and use "INSERT" or "UPDATE" ABAP statements to update this table. But avoid this option as inconsistencies may occur because of this.
    Hope it helps.

  • Retrieve varchar column from Oracle query in a resulset

    Hi, I'am a begginer in JSP Technologies.
    I've do a small jsp that opens a db connection to an oracle, execute a query a show results.
    When the columns of the query are int I've no problem, the jsp show the columns of the resulset, but when the columns selected are varchars the jsp doesn't show anything....
    Can anyone help me?
    Example:
    Table: CUSTOMERS
    Col1 : ID_COSTUMER int
    Col2: CUSTOMER_NAME varchar
    <%
    Connection canal = null;
    ResultSet tabla = null;
    Statement instruccion=null;
    try { Class.forName("oracle.jdbc.driver.OracleDriver");
    canal=DriverManager.getConnection("jdbc:oracle:thin:@XXXXXXXXXXXXXXXXXXXp");
    instruccion = canal.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    } catch(java.lang.ClassNotFoundException e){};
    String Query = "SELECT ID_CUSTOMER FROM CUSTOMERS";
    try { tabla = instruccion.executeQuery(Query);
    out.println("<TABLE Border=10 CellPadding=5><TR>");
    out.println("<TD>CUSTOMER</TD></TR>");
    while(tabla.next()) {
    out.println("<TR>");
    out.println("<TD>"+tabla.getString(1)+"</TD>");
    out.println("</TR>"); };
    out.println("</TABLE></CENTER></DIV></HTML>");
    tabla.close(); instruccion.close(); canal.close();}
    catch(SQLException e) {};
    %>Results:
    CUSTOMER
    1
    2
    3
    4
    Doing the change in query:
    SELECT CUSTOMER_NAME FROM CUSTOMERS
    I have not results....
    Thank you.

    sorry, I misplaced an ending code bracket on last one
    I'm not really familiar with doing this inside a jsp.. but there are a few things that you should try to make sure that it isn't a database problem before assuming it is a problem on your jsp.... It is possible you have already tried the following but just to make sure.
    When you do the second query does the first two out.printlns that are before the while still output? If not then your query is incorrect.
    Second I would try
    String Query = "SELECT ID_CUSTOMER,CUSTOMER_NAME FROM CUSTOMERS";
    try { tabla = instruccion.executeQuery(Query);
    out.println("<TABLE Border=10 CellPadding=5><TR>");
    out.println("<TD>CUSTOMER_ID</TD><TD>CUSTOMER_NAME</TD></TR>");
    while(tabla.next()) {
    out.println("<TR>");
    out.println("<TD>"+tabla.getString(1)+"</TD>");
    out.println("<TD>"+tabla.getString(2)+"</TD>");
    out.println("</TR>"); };
    out.println("</TABLE></CENTER></DIV></HTML>");I suspect this will also return nothing.. if that is the case then you need to check your database. If it does infact return values for the ID and nothing for the NAME then I'm not sure at this point what the problem is.

  • How to return Parameters values as a column in a query?

    Hi All,
    I have number of parameters in a report.
    I need to return its interred values as a column in a query to use this column in a chart.
    I want this column to be the second one in this query:
    SELECT ROWNUM
    FROM ALL_OBJECTS
    WHERE ROWNUM <= 10
    That is if there is any way to use these parameters directly as a column in the chart no need for the previous statement.
    Note: I am using Reports 6i

    Dear sir
    You can enter parameter as column in query like
    select :parameter p1, &hexadecima_paramataer p2, empcode
    from emps;
    that query make parameter as query column .
    &hexadecimal paramater can refer to database column of table emps
    and :paramater can refer to static string

  • Month columns in Bew query

    hi gurus
    i have to create a query which columns are :
    - January --> Current month (if current year)
    - Januray to December (if not)
    Variable entries are "year" & "plant".
    please tell me how to do for the columns...
    Dev

    Dev,
    I would just drill-across by Month, then turn on zero suppression. That would "hide" any columns where all values are zero, which presumably would be the case for future months.
    Hope this helps...
    Bob

  • Protect input template exclude the input columns

    Hi All,
      I am having some hidden formulas and the Evdre in the template, i dont want to allow the user to change that one.
      I want to protect the input template, i have tried in excel (Tools->Protection) using password to protect the template.
      After its protected even its not allowing to input the values in input columns.I have tried the hide option.If the expand the template , hidden rows are unhidden by default.
    Any idea please share.thanks in advance.
    regards
    venkii

    Hi Venkii,
    You need to make sure that the cells, which requires input, should not be locked. For this right click on the cells, go to format and go to the protection tab. Make these cells unlocked. Only the input required cells will be unlocked and the others will be locked. Once this is done, you can go ahead and lock the sheet.
    Hope this helps.

  • Disable selection parameter in Query

    Hi,
    I would like to disable selection parameter in query.
    I add below coding in SQ02 "at selection-screen output" but it cannot work. Any solution besides use variant to disable it?
    loop at screen.
      if screen-name = 'pa_date'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
    Thanks.

    Hello Winnie,
       Yes you can. Try this one:
    <><><><><><><><><><><><><><><><><><><><><><><><><><><>
    Parameters: aram1  like mara-matnr.
    AT SELECTION-SCREEN OUTPUT.
      loop at screen.
        if screen-name eq 'PARAM1'.
          screen-input = 0.
          modify screen.
        endif.
      endloop.
    <><><><><><><><><><><><><><><><><><><><><><><><><><><>
    Happy coding!

Maybe you are looking for

  • Giving BOM material as free good in Sales Order

    Hi, I have a business requirement. I want to give a free good in Sales Oreder which is a BOM material.This should be possible by manually changing Item category for the line item in the Sales Order just like how we can change TAN to TANN in normal ci

  • Failed JCO destination name 'WD_RFC_METADATA_DEST'    and MODEL DATA

    Hi Friends I am created "WD_RFC_METADATA_DEST". this meta data.When i am created this metadata i was called message server as technical system of CRM server. means i am created metadata for CRM System Once metadata had complted then i was cheing clic

  • I can't drag and drop songs from library to playlists

    Unable to drag and drop songs from library into playlists, however I can drop them above or below playlists. That is no help in editing playlists! Seems to be after last iTunes up date. Tkank you

  • Dynamic data selection in process chain

    Dear BW gurus, I've an infocube 0PA_C01. I'm gettting data with data source 0HR_PA_0. Because of time-dependency of personel data i should get the package month by month. SO I set the data selection parameter 0CALMONTH in data package.   0CALMONTH=20

  • Create a seperate master rep for dev and test

    Hi We are experiencing poor performance in our Dev/Test work repositories. This may be due to geographic reasons. The dev/test reps are in different location thousand miles apart from Master/prod work rep. Am considering creating a seperate Master re