No blank record in dropdown values

Hi experts,
I have an issue in providing values in dropdown values.  Is it possible to provide dropdown values without any blank record using VRM_SET_VALUES or by assigning a domain values through declaration?
Bcoz, when i populate values through VRM_SET_VALUES, i have to set the field as mandatory in order to avoid blank record. Even if i domain for that field, a blank record gets displayed in the dropdown. So i have to make the field as mandatory.
But when i check dropdown in some standard tcode, no blank record gets displayed. At the same time, it is not set as mandatory. 
Could anyone tell me how my requirement can be achieved?

hi friend,
try to pass initial value for list box.
example:
TYPE-POOLS : vrm.
DATA: combo_id TYPE vrm_id,
items TYPE vrm_values WITH HEADER LINE,
item TYPE LINE OF vrm_values.
selection-secreen begin of block b1.
PARAMETERS: pp1(20) AS LISTBOX VISIBLE LENGTH 30.
selection-screen end of block b1.
* for your example
loop at list.
item-key = list-pos.
item-text = list-value.
APPEND item TO items. CLEAR item.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'PP1'
values = items[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
initialization.
pp1 = <your default value>.
regards,

Similar Messages

  • How to restrict the dropdown values in Att/abs type in Record Working Time

    Hello experts,
    We are implementing ESS business package.  In the Record Working time, within the Weekly View and Daily View tabs, there is a column Att/abs.type which has several drop down values - like:  floating value, Funeral Leave, Military Reserve, Regular Attendance, etc.   Our requirement is to restrict the dropdown values  by means of showing only one of these values (say:  Regular Attendance) and others should not be shown.   How do we achieve this?
    Thanks
    Vicky R.

    Hi Siddarth,
    Thanks for the info.  By the way, this table info is not mentioned in the Business Package documentation.  Which documentation are you referring to?
    Thanks
    Vicky R.

  • Import: Ignore blank records

    Hi Team,
    While automatic import, I am getting few blank records from the source system (All the fields are blank)
    These records are getting imported in MDM.
    Please suggest on how to ignore importing them.
    Thanks,
    Priti

    Hi,
    Incase you want to skip certain records from being imported you can in the Import Manager, Matching records right click on every individual record in the bottom source records pane and select skip record while allowing update all mapped fields for the other record.
    In order to skip records having null values during the auto import you can set the null value handling to ignore.
    Its important to note that multiple null entries can be there in a unique column in the MDM table as MDM treats it as a incomplete record.
    If the file is being transfered via PI to MDM distribution folder you can have this check put in PI as well to remove these entries in the xml file that is being generated.
    Regards,
    Aditya.

  • Blank Record Appearing in Power Pivot, How do I ensure that my Power Query script is filtering out all the Blank Records

    Hi,
    I noticed once of my Fact tables in my Power Pivot model contains a blank record. I can't understand why.
    So I added a Filter expression to the underlying Power Query query, something like; -
    Text.Length("MyField") > 0
    However after refreshing the Power Query query which contains the above expression the blank record still appears within my Power Pivot table.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    hi..
    As my understand, the blank record in Power Query will be return null value . So that, You try to use Text.Length("MyField" ) <> null.
    Regards,

  • Custom Oaf form inserting blank records into custom table

    Hi all,
    I have developed custom OAF form to insert vendor details mapped to custom table.
    Oaf form is working fine without giving any error.
    In back end blank records is inserting into the custom table i.e. only WHO columns (creation_Date, created_by, last_update_login etc.) values are populating correctly but the
    data which i am entering in OAF form is not populating into the table.
    Please help, tnx in advance.
    Regards,
    Mohit

    Do you have mapping of your form fields with the view object and view attribute ?

  • Suppress printing of blank records

    This should be simple, but I have tried everything I can think of, and trolled through the archives, without finding an answer.  Please don't chastise me for asking a question which has already been answered, too simple, in the wrong section, or any of the other sins you regularly accuse us of...
    I am printing a series of form letters which are selected on the basis of a couple of criteria.  I want to exclude records with blank fields.  (My database supports null values, but these field entries are blanks, not nulls.  The fields are string (alphanumeric) values. My selection criteria (for the 1 month letter) are below.  The first two criteria work fine; it is in the third line that I am trying to exclude the blank records.  I have tried: {LetterEnt.Gr_LastName}<>"",  {LetterEnt.Gr_LastName}<>" ", and then I got clever and tried the entry below.  None of these work.
    {LetterEnt.Letter1} = "X" and
    {LetterEnt.Site} = "Q" and
    Length({LetterEnt.Gr_LastName})>0

    +Message: AFAIK, if there are no records, there are no detail sections, so
    your report must show text from other sections.+
    (Is AFAIK some sort of "geek code" (in which case you have gone completely over my head), or are you addressing somebody by that name?  (My name is David).)
    If there are no records, there are indeed detail sections - with blank address fields.  See my previous more detailed exposition of the exact nature of the problem.
    +It is also not clear what "forces" a printout.  Are you using Crystal
    Designer (my assumption since you are posing in the Crystal Report Design
    forum) or something else (Crystal Enterprise)?  Crystal Designer doesn't
    force printouts - a user must initiate the printout.+
    Am I using Crystal Designer?  I don't know.  The program is called Crystal Reports XI in my computer.  Are you suggesting that I am in fact asking my question in the wrong forum? (I would have presumed that something called "Crystal Reports Design" deals with design issues in Crystal Reports, but if I am in error, I do apologise.  Perhaps you could direct me to the more appropriate resource.)
    What "forces" a printout? You are correct insofar as the operator has to push the Print button (at least as presently functioning.  At one stage I had the letters printing out behind the scenes using an Active-X control.  This ran for 2 weeks, then fell apart and I eventually gave up trying to make it work; but that is another story.)  How does this happen?  Crystal is adding completely blank pages as the first page on some of the reports, so it is not always immediately apparent to the operator that there is a letter sitting there with a blank address.  (And this, too, is a separate issue.  I have gone through all the instructions in the knowledge base as to how to get rid of the leading blank sheet.  None of the instructions have worked, and I eventually gave up trying.  Thinking about it, I have had an awful lot of frustration with this program.  Perhaps I am unreasonable, but if I can't get something to work after 3 or 4 hours' trying, I give it up as a bad job and live with the fault.)
    +You can always suppress those other sections with a condition such as
    IsNull({some field that is never Null).+
    It is not clear to me what this means.  All the sections other than the detail section are blank - always.
    +There are 3rd-party Crystal Reports tools that allow you to skip
    processing (printing/exporting/emailing) if the report comes up with zero
    records.+
    Aha!  Am I interpreting this correctly, as saying that I cannot do what I want to do (suppress printing of letters with blank addresses) in Crystal Reports, and that to do this I need to get a third party add-on?

  • Problem in showing blank records in tableview.

    Hi All,
    The requirement is to show a tableview which is completely(contains no data in any cell) blank. The user enters data as free text.
    I managed to create an internal table with blank records and using it for the tableview so that the table view shows blank cells , where user can punch data.
    I need to do some validations if the cell is initial(user have not enterd any data and press the button)
    Now the problem is that , all cells conatin a SPACE (dont have an idea where it is coming from) and thus cells are not INITIAL.
    I tried using condense and replace all occurences of cl_abap_char_utilities=>cr_lf , but the space is not removed.
    Any one having any idea , why this space is coming or how INITIALIZE the work area.
    Regards,
    Anubhav

    Hi Vijay,
    The code is written in
    RENDER_CELL_START
    Code snipet:
    DATA: o_ip_desc TYPE REF TO cl_htmlb_inputfield,
                o_fr TYPE REF TO cl_bsp_find_and_replace,
                o_bee  TYPE REF TO cl_bsp_bee_table.
    DATA: find TYPE string.
      DATA: replace TYPE string.
    WHEN 'SLA_DESC' .
            CLEAR replace.
            CLEAR find.
            replace = `value=""` .
            find = `value=" "`  .  <---& n b s p(is displayed as space here)
            replace = replace.
            o_fr = cl_bsp_find_and_replace=>factory( find = find
                                                                      replace = replace
                                                                      mode =  `FIRST_OCCURRENCE` ).
            o_ip_desc = cl_htmlb_inputfield=>factory( id = p_cell_id
                                                      maxlength = '6'
                                                          size = '6'
            o_ip_desc->value = m_row_psc_main_ser->sla_desc.
            CREATE OBJECT o_bee.
            o_bee->add( level = 1 element = o_fr ).
            o_bee->add( level = 2 element = o_ip_desc ).
            p_replacement_bee = o_bee.
    Regards,
    Anubhav

  • How to suppress Blank records

    Hi All,
    I am having a tab delimeted .txt file which contains blank records which need to be supressed otherwise i get empty XML tags in the output as shown below.
    - <Header>
      <PERNR />
      <BEGDA />
      <ENDDA />
      <SCHKZ />
      </Header>
    Actually i am getting a tab in PERNR field. I tried the createif function but its not working .Can anyone help me out in this

    Hi,
    The following way is one way if you are using sender file with content conversion.
    NameA.fieldContentFormatting
    &#9679;     Specify trim to remove all the leading and subsequent blanks for a value found. This is the default.
    &#9679;     Specify nothing to ensure that the value remains unaltered.
    The second way is..
    if target structure is 0..unbound then
    source -- exists-- createIf -- target node
    or write UDF to handle input string is null then return
    ResultList.SUPPRESS in you UDF.before that the target parent node/node should be having occurrences 0..unbound/0..1
    please clarify
    Regards
    Chilla..

  • Delete blank records from the cube

    Hello;
    We just upgraded from 3.5 to 7.0.  When we started running our queries for the Inventory cube, we were getting an error message of "Error:  The validity interval has the initial value as lower limit".
    When I checked the cube, I found records that were blank, such as no dates, plants, etc..  I then tried to see if I can delete those records, but I cannot find a way to do this.  Can someone tell me how to delete the blank records or any records from the cube directly?  When I run the queries from the ODS, I do not get any errors at this time.
    Any information, suggestions or HELP is greatly appreciated.
    Thanks,
    Maximina Barry

    Hello Maximina,
    You could try writing in some code that would delete the records which have some fields as blank in the start routine of the transformation that connects the ODS to the cube . So that the next time you load data from the ODS to the cube .. they would stay deleted .
    Hope it helps.
    Just to add ...
    refer -> Need Sample Code to delete records from Cube using  SE38 Editor
    Thanks,
    ~Vj
    Message was edited by:
            Vijay Gopinath

  • Blank Records added while using Table maintenance generator - SM30

    Hi all,
    I have created a ztable and view,
    For the view table maintenance generator created using sm30,
    First time when i add reords, a blank record is added automatically ,how to prevent it,
    Also when i try to add invalid data, system throws error , field becomes display only.
    How to solve.
    Regards
    Senthil

    Hi Tarun,
    Go to the layout and increase the size of the Screen. or at the screen attributes change the length and width values.
    You know that initially the screen occupies default size only.
    Hope this would serve your purpose.
    Cheerz
    Ram

  • Blank Records showing at Infoprovider level..how to eliminate@ Report level

    Hello Experts,
    I am facing an issue. For a particular matierial in the Bex Report 2 KF values must be equl.
    this is the complete scenario:
    Matirial Total Target Actual Val BIO Actual Val
    81271071 9550,52 4,793,67
    In the above scenario Total Target Actual Val must be equl to Bio Actual Val.
    I checked all the restrictions on the KF. 2 KFs are restricted by the same KF (Condition Base Value I ) .
    Other than that for KF Total Target Actual Val restrictions are on Condition Type, Matierial Group 3. And for the KF BIO Actual Val restrictions are Red Group For Rebate.
    I checked the data @ Infoprovider level for both the Good and Bad Test Cases. And found that for the Bad Test Case, if i give the input for Red Group for Rebate charactoristic there is no blank records are showing and where as if i will not give the input for Red Group for Rebate there are some blank records are showing up and adding those blank records.
    Where as for the Good Test Case even if i provided the input for Red Group for Rebate or not, there is no blank records are showing up and in the report both the KFs are showing the equal values itself..
    user requirement is at the report level both the KFs must be equal.
    Here in the above up to now what i have done,  i have provided the information.
    requesting all, kindly give me the reply how can i solve this issue. Expecting more and more bright suggestions .
    Thanks,
    SN.

    Just a quick question. Have you restricted your KFs unnecessarily? Are the semantic keys valid if debited? Like, sometimes the clearing doc #s are no entered for a open po# and necessary for a closed one. In such case, have you checked if the semantic key is correctly defined? Cubes must help you aggregate data & reflect them within one line item as in your case.

  • Dropdown value clears after saving the form?

    I have a pdf form with a couple dropdown lists. If someone selects a value and then saves and reopens the file, the dropdown value is empty.
    In other forms I also use dropdown and those do not have this issue. but I cannot find what is wrong with this one. Any suggestions?
    I have a custom keystroke script:
    if( event.willCommit )
       if(event.value == "")
    //if nothing is chosen in "Contract eigenaar" then Dropdown2 will be cleared
         this.getField("Dropdown2").clearItems();
       else
        test(event.value);
    And a script:
    //Values
    myDropdown1Values = ["Maak uw keuze", "Fast Flex B.V.", "QNH Sourcing B.V.", "QNH Consulting Midden B.V.","QNH Consulting Zuid B.V.","QNH Consulting Noord B.V."],
    myDropdown7Values = ["Maak uw keuze", "Eigen medewerker", "ZZP-er", "via Leverancier","PDV-er"],
    myDropdown8Values = ["","QNH Consulting Midden", "QNH Consulting Zuid", "QNH Consulting Noord", "Young Colfield"],
    //Populate
    this.getField("Contract eigenaar").setItems(myDropdown1Values);
    this.getField("Dropdown7").setItems(myDropdown7Values);
    this.getField("Dropdown16").setItems(myDropdown8Values);
    // Define what has to be shown in Dropdown2 when value is selected
    var DeptData = { "Maak uw keuze": [""],
                     "Fast Flex B.V.": ["","Fast Flex","Klant"],
                     "QNH Sourcing B.V.": ["","QNH Sourcing","Klant"],
                     "QNH Consulting Midden B.V.": ["","Detachering","Project"],
                     "QNH Consulting Zuid B.V.": ["","Detachering","Project"],
                     "QNH Consulting Noord B.V.": ["","Detachering","Project"]
    var DeptData2 = { "Maak uw keuze":{ Uitleg1: ""},
                     "QNH Consulting Midden B.V.":{ Uitleg1: "Het verkoopcontract wordt opgesteld tussen QNH Consulting Midden en de eindklant. QNH consulting Midden zorgt voor het contract met de eindklant en voor het contract tussen QNH Consulting Midden en Fast Flex . Het inkoopcontract wordt opgesteld door Fast Flex met de leverancier of ZZP-er. Fast Flex fungeert hier als broker. Er wordt ingekocht volgens de Algemene Inkoop Voorwaarden van Fast Flex. Indien er afwijkende afspraken opgenomen moeten worden in het contract kunnen deze hieronder in het formulier apart worden aangegeven."},
                     "QNH Consulting Zuid B.V.":{ Uitleg1: "Het verkoopcontract wordt opgesteld tussen QNH Consulting Zuid en de eindklant. QNH consulting Zuid zorgt voor het contract met de eindklant en voor het contract tussen QNH Consulting Zuid en Fast Flex . Het inkoopcontract wordt opgesteld door Fast Flex met de leverancier of ZZP-er. Fast Flex fungeert hier als broker. Er wordt ingekocht volgens de Algemene Inkoop Voorwaarden van Fast Flex. Indien er afwijkende afspraken opgenomen moeten worden in het contract kunnen deze hieronder in het formulier apart worden aangegeven."},
                     "QNH Consulting Noord B.V.":{ Uitleg1: "Het verkoopcontract wordt opgesteld tussen QNH Consulting Noord en de eindklant. QNH consulting Noord zorgt voor het contract met de eindklant en voor het contract tussen QNH Consulting Noord en Fast Flex . Het inkoopcontract wordt opgesteld door Fast Flex met de leverancier of ZZP-er. Fast Flex fungeert hier als broker. Er wordt ingekocht volgens de Algemene Inkoop Voorwaarden van Fast Flex. Indien er afwijkende afspraken opgenomen moeten worden in het contract kunnen deze hieronder in het formulier apart worden aangegeven."},
                     "QNH Sourcing B.V.":{ Uitleg1: "Het verkoopcontract wordt opgesteld tussen QNH Sourcing en de eindklant. Het inkoopcontract wordt opgesteld door QNH Sourcing met de leverancier of ZZP-er. Er wordt ingekocht volgens de Algemene Inkoop Voorwaarden van QNH Sourcing. Indien het een nieuwe klant betreft ontvangt QNH Sourcing graag een kopie van het klant contract zodat de inkoopvoorwaarden hierop aangepast kunnen worden. Tevens dient er een kredietcheck te worden uitgevoerd en klantgegevens te worden opgevraagd. Hiertoe ontvang je van ons een formulier klantgegevens."},
                     "Fast Flex B.V.":{ Uitleg1: "Het verkoopcontract wordt opgesteld tussen Fast Flex en de eindklant. Het inkoopcontract wordt opgesteld door Fast Flex met de leverancier of ZZP-er. Er wordt ingekocht volgens de Algemene Inkoop Voorwaarden van Fast Flex. Indien het een nieuwe klant betreft ontvangt Fast Flex graag een kopie van het klant contract zodat de inkoopvoorwaarden hierop aangepast kunnen worden. Tevens dient er een kredietcheck te worden uitgevoerd en klantgegevens te worden opgevraagd. Hiertoe ontvang je van ons een formulier klantgegevens."}};
    //Value Dropdown2
    function test(cDeptName)
      this.getField("Dropdown2").setItems(DeptData[cDeptName]);
      this.getField("Text1").value = DeptData2[cDeptName].Uitleg1;

    Hi
    actually my earlier post was incorrect
    i have edited my post
    Actually
    i want to update only those records that the user has modified
    eg
    col1 col2 status
    1 ABC good
    2 PQR good
    3 xyz good
    4 lmn excellent
    5 abcz excellent
    is the table before the user modifies
    the user goes and modifies multiple records as following
    col1 col2 status
    1 aaa good
    2 PQR good
    3 xxx good
    4 sss excellent
    5 abcz excellent
    and the user saves the form
    now i want the following output
    col1 col2 status
    1 aaa new
    2 PQR good
    3 xxx new
    4 sss new
    5 abcz excellent
    only the modified record's status should be updated
    sorry for the earlier lapse

  • Error: 'InfoObject ZDATE contains invalid characters in record 1 in value'

    Dear friends,
    When I am uploading data from oracle datasource (in BW 3.5) I am getting an error 'InfoObject ZDATE contains invalid characters in record 1 in value'. There are no illegal characters in the date instead the date field is blank in datasource. There are other date fields technically the same as ZDATE with blank values but they dont throw an error when scheduler runs.
    Though when I manually upload the data, it's loaded successfully.
    Please suggest where can the error be?
    Regards,
    Amit Srivastava

    You have 2 options:
    1. Corect your data for the characteristics that give errors.
    Or
    2. go to SPRO in BW - Netweaver - BW - general settings - maintain permitted characters.
    In this screen, you maain tain any special characteristic that you the system to recognise and accept. In your case, take your characteristics that give error and add to this.
    Ravi Thothadri

  • Store dropdown value in a variable in WAD

    Hi,
    I would like to pass the values from dropdown box to variable in my IP application. These variables are used to restrict the char values in filters of my application. When I change the dropdown box, my variable value should automatically change. My dropdown box uses the Char/struc member (Characteristic_selection) as data binding because I am doing the cascading dropdown boxes for my selection. I can not use variable as data binding for my dropdown box and I know this will work if I use the variable selection as data binding for drop down box.
    Now, the dropdown value is never stored in the variable, I don't know what I'm doing wrong.
    So, I need to know:
    - Variable settings
    - Dropdown settings
    - Dataprovider sttings
    I am using WAD 7.0
    Thanks!

    Hi Sebastian,
    Ok if I understand right, you have 2 DropDown webitems - on selection of one you would want the 2nd to filter which is cascaded action on DropDowns; and on selection of each DropDown you would want to pass the selections to the main query variables. Check if the below settings work;
    DropDown 1 -> DP1 (perhaps on a master IO), Characteristic -> say C1, Affected Data Providers -> DP2 (DP of DropDown 2), Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C1, Binding Type -> Variable, choose corr. query Variable
    DropDown 2 -> DP2 (perhaps on a master IO), Characteristic -> say C2, Affected Data Providers -> None, Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C2, Binding Type -> Variable, choose corr. query Variable
    --Priya

  • How to get blank records at the start of report output for label sheet?

    Hello -
    What is the best way to get an arbitrary # of blank records at the start of report output?
    I am writing a report that will be printed out on label sheets -- some of which might already be used. For example, there might be 3 labels per page but the first 2 have been used the last time the report was run.. so the report needs to display 2 blank records first so that the first record that gets printed on a label is in the 3rd position on the page. (the user would indicate - through a parameter - what the starting postion would be)

    Hi Scott
    Create a user parameter that reads in the number of blanks you need to 'print' before starting the actual printing.
    In the Format trigger of the outermost frame of your report write code using SRW.SET_BEFORE_PRINTING_CODE.
    Loop this method based on the user parameter and call this method with skip-line-command of your printer as its argument.
    Regards
    Sripathy

Maybe you are looking for

  • HT4681 What is the best most compact export to use for Youtube?

    What is the best, most compact export codec / frame size to use for Youtube?

  • Oracle Froms, Global Variables and Oracle Reports

    Hi all, We are developing a form that will call an Oracle report and we would like to test the value of a global variable that was set in the Oracle Forms in the "Before Parameter Form" in the Oracle report trigger. Can this be done? Thanks, Larry

  • Mouse responding slowly in a cool room?

    I recently did a warehouse party using my Macbookpro 15 to run Traktor Scratch Pro 2 DJ software. It was NOT extremely cold (maybe 10c). When I set up and was playing my MBP ran fine but my mouse was extremely slow and unresponsive. What could it be?

  • Web-services Error with 6.1sp3 that doesn't occur with sp2

    I have recently began testing of our application using the newly released weblogic server 6.1 sp3. I took our existing compiled ear file and generated web-services client.jar file from our last weblogic 6.1 sp2 compile, deployed it on the new install

  • Dying Light still seems a bit buggy

    Virals sometimes they just stand on a spot then walk away if you hit sometimes they scream 500db at you but don't do much except fast breathing whilst just standing there. When the little devils vomit is this a bug as well? I did ask on the Dying Lig