:parameter.doc_type value in CUSTOM.pll

Hi,
I am currently doing customizations through CUSTOM.pll.
In the code i need the value of :parameter.doc_type(related to a form in inventory module) .
Any clues as to how can i get this value.
Any help will be appreciated,thanking in advance
Kaps.

use name_in() built-in to refer that in your custom.pll , will solve u'r problem

Similar Messages

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • Setting up Flexfield Context Value programmatically in Custom.pll

    I need to default the context value of my DFF based on user profile/responsibility, How do I assign a value to context value field in custom.pll?
    Thanks,
    AJ

    Hi John,
    I got the same issue. Is yours being resolve yet?
    Can you share the solution.
    Thanks.

  • How to use a parameter field value as a substring in a "like" statement?

    Hi all,
    I'm trying to use a parameter field in a Record selection formula where the parameter field value would be a substring of the data stored in the field.
    My parameter field (SlctResearcher) is constructed as follows:
    Type: string
    List of Values: static
    Value Field: (Reports) RptAuthors
    (in Value Options) Allow custom values?: True
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like "*{?SlctResearcher}*"
    When I hit F5 to generate the data, I get no results (and the parameter prompt field does not even come up...)
    If I modify the formula to put a hard-coded string, like
    "*Jones*"
    after the 'like', I get results (all the reports where "Jones" is a substring in the RptAuthors string.) If I modify the formula to just use the parameter field without the quotes/stars like:
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like {?SlctResearcher}
    I do get the parameter prompt field, but still no results even if I put in a valid substring value (since it is not searching for a substring anymore...)
    How can I do this?
    Thanks,
    Will

    1st thing... Make a copy of your report before doing anything!!!
    To use a SQL Command, you'll want to open the Database Expert and look at the Current Connections. Expand the data source and the 1st option you see is the Add Command option.
    To find the SQL That CR is currently using, choose Database from the menu bar and select Show SQL Query...
    You can copy this and paste it directly into the command window. (If you you can write your own SQL you don't need copy CR's, it's just an option.)
    You'll also want to take not of any parameters that you have, you'll need to add them the the Parameter List of the command as well... be sure to spell them EXACTLY as they are in the design pane.
    Anyway, once the SQL statement is in the Command window you'll be able to alter the WHERE clause to use the wild cards.
    For future reference... What type of database are you reporting against???
    Jason

  • How to add New Menu Bar using Custom.pll

    Hi All,
    I have developed a form based on the Oracle Apps form.For standard form i have to add one more menu bar in tools menu using custom.pll,i'm using 11.5.8 version.
    So can any one help me in thi regards as i'm new to this custom.pll,How can we add that New menu bar item and how can we open the custom.pll
    where we have to write the code and all the stuff.Which we have to use like wise.
    If any one is having the code on the regarding u can please pass me.
    Help me in this as it is urget to the client.
    Regards
    Siva

    Hi Donny thanks for ur reply,
    As i was new to the Custom.pll,i have opened the custom.pll throught Form Builder.I have found the packages of the Custom.pll,I have to add new Special Menu to it.If u have code can u please give me simple example.
    If I press that Menu I have to open New Form that i have Customized.And also to get values into that form.
    Can u please help me in this give me simple Example.In Which trigger i have to write the code and all the stuff....
    Bit urget
    If any one is having coding can pls send me to my mail id :[email protected]
    Regards
    Siva

  • QUERY ONLY = YES not working when set in CUSTOM.pll

    Hi,
    Depending on the responsibility the user is logged on as I have set the element entries form PAYWSMEE to query only = yes within the custom.pll. This seems to work in so far as the elements screen is display-only but when i go into the entry values they are updateable. I have tried setting query only at WHEN-NEW-BLOCK-INSTANCE event and also on WHEN-NEW-FORM-INSTANCE but same results.
    Would really appreciate any help.
    Lorcan.

    EBS questions should be asked in the EBS Forum.

  • Standard LOV Customization through CUSTOM.pll HELP

    Hello,
    I am currently trying to override the LOV dropdown of an Oracle 11.5.10 form using the custom.pll. The example I am using is as follows:
    procedure event(event_name varchar2) is
    form_name      varchar2(30) := name_in('system.current_form');           --added by Nazir
    block_name      varchar2(30) := name_in('system.cursor_block');      --added by Nazir
    item_name     varchar2(100) := name_in('system.current_item');
    v_sql          varchar2(5000);
    result           Number;
    rec_id           RecordGroup;
    v_login_company     VARCHAR2(50);
    begin
    if(event_name = 'WHEN-NEW-ITEM-INSTANCE') then
    if (form_name = 'ARXTWMAI' and block_name = 'TGW_HEADER') then
    if( item_name = 'CTT_TYPE_NAME_MIR') then
    v_login_company     :=     fnd_profile.value('LN_LOGIN_COMPANY');
    if (v_login_company = '0000') then
         fnd_message.set_string('Please enter description');     Testing fnd message. This works fine. Message displayed.
         --fnd_message.show;
    v_sql := 'select ctt.cust_trx_type_id cust_trx_type_id, ctt.name name, ctt.description description, ctt.type class, arl_class.meaning class_meaning, ctt.accounting_affect_flag open_receivables_flag, ctt.post_to_gl post_to_gl_flag, ctt.allow_freight_flag allow_freight_flag' ||
    ',ctt.creation_sign creation_sign, ctt.allow_overapplication_flag allow_overapplication_flag, ctt.natural_application_only_flag natural_application_only_flag, ctt.tax_calculation_flag tax_calculation_flag, arl_status.meaning default_status' ||
    ',arl_print.meaning default_printing_option, rat.name default_term from      ar_lookups arl_print, ar_lookups arl_status, ar_lookups arl_class, ra_terms rat, ra_cust_trx_types ctt ' ||
    'where '||''''||'INVOICE_PRINT_OPTIONS'||'''' || '= arl_print.lookup_type ' ||
    ' and      ctt.default_printing_option = arl_print.lookup_code' ||
    ' and' || ''''||'INVOICE_TRX_STATUS'||'''' ||'= arl_status.lookup_type' ||
    ' and      ctt.default_status = arl_status.lookup_code and      ctt.default_term = rat.term_id(+) ' ||
    ' and' || ''''||'INV/CM'||'''' || '= arl_class.lookup_type ' ||
    ' and      ctt.type = arl_class.lookup_code' ||
    ' and      ctt.type in ( ' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ',' || '''' || 'INV' || '''' || ',' || '''' || 'CM' || '''' || ',' || '''' || 'DM' || '''' || ')' ||
    ' and      ( ctt.type not in (' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ') or ctt.accounting_affect_flag =' || '''' || 'Y' || '''' || ')' ||
    ' order      by ctt.name' ;
                   rec_id := CREATE_GROUP_FROM_QUERY( 'TRANS_TYPE_LNCUSTOM', v_sql );
                   result := POPULATE_GROUP(FIND_GROUP( 'TRANS_TYPE_LNCUSTOM'));
                   SET_LOV_PROPERTY('ARXTWTGW_TRANSACTION_TYPE', GROUP_NAME, 'TRANS_TYPE_LNCUSTOM' );
    end if;
    end if;
    end if;
    end if;
    end event;
    I am getting following errors:
    FRM-41072: Cannot create group TRANS_TYPE_LNCUSTOM
    I checked my query with DBMS outputs and then copy that output and ran it as a query in toad and it worked fine.
    Has anyone done this before that could help me resolve the problem??
    Thanks,
    Nazir.

    Hello,
    I figured out the problem and it works perfectly fine. Basically, it does create a record group but once I move out of the item and come back to the item, it was trying to create a record group with the same name again. So I had add an extra check in my statement:
    if id_null('record group')
    then only create the group;
    Thanks Guys,
    Nazir.

  • Forms Personalization or custom.pll

    I need to make the 'One Time' check box default to yes for the supplier window when I login through a custom responsibility One Time Supplier !
    either by forms personalization or custom.pll
    Can any one advise me ?

    Ok.
    I’m on EBS 11.5.10.2 R3
    I’m not sure if it will work for a different version
    1.Open the Suppliers and the Forms Personalization windows.
    2. Seq=1, Description: Activate One_Time flag
    3.Level = Function
    Condition:
    Trigger Event = WHEN-NEW-RECORD-INSTANCE
    Trigger Object = VNDR
    Condition = :SYSTEM.RECORD_STATUS = 'NEW'
    Actions
    Seq=1, Type = Property
    Description = One Time
    Object Type = Item
    Target Object = VNDR.ONE_TIME_FLAG_MIR
    Property Name = VALUE
    Value= Y
    4.In the Context area enter the responsibility you want to be affected by this personalization.
    5.Save your work and close all windows. Using the responsibility on 4, open the suppliers window again, go to the Classification tab and see if it is checked.
    Hope this helps
    Octavio

  • How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods

    Hi All,
    How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
    This is a enhancement requirement.
    When ever user enter value in field 1 then automatically cursor should go to next field.

    Hello Bobb,
    You can create a trigger(when-list-changed) for each list item where you could:
    1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
    or
    2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
    Second option is much faster(only an 'if clause')
    Hope this helps.
    Regards,
    Alex

  • Loosing focus on exit_form in custom.pll zoom

    This forms question involves the use of the CUSTOM.pll in Oracle Applications 11.03 (forms 4.5) to ZOOM from RCVRCERC (Receipts in PO) to INVIDITM (Organization Items). For those not familiar custom.pll is shared across the apps forms and invoked at new_form, new_block, new_item_instance trigger points. It is the only “approved” method for customizing application forms.
    I’m NOT a hardcore forms coder. More of an apps admin with some forms experience in my (distant) past.
    The zoom is functioning OK (with auto query) and I’m able to open the flexfield structure (another apps specific) via a go_item. I’m trying to reduce key strokes by having the “zoomed to” form exit when the flexfield structure is exited. The end user is only zooming to reference a flexfield value.
    To accomplish this I’m using the when_new_item_instance in custom.pll, checking for the item name (e.g. where cursor is positioned after the flexfield structure) and performing an exit_form.
    At this point the user is returned to the invoking form RCVRCERC. But, the exited form remains visible. When I mouse to this form and establish focus the exit_form takes effect and the form window closes and I’m returned to the correct form, etc.
    I put some debugging messages in the code leading up to the exit_form. I’m using fnd_message.show for this which produces a modal window that requires acknowledgement. With these debugging messages in place the form exits as expected (e.g. form exists after acknowledging the last message). Its almost as if the modal windows are forcing the focus on the form until it actually exits.
    Any ideas on how to get the “zoomed to” form to exist cleanly.
    Sorry if this isn’t clear. Not an easy thing to explain.
    Note: You’ll see this cross posted in a couple places.
    Thanks in Advance
    Ken

    Sorry about the weird chars. Wrote this in MS word and cut and paseted. They're mostly " marks, etc.
    Ken

  • Custom code for LOV generation in Custom.pll

    Hi All,
    I am using the custom in my custom application, I am using the following procedure in Custom.pll for LOV generation. When I use the same procedure standalone then it's working fine, But when I use it in Custom.pll then it's giving me the Error "No-Data-Found", please let me know what to do. I am assuming that it can't find the appropriate backend table, I am logging in through sysadmin/sysadmin, Also I have fully followed the procedure for Table registration and Synoym creation and assiging it to apps but even then it's giving me the above mentioned error.
    procedure event(event_name varchar2) is
    rg_id RECORDGROUP;
    query_string VARCHAR2(2000);
    crnt_item VARCHAR2(60) := name_in('SYSTEM.CURSOR_ITEM');
    crnt_type VARCHAR2(30) := GET_ITEM_PROPERTY(crnt_item, DATATYPE);
    -- Omit crnt_hint if not context sensitizing the LOVs.
    crnt_hint VARCHAR2(30) := SUBSTR(GET_ITEM_PROPERTY(crnt_item,
    HINT_TEXT),
    INSTR(GET_ITEM_PROPERTY(crnt_item,
    HINT_TEXT), ':') + 2);
    begin
    IF event_name = 'WHEN-NEW-BLOCK-INSTANCE' THEN
    IF (form_name = 'FRM_EXPATIENTMASTER' and block_name = 'REG_EXPATIENTMASTER' and item_name = 'DEFENCECODEFK')
    then
    crnt_item := SUBSTR(crnt_item, (INSTR(crnt_item, '.') + 1));
    query_string := 'SELECT DISTINCT reg_defencecategory.defencecodepk'
    || ' AS holder_value '
    || ' FROM hms.reg_defencecategory'
    || ' ORDER BY 1';
    IF NOT ID_NULL(FIND_GROUP('generic_lov_rg')) THEN
    DELETE_GROUP('generic_lov_rg');
    END IF;
    rg_id := CREATE_GROUP_FROM_QUERY('generic_lov_rg', query_string);
    SET_LOV_PROPERTY('generic_' || crnt_type || '_lov',
    GROUP_NAME, rg_id);
    IF FORM_SUCCESS THEN -- >From "IF" to "END IF" may be omitted
    -- if not context sensitizing the LOVs.
    SET_LOV_PROPERTY('generic_' || crnt_type || '_lov',
    TITLE, 'Available ' || crnt_hint || ' values');
    SET_LOV_COLUMN_PROPERTY('generic_' || crnt_type || '_lov',
    1, TITLE, crnt_item);
    END IF;
    LIST_VALUES;
    /* IF name_in('control.holder') IS NOT NULL THEN -- Holder is set to null in Lov_Btn WBP trigger
    COPY(name_in('control.holder'), crnt_item); -- Depends upon implicit conversions for non character
    -- datatype values (in this example, NUMBER and DATE). Create a 'holder' for/of each datatype
    -- required to avoid implicit conversions.
    END IF;*/
    end if;
    end if;
    exception
    when no_data_found then
    message('No Data Found, try Again');
    null;
    end event;

    Hi John,
    I got the same issue. Is yours being resolve yet?
    Can you share the solution.
    Thanks.

  • FRM-40815: Form Error, using CUSTOM.pll

    Hello,
    I am trying to customize WIP Lot Transactions Oracle Standard Form using CUSTOM.pll.
    Upon navigating to one of the 3 blocks in the form(RESULTING_LOT), I am getting following error message:
    "FRM-40815: Variable GLOBAL.CLRREC_NOVALIDATE does not exist"
    This global variable is not used in CUSTOM.pll at all. But is initialized and used in the standard form only.
    When custom code is turned off, there is no error message.
    Please advise.
    Thanks,
    Krishna.

    Hi,
    Thanks for the response.
    I have created a custom profile and attached it users and Profile value has the organization names.I want the User A with Org1 value in the profile to see all the GL Batches which is created by any other user who belongs to only Org1. Say another user User B with Org2 as the profile value should not see any GL batches created by any other user in the GL Journal Form belonging to other Org's.I'm able to restrict the batches using the below query using the personalizations in the Record Group for the Batch Name.But if the user doesnt give any search criteria and then selects Find then the main form displays all the batches. Hence I want to overide the Data Block where to display accordingly.
    select a.name from gl_je_batches a
    where 1=1
    and a.created_by in (select b.user_id from
    fnd_user b,
    fnd_profile_option_values c,
    fnd_profile_options d
    where c.profile_option_id =d.profile_option_id
    AND c.level_value = b.user_id
    AND profile_option_name='KAP_USER_ORGANIZATION'
    AND c.profile_option_value =(select profile_option_value
    from fnd_profile_option_values e
    where e.level_value =fnd_profile.value('USER_ID')
    and profile_option_id=d.profile_option_id)
    Thanks,
    Ashwini.

  • Create Local Variable in Custom.pll

    Hi,
    I want to create and calling local variable in custom.pll. As i know, we can create local variable with personalization form. but i didn't find the way to create local variable in custom.pll.
    Is there any way to create local variable in custom.pll and calling that variable ?
    Thanks

    I think what you want is to create a GLOBAL variable, a LOCAL variable would be available to the Procedure/Function being executed.  But to create the local variable, you add it between the Function/Procedure declaration and the begin
    PROCEDURE abc(p_input    VARCHAR2);
      v_count       NUMBER := 0;
    BEGIN
    END;
    A GLOBAL reaches out past the execution of the proc defined in CUSTOM.pll.  You can simply type GLOBAL.<var_name> := <value>.
    BEGIN
      GLOBAL.xx_count := 0;
    END;
    Though I like the ability Personalizations give you of using Init Value vs. Value,  Init Value will assign a value if the variable does not exist ... and creates it.  Value just assigns a value.
    Some say you have do a COPY(value, NAME_IN('variable name')) instad of GLOBAL.<variable_name>, I have never had to use this.

  • Add additional to LOV using CUSTOM.pll

    Form: CSIMEDIT
    Block: CSI_T_PARTY_ACCOUNTS
    Field: BILL_TO_ADDRESS
    The LOV ACCOUNT_BILL_TO from the field BILL_TO_ADDRESS only has 2 columns but I need to add 2 more columns. How can I do it in Custom.pll?
    The first column is site_use_id, the second column is party_address. Currently, I concatenated the third column 'status' with party_address, the LOV show both information. However, after I picked the address and saved it, I got an error message when I click on the LOV button again due to the party_address query only contains party_address and it is different from the LOV list which is containing the part_address and status. It failed the validation.
    I also tried to use another LOV 'SERIAL_NUM' that has 5 columns. Then set property:
    lov_id := FIND_LOV('SERIAL_NUM');
    rg_id := FIND_GROUP(rg_name);
    SET_LOV_PROPERTY(lov_id, group_name, rg_name);
    -- set Title --
    Set_Lov_Property(lov_id, TITLE, 'Bill To Address' ) ;
    -- set column properties --
    set_lov_column_property(lov_id,2,TITLE,'Bill To');
    set_lov_column_property(lov_id,2,WIDTH,25);
    set_lov_column_property(lov_id,3,TITLE,'Status');
    set_lov_column_property(lov_id,3,WIDTH,5);
    -- hide other columns --
    set_lov_column_property(lov_id,1,WIDTH,0);
    set_lov_column_property(lov_id,4,WIDTH,0);
    set_lov_column_property(lov_id,5,WIDTH,0);
    But I got error message: FRM-41826: Cannot replace group;columns don't match LOV.
    Please help!
    Thanks.

    Hi Donny thanks for ur reply,
    As i was new to the Custom.pll,i have opened the custom.pll throught Form Builder.I have found the packages of the Custom.pll,I have to add new Special Menu to it.If u have code can u please give me simple example.
    If I press that Menu I have to open New Form that i have Customized.And also to get values into that form.
    Can u please help me in this give me simple Example.In Which trigger i have to write the code and all the stuff....
    Bit urget
    If any one is having coding can pls send me to my mail id :[email protected]
    Regards
    Siva

  • Date track - Effective date in custom.pll

    Hi ,
    I am trying to obtain the effective date( the date which the user chooses on date picker in assignments / people form) in the CUSTOM.pll . I am not sure if we can get that value / not . Any one who has any knowldege about this , please reply . Any reply is greatly appreciated .
    Thanks for your time & attention

    Duplicate post.
    Efffective date - CUSTOM.pll
    Efffective date - CUSTOM.pll

Maybe you are looking for

  • Install both SAP ECC 6.0 EHP 4 and Solution Manager in C drive

    Hi, SDN fellows. I just want to confirm this. I am trying to install SAP ECC 6.0 EHP 4 and Solution Manager in C drive. Are these OK, since they both will be installed under the C:\usr folder? What precaution we need to install these two SAP componen

  • GRC AC 10 EAM - Is it possible to send FF logs to controller in an email as attachment ?

    Hello, I am new to GRC AC 10 and wanted to check if In GRC AC 10 it is possible to send the Firefighter logs to Controller in an email as an attachment like we were doing in 5.3 or the controller has to login to GRC (via link in the email or direct l

  • Installing HFM in hyperion 9.3.1

    Hello gurus, I am new to hyperion system 9.3.1 and I have issue in installation configuration in HFM 9.3.1, I have installed following components on Windows server 2003 SP1 x86, and I have used SQL server 2005 SP1. 1. Shared service 2. Reporting and

  • Importing from PE4

    I am not able to import pictures saved in Photoshop Elements 4.0 to iPhoto. Here's what I am doing, can anyone tell me what I am doing wrong? 1. Transfer from my camera (Fuji S5100), save in \Pictures\iPhoto Library\Data\2006\2006 - 09 2. Edit with P

  • Activating Genius By Connecting To i-tunes Store

    I've recently got a new computer which means that I've had to download and set up a new itunes. I went to set up genius and was asked to log into the i-tunes store with my i-tunes account, which I have, but it keeps saying that either my apple id or