If  I know authority object is 'S_OC_SEND', how to check it in ABAP code ?

Can i find if people in other place check the authority 's_oc_send'.
Best regards,

Hi Blake,
Check program RSUSR060
Thanks
Lakshman

Similar Messages

  • How to add breakpoint in abap code

    when use <i><b>java</b></i> call abap code ,
    how to add breakpoint in abap code?

    Hi,
    To start the ABAP debugger from your java client you have to set the JCO client to debug mode:
    e.g.
    yourJCOClient.setAbabDebugMode(true)
    (hope thats the right method name:-)).
    And don't forget to set also a break point of type "External" in the function module you call from your java client. For debuging, the user which calls the FM has to be a SAP User of type "<b>Dialog"</b> and has to be the rights to call RFCs, ...

  • How to insert Method in ABAP code

    Hi Gurus,
    Plz tell me how to insert a METHOD in ABAP code as we do in the case of inserting function in ABAP code using PATTERN.Button
    Rgds
    rajesh

    Hi,
    Try this.
    Click pattern tab ans select AABAP object patterns.
    Select call method.
    Then give the instance name , class/interface name and the method name.
    Sharin.

  • How to know Whether the FI document is parked or completed in abap code

    Hi..
    In our company scenario workflow will be triggered only when document is 'completed'. But some times end users pressing only 'parking'. Then Documents are not comoing into workflow.
    So my requirement is
    1. Whether to Deactivate the 'Save as Parked' from F-65,F5V0,FBV0,MIR7.
    OR
    2.Stopping the user by pressing the 'Save as Parked' by populating error messages through Valiations/Subsitutions/Enhancements.
    Thanks in Advance.
    Mahender.

    Hi,
    you are saying that the workflow will get trigerred only when document is posted.
    Then try to create a new workflow which will get triggerred during parking.
    You can go through the following links which will give you an idea how to start developing a new workflow.
    Following are the links for a similar development which i got 1 year before.
    [USer Exit / Badi F-47  & F-59;
    [send message to sbwp;
    [Workflow in Process;
    [Set the Automatic Customisation & Prefix numbers in SWU3 in Production ?;
    all the best.
    Regards
    Sajid.

  • How to check email in abap?

    Hi experts,
    I want to check email (xxx@ company.com,MS exchange server) in my ABAP program. If there are 3 new emails, I need to loop to read the sender/subject/body information.
    Can ABAP do this?
    Thanks.

    Hi Michaeltrans
    Please go through the following
    *& Report  ZRS_WEBPAGE
    *& Author : Renuka
    *& Title     : HTML Viewer using Class
    REPORT  zrs_webpage.
    DATA :  html_control  TYPE REF TO cl_gui_html_viewer,
            web_container TYPE REF TO cl_gui_custom_container.
    DATA :  t_events      TYPE TABLE OF  cntl_simple_event.
    DATA :  x_events      TYPE           cntl_simple_event.
    DATA :  ok_code     TYPE           sy-ucomm.
    DATA :   v_code       TYPE           sy-ucomm,
            v_url(2048)  TYPE           c.
    *--Event Handler Dfinition For Web page Navigation--
    CLASS cl_events_handle DEFINITION.
      PUBLIC SECTION.
        METHODS navigation
                FOR EVENT navigate_complete OF cl_gui_html_viewer
                IMPORTING url.
    ENDCLASS.                    "cl_events_handle DEFINITION
    DATA: event_receiver TYPE REF TO cl_events_handle.
    START-OF-SELECTION.
      SET SCREEN 200.
    *&      Module  STATUS_0200  OUTPUT
          text
    MODULE status_0200 OUTPUT.
      SET PF-STATUS 'WEBPF'.
      SET TITLEBAR 'WEBTT'.
      IF web_container IS INITIAL.
        CREATE OBJECT web_container
          EXPORTING
       parent                      =
            container_name              = 'HTML'
       style                       =
       lifetime                    = lifetime_default
       repid                       =
       dynnr                       =
       no_autodef_progid_dynnr     =
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6
        CASE sy-subrc.
          WHEN 0.
          WHEN OTHERS.
            RAISE cntl_error.
        ENDCASE.
        CASE sy-subrc.
          WHEN 0.
          WHEN OTHERS.
            RAISE cntl_error.
        ENDCASE.
      ENDIF.
      IF html_control IS INITIAL.
        CREATE OBJECT html_control
          EXPORTING
       shellstyle         =
            parent             = web_container
       lifetime           = lifetime_default
       saphtmlp           =
       uiflag             =
       name               =
       saphttp            =
       query_table_disabled = ''
          EXCEPTIONS
            cntl_error         = 1
            cntl_install_error = 2
            dp_install_error   = 3
            dp_error           = 4
            OTHERS             = 5
        IF sy-subrc <> 0.
          RAISE cntl_error.
        ENDIF.
        x_events-eventid = html_control->m_id_navigate_complete.
        x_events-appl_event = 'X'.
        APPEND x_events TO t_events.
        CALL METHOD html_control->set_registered_events
          EXPORTING
            events                    = t_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3
            OTHERS                    = 4.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->navigation
            FOR     html_control.
        PERFORM home_page.
      ENDIF.
    ENDMODULE.                 " STATUS_0200  OUTPUT
          text
    -->  p1        text
    <--  p2        text
    FORM home_page .
      DATA: doc_url(80).
      CALL METHOD html_control->load_html_document
        EXPORTING
          document_id          = 'HMPG'
       document_textpool    =
       document_url         =
       as_compressed_data   = 'X'
       language             =
        IMPORTING
          assigned_url         = doc_url
    CHANGING
       merge_table          =
        EXCEPTIONS
          document_not_found   = 1
          dp_error_general     = 2
          dp_invalid_parameter = 3
          OTHERS               = 4
      doc_url = 'www.applexus.com'.
      IF sy-subrc EQ 0.
        CALL METHOD html_control->show_url
          EXPORTING
            url = doc_url.
      ENDIF.
    ENDFORM.                    " HOME_PAGE
    *&      Module  USER_COMMAND_0200  INPUT
          text
    MODULE user_command_0200 INPUT.
      v_code = ok_code.
      CLEAR ok_code.
      CASE v_code.
        WHEN 'REFRESH'.
          CALL METHOD html_control->do_refresh.
          CALL METHOD html_control->get_current_url
            IMPORTING
              url = v_url.
        WHEN 'BKWD'.
          CALL METHOD html_control->go_back.
          CALL METHOD html_control->get_current_url
            IMPORTING
              url = v_url.
        WHEN 'BACK'.
          IF NOT html_control IS INITIAL.
            CALL METHOD html_control->free.
            FREE html_control.
          ENDIF.
          IF NOT web_container IS INITIAL.
            CALL METHOD web_container->free
              EXCEPTIONS
                OTHERS = 1.
       IF sy-subrc <> 0.
            MESSAGE E002 WITH F_RETURN.
       ENDIF.
            FREE web_container.
          ENDIF.
          LEAVE PROGRAM.
        WHEN 'NEXT'.
          CALL METHOD html_control->go_forward.
          CALL METHOD html_control->get_current_url
            IMPORTING
              url = v_url.
        WHEN 'REFRESH'.
          CALL METHOD html_control->do_refresh.
          CALL METHOD html_control->get_current_url
            IMPORTING
              url = v_url.
        WHEN 'OK'.
          IF NOT v_url IS INITIAL.
            CALL METHOD html_control->show_url
              EXPORTING
                url                  = v_url
              EXCEPTIONS
                cnht_error_parameter = 1
                OTHERS               = 2.
            IF sy-subrc GE 2.
              RAISE cntl_error.
            ENDIF.
          ENDIF.
        WHEN 'CANCEL'.
          IF NOT html_control IS INITIAL.
            CALL METHOD html_control->free.
            FREE html_control.
          ENDIF.
          IF NOT web_container IS INITIAL.
            CALL METHOD web_container->free
              EXCEPTIONS
                OTHERS = 1.
            IF sy-subrc <> 0.
            MESSAGE E002 WITH F_RETURN.
            ENDIF.
            FREE web_container.
          ENDIF.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
          CLASS cl_events_handle IMPLEMENTATION
    CLASS cl_events_handle IMPLEMENTATION.
      METHOD navigation.
        v_url = url.
      ENDMETHOD.                    "on_navigate_complete
    ENDCLASS.                    "cl_events_handle IMPLEMENTATION}
    Edited by: renu1ece on Dec 30, 2010 8:00 AM

  • How to check frequency of ABAP program usage

    Dear Experts,
    How to find out the frequency of ABAP programs executed by users? the reason is because we want to do a housekeeping on all the ABAP reports that we have developed over the years, we want to deactivate those reports that are no longer executed by the user within 1 year. Anyone can give suggestion?
    I already tried using SM36, but this is only for those programs scheduled in background or immediate, how about those programs running on foreground?

    Hello,
    You can use the trxn SM20N. But bear in mind some prior config needs to be in place for the logging to be active (trxn SM19).
    For further details on SM20 read this: [Security Audit Log|http://help.sap.com/SAPhelp_nw70/helpdata/en/2c/c59d37d373243de10000009b38f8cf/frameset.htm]
    @Sap Fan: STAD can be used in case the audit log is not available (e.g., due to missing config) but afaik there is a limitation on the date range you can provide.
    BR,
    Suhas
    Edited by: Suhas Saha on Sep 7, 2010 9:39 AM

  • How to check name of t-code in SPRO?

    Please, help,
    I use transaction SPRO (IMG), ex. to make global settings for EBS,
    how can I find out what's the name of transaction of settings for EBS? (on bottom, in the right corner the name of transaction is SPRO...:( ),
    thx in advance.

    Execute the Function Module 'S_CUS_IMG_ACTIVITY_READ' in SE37 with the IMG_ACTIVITY ( Get the IMG_ACTIVITY from SPRO selecting the node and then Edit-> Display IMG Activity : IMG Activity ID value ) and get the Transaction code from Export parameters IMG_ACTIVITY_HEADER-TCODE.

  • How to create breakpoint with ABAP code?

    Hi all,
    I would like to create a breakpoint for my user id only.
    So far, the only way that I know is by:
    break <user_id>.
    e.g.
    break john.
    HOWEVER, my user id contain a "." (i.e. chris.p) , and this cause syntax error.
    Could anyone help me?
    Thank you.
    Best regards,
    Chris

    Hi chris.
    greetings
    try like this:-
    if sy-uname = 'CHRIS.P'.
    break-point.
    endif.
    if helpful, plz reward points.
    regards
    prashant

  • How to send mail from ABAP code?

    Hi,
    I need to send e-mail from ABAP Code .
    e.g:  If sy-subrc ne 0.
         ( send e-mail to  "[email protected]" )
           endif.
    Please provide me any Function module for this or any code.
    Correct answear will be rewarded my maximum points.
    Thanks & Regards,
    Gaurav.

    Check this code sample
    * Send mail
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards.

  • How to check idoc status through code

    Hi All,
    Can we check idoc status from within the code? My requirement is that once the idoc is transmitted correctly(status 12) to the system (outbound),I need to update a few fields in my custom table.
    Please share some information if available on this.
    Thanks and Regards,
    Ameya Kulkarni

    Hi
    The table EDIDC will contain the necessary information.  Please check.

  • How to check the access right for a specific SAP object like MaterialMaster

    Hi!
    How can I check if I have the right to change a specific object like a material or document in SAP vie RFC. I need a remote able function which tells me, if I have enough rights! Or, if such a function does not exist, how can I write my own ABAP code to do this?
    Thanks,
    Konrad

    Hi,
    When initiating a transaction, a system program performs a series of checks to ensure the user is authorized.
    1. The program checks whether the transaction code exists in table TSTC.
    2. The program checks whether the transaction code is locked by the administrator (transaction code SM01).
    3. The program checks whether the user has the authority to start the transaction. Authorization object S_TCODE (transaction start) contains the authorization field TCD (transaction code). The user must have the appropriate authorization for the transaction code to be started (for example, FK01, Create Vendor).
    4. The program checks whether an authorization object is assigned to the transaction code. If this is the case, the program checks whether the user has an authorization for this authorization object. The transaction code/authorization object assignment is stored in table TSTCA.
    Note: An SAP program controls steps 1 through 4. It displays an automatic message to the user if an authorization attempt fails in the step.
    5. The system performs authorization checks in the ABAP program using the ABAP statement AUTHORITY-CHECK.
    Regards
    Sudheer

  • How to check object with boolean

    hi
    i have a JComboBox
    i have added the items to JComboBox as {"true", "false"}
    my problem is how check with boolean
    like i was trying like this
         public boolean getBooleanValuesOfComboBox() {
              if(Boolean.TRUE.equals(_comboBox.getSelectedItem())) {
                   return true;
              return false;
    how to do this JComboBox getSelectedItem will return object... how to check
    thank u
    null

    > i have a JComboBox
    i have added the items to JComboBox as {"true",
    "false"}
    You could store Boolean objects in that combo-box instead of Strings.

  • How to Debug a ABAP code running the background in Portal

    How can I debug a ABAP code running in the background while executing a transaction code through portal.
    e.g Presently I have to incorporate some checks in the portal. For that I know the function module where i need to put though checks. Now I want to know, how does the code during runtime. What values do we get in the function module. For this I need to get into the debugging mode while executing the portal.
    So how can we do that???

    Namit,
    it doesnot matter whether it is a standard funtion module or a custom one .check whether you are debugging for proper user(portal user and backend user are same) and check debugging is activated

  • How to translate std. ABAP report in german language to English in SAP

    Dear All,
    How to translate std. ABAP code in German language to English in SAP ?

    Hi,
    code does not need to be translated.
    Data elment descriptions, documentation, text elements, etc. can be translated in the transaction se63.
    Also you can translate almost each single object in the editor in the menue  goto-translation.
    Regards,
    Gianpietro

  • How to check date input.

    In a JText, I input a date valu, when i got the value ,i want to check if it's reasonable.
    but idon't know how to check a number:
    for example:
    i input 31/31/2004,
    you know it's not reasonable.
    how to check it?

    Here is a function that check for a valid date:
    public boolean validDate(String strDatum)
    boolean dane = true;
    Calendar calendarDatum = Calendar.getInstance();
    int godina = 0, mesec = 0, den = 0, najgolemDen = 0;
    int i;
    if(strDatum.length()<10)
    dane = false;
    else
    for(i=0;i<2;i++)
    if(!Character.isDigit(strDatum.charAt(i)))
    dane = false;
    for(i=3;i<5;i++)
    if(!Character.isDigit(strDatum.charAt(i)))
    dane = false;
    for(i=6;i<10;i++)
    if(!Character.isDigit(strDatum.charAt(i)))
    dane = false;
    if(dane)
    godina = Integer.parseInt(strDatum.substring(6,10));
    mesec = Integer.parseInt(strDatum.substring(3,5));
    den = Integer.parseInt(strDatum.substring(0,2));
    if(mesec>12||mesec<1)
    dane = false;
    else
    calendarDatum.set(godina,mesec-1,1);
    najgolemDen = calendarDatum.getActualMaximum(Calendar.DAY_OF_MONTH);
    if(den>najgolemDen)
    dane = false;
    }//if(dane)
    }//else (ako dolzinata e 10)
    return dane;
    }

Maybe you are looking for

  • How to write a stream using a 3 symbol alphabet into a normal bitstream?

    I have a three symbol alphabet which i would like to convert to a bit stream. The intuitive way of using two bits per symbol would introduce an unused 2 bit combination that will unecessarily inflate the bit stream. I am wondering what methods exist

  • ARRAY object creation problem in Java

    Hi I am encountring when trying to create ARRAY in one case while the same code works perfectly in other case. The following code works fine: Connection con=getConnection(); String[][] elements = new String[1][2]; elements[0][0] =new Long(1111).toStr

  • Query on BBP_CUF_BADI_2 ?

    Hi Experts, I need to fill the one cusom field before the displaying the screen , for the shopping cart item details. That i am trying using the BBP_CUF_BADI_2. Using the method MODIFY_OUTPUT , that can be used to to fill the custom field with values

  • Stopping exchnage trasnport service

    there is a problem with the forefront protection for exchange server, troubleshooting it needs the forefront servie to be stopped. However, the forefront protection controller service is dependent on exchange transport service. Is there any way to st

  • Mini crashes when another mac wants to access it

    Recently, our mini crashes every time another mac tries to access it or its attached printer. There are no other problems and if the mini is used to access the other Macs all is fine. It has worked fine for over 2 years. Anyone know what's wrong?