How to change default value of requested delivery date in va21 create quo

hi experts,
My requirement is simple, to add one day to the default value of the Req deliv date under "General header data" in VA21.
I modified MV45AFZZ (an include in SAPMV45A).
I added this code:
if sy-tcode eq 'VA21'.
  case screen-name.
    when 'RV45A-KETDAT'.
     write reqdate to RV45A-KETDAT.
   screen-input = 0. "don't let user change it back.
   screen-active = 1. " but let user see the field and the
  endcase.
endif.
reqdate is the new value for RV45A-KETDAT which is sy-datum + 1.
This code does'nt actaully change anything. I tried to change other values of other fields using the same code and it works. Is RV45A-KETDAT the correct field to use?
Thank you in advance.

You don't need to do that via user exit.  You can configure the RDD defautls by document type in SD config, and adding 1 day to the current date is very simple.  You can continue to use the FIELD_MODIFICATION user exit to lock down the field.
Also, as a general practice in the sales exits, don't use SY-TCODE, use T180-TCODE or T180-TRTYP, even if you're not using BAPIs to create documents.

Similar Messages

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • CRMD_ORDER: how to set default values for Requester and Change Manager

    Hello Folks,
    how do I set default values in TA crmd_order?
    I drew my organizational hierarchy using TAs bp and ppoma_crm.
    When a new Change Request (e. g. SDHF) is created, I want the four roles (Requester, Change Manager, IT Operator and Developer) to be set automatically, not manually.
    Both Requester (= Key User) and Change Manager are derivable. I did not find anything in SPRO neither in the OSS neither here.
    Points will be rewarded as a matter of course!
    Thanx in advance!

    Hi Dirk,
    look for Define Access Sequence & Define Partner Determination Procedure in SPRO and read the IMG Activity Documentation. You can find it in the Service Desk config, but it works for the other transaction types too.
    Basically, you create Access Sequences where you tell the Partner Determination Procedure where to look for the values for the Partner Function fields.
    The Access Sequence can use lots of sources for the information, including your org structure.
    regards,
    Jason

  • How to change default value in contract by T-code ME32K?

    Dear my freinds,
    If you have one exist contract and then you use ME32K to change it, you will get default value for material group, plant and storage location in contract.
    If you have one materail 1002 at plant AUXX and storage location 0001 in contract already, then you can see these value will be in contract below:
    10     M     1     EA     0.00     1     EA     2B0880700     AUXX     0001                                       
    20     M                                                                                  2B0880700     AUXX     0001                                       
    30     M                                                                                  2B0880700     AUXX     0001                                       
    Our user does not want to display default value for filed material group, plant and storage location in contract by T-code ME32K.
    Could you give me kind idea how to avoid it? which is really appreciated!
    Thanks in advance!

    Hi Nick,
    Thanks for your idea, I agree with you that it may be fixed by user exit and is not worth to do it, but i only want to know how to do it easily, hopefully I can get answer from you...
    Thanks!

  • How to change default value of a parameter and LOV attached to a parameter

    Hi All
    I am new to discoverer reports and I need to accomplish the following tasks:
    1. Need to change the SQL query of a discoverer report
    2. Need to change the default value of parameter ( from constant to current month). In the discoverer plus responsibility when I open the report and go to tools>>parameter>>edit
    I can see the constant default value given there. On the right hand side there is a drop down which says 'Value'. I guess if i need to put a SQL as defaul value I need to change the drop down to sql or something and then put the SQL. Problem is the drop down is froezen and I cannot change it.
    Even if I try to create a new parameter/report.
    3. Need to change the LOV associated to the item on which the parameter is based.
    I have the discoverer plus responsibility attached to myself and do not have the discoverer administrator tool (desktop developer tool like forms 6i). My questions are:
    1. Can I change the SQL query by using discoverer plus responsibility or do I need discoverer administrator tool?
    2. Any help on how to get the default value from an SQL query? currently it is a constant value.
    3. Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?
    Any pointers/solutions will be highly appriciated!!!
    Thanks in advance.
    Thanks and Regards,
    Shashank

    HI,
    Need to change the SQL query of a discoverer reportThe discoverer generate the SQL according to the item, calculation and conditions designed in the worksheet.
    You cannot edit a specific worksheet SQL.
    In order to change the SQL you need to change the worksheet using the "Edit-> worksheet" from the menu.
    To change the SQL generated inside the folders you need to do that using the administrator.
    Need to change the default value of parameterYou cannot use SQL statements for the parameter default value. it is not supported. if you need default you can use only constant (as it was). otherwise you can set the parameter to be optional and then add to this condition an OR saying that <item>= NVL(:Parameter,<your default>)
    as <your default> you can use calculations so that if for example you want the current date you will create a calculation containing: SYSDATE.
    Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?They are based on SQL, even they are const then you will see it as
    select 'a','b'... from dual
    you can find the LOV (called item classes) in the administrator.
    Go to the item your condition is based on and see its properties.
    In the properties you should see the item class it uses.
    Close the properties and go to the item classes tab, search for this item class and figure the folder it came from.
    This is the folder you need to change in order to change the LOV.
    Hope it helped a bit, you sure asked several big questions...
    Tamir

  • How to change default value in "Project file" dialog

    I'm new to Labview, and I've encountered an example with a dialog that allows to define a path to a file.  If I open the properties on the block diagram of this block the name of the block appears to be "Path Properties: Project file:"   The default value points to a different place than where the file installed and the VI won't run untiI I change the path.  If I save and open the file, it doesn't remember the change.  When the vi is running I can right click the text and there is an option to reinitialize to default.  I've rooted around all over the place and can't find where this can be set or changed.  How do I change this? 

    On the front panel, change the control to the desired value.
    Now, right click on the control, select Data Operations and Make Current Value Default.
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • How to change default value in form

    Hi,
    I want to change the default value in form..how can i do this?
    Fo exa...in purchasing when we go to auto create..in action tab we see create been defaulted whenever we open the form and also there is one more option called add to...so whenever i open this form..i want to see add to there..
    How can we get this?please advise?
    Thanks
    Mahendra

    You can do it using forms personalization.

  • How to change default values in SCC?

    Hi,
    does anyone knows how to change the default values of the Sybase Control Center e.g.:
    Activation Code Expiration (Hours) – indicates how long an activation code is valid. The default is 72 hours.
    Within SCC the field is deactivated, it's changeable after creating a connection, but I need to set it within the connection template.
    Thanks in advance, Christian

    You're right, but we want to change the default setting of the template, to avoid this step.
    Thanks, Christian

  • How to use default values of variables when data get varied

    Hi Expert,
    I want to use default value of variables var1.
    for eg. if variable length is 20 char and value is abc , then i want to fill var1 by default 20 ( after printing abc value remaining length i.e.17 should be taken by var1 means total length 20 should be occupy by var1.)
    plz reply
    Regards,
    Jyotsna

    Hello Jyotsna,
    I dont really understand the example you have quoted. Can you elaborate your example?
    Vikranth

  • How to change the value of request.getParameter("submit")

    <input type="submit" name="submit" value="postLeave" />
    When I click on the submit button, control goes to a servlet file, where I can access the value of submit using request.getParameter("submit") which is the postLeave here. After accessing this value I want to change it's value or unset the "submit" in the same file.....
    Like in php we can do this easily using unset($_POST['submit']) ........ but how can I do this in java servlet....? Is there any method to do this...........? If not, then can anybody tell me the alternative solution for this.
    Deepak Jain
    [email protected]

    tschodt wrote:
    djain29 wrote:
    Is there any alternative solution?Retrieve all request parameters
    http://download.oracle.com/javaee/1.4/api/javax/servlet/ServletRequest.html#getParameterMap%28%29
    store in a new HashMap (which will be mutable)
    do all your operations on your new local copy of the request parameters.
    If you are in a filter have a look at
    http://download.oracle.com/javaee/1.4/api/javax/servlet/http/HttpServletRequestWrapper.html
    Fetching all parameters to a HashMap of course works but it might be a little over the top; fetching the one parameter that should be mutable to a local bean which you then use everywhere is another valid option, one that most web frameworks actually support by providing mapping services of request parameters to bean properties.

  • How to change default values in Answers

    Hi,
    I have a requirement to change 01/01/1901 date value to null in the reports. I've been trying to use EVALUATE but my syntax is not working. Can anybody help me?
    Thanks,

    Hi,
    I saw another forum that answered my questions.
    How to display spaces when the date is null?
    It works thanks.
    Thanks

  • How to change default number format for saved data in signalexpress

    I cannot find an option for determining format and precision of saved data. By default it is scientific with i think 3 siginificant numbers. How and where to do it?

    Stjepan, it sounds like you're right where I was 2 months ago! Glad to see I'm not the only one struggling w/ SE.
    Here's what I've had to do to control the precision of the data in my ascii file.
    Insert an Amplitudes and Levels step from Analysis>Time Domain Measurements.
    In the A&L settings, deselect Export RMA Value (keep Export DC Value selected).
    Now drag that DC signal from the A&L step into your data view (literally drag and drop this signal  onto the graph). From here you can configure the data view's properties to your likings, I.E, significant digits or digits of precision, floating point, etc.
    I've found that Floating Point,  2 Significant Digits, and uncheck Hide Trailing Zeros to work well (visually speaking).
    Insert your Save to ASCII step after the A&L step, and be sure to save your A&L's DC signal.
    The data will export exactly as it's shown in the display.
    TIP: you can rename your signals from any of the steps. This is handy because it's the renamed channel names that show up in your data headers (much more descriptive when you have multiple channels).
    My apologies if this is all information you already know... 
    Message Edited by OKors on 09-10-2009 10:27 AM
    SCXI- 1000 Chassis w/ 1346 adapter
    PCI 6281 DAQ card
    SCXI- 1520 Bridge Board w/ 1314 Terminal Block (x2)
    SCXI- 1180 Feedthrough Panel w/ 1302 Block
    Signal Express 2014.
    Win7 Enterprise

  • How to change default ringtone to a custom one for IPhone 5.

    I have gone into settings  through Sounds made the change, but it does not register as the default even though the ringtone chosen has the checkmark beside it.  Ringtone still lists the factory default under sounds & vibrations.
    I am able to customize ringtones for individual contacts.

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • Requested delivery date in a Sales Order?

    Hi,
    In one of my client Functional document, it is mentioned that
    [Material Availability Date] = [Requested Delivery Date] u2013 [No days in route]
    I want to know that from where does the system get the requested delivery date when we create a sales order?Is it determined automatically based on certain parameters or is defaulted always to the order creation date?

    It is based on few parameters like
    1. The relevant document type and in there Requested Delivery Date and there you will get Lead time in days and you can entar the number of days there. As it Specify the number of days after the current date that the proposal for the requested delivery date in the sales document should be.
    2.In material Master MRP2 screen you will get Scheduling Screen where you will get
    In-house production
    GR processing time
    Plnd delivery time

  • [Forum FAQ] How do I change default values shown in Report Delivery Options?

    Introduction
    Some users want to change default values shown in Report Delivery Options when creating standard subscriptions. Someone might want to always Cc the report to a specified user without sending the report URL. So they want to display those default values display
    automatically when creating standard subscriptions like below.
    Solution
    To achieve this goal, please embed JavaScript code into the SubscriptionProperties.aspx file to change those default values (By default, the file’s location is: <Installation directory>\Reporting Services\ReportManager\Pages\SubcriptionProperties.aspx).
    The example below will show how to set default values for “Cc” field and “Include Link” field.
    Before coding, pleas find out the corresponding HTML tags of the two fields in the browser using IE Developer Tools.
    Get “Cc” field with its corresponding HTML tag
    Get “Include Link” field with its corresponding HTML tag
    Embed such a code snippet at the end of the existing code within the SubcriptionProperties.aspx file
    <script runat="server">   
    protected void Page_Load(object sender, EventArgs e)
        Page.ClientScript.RegisterStartupScript(typeof(Page),"MyScript", "var cc = document.getElementById('CcEmailAddressesID');cc.value = '[email protected]';var IncludeLink = document.getElementById('ui_cbIncludeLink');IncludeLink.checked
    = false;",true);}
    </script>
    Create a new subscription to check the default values shown in Report Delivery Options 
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

Maybe you are looking for