Change default value of Partner Function in VA02

Hi all,
Can anyone please help me solve the following issues with Partner Functions in VA02:
1. How do I change the screen property (make it modifiable) of the Partner in the Partners tab for an auto-generated Free goods line item?
2. How can I change the default value (auto-pulled from KNVP) of the Partner Function Ship-To party for a Free Goods line item? Where do I apply the ABAP code?
We tried to modify thru userexit USEREXIT_FIELD_MODIFICATION and USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ but we can't seem to make it work. Also, the table control of the partners tab exists in SAPLV09C and not SAPMV45A.
Where do we apply the changes?
Points will be rewarded.
Thanks for any help in advance!
Kat

Hi !! KT,
For your auto generated line of free goods item note down what is the item catergory determined. Next use t.code VOPAN, click on radio button 'Sales Document Item' and click on change tab.
Now from the left hand margin options click on 'Partner determination Procedure Assignment', from 'position' go to the item catergory noted down, now note down the partner determination procedure assigned to it.(entry just next to your item category).
Next, from the left hand margin double click on 'Partner determination procedures'. Select the partner determination procedure just noted down, from the left hand margin now click on 'Partner functions in procedure'. Scroll down exactly to the partner function you want to work upon, here unselect the tick under 'Non modifiable'. This way you can now modify the partner.
For changing the default value after doing the above mentioned exercise you can overwrite default value.
Provide your feedback.
Regards,
PATHIK

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

  • Changing default value DropDownbyindex in wdinit in view

    Hi everyone, I'm using drop down by index in a view. It has many values but I want to change default value.
    I think that I have to simulate an action on dropdownbykey like select a value.
    Can i retrieve the index of an element of nod passing his value?
    Thanks a lot.

    hi ,
    u can try looping into the internal table .
    u must  be having that dynamic value ,suppose lv_sysid, based on which u want to set the index
    thn u can proceed like this :
      DATA : itab_sys     TYPE STANDARD TABLE OF z2ts_systems .
    *   populating internal table
        SELECT *
         FROM z2ts_systems
          APPENDING TABLE itab_sys.
    DATA : lv_index type i .
        clear  wa_sys.
      LOOP AT itab_sys INTO wa_sys.
        IF wa_sys-SYS_ID =  lv_sysid.
          lv_index = sy-tabix.
        ENDIF.
    here I have compared the work area value to lv_sysid
    lv_sysid is the value based on which u want to set ur index
    thn u can proceed to set the lead selection to lv_index.
    rgds,
    amit

  • [svn:fx-3.x] 10868: change default value of selectable in ASDoc comment to true

    Revision: 10868
    Author:   [email protected]
    Date:     2009-10-05 11:05:50 -0700 (Mon, 05 Oct 2009)
    Log Message:
    change default value of selectable in ASDoc comment to true
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/TextArea.as

    Thank you much for your response.
    I tried that and it did work. But my requirement is to have a user input the date. The basic idea is if the user decides on a predefined time range like Day Shift Today or Yesterday and so on... then the report would automatically calculate the values based on predefined date time values. On the other hand, if the intent is to run the report for an arbitrary period then the user supplies the date and time limits.
    What I am trying to achieve is have the same parameter available for user input , but when the User decides he wants Predefined then the "textbox" populates with date and time as per his choice of predefind range.
    I understand that by this the user can still overwrite the date and time on the text box, but the report will run the predefined values as long as he has the @PredefinedDateSelection Set to true.
    Is there a way I can impement this?
    Once again I thank you and appreciate  your input.

  • [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

  • Bypassing function argument without changing default value

    Hi there
    I’m having some problems understanding how I can bypass function arguments without changing its default value. Here are some examples:
     function myFunction ( arg1:Boolean, arg2:String="default string", arg3:Number=3 ):Array
        return new Array (arg1, arg2, arg3);
    trace(myFunction(true, "new string", 5));
    // true,new string,5
    trace(myFunction(true, undefined, 5));
    // true,,5
    trace(myFunction(true, null, 5));
    // true,,5
    trace(myFunction(true));
    // true,default string,3
    trace(myFunction(true, null));
    // true,,3
    My question is: Shouldn't I be able to call a function bypass the second argument (that has a default value), change third argument and on result second argument maintains its default value?
    Example:
    trace(myFunction(true, null, 5));
    // not desired: true,,5
    // desired: true,default string,5
    I know that applying a defult value to the argument allows one to bypass it. But it will always be redefined or to null or to undefined. At the moment I only see one solution.
    function myFunction ( arg1:Boolean, arg2:String="default string", arg3:Number=3 ):Array
         if (!arg2)arg2 = "deafult string";
         return new Array (arg1, arg2, arg3);
    It just seems like too much code repeated
    Regards

    Hi dmennenoh,
    Yup, this was just an example to show that the use of a default value only helps you to bypass the need to simulate a MouseEvent Object for an onRollOver MouseEvent argument. Other than that you can never bypass it without changing its value. You must always apply a null or undefined value and work with that.
    Thanks anyway

  • User exit to change the partner function in VA02

    Hi experts,
    I have a requirement to increment Volume field value everytime when the end customer ( partner function) is modified  at header and item level.
    Can you suggest some exits ?
    PLease suggest

    Hi
    Try with the following exits.
    EXIT_SAPLV46H_002
    EXIT_SAPLV46H_001
    Thank you,
    Sekhar.

  • Mass Changes to Customer Master partner functions

    Hi Gurus,
    I would like to change PE (Sales employee) MASS please guide me.
    Thanks

    Hi,
    Goto the T.Code "XD99".Or Goto the T.Code "MASS".Here(In MASS T.Code),select teh Object Type as "KNA1".
    Click on Tables.
    Select "Customer Master Partner Functions(KNVP)".
    Click on Execute.
    Enter the range of Customer Numbers/single values in the multiple values.
    Select the Partner Function as "PE".
    Execute.
    Click on Select Fields(First Icon under Customer master partner functions).
    Select "Customer(KNVP-KUNNR)" and click on Choose.
    Enter.
    Enter the value for the field "New Values" and ensure that all rows are selected.
    Click on the icon "Carry out a mass Change"(sixth icon).
    Save.
    Regards,
    Krishna.

  • 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 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.

  • .INI files vs .TXT files for changing default values in a .EXE?

    Hi,
    I have a two-part question related to updating the default values of controls in an executable:
    I am creating a LabVIEW executable for installation on two different production-floor computers.   I need to be able to change the default values of the front panel controls (as I would do with the “make this value default” command during development). From reading prior posts, I understand that I could use the “Write Configuration Settings File.vi” and “Read Configuration Settings File.vi” to generate a .INI file that would be read by the .EXE and would establish the desired values of the controls. However when I took a look at the block diagrams for those configuration .VIs, they don’t appear (to me) to be any easier to use than just reading values from a spreadsheet file. IE: Instead of using these configuration files and a .INI file, could I not instead just read values from a .TXT file that contains the desired values?   I’ve never used a .INI file before, or had to worry about “keys” and “sections,” so from my (perhaps naïve) perspective, the .INI method seems less easy to use. Is there any advantage to the .INI format?
    Regardless of whether I use the .INI file or a .TXT file, I have this additional problem: One of the things that changes when I install my .EXE file on a new computer is the COM port numbers used by two serial devices.   (On my development computer, the two serial devices use COM5 and COM6, whereas on the two production-flood computers, the COM ports will almost certainly be different).   I suppose I could use the Device Manager on the production-floor computers to change the COM ports to be the same as those on my development computer, but I’d prefer to be able to (again) change the default value of the COM ports in my .EXE.   However, I’m not sure how to do that.   The configuration VIs, have options for reading / writing Booleans, strings, paths, and numeric, but not, (so far as I can tell) for a VISA class.
    Any thoughts / suggestions are welcome. Thanks.
    Solved!
    Go to Solution.

    Dan_the_Clam wrote:
    Thanks for your reply, Yamaeda,
    Great that I can use a string to open a VISA session - I had no idea.  I'll try that.  
    And - ah - you are right about the .INI files.  I just did an experiment in which I re-ordered the sections and randomly changed which letters were capitalized in the key values, and the "read configuration settings.VI" still read the file correctly.  Thanks for that.
    Unfortunately, in my existing code, the controls on the block-diagram aren't all co-located together; they are scattered throughout the block diagram - some of them in case structures and loops.   I suppose that means I'll have to move them all to the left side of the block diagram, route them to these "Write Key.VIs" and then wire them up into the cases and loops with fairly long wires.   It's just a hassle, and is going to make my block diagram more complicated.  Well, I suppose that's how one learns...
    Thanks again.
    dan
    Assuming you have a state machine and an Init state it's a fair use of Local Variables to update controls from the ini-file. The same goes for saving the values.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for