Getting default value in query PLD

Hi Experts,
I have made a query PLD.When I preview the pld,I shows me someother value.
For eg
If I want to see preview of vendor let say V0007 but in preview I can see only for V002.V002 is default in pld.If I use any vendor code instead of v0007,it give preview of v0002 only.
So pls help me out in this regard.
Thanks,
Saurabh Jain

Hi
From what I understand, my suggestion would be to create a Customer Exit variable to read from the table RSECVAL for i_step = 1. U can get the user from system variable -.sy-uname. 
Could u also check the below document on Dynamic Authorization?
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0f9f33c-0f17-2d10-d3a2-ae52ccd00780
Regards,
Aparna

Similar Messages

  • How to get default values while using the transaction "BP"

    Hi Group,
    I have a query on how to get default values while using the transaction <b>BP</b>?
    The thing is:
    when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
    how can I achieve this?
    So please kindly let me know the procedure to achieve this.
    Thanks & Regards,
    Vishnu.

    Hi,
    The events of BDT can be used to default some fields on creating a partner.
    For this create a function module for ISDAT. attach that event in BUS7.
    In the ISDAT funtion modulethe following code should be used.
    For example to set the nationality:
    I_BUSDEFAULT-NATIO = 'DE.
    CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
    EXPORTING
    i_busdefault = I_BUSDEFAULT
    Regards, Smita.

  • How to Get Default Value of a Data Type in SQL Query.

    Hi all,
    I am creating a procedure which will take input the table name and Column Name.
    In the Output i would like to have the data type and default value of that data type which will be used by a another procedure to blank the selected column in the database.
    I tried with SET NULL on the column but as the database is of navision the table have property set to NOT NULL.
    Here is what i have done till now.
    Create Procedure Get_Column_type
    @parm_table_name nvarchar(200),
    @parm_column_name nvarchar(20),
    @parm_result nvarchar(20)OUTPUT
    AS
    BEGIN 
    select @parm_result =
    DATA_TYPE from INFORMATION_SCHEMA.COLUMNS IC
    where TABLE_NAME = '[' + @parm_table_name +']' and COLUMN_NAME = '[' + @parm_column_name + ']'
    END
    GO
    Now instead on write a case statement for so many data types in SQL, i was thinking is it possible someway that above procedure also returns the default value which i can set in another procedure.
    Let me know if its possible or not? Thanks in advance.

    Do you looking for something like this?
    create table t10 ( c int default 1)
    SELECT so.name AS table_name, 
              sc.name AS column_name, 
              sm.text AS default_value
         FROM sys.sysobjects so
         JOIN sys.syscolumns sc ON sc.id = so.id
    LEFT JOIN sys.syscomments SM ON sm.id = sc.cdefault
        WHERE so.xtype = 'U' 
          AND SO.name = 't10'
     ORDER BY so.[name], sc.colid
    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

  • How to dynamically get default value from a table column

    Hi all,
    Here's my problem: Our front end application sends insert and update queries to a pl/sql package. I've got a procedure that gets a PL/SQL table with all the column names an values, a table-name and a primary key name and value. That procedure creates an insert or update statement. So far, so good.
    Now the problem: our front end doesn't know what the default value for a column is. So when a number field doesn't get a value in the front-end, it's inserted with a value '0' though is should ben NULL. My sollution for this is to know the default value of a column: when there's a default of '0', then the value that will be inserted is '0'. When there's no default value and the column can ben NULL, it'll be inserted as NULL. if the column has a not null constraint, a '0' will be inserted.
    Ofcourse I can get the default value from the system-views all_tab_columns or user_tab_columns, but our application is installed at some 100 clients, and has various database installations. Most of the times, the tables are in the same schema as our procedure that performs the insert or update, but sometimes some of the tables are in another schema (in the same database) and also sometimes some tables are stored in another database. In all these situations, a synonym for that table exists in the schema.
    Is there a api function or procedure that I can call to get the default value of a column? I looked at dbms_sql and dbms_metadata, but those packages don't give me that perticular information. if not, I'll stuck with the 'does table exists in schema' yes->use table, no query user_synonyms to look for the owner of the table (and database link) and query all_tab_columns to get the default value. Only this seems a bit overkill to me.
    I hope I'm clear enough? And please don't reply with "don't do inserts this way"! I know, this is not the most optimal sollution, but it does gives us a couple of advantages in our application...

    there is no way that I can think of, apart from what you have already discovered (i.e. views), where you can determine if a column has a defuault value defined against it.
    The other option is triggers, but I guess doing that across 600 tables would not be an option, and besides I stay clear of triggers.
    A different approach therefore, if you cannot pre-determine the data, is to consider a post problem handler, hence I suggested the use of an exception handler.
    The exception handler works regardless of whether the statement is dynamic or not.
    SQL> truncate table abc;
    Table truncated.
    SQL>
    SQL> declare
      2    NULLVAL exception;
      3    pragma exception_init(NULLVAL, -01400);
      4 
      5  begin
      6 
      7    begin
      8 
      9      execute immediate 'insert into abc (y) values (1)';
    10 
    11      exception
    12        when NULLVAL then
    13          -- handle the error
    14          execute immediate 'insert into abc (x,y) values (0,1)';
    15 
    16    end;
    17 
    18    commit;
    19   
    20  end;
    21  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from abc;
             X          Y
             0          1

  • HR-ABAP-Infoset-creation-getting default value-standard-ss

    Hi All,
    Here I am having the requirement that I need to create a new infoset with specified infotypes in the HR-ABAP .For this I have used SQ01,SQ02,SQ03 T.C's and I have selected tables-fields whatever I required. But I am not able to get a default value in the Selection-Screen. And I need to get SAP Sandard selection screen related to HR-ABAP.
    Please do me favour to solve this problem. I am very much thankful for reading this query.
    Advance thanks for the help.
    Regards,
    Prakash

    Hi
    Look out for the error in the flat file which you are uploading. I have seen this error and I found it in Flat file. its a conversion error.
    Just copy few lines from the original file, make a new file and upload it. In this way, you will be able to say whether there is an error in file or in code.
    Regards
    Waz

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • Default values in query designer

    Hi,
    We have little weird requirement in our project.
    We have 2 variables on week char. in the query. One in global restriction which is manual input and other is in default values which is populated through customer exit. This is done to make sure if user does not enter anything on the variable screen in weeks variable, weeks will be populated from customer exit. In case if he/she enters anything  on the screen ,query should only consider values entered by the user.
    E.g If user executes the report and doesnu2019t input anything, customer exit will populate 200901 to 200910. Again if user goes to variable screen from the option in the analyser and inputs 201001 to 201015, query should only consider 201001 to 201015 values. But in this case values populated from customer exit in earlier run do not get delete automatically. I want to delete those values, if user inputs anything on the variable screen.
    I was thinking of deleting entries from e_t_range table but this is not possible as e_t_range table in turn passes the values to some SAP internal table(in std sap code) which we can not touch) and clears the e_t_range table in each run.
    Could you please suggest any other way to resolve this issue?
    Many Thanks.

    Hi,
    GO to the Customer exit and check what is the I_STEP value it is taking.
    I think the Query is not refreshing with the for the second time when the user is imputing the values manually.
    Use I_STEP = 2 in the Customer exit and check.
    For more details
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
    Santosh

  • How to  get formated value from query

    i get value from query use the follow method
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_UNFORMATTED);
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_FORMATTED);
    the first method retrun a value '1666.0',
    the second method return a value null
    but i want to get the value '1,666'.
    who can tell me how can get the formated value?

    Ahu,
    An implementation of DataAccess is not required to support all DataMap constants. For example, the OLAP-based Query object does not support DataMap.DATA_FORMATTED. To find out which DataMaps are supported for a particular implementation, you can call the DataDirector's getSupportedDataMap method.
    If you have an Crosstab instance, there is a way to get the formatted cell value, based upon the formatting rules associated with the Crosstab. Get the GridViewFormatManager reference from the Crosstab, and call its formatDataValue method to return a String representation of the formatted data value.
    Hope this helps,
    djb

  • Getting default values in module pool screen

    Hi frenz,
    I have a requirement like in module pool i am supposed to bring 4 fields from ddic,in which the first two fields should have a default value i.e when the pbo is processed itself the input values should be displayed in first two fields.....can some one help me out to solve the issue.
    thanks
    prem
    Edited by: prem kumar on Jun 19, 2008 1:30 PM

    suppose u are using field1 field2 on screen...
    then in PBO create a module
    module def_val.
    inside it write.
    field1 =  '100'.
    field2 = '101'.
    here 100 and 101 are the default values that u r going to assign....
    that will solve ur issue..
    rewrd points if the ans is helpful...

  • Not getting default value in TCODE

    hi,
    I have set default values for select-option of date , on executing the program it is alrite. But when i created TCODE for  the same program and try to execute it ,i am nt gettin the default values at selection screen.

    hi,
    while creating the transaction code in se93 , u r ask to select one of the radio button right , see whether u have selected
    option PROGRAM AND SELECTION SCREEN(REPORT TRANSACTION).
    Rgds.,
    subash

  • How to get default values on selection screen(multiple ranges)?

    i want to know how to maintain default ranges in selection screen...like 2000 to 3000 and 7000 to 8000 and 11000 to 15000
    all the above ranges must get by default how to provide those to selection screen by default...please give me idea...with example...

    Hi Suresh,
    You can either use select-options or Ranges. If you want the selection screen to be displayed with allwoing user to enter values apart for the default ones use select options else use ranges. With ranges what ever values use hard code would be set and the end user will not be able to add any more values (or range of values).
    Simply write the following code
    tables : <name of the table from which the field belongs>
    select-options <fieldname> for <tablename>-<fieldname>.
    <fieldname>-sign = 'I'.
    <fieldname>-option = 'BT'.
    <fieldname>-low = '7000'.
    <fieldname>-high = '8000'.
    append <fieldname>..
    similiarly add all the ranges that you need to include as default and in your select statement use the IN operator inthe where clause to include the range.
    If using range replacethe select-option with the range statement.
    Thanks.

  • How to get default value using VA

    using jdev 11.1.1.6.2
    I defined a transient attribute with a default expresssion as
    oracle.jbo.Row r = getPayeeNameVA().first();
    if(r != null)
    return r.getAttribute("PartyName");
    I have a VO named PayeeVO with a vc haiving one bind variable. This VO is used to create PayeeNameVA view accessor. In PayeeNameVA the default VC is shuttled and value is bound to one of the view attribute.
    However, on running the app I get below exception. please advise
    aused by: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: org.codehaus.groovy.runtime.typehandling.GroovyCastException, msg=Cannot cast object 'oracle.jbo.script.ExprEvalWrapper@3b50bd53' with class 'oracle.jbo.script.ExprEvalWrapper' to class 'oracle.jbo.Row'
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1411)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1457)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1435)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1217)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2262)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1884)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1940)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:883)
         at oracle.apps.afg.creditRules.model.view.CreditReceiversVORowImpl.getPayeeName(CreditReceiversVORowImpl.java:780)
         at oracle.apps.afg.creditRules.model.view.CreditReceiversVORowImpl$AttributesEnum$2.get(CreditReceiversVORowImpl.java:39)
         at oracle.apps.afg.creditRules.model.view.CreditReceiversVORowImpl.getAttrInvokeAccessor(CreditReceiversVORowImpl.java:830)
         at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:913)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1137)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:731)

    Hi,
    apparently you access the wrong object, which is ExprEvalWrapper, and this cannot be cast to the Row object you really want to work with. I assume that Row is wrapped by this class. However, the ExprEvalWrapper is for internal framework use and the super class, which is org.codehaus.groovy.runtime.wrappers.PojoWrapper, exposes the getWrappeed method as a protected method. Without knowing your exact use case I think you will need to find another solution (e.g. expose a method on the entity impl class you then call from Groovy)
    Frank

  • Problem in getting default value for Basic Pay

    Hi gurus,
    i have created a new structure in fresh new sap server for payroll.
    after completing configration. when i hire an employee system , it gives an error
    on info 8. It did not pick the value from t510 table.
    please response it is urgent.
    Nawaz Khan

    Hi Nawaz
    First of alll you have to check the configuration part in the basic pay ( PM>PA>Payroll Data> Basic Pay> Check Wgetype Charateristics. There you can find one screen where you have to modify the indirect valuation module according to the requirements. Then come to PA30 and enter IT0008 for some person and check.
    Cheers
    Vijai

  • Default values on selection screen of a SAP Query

    Hello,
    I have a selection screen which is designed in SAP Query.
    How to get default values for the fields on selection screen.
    Regards,
    Satya

    hi....
    you can go with following type of code..
    ITS A TESTED CODE AND WILL SERVE YOUR PURPOSE
    tables: sflight.
    data: t_table like standard table of sflight.
    select-options:
       s_carrid for sflight-carrid.
    parameters:
      p_fldate type d.
    initialization.
    p_fldate = sy-datum - 7.
    s_carrid-sign = 'I'.
    s_carrid-option = 'BT'.
    s_carrid-low = 'AA'.
    s_carrid-high = 'LH'.
    append s_carrid.
    start-of-selection.
    select carrid
              connid
              fldate
    from   sflight
    into corresponding fields of  table t_table
    where carrid in s_carrid
    and fldate < p_fldate.

  • BI 7.0 Order of Query front end default value fields

    Hello,
    I have a ordered the default values in query designer, but when I display the query in bex web analyzer, the order of the dimension variables is not in the same order as I specified in query designer.  It does not appear to be alphanumeric or even based ont the technical name.   How can I control the order of the default values?
    Thanks for any information
    Lee Lewis

    Simply go to the query properties and here you can re-order the charachteristics

Maybe you are looking for