Compare all values that user has enter or not.

Hi experts and abap lovers!!!
I like to CHECK THAT ALL FIELDS WHEATER THE USER HAS ENTERED OR NOT. IF YES I HAVE TO INSERT THE VALUES IN THE TABLE..
For eg.
IF ZTABLENAME-FIELD1 <> '0'  AND ZTABLENAME-FIELD2 <> '0' AND ZTABLENAME-FIELD3 <> '0'.
INSERT ZTABLENAME.
ELSE.
MESSAGE 'FILL IN ALL REQUIRED FIELDS' TYPE 'E'.
END IF.
Am searching answer for long time. above mentioned when i execute it says
RELATIONAL OPERATOR  AND IS NOT USED.
Kindly help me out in this regard.

HI,
Instead of comparing with 0 check with Initial value
IF NOT ZTABLENAME-FIELD1 IS INITIAL AND
    NOT ZTABLENAME-FIELD2 IS INITIAL AND
    NOT  ZTABLENAME-FIELD3 IS INITIAL .
INSERT ZTABLENAME.
ELSE.
MESSAGE 'FILL IN ALL REQUIRED FIELDS' TYPE 'E'.
END IF.
As per your code your missing relational operator
IF ZTABLENAME-FIELD1 NE '0' AND
   ZTABLENAME-FIELD2 NE '0' AND
   ZTABLENAME-FIELD3 NE '0'
INSERT ZTABLENAME.
ELSE.
MESSAGE 'FILL IN ALL REQUIRED FIELDS' TYPE 'E'.
END IF.

Similar Messages

  • Export Report to PDF after user has entered parameters

    Hi All,
    I have a problem exporting a report to PDF using "ReportExportControl" after a user has entered parameters, instead of showing the download prompt, it displays the report using the parameters as if it was using "CrystalReportViewer"
    If I program the input fields using "ParameterFieldController" then the exporter works as expected.
    Is there anything in particular needed in order to export a report with user inputted parameters?
    Thanks in advance.
    Michael

    Hi Ted, thanks for your reply,
    What I am seeing at the moment is as follows
    The report requires parameters from the user in order to generate the report, and a webpage asking the user to inputs is shown, the same one that is shown by "CrystalReportViewer" function, once the user has inputted the parameters they click the "OK" button and the report generates on screen, using the parameters entered, behaving like "CrystalReportViewer" function, what I need is once the user click "OK" it will prompt for download as attachment, which is not happening.
    For your suggestion, I already have that coded and its still not working, Please find my code attached
    // Create a exporter object
    ReportExportControl exportControl = new ReportExportControl();
    exportControl.setReportSource(clientDoc.getReportSource());
    // Exporter Options
    ExportOptions exportOptions = new ExportOptions();
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    exportOptions.setExportFormatType(ReportExportFormat.PDF);
    // Process the http request to export the report
    exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    // Dispose of the exporter object
    exportControl.dispose();
    with the above code the report will display on screen, but if i include this before the code
    //Use the ParameterFieldController to pass parameter values to the report
    ParameterFieldController paramController;
    paramController = clientDoc.getDataDefController().getParameterFieldController();
    paramController.setCurrentValue("", "Parameter name", Val);
    the report doesnt show the input screen and generates as attachment
    Hope this makes my situation abit clearer
    Thanks and regards
    Michael

  • Cisco ISE Failure: 24408 User authentication against Active Directory failed since user has entered the wrong password

    Hi,
    Since we implemented Cisco ISE we receive the following failure on several Notebooks:
    Authentication failed : 24408 User authentication against Active Directory failed since user has entered the wrong password
    This happens 2 or 3 times per Day. So basically the authentications are working. But when the failure appears, the connection is lost for a short time.
    The Clients are using PEAP(EAP-MSCHAPv2) for Authentication. We've got a Cisco Wireless Environment (WLC 5508).
    Why is this happening?
    Thanks,
    Marc

    The possible causes of this error message are:
    1.] If the end user entered an incorrect username.
    2.] The shared sceret between WLC and ISE is mismatched. With this we'll see continous failed authentication.
    3.] As long as a PSN not receiving a response from the supplicant within this limit during an EAP conversation, it will throw this error code. In majority of cases it says eap session timed out.
    In your cases, the 3rd option seems to be the most closest one.
    Jatin Katyal
    - Do rate helpful posts -

  • REG : restrict in a way that user has to enter data from f4 help

    hello,
    i have problem that i have to restrict the user in a such a way that he can enter data that is in F4 help.
    or it is blank .
    i am using it in DIALOG PROGRAMMING. it i put attribute as input NOT POSSIBLE itwill become gray but my user doesn't want it.so how can i restrict. them to write data in it.

    Hi Prathap,
           As you said one way could be to make it a Drop down...but if values are more than 10, it is definitely going to be the worst UI element user has to face..
       Other way is to make the field input disabled. Please note that the F4 still works in these cases EXCEPT that it cannot copy value when user selects it in F4. This can be addressed by handling the F4 rather than leaving it to dynpro framework.
       Use
    PROCESS ON VALUE-REQUEST.
            field GV_TEST_VAR MODULE  get_value_on_F4.
    This will trigger the module get_value_on_f4 when user chooses F4 on the field( where he cannot Enter Manually). Now you can even put a simple screen showing values of the length you desire, Get it back after user selects and PUSH the value into the variable.So User cannot Enter , F4 is available also with values shown as long as you want,,,
    Hope this helps.

  • Disable jTable so that user cant enter any value & is stopped to do so

    Hi
    my program has 2 options for user: 1. To enter a list of values(for which im using table), 2. To use default values embedded in the program.
    for these options i have used jRadioButtons n ButtonGroup.When user selects DefaultValues radiobutton program uses default values,but when it selects DefaultValues radiobutton i want to disable the Table such that the user cannot enter any value in the cell and it should be visible to the user too that the table has been disabled.
    The user should only b able to enter values in table if he/she selects the first option's radiobutton.
    note: im using DefaultTableModel, if somebody can tell me any way other than using isCellEditable(),it would be more appreciatable
    thanks

    Erm i use netbeans..... the program i am pasting is really small in netbeans but when it is pasted somewhere else alot of code appears.....if its not right to do,tell me what to do....to make it more smaller
    import java.awt.Color;
    import java.awt.Component;
    import predoms.DisabledPanel;
    * @author Me
    public class test extends javax.swing.JFrame {
        /** Creates new form test */
        public test() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            buttonGroup1 = new javax.swing.ButtonGroup();
            jRadioButton1 = new javax.swing.JRadioButton();
            jRadioButton2 = new javax.swing.JRadioButton();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTable1 = new javax.swing.JTable();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            buttonGroup1.add(jRadioButton1);
            jRadioButton1.setText("default");
            jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jRadioButton1ActionPerformed(evt);
            buttonGroup1.add(jRadioButton2);
            jRadioButton2.setText("use table");
            jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jRadioButton2ActionPerformed(evt);
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] {
                    {"a", null},
                    {"b", null},
                    {"c", null},
                    {"d", null}
                new String [] {
                    "Title 1", "Title 2"
                Class[] types = new Class [] {
                    java.lang.Object.class, java.lang.Integer.class
                boolean[] canEdit = new boolean [] {
                    false, false
                public Class getColumnClass(int columnIndex) {
                    return types [columnIndex];
                public boolean isCellEditable(int rowIndex, int columnIndex) {
                    return canEdit [columnIndex];
            jScrollPane1.setViewportView(jTable1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(72, 72, 72)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jRadioButton1)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jRadioButton2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(74, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(136, 136, 136)
                    .addComponent(jRadioButton1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jRadioButton2))
                    .addContainerGap(193, Short.MAX_VALUE))
            pack();
        }// </editor-fold>
        private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt)
            DisabledPanel disabledPanel = new DisabledPanel(jTable1);
            disabledPanel.setDisabledColor(Color.lightGray);
            Component addu = this.add(disabledPanel);
            disabledPanel.setEnabled(false);        
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new test().setVisible(true);
        // Variables declaration
        private javax.swing.ButtonGroup buttonGroup1;
        private javax.swing.JRadioButton jRadioButton1;
        private javax.swing.JRadioButton jRadioButton2;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTable jTable1;
        // End of variables declaration
    }

  • Validation to compare a value that exist.

    Hi Everybody,
    I am using JDeveloper11.1.1.4. I want to implement a validation based on the comparison.
    I have an editable table in a .jspx file. This table is created by making use of an Entity based view object. And, this view object has some conditions in its where clause.
    Now since my page has editable table, I want a validation to happen in such a way that the user does not duplicate a value while editing/creating a new record in the form. Please note we cannot set Unique constraint because the table can have duplicate values. And hence, only the users context should not have a duplicate values. In short, the column in the table in which the user currently in, should not have the duplicate values.
    I tried with comparison operator with query result but came to know that we cannot pass parameters to the query.
    Can somebody suggest me what the best way of doing this?
    Regards,
    V. Praveen

    Assuming you are using ADF BC (which you appear to be), go to the "business rules" section of your EO, click the Entity Validators folder (not any of the attributes), and click the "plus" button to add a new validator. You can then choose "compare" as the rule type "equals" as the operator and "Entity Attribute" as the "compare with" item. Pick the two attributes to compare (one in the "attribute" list and the other in the "select entity attribute" list). Provide your error message on the "failure" tab (that way it can be translated, and not hard-coded in the exception, should you so desire) and voila, you are done.

  • Maxl/esscmd to get list of applications/databases that user has access to

    Is there any maxl/esscmd to get the list of applications/databases that a user has access to?
    I know that LISTGROUPUSERS 'groupName' -- this list all users of a group.
    Can anyone help please?

    MaxL
    display privilege user SomeUser;

  • User is not present any sharepoint group,But user has permissions to all subsites(almost user has admin permissions)

    I am having sharepoint site.one of the user is not present in any sharepoint group and also not present in site collection administrators but user has all the permissions in the site.Some members who are in the owner group(full control) also
    does not have permissions to add new users to some groups but the user who is not present in any group has permission to add new users also.How this user is able to access?.But user is present in people and groups

    HI
    First find out from where user getting permission.
    Hi 
    You can use get-spuser for the same.
    Listing All the SharePoint Groups to Which a User Belongs
    To list all the SharePoint groups to which a user belongs, you first need to find that user's SPUser object:
    $user = Get-SPUser -Web http://server/sites/yoursite |
      Where {$_.LoginName -LIKE "*|DOMAIN\SAMC"}
    Once you have this object, you can scan all the site collections in the farm and find all the groups to which the user belongs:
    Get-SPSite -Limit All |
      Select -ExpandProperty RootWeb |
      Select -ExpandProperty SiteUsers |
      Where { $user.UserLogin -EQ $_.LoginName } |
      Select -ExpandProperty Groups |
      Select Name, {$_.ParentWeb.Url}
    below link refer the same.
    http://sharepointpromag.com/sharepoint-2013/exploring-sharepoint-users-groups-and-security-using-powershell
    Hope this help you to find out user group
    Regards, Rajendra Singh If a post answers your question, please click Mark As Answer on that ost and Vote as Helpful http://sharepointundefind.wordpress.com/

  • A list of all calendars a user has access to

    Hi All, 
    My situation is as follows, I would like to create a report that will provide me with a list of mailbox calendars where a specific user has permissions and what permissions they have. A simple task, but one that keeps delivering me a roadblock. I haven't started
    the second part as I keep hitting this wall. 
    Heres what I've come up with so far: 
    get-mailbox -resultsize unlimited | get-mailboxfolderpermission "${$_.Name}:\Calendar" | Where {$_.User -like "Some User Name"}
    For each mailbox in $mailboxes it spits out the following error: 
    The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
        + CategoryInfo          : InvalidArgument: (MailboxName:PSObject) [Get-MailboxFolderPermission], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,Get-MailboxFolderPermission
    What am I doing wrong? 
    Running this on Exchange 2010 SP3 / Powershell Version 2.0
    Thanks 

    If I understood correctly, this should work...
    ForEach ($mbx in Get-Mailbox) {Get-MailboxFolderPermission ($mbx.Name + ":\Calendar") | Where-Object {$_.User -like <string>} | Select @{Name="Calendar
    Of";expression={($mbx.name)}},User,AccessRights}

  • Hotmail: my password is listed in the tools box, but is not entered when logging on so I have to type it in every time. all other passwords are automatically entered. why not hotmail?

    Windows Live Hotmail: every time I log on to this site for my emails, I have to manually type in my password, instead of Firefox automatically doing it.The tools box for saved passwords shows the right password in the list of saved passwords, so why is this particular password not entered automatically? All other saved passwords are entered automatically in the appropriate website logins. Puzzling!

    Are you referring to the SAME computer/login?
    If not, he likely has auto-complete (or similar) enabled and you probably do not.

  • TS1702 I download the app eNotify to my iPhone 4 but have not being able to linked to my Gmail account. Keep giving me the notice that user or server is not correct. What I need to correct the problem?

    I download the app eNotify to my iPhone 4 but could not linked to my Gmail account. Give me notice that user or server given is incorrect. It instructed me to go to phone settings and make correction but not working still. I need help. I"m not savy in technology.

    Hello there!  You can contact Verietas Support at [email protected]  The most usual error for gmail is that user name is NOT the full email address.  You just want to enter the stuff BEFORE "@gmail.com".  Good luck!

  • How do can I have the form fill in a check box if the user has entered text in a textbox?

    I have a form that is submitting an xml data file that is picked up by MS Word and used to populate a document. However, there's a 'Miscellaneous' field where the user can type in addtional information that would not drop easily into the Word document (exceptions, items not on the drop down lists, etc.). I'd like to test to see if that Miscellaneous field has infomation in it and if it does, to set a invisible checkbox to "1" so that I can insert a text message in the Word document that there's additional information in the .pdf form that will have to be addressed manually in the Word document.
    I've tried
    if(Misc.rawValue !== "")
    otherinfo.rawValue = 1;
    but while it doesn't generate a Javascript error, it doesn't set the value either, and I haven't found any function that checks for whether a field is empty. I'm sure there's got to be a way to do this, but I'm stumped. Any help greatly appreciated!
    Bill

    It appears you are using LiveCycle Designer, so you will have to use the syntax of FormCalc or LiveCycle Designer JavaScript.
    For FormCalc:
    if(HasValue(Misc)) then
    otherinfo = 1
    else
    otherinfo = 0
    endif
    For JavaScript
    if(HasValue(Misc.rawValue))
    otherinfo.rawValue = 1;
    else
    otherinfo.rawValue = 0;
    I added code to clear the check box if the user clears the field.

  • How to get the value a user  just enter into a table???

    hi
    i have a table that adds a new row when a user clicks ADD button. i was able to implement this part, now the user needs to enter some data into this row, i need this data to save into file. how can i get this data from the row?????? thank you.

    is there some kind of even that is fired when user enters data into a cell? you are saying that the data is already in the table model after user enters data. then i need to get a tableModel by calling
    TableModel tm = JTable.getModel();
    and then use this tm to get value? using what? getValueAt?

  • List column drop down not displaying all choices when user has read permissions

    One of my co-workers created a workflow with an associated list. I gave a user read permissions to the list but they cannot view or filter all of the choices from a column.  For example the column is named STATUS and has 4 choices, COMPLETED, CANCELED,
    IN-PROGRESS and NOT STARTED but the user is only able to view the COMPLETED items.

    Hi brianti,
    For troubleshooting this issue, please provide the followings:
    Could other user with full control see all items?
    How did you create the list? I am wondering whether you enabled Content Approval in the list. If yes, please go to List settings->Versioning settings, select "Any user who can read items" under "Who should see draft items in this
    list? ".
    How did your co-worker create the workflow? Please provide the actions that your co-worker used in the workflow.
    If you provide the above, it will make others in the forum easy to find a solution for you.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Does Creative Cloud Have All Features that CS6 has?

    Are all the programming features in CS6 available in Creative Cloud?

    CS5-thru-CC PPro/Encore tutorial list http://forums.adobe.com/thread/1448923 has that information
    The bottom section of the link above has several Adobe links, and other information, on downloading Premiere Pro CS6 and the bundled Encore CS6, and the TWO ADDED downloads for the Encore library content, to author a DVD or BluRay... and the tutorial list includes learning how to use Encore... pay particular attention to the picture in reply 3 at this link - Is encore included in premiere cc 2014?

Maybe you are looking for

  • Itunes will not open after installing lion and software updates

    I just installed lion and completed the most recent software updates for my computer, now i cannot get iTunes to open without it "unexpectedly quitting" on me. Has anyone else had this problem or knows what to do?

  • Build an application installer and include files referenced in the code

    I want to make an application installer of my project, and I need to include a picture that I'm using in the code. This picture is used both in the vision assistant and in a low level color pattern match. What I need is some way to reference this pic

  • Ajax call failed,  htmlDB_get return null

    Hi, I'm having some problem at ajax call. I'm always getting null return value after htmldb_Get.get() function. Tried to follow some examples in this forum, in Html header, i have: <script language="JavaScript" type="text/javascript"> function simple

  • Free downlaod of Workplace plug-in

    Hi All, Is there any free download of workplace plug-in to connect to R/3  system? Thanks, Ana

  • No video output via hdmi

    I have a brand new Apple Mac Mini that was just delivered via Fed Ex a couple of hours ago. I CANNOT get video to display over HDMI on my 50" plasma. When I comnect it and boot all I see is "no video input." I have a newer, smaller Sharp plasma that