How to put Authorisation Check?

Hi,
I have built a Module Program. In this there is a Save Button where information in the screen is saved to a Z table.
I need to put an Authorisation check to this save button. That is only users who have “Save” capability could save.
Simply there should be an authorisation check before the Save where it will check if the User has the Save option.
Please guide me on how to do this.
Thanks,
Kishan

Hi Kishan,
1. AUTHORITY-CHECK
   The above statement is required for authority checking.
    Just see help on it for syntax purpose.
2. Moreover,
   u will also have to know which authorisation object
   is necessary for your purpose.
   (or else new authorisation object may need tobe created)
Hope the above helps.
Regards,
Amit M.

Similar Messages

  • How to put a check mark in a PDF document, if using an iPad 2

    How to put an check mark in a PDF document, if using an iPad 2?

    You need to implement below logic:
    1. check if field_date = sy-datum. in this case do nothing.
    2. else . move sy-datum to field_date .
    3. modify your internal table with field_date .
    4. populate final table to database table .
    hope you get it.

  • How to add authorisation check to a program?

    Hi all :
          Could you please tell me how to add authorisation check to a program?  
          Thanks a lot.

    Hi,
    Check SAP help for authority-check. You can search on SDN on that.
    AUTHORITY-CHECK
    Basic form
    AUTHORITY-CHECK OBJECT object
    ID name1 FIELD f1
    ID name2 FIELD f2
    ID name10 FIELD f10.
    Thanks
    Nidhi

  • How to put a check with the date

    Hi,
    I have created a ztable with 3 fields .
    clientcode(3),
    date,--date geneated
    version--- fileversion
    i need to update this table everytime i execute the data. Every time version shd get incremented when i execute the program.  When i excute the program next day version shd be updated by '1'.
    i wrote the code for version updated i'm not getting the logic how to put a check with the date.
      SELECT *
       FROM zfi_enetflver
       INTO TABLE gt_flver.
      SORT gt_flver DESCENDING.
      CLEAR: gv_dt, v_file.
      CONCATENATE sy-datum6(2) sy-datum4(2) INTO gv_dt.
      READ TABLE gt_flver WITH KEY client_code = gv_clcd.
      IF sy-subrc = 0.
        idx = sy-tabix.
        IF gt_flver-zdate = ' '.
          gt_flver-zdate = sy-datum.
        ENDIF.
        IF gt_flver-version = ' '.
          gt_flver-version = '001'.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING zdate version.
          MODIFY zfi_enetflver FROM TABLE gt_flver. "TRANSPORTING version.
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ELSE.
          gt_flver-version = gt_flver-version + 1.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING version.
          MODIFY zfi_enetflver FROM TABLE gt_flver .
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ENDIF.
      ENDIF.
    clientcode is the key field in ztable do i need to make date field key ??
    please help me with the logic

    You need to implement below logic:
    1. check if field_date = sy-datum. in this case do nothing.
    2. else . move sy-datum to field_date .
    3. modify your internal table with field_date .
    4. populate final table to database table .
    hope you get it.

  • How to put a check boc in alv grid

    hi gurus i  need to put a checkbox in alv grid output
    not a pop up window
    can anybody inform me
    thank you
    raghavendra

    Hi,
    check these threads
    How can I display a checkbox in ALV? http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Regards

  • How to put custom check box in a tableview column

    Hi,
    I would like to put a custom checkbox in a tableview column for each row of the table.
    Such that when the user selects the rows and among those rows if for fews rows this checkbox is active, i need to do some special processing. how can i add a custom check box to a tableview column.
    Can anyone help me in this regard?
    Thanks and Regards,
    Kumar

    Hi,
    You can use the checkbox code within your tableview column:
    <htmlb:tableView id = ".."
    >
    <htmlb:tableViewColumn id = " "
    type = "USER"
    >
    <htmlb:checkBox id = ".."
    selected = " "
    />
    </htmlb:tableViewColumn>
    </htmlb:tableView>
    I hope it helps.
    regards,
    Rohit

  • How to put vallidation check

    Respected,
       I have created sales order then billing document of particular service and created an invoice for that order through CIC0 transaction code .customer enjoys the services if payment is due then i had to stop the services so how can I add a validation check  if payment is not cleared or not.
    AVANISH GULATEE
    Edited by: avanish gulatee on Oct 7, 2011 9:45 AM

    Hi Kishan,
    1. AUTHORITY-CHECK
       The above statement is required for authority checking.
        Just see help on it for syntax purpose.
    2. Moreover,
       u will also have to know which authorisation object
       is necessary for your purpose.
       (or else new authorisation object may need tobe created)
    Hope the above helps.
    Regards,
    Amit M.

  • How to Skip Authorisation Checks when i use LDB PNPCE

    Hi Experts,
    I have requirement to skip authorization checks in PNPCE LDB.
    Please let me know how it is possible , it is quite urgent
    Thanks a lot in Advance!
    Regards,
    Akila
    Moderator message: do not skip authorization checks, do not post "urgent" issues here.
    Edited by: Thomas Zloch on Aug 7, 2011 9:53 PM

    Hi Akila,
    Its not the good idea to ignore the authorization check, There should be a legitimate reason why it has implemented at first place?
    (If programmatic)The one who implemented the Auth check is he right person to approach how to ignore,just a matter of checking sy-subrc(But i would hesitate to apply that) . Or if this applied by roles then Security person might help you.
    @Prasenjit: How Dummy value could serve this purpose?
    Cheers
    Amit

  • How to put error checking on a code

    hi im creating a daily dairy prototype i have almost finished the code it works but there no error checking and i dont know how to write a code to help me validate my prototype here is the code:
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.Label;
    import java.awt.Panel;
    import java.awt.TextField;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.text.ParseException;
    import java.awt.List;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JTextField;
         public class DailyDairy extends Applet implements ActionListener {
              DailyDairy panel1, panel2, panel3, panel4;
              Component[][] rowData;
              private JComboBox[] jcboxShapeCombo = new JComboBox[7];     
              private String [] shapeName={"Meeting", "Lunch", "Holiday", "Sickness", "Preparing report", "Administrative work", "Emails", "Query"};
              public void init(){
                   setLayout(new BorderLayout());
                   setBounds (20, 30, 300, 180);
                   Panel headerPanel = new Panel();
                   headerPanel.setLayout(new GridLayout(1,4));
                   //JButton button1 = new JButton("SUBMIT");
                   //add(button1);
                   Label lblHeader = new Label("Start Time");
                   headerPanel.add(lblHeader);
                   lblHeader = new Label();
                   headerPanel.add(lblHeader);
                   add(headerPanel, BorderLayout.NORTH);
                   Label lblHeader1 = new Label("End Time");
                   headerPanel.add(lblHeader1);
                   lblHeader1 = new Label();
                   headerPanel.add(lblHeader1);
                   add(headerPanel, BorderLayout.NORTH);
                   Label lblHeader2 = new Label("Category of Task");
                   headerPanel.add(lblHeader2);
                   lblHeader2 = new Label();
                   headerPanel.add(lblHeader2);
                   add(headerPanel, BorderLayout.WEST);
                   Label lblHeader3 = new Label("Comment");
                   headerPanel.add(lblHeader3);
                   lblHeader3 = new Label();
                   headerPanel.add(lblHeader3);
                   add(headerPanel, BorderLayout.NORTH);
                   Label lblHeader4 = new Label("Total Time(Minutes)");
                   headerPanel.add(lblHeader4);
                   lblHeader4 = new Label();
                   headerPanel.add(lblHeader4);
                   add(headerPanel, BorderLayout.NORTH);
                   Panel data = new Panel();
                   data.setLayout(new GridLayout(7, 4));
                   rowData = new Component[ 7 ][];
                   // One row
                   for(int row = 0; row < 7; row++) {
                        rowData[ row ] = new Component[ 5 ];
                             rowData[ row ][ 0 ] = new TextField(10);
                             rowData[ row ][ 1 ] = new TextField(10);
                             ((TextField)rowData[ row ][ 1 ]).addActionListener(this);
                             rowData[ row ][ 2 ]= new JComboBox (shapeName);
                             ((JComboBox)rowData[ row ][ 2 ]).addActionListener(this);
                             //((TextField)rowData[ row ][ 2 ]).addActionListener(this);
                             rowData[ row ][ 3 ] = new TextField(10) ;
                             ((TextField)rowData[ row ][ 3 ]).addActionListener(this);
                             //JComboBox jcboxShapeCombo;
                             //System.out.println(rowData[row][2]);                    
                             //jcboxShapeCombo[2] = new JComboBox (shapeName);
                             //rowData[ row ][ 3 ] = new TextField(10);
                             rowData[ row ][ 4 ] = new TextField(10);
                             ((TextField)rowData[ row ][ 4 ]).addActionListener(this);
                             java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("h:mm");
                             ((TextField) rowData[ row ][ 0 ]).setText(sdf.format(new java.util.Date()));
                             data.add(rowData[ row ][ 0 ]);
                             data.add(rowData[ row ][ 1 ]);
                             data.add(rowData[ row ][ 2 ]);
                             data.add(rowData[ row ][ 3 ]);
                             data.add(rowData[ row ][ 4 ]);
                   add(data, BorderLayout.CENTER);
              public void actionPerformed(ActionEvent event) {
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("h:mm");
                   java.util.Date start = new java.util.Date();
                   try {
                        start = sdf.parse(((TextField)rowData[ 0 ][ 0 ]).getText());
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   java.util.Date end = new java.util.Date();
                   try {
                        end = sdf.parse(((TextField)rowData[ 0 ][ 1 ]).getText());
                        //System.out.println("end" +end.getTime());
                        //System.out.println("start" +start.getTime());
                        if (end.getTime() > 0) {
                             long difference = (end.getTime() - start.getTime()) / 60000L;
                             ((TextField)rowData[ 0 ][ 4 ]).setText(Long.toString(difference));
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   //long difference = (end.getTime() - start.getTime()) / 60000;
                   //java.util.Date difference = new java.util.Date();
                   java.util.Date start1 = new java.util.Date();
                   try {
                        start1 = sdf.parse(((TextField)rowData[ 1 ][ 0 ]).getText());
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   java.util.Date end1 = new java.util.Date();
                   try {
                        end1 = sdf.parse(((TextField)rowData[ 1 ][ 1 ]).getText());
                        if (end1.getTime() > 0) {
                             long difference1 = (end1.getTime() - start1.getTime()) / 60000;
                             //java.util.Date difference = new java.util.Date();
                             ((TextField)rowData[ 1 ][ 4 ]).setText(Long.toString(difference1));
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   java.util.Date start2 = new java.util.Date();
                   try {
                        start2 = sdf.parse(((TextField)rowData[ 2 ][ 0 ]).getText());
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   java.util.Date end2 = new java.util.Date();
                   try {
                        end2 = sdf.parse(((TextField)rowData[ 2 ][ 1 ]).getText());
                        if (end2.getTime() > 0) {
                             long difference2 = (end2.getTime() - start2.getTime()) / 60000;
                             //java.util.Date difference = new java.util.Date();
                             ((TextField)rowData[ 2 ][ 4 ]).setText(Long.toString(difference2));
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   //long difference2 = (end2.getTime() - start2.getTime()) / 60000;
                   //java.util.Date difference = new java.util.Date();
                   //((TextField)rowData[ 2 ][ 4 ]).setText(Long.toString(difference2));
                   java.util.Date start3 = new java.util.Date();
                   try {
                        start3 = sdf.parse(((TextField)rowData[ 3 ][ 0 ]).getText());
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   java.util.Date end3 = new java.util.Date();
                   try {
                        end3 = sdf.parse(((TextField)rowData[ 3 ][ 1 ]).getText());
                        if (end3.getTime() > 0) {
                             long difference3 = (end3.getTime() - start3.getTime()) / 60000;
                             ((TextField)rowData[ 3 ][ 4 ]).setText(Long.toString(difference3));
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   //long difference3 = (end3.getTime() - start3.getTime()) / 60000;
                   //java.util.Date difference = new java.util.Date();
                   java.util.Date start4 = new java.util.Date();
                   try {
                        start4 = sdf.parse(((TextField)rowData[ 4 ][ 0 ]).getText());
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   java.util.Date end4 = new java.util.Date();
                   try {
                        end4 = sdf.parse(((TextField)rowData[ 4 ][ 1 ]).getText());
                        if (end4.getTime() > 0) {
                             long difference4 = (end4.getTime() - start4.getTime()) / 60000;
                             ((TextField)rowData[ 4 ][ 4 ]).setText(Long.toString(difference4));
                   } catch (ParseException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   //long difference4 = (end4.getTime() - start4.getTime()) / 60000;
                   //java.util.Date difference = new java.util.Date();
                   //JTextField aField= (JTextField)event.getSource();
                   //if (aField)== rowData[ 0 ][ 1 ])calc row(0, 4);
                   //if (aField)== rowData[ 1 ][ 1 ])calc row(1, 4);
    }

    edit your post to have [ c o d e ] tags around your code,
    then maybe someone will have a look.
    And try to better explain your goals and your problem. Let us know what you have tried, what did you expect and what have you got.
    What is a "prototype" and on what specs should it be validaded?

  • To put validatition check on date

    hi
    there is data being loaded from a flat file i want to input check on date format as yyyymmdd format only please suggest how to put this check
    regards
    arora

    If you want to understand - run the program in debug and watch what happens to the values.  Or add some more write statements like this.
    PARAMETERS: p_dat TYPE c LENGTH 8.
    DATA: test_date TYPE d,
          input_date TYPE d.
    input_date = p_dat.
    WRITE:/ 'Value of p_dat', p_dat DD/MM/YYYY.
    WRITE:/ 'Value of input_date', input_date DD/MM/YYYY.
    test_date = input_date - 1.
    WRITE:/ 'Subtracted one from input_date to give', test_date DD/MM/YYYY.
    ADD 1 TO test_date.
    WRITE:/ 'Added one to test_date to give', test_date DD/MM/YYYY.
    IF test_date = input_date.
      WRITE: / 'Test_date same as input_date, so the original date was valid'.
    ELSE.
      WRITE: / 'Test_date NOT the same as input_date, so the original date was invalid'.
    ENDIF.
    If p_dat contains an invalid date, then when you subtract one from input_date it gives you '00000000' - i.e. INITIAL for a type D.
    So you could rewrite the code:
    PARAMETERS: p_dat TYPE c LENGTH 8.
    DATA: input_date TYPE d.
    input_date = p_dat.
    SUBTRACT 1 FROM input_date.
    IF input_date IS NOT INITIAL.
      WRITE: / 'Subtraction from input date is not blank so the original date was valid'.
    ELSE.
      WRITE: / 'Subtraction from input date is blank so the original date was invalid'.
    ENDIF.
    matt

  • Authorisation Check during CO-Retraction

    Hi,
    I am retracting CO-Data (CCA and OPA) from BW-BPS to CO. All went well until hierarchy-authorisations for InfoObject 0COSTCENTER have been activated on the planning-cube.
    In the planning level/package the selection for InfoObject 0COSTCENTER is 1-ZZZZZZZZZZ.
    This value will be delivered for authorisation check during CO-retraction.
    When checking hierarchy-authorisations, the explicite value ':' for 0COSTCENTER is expected. So I changed the selection in the planning area to 1-9999999999, ':' and A-ZZZZZZZZZZ.
    But the value ':' will be deletet during the preparation for the value check (RSSB_AUTHORITY_VAR_CHECK). So the hierarchy-check does not work properly.
    Please give me any advise, how to make authorisation check possible.
    Greetings Andreas

    Hello Andreas,
    as always the BPS selection needs to be a subset of your authorizations. You seem to select all cost centers so a hierarchy authorization is not enough.
    - Do an authorization trace in RSSM and check the log
    - Adapt the BPS selections or use a BPS authorization variable
    Regards,
    Marc
    SAP NetWeaver RIG

  • HT1451 How do I re-check all songs.  I somehow unchecked them and to manually re-check them all will take forever

    I accidentally un-checked all my songs in I-Tunes and re-checking them manually will take forever!  Anyone know how to put the check mark next to all the songs at the same time?

    CTRL+click on any empty check box will check all visible tracks.
    tt2

  • . How to put Check box in every row in Table

    Hi Friends,
    I have one doubt in Webdynpro with java. How to put Check box in every row in Table?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in Second View I will taken Table that data will displayed in rows. I need each and every row first I need check box.
    Here Select Check Box of particular row then click GetData button.  That row data will be displayed in one popup window.
    In table suppose 6 rows available in table. Every Row first Check box available.
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name 
    How to put Check box in every row in Table?  can you send any examples applications
    Regards
    Vijay

    Hi Friend,
    When we are getting BAPI From ECC System. that BAPI Have nodes and Attribues...in under node we can't create "CheckBox"
    attribute.
    So i am doing like this.I am create on Checbox attribue out side of Node. Check Box data type is boolean.
    next i am creating table ( that table having rows and columns) Right click on table-->Click on Insert GroupedColumn->again right click on nsert GroupedColumn---> Here Select Check Box.
    Okay...here i am getting one problem. i have got Check boxes .But i am select check box in  first row. that time all check boxes will be selected.
    i need select first row check box that only first row will be selected suppose i selected second row check box that only second will be selected.
    i need this can u help me....
    Regards
    Vijay

  • How do I put a check mark to all the songs in the library/

    somehow this morning after deleting voice memos from the iTunes library i noticed that all my songs became de-checked. Which means they won't play until i put a check mark in the check mark column. How do I check them all ?

    Thanks so much Meg I have almost 19,000 songs in my library and i'd be lost without being able to hear them.

  • How to put Check Boxes and Radio button in Smartforms

    Hi all,
    How to put check Box and radio button in Smartforms ............ from web properties there is an option to use. But How to use.     
    regards,
    Mohsin

    u can declare the checkboxes or radiobuttons whatever in driver program and pass the same to ur form...

Maybe you are looking for

  • Uploading bitmapData using FileReference class ?

    Hi gurus ;) Question nr 1. Is it possibly to upload bitmapData to server using FileReference class ? How should i approach this issue, is there any ready classes available for this purpose. I'm generating bitmaps inside my Flash/Flex App and need to

  • ABAP/4 processor : ASSIGN_TYPE_CONFLICT

    I am recieveing this error message ABAP/4 processor : ASSIGN_TYPE_CONFLICT  when i ran a DTP from a flat file datasource to the data source object (DSO) Can someone help me ?? please...

  • Trying to use an old XP computer as a file server.

    It has my iTunes library on it and I want to access it from my Windows 7 PC.  I have tried Home Share, but the XP library does not show up on the Win 7 machine.  However, the Win 7 library shows up on the XP PC.  I've also tried sharing the iTunes fo

  • Hp Pavillion Dv7 normal startup/startup repair go to blank blue Hp background

    I was recently minding my own business on the web when my computer seemed to freeze completely, I clicked a few buttons and then my computer turned itself off out of the blue. I turned it back on and it prompts me with two options, startup as normal,

  • IPad iPod app says there is no music... OS 4.3.3.

    Have the original iPad--  iPod app says there is no music, but there are 918 songs sync'd and loaded. Have updated to OS4.3.3. Any advice/troubleshooting tips?