Defaulting Values on checkboxes in a custom infotype

Hi all
I am making a custom infotype , In which i have some check boxes . i want , When i save the infotype , If i checked certain check box , its value in the PA9XXX table should be stored as 'YES' else "No'.
When I am writing logic for this in any of the modules , It is not working .
When i am trying the user exit EXIT_SAPFP50M_002(component PBAS0001)
Its working for 'No' but not for 'Yes'.
i.e if the check box is checked , I am not able to get 'Yes'.
Can any one plz help me on this .
Thanks
Shaveta

Hi Shaveta,
      What is the field for check box in infotype table?how many characters?In
  PAI,check the field and pass ' Yes ' if  not intial.
Regards,
Manoj.

Similar Messages

  • Set a default value to checkbox on Active Directory form

    Hi all
    how to set a default value to checkbox UD_ADUSER_MUST on Active Directory form?
    I set the value 1 on the column default value (ADUSER form), i try the provisioning resource AD to the user and this field is not selected.
    please help me.

    hi
    My problem is solved, I tried to change the default form ADUSER, but this value was overridden by the policy form.
    I set this value in the policy form.
    thanks

  • Default Values for checkboxes

    I have a report page with two regions: one is for the filters (organization, date, range, etc.) and one is the actual report (set to display only if the report returns rows). I have a Checkbox list that consists of two checkboxes - one for day and one for night. I use them to filter the report based on either Day shift, Night Shift, or both (PL/SQL reports). How can I set the default value of the checkboxes so that both are checked (and the report shows both day and night shift data)?
    Item is P1302_SHIFT, LOV (STATIC2:Day;1,Night;2)
    Thanks.

    For the HTML Form Element Attributes for P1302_SHIFT specify
    checked=true
    This will make the checkboxes render as selected
    For your query add a line to the where clause like
    and ':' || shift || ':' in (':' || :p1302_shift || ':' )where shift is the database column that holds the shift value.
    varad

  • Set default value for checkbox in XML definition

    Hi,
    I'ld like to set a default value to a checkbox (bound to UserDataSource) within the XML definition of my form.
    Is this possible, and if so, how??
    I'ld also like to know if there is a description available of all possible tags/combination in XML batchactions.
    Kind regards,
    Joeri

    Hi Joeri.
    I'm afraid you can't do that via XML, I think the only way to ensure that you have your box checked is through a UserDataSource, so use the Collections tab to connect your checkbox to an appropriate UserDataSource, and in the code, you can re-bind the checkbox to another datasource.
    I hope my idea was clear
    Best regards.
    Younes

  • Saving default values for checkboxes

    Hi all,
    one of our customers has recently upgraded ´their NW7.00 (SAP ECC 6.0) system to basis SP18. As a result of this, it is no longer possible for users to save default values, in Web Dynpro ABAP applications, neither for checkboxes nor for radiobuttons.
    This worked fine before the application of the support package. The user could simply right click the UI element and select "Use current value sas default" from the context menu, as is still the case for all other input-enabled UI elements.
    This option is simply no longer available in the context menu for checkboxes & radiobuttons.
    I have had a look through the OSS notes in the SP and also the "Side-Effects" report, but can't find anything to indicate that this has been done deliberately by SAP.
    Before I raise this as a question to SAP, does anbody out there have any more information on this issue. Is it a bug or a feature?
    Thanks,
    Mike Speight

    Hi Mike Speightl,
    You can save the default values in the Webdynpro by using the Method (WD_DO_INT).
    For exp :
    If Emp is your Node name.
    ID and Name are your attributes in which you wish to put default values after execution:
    lo_el_emp->set_attribute( exporting name = 'ID' value = '1001' ).
    lo_el_emp->set_attribute( exporting name = 'NAME' value = 'SAP' ).
    When you execute your application, it will display default values in ID : 1001
                                                                                    Name : SAP
    Just before loading any view, this method will be executed :  WD_DO_INT
    If you are referring to default chkbox selected after executing then refer to the concept   Initialize lead selection
    If this is not the issue then please let me know.
    Regards,
    Kittu
    Edited by: Kittu on Nov 16, 2009 4:05 AM

  • How to set default value to user attribute in customized information tab

    Hi Experts,
    we created a custom attribute in Administration-managed custom attributes  and now we are getting that attribute under customized information tab in  user admin->identity management.
    This attribute is coming for all users and it is working fine and I can give value to this attribute also.
    Now the problem is we have more than 10000 users in the portal and we have to assign same value to this custom attribute to all the users.
    Is there any possiblity of setting the value to all the user without coding.
    If it is not possible then how can I proceed for coding.
    any help will be appreciated.
    Raghu

    Hi Michael,
    Yes my data source is LDAP.  This attribute is added in the portal itself and I don't think it is possible to set the value of custom attribute at LDAP.
    Shanta : We already created the custom attribute and it is also appearing in the Customized information
    Problem is we need to set a value to that attribute. This should be same to all the users coming from LDAP.
    My Basis people are asking the funtion module which calls when we click on the Customized information tab.  Is that possible to know?
    Or we can set this value by writing a piece of code in webdynrpo java?
    Appreciate your inputs
    Raghu

  • How to Set default value for taxonomywebtagging control with terms and nested terms

    Hi,
    I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
    Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
    Any help would be greatly apprecited.
    Control code in aspx page:
    <td>
    <asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
    </td>
    <td>
    <Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    //Set the Business Unit Field
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GROUPName"];
    TermSet termSet = group.TermSets["TERMSETNAME"];
    Term term = termSet.Terms["TermA"];
    Guid termGuid = term.Id;
    term.SspId.Add(termStore.Id);
    term.TermSetId.Add(termSet.Id);
    term.AllowFillIn = true;
    term.AnchorId = countryGuid;
    term.IsMulti = true;
    Thank you.
    AA.

    Hi,
    According to your description, you want to set default value for TaxonomyWebTaggingControl.
    I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
    Here is the code snippet:
    TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GroupA"];
    TermSet termSet = group.TermSets["A"];
    Term term = termSet.Terms["A1"];
    TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
    TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
    TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
    TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
    TaxonomyWebTaggingControl1.AllowFillIn = true;
    TaxonomyWebTaggingControl1.IsAddTerms = true;
    TaxonomyWebTaggingControl1.IsMulti = false;
    TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
    Here is a detailed article for your reference:
    http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
    Feel free to Reply the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How to use copy default values for material from vendor master in Account Group

    Dear all:
       In define AccountGroup for vendor ,there is a field named DURAS which means default values,who can tell me how to use it?
       Any informations are appreciated!

    Hi Katherine,
    I have tried using default value as B in the customizing
    If i maintain default values in the vendor master record, it will automatically adopt in the purchase info record.
    Here i tried using sales person & telephone no field in vendor master record & it automatically adopts to purchase info record.
    Region sales person and telephone no i have maintained in vendor master record, it automatically fetches to info record for the particular account group. I am not sure if there is any relation between vendor master and material master record.
    Regards
    Subbu.

  • 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

  • Default values for fields in infotype 0017

    Is there any way to set default values for fields in infotype 0017? Maybe a
    feature? I'm thinking about defaulting values based on pay scale group.
    Thanks before.

    Hi
    You can implement what i suggested in my previous post.
    Or else, you can do what we did in one of our client requirement.
    We created a custom Ztable where we had defined which value of the the employee grouping to be placed for which record.
    We did that on the basis of the company code fields.
    For eg: IF BUKRS = 'TR01'
    then EE Grp Expense Type = '1'.
    ENDIF.
    Similarly for other fields.
    Hope this helps.
    Harsh

  • Default value of BeX customer Exit variable not Displayed in WeBI??

    Hello Experts,
    We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario:
    1. One restricted KF is created in BeX, restricted with Customer exit variable on net Due date. And this variable is mandatory, ready for input, and Default value in calculated is user exit as current Week's Monday.
    2. So, by default KF data should be restricted to Monday of current week, if user does not change this value.
    3. Now, WeBI report is created on top of this Bex query, and all is working fine, i.e. we are getting variable as Prompt in WeBI, but Default value is not shown while Running the Webi Report.
    So, need your inputs on the same, if default values from BeX in WeBI is supported or not? If yes, why this is happening, and how to resolve it?
    Please notice, the restrcition is in KF only, it is not a separate restrcition on Net Due date in Filter area or in Defualt area of BeX
    and we are on SAP BW 7.1 and BOXI 3.1 SP4.
    Regards,
    Vipul
    Edited by: VIPUL GOYAL on Nov 23, 2011 9:44 PM

    Hi,
    See 1285993 - Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe
    WebI will prompt when executed, but the default values calculated by the user exit  - do not appear.
    Note: If the BEx variable has property 'ready for input' set / enabled, then its WebI prompt shows ok, but no default value appears.
    Cause
    This behaviour expected 'by design' (in the context of the product's current limitations) as explained in the online guide below:
    Please refer to Chapter 7, page 44, document link here: http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_sap_olap_universes_en.pdf
    Characteristic variable > processing type > Customer Exit  is "Supported, without user entry"                                                                               
    -->  This should be understood as meaning "User will not be shown a prompt"
    regards,
    H

  • Custom CAPI service - default value of varchar2 parameter

    I have a Custom CAPI Service function. That function has a varchar2 parameter (argument) and I wish to set a default value NULL for that parameter.
    I set Default=null, and when I generate CAPI package, my function in that package looks like this (notice the quotation marks around null):
    function cs_cjn_prod_cijena
    ( p_nacin_prodaje in varchar2 default 'null'
    return number
    is ...
    And it should look like this:
    function cs_cjn_prod_cijena
    ( p_nacin_prodaje in varchar2 default null
    return number
    is ...
    I tried setting Default Value Type to Literal, Database Function Call, Client Function Call, but it's always the same thing.
    If that parameter was number or date it would generate ok.
    It seems like the bug in "Generate CAPI Definition" Headstart Utility.
    I know that I can make my function's code to treat the string 'null' as a null default value, but I'd like to have a "real" null as a default value.
    Does anybody have a solution for this?
    Thanks!
    Dalibor

    Marcel,
    Thank you for your answer, but it didn't help. I have already tried using Database Function Call. This time I tried deleting the CAPI package from repository before generating it again, like you suggested, but it didn't help.
    I still get: p_nacin_prodaje in varchar2 default 'null'
    Which version of Create CAPI Definition utility do you have?
    My version is: HSU_CAPI, Revision: 6.5.2.0 ("Help/About This Utility" in Headstart Utilities application)
    Thanks again,
    Dalibor

  • Using a Table as a Default Value in a Custom List

    Hi,
    I am trying to create a list for users to fill out that utilizes multiple tables for data entry. I would like to set the table to be the default value for the field in order to have consistency across submissions and for ease of use. I have tried using HTML
    code for the table as well as copying the HTML markup from inserted tables in the field but I have been unable to generate a table in the field by default. I have tried this in both the web based editor and Sharepoint Designer 2010.
    Thanks!

    Hi aelawler,
    Which type field did you use for storing the table? Please try to create a site column using Publishing HTML type or Enhanced rich text, and add the column to the list, use it to store the table. Test it using your method, compare the result.
    Here is a post about setting default value for enhanced rich text, please pay attention to Amit's reply:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/a6b5614d-ae45-4e2f-af0e-7e1887b05f60/set-default-value-to-enhanced-rich-text-box?forum=sharepointcustomizationprevious
    If it doesn’t work, I think, you need to create a custom field type to store the table, and set default value for it. You can try to create it based on the Publishing HTML or Enhanced rich text type.
    Create a custom field type in SharePoint 2010
    http://www.bing.com/videos/watch/video/creating-custom-field-types-for-sharepoint-2010/10t33r1uw
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Assigning Default value to a Infotype Field

    Hi,
    My requirement is to assign default value to the loan amount field of the loans infotype(0045).
    I am using the PBAS0001 user exit program ZXPADU01 and taking the basic pay amount for the employee from infotype 8 and assigning it to pa0045-dabrt(loan amount)field in infotype 45. But the problem is the loan amount field in 45 infotype is of the type currency(13 characters) and if i assign a value 2000 to the field its displaying as 20,000,000.00. That is the value is being multiplied by 10000 and is displayed. When i tried to divided the value by 10000 and pass it, for odd numbers its not working.Can Some one provide the solution for this problem.

    Try using simple Formula at field level insted of field routine.
    there is IF( <condition>, <result when true>, <result when false> ) option avaialble in formula
    Regards
    Sudeep

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

Maybe you are looking for

  • Can not open project - error message

    I have a project that is approximately 100 slides (55KB), which I saved yesterday before shutting down my machine.  When I tried to open it today, I get this error message . Basically it is saying that it can't open the project because:      -The fil

  • Creating an xml file - urgent

    hi ! i want to create an xml file frim hierarchical data (n depth) . please advise me how to create xml file using dom and how to write dom elements to disk...

  • BPM Worklist as a Task Flow

    Hi all, I have a peculiar requirement. I have a complex workflow for which i am using the BPM Worklist to show different human tasks and take requisite actions on them. Now I have another system where i have some simple maintainances developed as ADF

  • Best Way to Download Photos

    I'd like to download all the photos off of my iPhone. It doesn't seem to want to work though. I tried and only some of them get copied. I'd like to have my folders retained too! And what is with the HORRID naming scheme iPhone imposes on my image fil

  • Risk Violation Data Not found

    Dear Expert, We are facing the problem  where we are not getting data from ""Risk Violations by Process" after compliting the batch risk analysis job successfully. Thing is happening when we  check Management Report View : See the following steps I h