Hardcode values in segment.

Hi Experts,
I have one segment E1EDP05.
I have to give hardcode values in the filed of KSCHL of this segment.
How i can give these value in loop as hardcode.
Regards,

Hi,
I can hardcode value with using constant, I know that.
but my problem is that I have 3 Values and one segment field KSCHL.
I have to create this segment 3 times with each value in KSCHL.
How i can do it ?
Regards,
Study SAP

Similar Messages

  • Parameterized queries running much slower than ones with hardcoded values

    Very often there is a huge performance difference when using parameters in a query, compared to running the same code after replacing the parameters with hardcoded values: the parameterized version of the code runs much slower!
    The case is not parameter sniffing as it is not a (compiled) stored proc, but code executed directly from the editor and the performance issue has been observed in different versions of SQL Server (2000 and 2005).
    How is this explained and how can the parameterized queries have similar performance with the hardcoded ones?
    Also, why does this happen in some cases and not always?
    Finally, the same is sometimes the case with stored procs: a very slow running proc speeds up tremendously when running its code directly, instead of calling the procedure --and even faster, according to the previous, when its parameters are replaced with
    hardcoded values 

    >>The case is not parameter sniffing as it is not a (compiled) stored proc, but code executed >>>directly
    from the editor ?>>>and the performance issue has been observed in different >>>versions of SQL Server (2000 and 2005).
    Something like below?
    --SQL Server creates 3 execution plan rather only one
    DBCC FREEPROCCACHE
    GO
    SELECT *
    FROM Sales.SalesOrderHeader
    WHERE SalesOrderID = 56000
    GO
    SELECT * FROM
    AdventureWorks.Sales.SalesOrderHeader WHERE
    SalesOrderID = 56001
    GO
    declare @i int
    set @i = 56004
    SELECT *
    FROM Sales.SalesOrderHeader
    WHERE SalesOrderID = @i
    GO
    select  stats.execution_count AS exec_count, 
    p.size_in_bytes as [size], 
    [sql].[text] as [plan_text]
    from sys.dm_exec_cached_plans p
    outer apply sys.dm_exec_sql_text (p.plan_handle) sql
    join sys.dm_exec_query_stats stats ON stats.plan_handle = p.plan_handle
    GO
    ----This time only (we get parameterization)
    DBCC FREEPROCCACHE
    GO
    EXEC sp_executesql N'SELECT  SUM(LineTotal) AS LineTotal
    FROM Sales.SalesOrderHeader H
    JOIN Sales.SalesOrderDetail D ON D.SalesOrderID = H.SalesOrderID
    WHERE H.SalesOrderID = @SalesOrderID', N'@SalesOrderID INT', 56000
    GO
    EXEC sp_executesql N'SELECT  SUM(LineTotal) AS LineTotal
    FROM Sales.SalesOrderHeader H
    JOIN Sales.SalesOrderDetail D ON D.SalesOrderID = H.SalesOrderID
    WHERE H.SalesOrderID = @SalesOrderID', N'@SalesOrderID INT', 56005
    GO
    select  stats.execution_count AS exec_count, 
    LEFT([sql].[text], 80) as [plan_text]
    from sys.dm_exec_cached_plans p
    outer apply sys.dm_exec_sql_text (p.plan_handle) sql
    join sys.dm_exec_query_stats stats ON stats.plan_handle = p.plan_handle
    GO
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • SAP Systems find hardcoded value

    Hi all,
    Is there anything where we can find a word in SAP application.
    Example :
    In my system we have used many transcations and created many zprograms and in some place there is a hardcoded value, so i just want to find the hardcoded value (where all used) so do we have anything where my problem gets solved?
    Cheers,
    Bhavana

    Hi Satya,
    Thanks for ur reply,
    what my problem is in our entire application of SAP we have created many zprograms and created my zfunction modules and manythings like so there in some places we have hardcoded the value i mean like 'X company' so i don't want to give this hardcoded value as X company, i want to change this so i don't remember where all we have placed this hardcoded value , so my question is do we have anything in SAP where we can find this hardcoded value?
    hope you have understood my requirement.
    cheers,
    Bhavana

  • Hardcoded values within XML tags

    Inorder to generate an XML file, is it a requirement to have all the data in the database?
    For example, if I do:
    Select 'MyValue' From Dual -> it will return me with MyValue. Essentially, this is hardcoding values.
    Is this achievable using sql to generate XML output
    <Test>My Hardcorded Value</Test> -> where My Hardcorded Value is the value i want to embed within the <Test> tag.
    Thanks

    Without knowing what method you are even using to generate the XML nor what DB version, here is one solution for 10.x.x.x
    select XMLElement("Test",'My Hardcoded Value')
      from dual;
    results in
    <Test>My Hardcoded Value</Test>

  • Search Hardcoded values in Prg

    Hi All,
    I need to search for some Hard coded values inside the all Z PRograms.
    IS there any way to do it other than manaully use Find on each of Inclueds and main prg?
    I have 11 Company codes and respective VAT # for each.
    I have more than 1000 Prgrams with minimum 5-6 includes in each.
    Please suggest a way out.
    Regards
    Ramesh

    go to transaction SLIN, type the program name for which you ned to remove the hard cocded values , uncheck all the checkboxes and check only the
    " Character strings " check box... it will list all the hardcoded values in program...

  • Program to search hardcoded value in all Z smartforms

    Hi,
    Is there a program to search in all Z smartforms to find a hardcoded value?
    Regards,
    Amel

    Hi Gautam,
    In order to search an entire smartform one must be first downloaded and then searched.
    Otherwise every single smartform line has to opened to check whether a hardcoded value has been used there, think of condition option in almost every smartform element.
    Am I thinking correct?
    Regards,
    Amel

  • Search ConditionFormulas for hardcoded values.

    Currently we have about 600 crystal reports in our system.  Over time there has been some poor coding that has hardcoded values in the suppression logic of sections or fields in some of the reports.  I am trying to programmatically look at each report and determine which reports need to be modified.
    I query the infostore and have no problem looking into the DataDefinition.FormulaFields and ReportDefinition.Sections collections, but they do not show the suppression formula.  That is apparently in the ConditionFormulas collection.
    I have seen some examples, but most of them have this comment,
    ' crRepDef is type CrystalDecisions.ReportAppServer.ReportDefModel.ISCRReportDefinition,
    when I try to cast this object it fails.
    Here is an example of what I have already, all reports are being accessed properly.  I just don't know how to get to the proper object (ConditionFormulas):
            Dim boEnterpriseSession As EnterpriseSession
            Dim boReportObjects As InfoObjects
            Dim boSessionMgr As New CrystalDecisions.Enterprise.SessionMgr()
            Dim crReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            ' Log into BusinessObjects Enterprise
            boEnterpriseSession = boSessionMgr.Logon(txtCEUser.Text, txtCEPassword.Text, dropServer.SelectedValue, "secEnterprise")
            Dim query As String = "SELECT * FROM CI_INFOOBJECTS where si_name = 'my report' and si_instance = 0 And si_recurring = 0 and SI_PROGID='CrystalEnterprise.Report' ORDER BY SI_NAME"
            Dim boEnterpriseService As EnterpriseService
            Dim boInfoStore As InfoStore
            litResults.Text = Nothing
            'Create the Infostore Object
            boEnterpriseService = boEnterpriseSession.GetService("", "InfoStore")
            boInfoStore = New InfoStore(boEnterpriseService)
            boReportObjects = boInfoStore.Query(query)
            test(boReportObjects)
            For Each boReportObject In boReportObjects
                Dim rpt As ReportDocument = New ReportDocument
                rpt.Load(boReportObject, boEnterpriseSession)
                ' search each formula for hardcoded values
                For Each FormulaField As FormulaFieldDefinition In rpt.DataDefinition.FormulaFields
                Next FormulaField
                ' search each section for hardcoded values
                For Each sec As Section In rpt.ReportDefinition.Sections
                Next sec
            Next boReportObject

    What is the error you get when the cast fails? I don't see any code trying to access the ConditionFormulas object.
    I don't generally code in VB, but here's some C# code that accesses that property. You need to go through the ReportClientDocument object to get to it.
    Notes:
    - This is hardcoded. Logic is needed to generalize it for your own needs.
    - You need CrystalDecisions.ReportAppServer.ReportDefModel to access the ConditionFormulas collection.
    - The CD.CR.Engine assembly is aliased because both it and the ReportDefModel assembly contain a definition for the ReportDocument class. You can use the 'As' keyword for aliasing in VB, or fully qualify the assembly name for the variable declaration. (Personally I'd rather type less!)
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CRENG = CrystalDecisions.CrystalReports.Engine;
    //(other BOE references here to access InfoStore etc)
    //(code here to log on to Enterprise, query for desired InfoObject, etc)
    CRENG.ReportDocument crReport = new CRENG.ReportDocument();
    crReport.Load(boeInfoObject, boeSession);
    Response.Write("<br>Formula text: " +
        crReport.ReportClientDocument.ReportDefinition.DetailArea.Sections[0].Format.ConditionFormulas[CrSectionAreaFormatConditionFormulaTypeEnum.crSectionAreaConditionFormulaTypeEnableSuppress].Text.ToString());

  • Variable vs hardcoded value in SQL query

    Hi Gurus,
    I have a SQL query inside a function that looks similar (i'm showing the "where" clause here only) to the below:
    WHERE ID = variable_id (by the way this two have exactly the same type, number(20))
    and
    WHERE ID = 100
    In the first option that uses variable it takes 4 secs to complete the query, while the second one that uses hardcoded value completes in milliseonds. Im new to oracle but been to other dbms and havent seen such behaviour. Anyone encountered or know what maybe the cause? I thought of not pasting here the explain plan since its just a question of variable vs hardcoded value.
    rgds.

    Just want to add something, here is the stats for the two queries:
    Statistics for variable_id (15 secs)
    29 recursive calls
    0 db block gets
    24324 consistent gets
    21556 physical reads
    0 redo size
    20676 bytes sent via SQL*Net to client
    613 bytes received via SQL*Net from client
    25 SQL*Net roundtrips to/from client
    17 sorts (memory)
    0 sorts (disk)
    358 rows processed
    Statistics for hardcoded value (5 secs)
    4 recursive calls
    0 db block gets
    2631 consistent gets
    0 physical reads
    0 redo size
    20469 bytes sent via SQL*Net to client
    613 bytes received via SQL*Net from client
    25 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    358 rows processed
    There are differences consistent gets and physical reads. What coul dbe the problem here?
    tnx!

  • To display hardcoded value in script form

    Hi ,
    Could anyone tell me how many ways are there to display hardcoded value in Script Form? I want to display a alphanumeric number like 'AP121345/B103/21C' in form output.
    I will reward for every usefull responses.
    Thx in Adv.
    Bobby

    yes as sandipan told exactly do like this.
    if u want to display in bold.
    then create one bold charformat suppose 'CF'.
    <CF>ur value what u want to display<\>
    thanks

  • XSLT mapping calls Java class, with hardcoded values-problem at Transport

    Hi All,
    I know the subject may be  misguiding, but i need some suggestions how to handle the following scenario.
    From my XSLT mapping, i am calling a java function which performs a data connection to an oracle database and then returns some values, whcih i have mapped in the mapping.
    The problem is, i have hardcoded the Connection parameters....
    and now that we transport these objects to production, the connection parameters will change.
    I thought of two solutions
    1) i create a new java class for Production system
    2) i define the parameters as input arguemnts to my method, whcih is called from XSLT mapping
    But in both cases, if theres any chg in future, there will a dependancy on one of the objects to be changed and sent again.
    What is the suggested way? is there nothing like a property file(like in EP), where you define dependant parameters...and the file is only changed.
    XI Gurus, please suggest me the correct way to handle.....
    Thanks a lot.
    Mona

    Mona,
    This is what i do..
    1) Parametrize ur current calling class,
    2) define a separate class called dbConnect.java there, you have all your parameters that way when there is a change your main program is untouched, and you just need to change the dbconnect.
    The call from your current class will be just like
    dbConnect.Runsql("sql as a string");
    the runSql can then internally call
    dbConnect().connect(); //that should do the connection opening.
    then create a prepared statement from your string input and call the db.......
    this is the implementation that would be best suited for your scenario, you can further parametrize the method to where you can add the database params from the calling xml..so all that needs to be done when the machine is changed or any param is changed is ..modify the xml........not too bad was that.....
    Regards
    Ravi

  • Report asset values for segment?

    Hi all,
    so I have been trying to see if it is possible to get a list of all assets but grouped by segment. At the moment, during posting the system knows which segment to post to according to cost center. Also, according to cost center, it is easy to get all assets grouped by profit centers. That is done by creating a new sort variant. But when I want to do that also for segment I can not find a segment field? I read through numerous posts here, notes, help, but could not find how to do it. Some help suggests to "Activate segment reporting" in customizing, but I can not find that option at all? I tried checking field status variants to see if this field is suppressed somehow, but it is not. I tried with activating account assignment objects but there also segment field does not exist.
    Any ideas?
    Thank you!
    D.

    Hi ,
    First and foremost thing that if we are talking of Segment wise report then in that case following possibilty has to be there :
    1. Relevant entries in ANLZ should be there with a value in the field SEGMENT .
    2. Using the T code OAVI you can make you own sort varient where in you can select ANLAV - SEGMENT as sort level .
    3. By making the settings as mentioned above , you can use various reports like S_ALR_870* with your sort varient for achieving your requirement .
    Hope this helps .
    Regards ,
    Dewang T.

  • Hardcode values of the node with cardinality 0..n

    Good day!
    I need to hardcode a list of element to the node with cardinality 0..n.
    Node has two attributes.
    How can I fill the node with a few element in the input mapping? I know I can do it with a single element by separating values by comma. Is it possible to fill the node?

    Hello.
    I've the same problem. Can you say how to set list of values for a structure?
    For example, we've node FIELD containing two attributes:  ID and NAME.
    FIELD is a node with cardinality 0..*. How to set at least two elements to the node?
    Your example works only for simple attributes with cardinality 0..*, but it doesn't work for structures.
    Best Regards,
    Timur Semenchuk.

  • Hardcode value in sql statement

    Hi,
    This may be a simple thing which I'm missing.
    I'm trying to hardcode numeric value in my SQL statement
    '1.0000' AS NUMBER (10,4) - It returns value as 1 instead of 1.0000
    '1.1255' AS NUMBER(10,4) - returns 1.1255
    I need my o/p to be as 1.0000 not as 1.Is there anyway I can get the result as I'm looking for
    Thanks in advance

    Hi,
    847750 wrote:
    Hi,
    This may be a simple thing which I'm missing.
    I'm trying to hardcode numeric value in my SQL statement
    '1.0000' AS NUMBER (10,4) - It returns value as 1 instead of 1.0000
    '1.1255' AS NUMBER(10,4) - returns 1.1255
    I need my o/p to be as 1.0000 not as 1.Is there anyway I can get the result as I'm looking for
    Thanks in advance
    It's hard to tell what you really want to do from such a tiny code fragment.
    Whenever you have a question, post a complete test script that people can run to re-create the problem and test their ideas.
    The value 1 is exactly the same as the value 1.0000; there is no difference between those numbers.
    If you want to display a number in a certain format (e.g. '1.0000' instead of '1'), the front end is probably the best place to do that.
    If you're using SQL*Plus as the front end, you can set the display for the column called increase_pct like this:
    COLUMN  increase_pct  FORMAT 990.0000
    This will make it display the numbers in that column with at least 1 digit to the left of the decimal point, and exactly 4 digits to the right of the decimal point.
    Other front end tools have similar features.
    If you need to do the equivalent in SQL, use the TO_CHAR function, like this
    SELECT  ename
    ,       TO_CHAR (sal, '99999.00')   AS salary
    FROM    scott.emp
    If you really are hard-coding literals, you can hard code a string, such as '1.0000'.  Don't CAST it to a NUMBER..

  • Report not picking value for segment reporting

    Hello,
    The PA report is not picking up the carry forward value. I have checked the following.
    1)in FS10N  balance carry fwd has been done.
    2)2keh Profit center carry fwd actual balance has been performed
    3)KE5Z Chk a/c wise transaction, it is showing that PA documents exist
    The program was developend last year December and it had picked the correct value for the same (cumulative value).
    Kindly let me know what could be the possible reason. Any pointer for the same will be highly appreciated.
    Thanks & Regards
    Jyoti

    self answerd

  • VM Role Authoring Tool - Disable AdminCredential username and password in the UI and provide hardcoded value

    I am want to keep AdminCredential as a parameter in VM Role Authoring Tool but I do not want user to be able to able to provide the password. As an Enterprise, we have a password policy that we use for Admin Password. The reason i want to keep it as an parameter
    is because if we ever decide to change the policy, i do not have to go back and change it at 100 places it was used. I just change the parameter value and it gets applied everywhere.
    This is what i have tried so far:
    I added the AdminCredential parameter in the separate category. I made
    Configurable to No and provided DefaultValue
    in the format Administrator:Password1 in the parameter and imported the definition in the Admin Portal. Now Administrator:Password1 shows up in the username field and password is still editable.
    In short, if possible, i do not want users to see the AdminCredential parameter. If i cannot hide the parameter, i want to disable username and password fields and provide hard coded value for it.
    Is there a way to achieve what i am trying to do?

    The assumption with Azure Pack is that the OS is Server and the OS has been generalized.
    Now, in the Azure Pack world this local admin credential is actually a special credential.  You cannot take it away, but you can set a default value in the designer.
    If a default value is set, you may be able to hide it from the view definition (I am not sure, since this is a special parameter), but you cannot remove the parameter from the resource itself.
    And a credential in Azure Pack gets interpreted to a username plus password string.
    I have added secondary accounts that capture a password string and a username (as strings, not credentials).  But again, I am not positive that this is allowed.
    Sorry for not having a straight answer, maybe someone will jump in with a better one.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

Maybe you are looking for

  • How to Deploy application in CE 7.1 Nwds

    Dear Friends i managed to install CE7.1 recently, now i selected a webdynpro perspective and created a simple application configured the portal appilcation server with nwds using Window > Preferences > SAP AS Java (gave server name and last digit of

  • Download Error on Flash Player 11

    While installing Adobe Flash Player 11, the installation reached 50% and directed me to shut down Internet Explorer.  I shut down Internet Explorer and clicked RETRY, but the Flash Player Installer did not recognize that Internet Explorer was closed

  • Apple ID area refuses to delete an address from my profile.

    I click "delete address" and it confirms it will delete, but it's still there. I have another address on file.

  • How do I create a circle of images in motion?

    Hi All, I have 73 Paintings that I want to arrange in a circle, all facing inwards to the center. Is there a simple way to place these still images in a circle configuration in 3d space? My final goal is to place a viewpoint camera in the center of t

  • Payment advice note created-F110

    Hi All, I ran F110 prograqm for ACH payment, I see everything is good and I able to create the ACH file.In SP01 when I try to find payment advice, I have only payment summary, accompanying sheet and error log,In Error log it says  payment advice note