To default the Bill_To_Location in PO Form

Hi all,
I need to make the Bill_To_Location address to be defaulted from the Financial Options in Oracel Purchasing.This should not be override by the Supplier or Supplier Site.I tried this by Perosnalizing but the performance of the form is being slowed down.Please let me know if there is any standard setup to achieve the same or by modifying any trigger in the form(POXPOEPO).
Thanks for you help in advance.
With Regards,
Sunil Kumar Mallina.

I added this and it shows up the fax number:
data: l_parnr like vbpa-parnr,
      l_name1 like knvk-name1,
      l_namev like knvk-namev, "first name
      l_kunnr like vbpa-kunnr,
      l_persnumber like adcp-persnumber,
      l_fax_number like adcp-fax_number,
      l_vbelv like vbfa-vbelv.
select parnr into l_parnr from
       vbpa
       where
       vbeln = g_sale_ord and
*      vbeln = is_nast-objky and
       parvw = 'AP'.
       exit.
endselect.
if l_parnr is not initial.
   select single name1 namev  into (l_name1, l_namev)
      from knvk
      where
       parnr = l_parnr.
   concatenate l_namev l_name1 into g_contact separated by ' '.
endif.
select vbelv into l_vbelv from vbfa where
vbeln = gs_hd_adr-deliv_numb and
vbtyp_n = 'J' and
vbtyp_v = 'C'.
  exit.
endselect.
select single parnr from vbpa into l_parnr
where vbeln eq l_vbelv
and parvw eq 'AP'.
if sy-subrc eq 0.
  select single * from knvk into g_knvk where
  parnr = l_parnr.
  select single fax_number into g_contact_fax
  from adcp
  where persnumber = g_knvk-prsnr.
else.
  select single kunnr from vbpa into l_kunnr
  where vbeln eq gs_hd_adr-deliv_numb
  and   parvw eq 'AG'.  "sold to
  if sy-subrc <> 0.
*from ship to
    select single kunnr from vbpa into l_kunnr
    where vbeln eq gs_hd_adr-deliv_numb
    and   parvw eq 'WE'.  "ship to
  endif.
  check sy-subrc = 0.
  select single * from knvk into g_knvk where
  kunnr = l_kunnr and
  abtnr = 'Z007'.
  select single fax_number into g_contact_fax
  from adcp
  where
  persnumber = g_knvk-prsnr.
endif.
Thanks

Similar Messages

  • Defaulting the qualification in E-Recruiting manager requisition ehp6

    Dear Experts!
    We are on EHP6 with standalone scenario.
    We would like to default the qualification/requirements in Requisition form for manager when he selects the position/job.
    Please suggest the pre-requisites and activities to be completed to default the same.
    I'm aware about the following requirements-->
    1.RECFA HRQUA to be set to X in T77SO
    2.Org Unit data is( C/S objects and relationship between them) is transferred via ALE.
    3. I would also like to default the qualification for internal employees.
    Queries-->
    1.Do I have to transfer qualification catalogue from ECC to EREC using ALE for defaulting the requirements in requisition form?
    If yes what should be filter model for qualifications( which infotypes objects/ types/subtypes/ relationships are required to be transferred for this requirement.
    2.Do I need to transfer the qualification catalogue for defaulting the qualification for persons? If yes what filters should be added to ALE for this.
    Appreciate you quick help!
    Thanks,
    Poonam

    Hi Poonam,
    Please have a look at:
    http://help.sap.com/erp2005_ehp_05/helpdata/en/45/8150635e9c40c1e10000000a1553f7/frameset.htm
    Qualifications are stored in HR in infotype 1001 (032) for the person object type. So you need to add that in your distributional model to get all qualifications for employees also on E-Recruiting side.
    For the whole qualification catalog transport check: http://help.sap.com/erp2005_ehp_05/helpdata/en/43/e8640b80d7719ce10000000a1553f6/frameset.htm
    Best regards,
    Nicole

  • Can we default the latest organization hierarchy when opening the org hierarchy form?

    We have several versions of the organization hierarchy. The older versions are end dated and the newer version(say version number 5) is active now.
    When the users go into the organization hierarchy form, it takes us to the first version and then users have to use the down arrow on the key board to get to the latest active version. Sometimes, the users are forgetting they have to go to the new version and making changes in the incorrect version. Is there a way to always default the latest version to show up first when the form is opened?
    Thanks for your help..
    -Jay

    One thing I noticed is that the default numbering given to the hierarchies is 1,2,3,4 and 5 ...etc with 1 being the oldest. For my hierarchies, If I give numbers as 5,4,3,2,1 with 5 being the oldest, it is showing the latest version 1 as soon as we open the form. This is helping me address my requirement. Any ideas if this is going to cause any problems anywhere if I change the default numbering of the hierarchies?
    Thanks
    Jay

  • Default the Name of the Adobe Form while saving

    Hi,
    I am calling an Adobe Form from Webdynpro.  While saving the form i need to default the name of the Form.  Can anyone help me to solve this issue.
    Thanks & Regards.

    Hi Manikandan
    I got a requirement as exactly you have posted, default the PDF filename while saving it (In Adobe forms).
    If you have any solution for it, kindly share it with me.
    Thanks & Regards,
    Rajesh P

  • I am trying to download a form to fill in and it appears in Windows wordpad and there are milions of random characters which |I have to delete before I get to the text and then the test isn't in the format of a form to fill in. Help!!!

    when ever I try to download a form to fill in, the default is windows wordpad and then it appears with millions of characters which I have to delete before getting to the text which is not in the style of a form to fill in.
    How can i get it to download the form as it is?

    What kind of code do you see?
    Is that an HTML file or a PDF file for the Adobe Reader?
    *https://support.mozilla.com/kb/Using+the+Adobe+Reader+plugin+with+Firefox

  • Issue with setting a default value to a Tabular Form field

    Hi -
    I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
    Thank you in advance for help!

    Share with us what worked in previous versions.
    Jeff

  • Defaulting the Sotrage location for all the line items in my sales order

    Hi,
    I have a scenario to default the storage location automatically in my sales order for all the line items. It is not going to change for a particular sales org. Dist. channel & Division combination. Can you pls. suggest me a solution for this.
    Thanks
    Ghanesh.

    Hi,
       You can default the storage location by using the below user exit
    Storage location
    Auto determination of storage location as u2018XXXXu2019 for sales order
    Include - MV45AFZB
    Form - USEREXIT_SOURCE_DETERMINATION
    IF (VBAK-AUART = 'XXXX' and VBAK-VKORG = 'XXXX' and VBAK-VTWEG = 'XX').
    VBAP-LGORT   = 'ABCD'.
    Regards,
    Gopal.
    Edited by: Gopalakrishnan S on Feb 25, 2010 7:35 AM

  • How to Edit the subject of a form that is submitted to me via email?

    Is there a way to Edit the subject of a form that is submitted to me via email?
    Ex. I've created multiple forms in Dreamweaver. They are submitted to my email address without problem.
    When I receive them, the default subject line in my email is "Form posted from Microsoft Internet Explorer"
    I want each of my forms to have their own subject line.
    Thanks

    Hi
    In your form to mail script insert the following just above the actual function to send the mail -
    $optional_subject = $_POST['form_subject'];
    and $optional_subject in your mail function just before the body info of your email.
    Insert an hidden field in your form with the id "form_subject" and the value you wish.
    PZ
    www.pziecina.com

  • Defaulting the mandatory field to space in a flex field - Urgent...

    Hi ,
    I have a flex field which is used to render address based on the country selected ( Country is an LOV..)
    The flex field details are.
    Appl Short Name: AR
    Name: Remit Address HZ
    Type: descriptive
    Address Line 1 is mandatory in the flex field configuration.
    My requirement is to default the Address Line 1 with space which I am doing by setting the vo.setAddressLine1(" ")
    once the VO is initialized and in the screen Address Line 1 is getting defaulted to space.
    But if the user removes the space in it and tabs out, even then I have to default the Address Line 1 with space.
    (i.e. if Address Line 1 is null then I have to default it to space)
    But as it is a flex field it does not have any Action Type. How can I default it if the user makes the field null..
    I tried in the VORowImpl to set the value to space if it is null but it is not working...
    public String getAddress1() {
    String value = (String) getAttributeInternal(ADDRESS1);
    if ( value == null || "".equals(value ) )
    return " ";
    return (String) getAttributeInternal(ADDRESS1);
    When the user makes this field as null and clicks on Apply button, the form validation appears saying the field
    is mandatory.( I cannot set the Disable Client Side validation to True for the Apply Button..)
    Is there a way
    1. To set the value of the VO attribute to space if it is made null
    or
    To set the VO attribute to a space before the form validation error appears?

    Hi Friends,
    I got the answer. The following link gives the details.
    http://www.oraclearea51.com/oracle-technical-articles/oa-framework-articles/184-set-dff-segment-required-in-oaf.html

  • Using Auto Suggest To Set The Value Of Multipe Form Fields

    I would like to use the Spry 1.5 Preview Auto Suggest widget
    to provide the value for multiple form fields based on the row the
    user selects in the auto suggestion data set. I've placed an
    example of what I want to do here:
    http://www.brucephillips.name/spry/Spry_P1_5_Preview/autosuggest/autosuggestMultipleFields .cfm
    It appears that when the user clicks on one of the rows in
    the auto suggestion data set, the current row for the data set is
    not updated but remains the default (first row in the data set).
    Therefore, if you have a spry:detailregion that uses that data set,
    the values for that detail region are from the first row in the
    data set and not the row the user selected.
    Is it possible to set the current row of the auto suggest
    data set to the row the user clicked on in the auto suggestion data
    set so that the spry:detailregion will have the values from the row
    the user clicked on?
    I had previously modified the Spry 1.4 Auto Suggest widget to
    do this. See:
    http://www.brucephillips.name/blog/index.cfm/2006/11/6/Modifing-Sprys-Auto-Suggest-Widget- to-Bind-Users-Selection-to-A-Form
    Thank you for any assistance.

    Cristian: thank you for the reply. I understand your concern
    about the user changing the auto suggest field after updating the
    complimentary fields. I think that could be handled through user
    instruction. Additionally, instead of using form fields to hold the
    complimentary data I could use non-editable paragraphs.
    I hope the change is not too difficult. I think this
    modification would make the auto suggest widget even more useful.
    For example think about a product auto suggest. User starts to type
    in the name of the product, selects the full product name from the
    auto suggestions, and now the page can immediately show in a
    spry:detailregion all the product details.
    Thanks again for considering my request. I really appreciate
    all the work the Spry team is doing. I'm looking forward to the
    official release of Spry.

  • Forms Personalization issue - Default GRE on Tax Balances form

    Hi -
    Since we have only 1 GRE in our HRMS system, I am trying to populate ( basically default) the GRE name on the GRE field of the Tax Balances form.
    I chose when new form instance and in the action i am setting the value of field TAXSEL.GRE = 'Name of GRE'
    So, when I open the form, it looks like it is successfully able to populate the field with the name of the GRE, but then it opens up the find person window where you need to enter the name of the employee whose tax baalnce you want to view. When I enter the name of the employee, the GRE field automatically dis-appears. So it defeats the purpose of the personalization.
    Has anyone tried this kind of personalization ? or any insights will be greatly appreciated.
    Regards
    Tushar

    Dear Tushar,
    try the following:
    1 - Help --> Diagnostic --> Custom Code --> Show Custom Events.
    2 - repeat the failing scenario
    3 - see which event on wich item is making GRE field dis-appearing
    4 - set your custom code on the event after the one identified in 3
    hope this help
    Giuseppe

  • Default the master / detail select lists

    When I load a form that has pre-existing data I need to be
    able to default the master / detail select lists to the correct
    values.
    (so the lists load with the correct values "selected" in each
    case.)
    Is it possible to do this and if so, how?
    Thanks in advance for any insight.

    Checkout this post. In it, I show how to do it using a couple
    of global variables:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1308016&highlight_key=y&keyword1=SetDefaultState
    But it could easily be modifed to get the default values from
    the URL. See these samples for how to do that:
    http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
    http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html
    --== Kin ==--

  • Default value type - validation option form based on stored procedure

    Please could somebody explain and provide an example of what the option :-
    default value type - in the validation options for a field in the editor for a form based on a stored procedure ?
    Thanks in anticipation.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dmitry Nonkin([email protected]):
    Absolutely, you can use SQL query to return the value like in the example above:
    Default Value = select 5 from dual
    Default Value Type = 'SQL query returns number'
    or
    Thanks,
    Dmitry<HR></BLOCKQUOTE>
    Hi,
    and what about:
    Default Value = select max(salary) from emp_salaries
    Default Value Type = 'SQL query returns number'
    Will it work? We go some troubles with this.
    Thanx
    Marcin

  • Default File Type for New Forms - How to change?

    Hi,
    How can I change propperty: Default File Type for New Forms?
    It is enabled! Do I have to be Administrator to change it? I have SAP ALL..
    SFP -> Layout -> Tools --> Options -> Document Handling
    tnx, Adibo.

    There is no authorisation required for changing the file type. You are saying its enabled, then you can change it.
    Edited by: Nikhil Poojari on Aug 28, 2009 6:50 AM

  • How to Change the Focus of a form tab?

    Hi ,
    In Oracle Apps how to do the form personalization to change the focus of the form from one tab to another tab at the time of opening of a form
    For example when I am open a form in that by default the focus of the form is showing first tab i.e. TAB1 here I need to change the focus of the form is TAB2 when ever I open a form.
    Please help is it possible in Form Personalization or not if not please suggest the alternative.
    Thanks in Advance.
    Prasanna

    Please help is it possible in Form Personalization or not if not please suggest the alternative.Forms Personalization is a feature of the Oracle Enterprise Business Suite (EBS) not Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    For information on what and how you can do something with Forms Personalization, you should review the Oracle Application Framework Personalization Guide in the Oracle Applications Documentation library.
    Craig...

Maybe you are looking for

  • Unable to capture stdout, stderr from python.

    I am trying to read the stdout and stderr of a python program. When I invoke anything else apart from python my class works fine. The python program takes ca 1 sec to start. It then prints one line of text, then it prints a promt and waits for input

  • Pricing Condition Type should split the Value

    Hello Gurus, I am working on Billing Plan for Contracts. In the contract I enter the condition type with Rs.24000. The same net value should split in the  billing plan by months for 12 months as Rs2000.00. Any inputs on this? Regards Venkat

  • FF downloaded. opens but after 30secs closes down of its own accord.

    The latest version of Firefox is installed. I can open it without a problem but after about 30 seconds it closes down. When I try to reopen nothing happens. The trouble shooting "auto Add" does not work and I cannot do it manually because I cannot op

  • List of unparked Invoice POs

    Dear All, My client wanna a report in which those POs should be displayed whose Invoice Item is open. I had suggested for the PO list display reports in Selection Parameters select "RECHNUNG", but system shows those POs also which Invoices are parked

  • Database control shows java.lang.Exception: IOException in connect refuse

    Hi All, I need some help on this issue. I followed MOS Doc 259387.1 to reset dbsnmp password because its password is unknown. The error is Error java.lang.Exception: IOException in sending Request :: Connection refused Thanks in advance. leim