How to restrict the access of FUNCTION MODULE for others after transporting

A Function module needs to be executed in one server and should be executed when others try to access it.how to restrict the access of FM to one application server after being transported using SM59.

issue resolved

Similar Messages

  • How to write the exceptions in function module

    dear all,
         how to write the exceptions in function modules with example.
    thanq
    jyothi

    Hi,
    Raising Exceptions
    There are two ABAP statements for raising exceptions. They can only be used in function modules:
    RAISE except.
    und
    MESSAGE.....RAISING except.
    The effect of these statements depends on whether the calling program handles the exception or not. The calling program handles an exception If the name of the except exception or OTHERS is specified after the EXCEPTION option of the CALL FUNCTION statement.
    If the calling program does not handle the exception
    · The RAISEstatement terminates the program and switches to debugging mode.
    · The MESSAGE..... RAISING statement displays the specified message. Processing is continued in relation to the message type.
    If the calling program handles the exception, both statements return control to the program. No values are transferred. The MESSAGE..... RAISING statement does not display a message. Instead, it fills the system fields sy-msgid, sy-msgty, sy-msgno , and SY-MSGV1 to SY-MSGV4.
    Source Code of READ_SPFLI_INTO_TABLE
    The entire source code of READ_SPFLI_INTO_TABLE looks like this:
    FUNCTION read_spfli_into_table.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
    *" EXPORTING
    *" VALUE(ITAB) TYPE SPFLI_TAB
    *" EXCEPTIONS
    *" NOT_FOUND
    SELECT * FROM spfli INTO TABLE itab WHERE carrid = id.
    IF sy-subrc NE 0.
    MESSAGE e007(at) RAISING not_found.
    ENDIF.
    ENDFUNCTION.
    The function module reads all of the data from the database table SPFLI where the key field CARRID is equal to the import parameter ID and places the entries that it finds into the internal table spfli_tab. If it cannot find any entries, the exception NOT_FOUND is triggered with MESSAGE ... RAISING. Otherwise, the table is passed to the caller as an exporting parameter.
    Calling READ_SPFLI_INTO_TABLE
    The following program calls the function module READ_SPFLI_INTO_TABLE:
    REPORT demo_mod_tech_fb_read_spfli.
    PARAMETERS carrier TYPE s_carr_id.
    DATA: jtab TYPE spfli_tab,
    wa LIKE LINE OF jtab.
    CALL FUNCTION 'READ_SPFLI_INTO_TABLE'
    EXPORTING
    id = carrier
    IMPORTING
    itab = jtab
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CASE sy-subrc.
    WHEN 1.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno.
    WHEN 2.
    MESSAGE e702(at).
    ENDCASE.
    LOOP AT jtab INTO wa.
    WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDLOOP.
    The actual parameters carrier and jtab have the same data types as their corresponding interface parameters in the function module. The exception NOT_FOUND is handled in the program. It displays the same message that the function module would have displayed had it handled the error.
    Or
    just have to decide what exceptions u want and under what conditions.
    then declarethese exeptions under the exceptions tab.
    in the source code of ur function module.
    if
    like this u can code .
    now when u call the function module in tme mainprogram.
    if some error occurs and u have declared a exception for this then it will set sy-subrc = value u give inthe call of this fm.
    in the fm u can program these sy-subrc values and trigger the code for ur exception.
    Please reward if useful
    Regards,
    Ravi
    Edited by: Ravikanth Alapati on Mar 27, 2008 9:36 AM

  • How to raise the exception in function module

    Dear abaper's.
                   I am creating a Function module .In that in' EXCEPTION' Tab i am giving
    3 exception .1.NO_DATA_FOUND 2.NO_PRINTER_FOUND 3.SMARTFORM_INTERFACE_NOT_FOUND.
    In my coding if this condtion matches i want to raise this exception.how can i do this in my coding .can any one suggest me..
    advance thanks,
    Warm regards,
    Veera

    Hi,
    if that condition is not satisfied,and u didn't handle that exception while calling function module then in the runtime error u will get the text as the description of the exception in function module definition.
    rgds,
    bharat.

  • How to restrict the access of "InPlaceRecordsListSettings.aspx" and "InPlaceRecordsSettings.aspx" pages for some users and allow the access for some users?

    I have a requirement to restrict the access of "InPlaceRecordsListSettings.aspx" and "InPlaceRecordsSettings.aspx" pages for some of the users and allow the access for some of the users.
    I have applied the below code on the web.config file but this modification impacting only on the web application level not on the site collection and sub site level.  
    <location path="_layouts/15/InPlaceRecordsSettings.aspx">
        <system.web>
          <authorization>
            <deny users="*" />
          </authorization>
        </system.web>
      </location>
    <location path="_layouts/15/InPlaceRecordsListSettings.aspx">
        <system.web>
          <authorization>
            <deny users="*" />
          </authorization>
        </system.web>
      </location>
    When I tried the access on
    :<portno>/sites/<scname>/_layouts/15/InPlaceRecordsSettings.aspx">http://<servername>:<portno>/sites/<scname>/_layouts/15/InPlaceRecordsSettings.aspx page allowed the access for all users.           
    Please suggest the possible solution to restrict the access of "InPlaceRecordsListSettings.aspx" and "InPlaceRecordsSettings.aspx" pages on SharePoint2013.
    Thanks
    Ramasubbu

    You can't do it from OOTB. 
    _layout folder is accessible to the users if they have read access in any of the site even subsite.
    You can modify *.aspx file, add your custom control which will check user.
    [custom.development]

  • How to automate the creation of Function Module & Class Object (SE24)

    Experts,
    I have the requirement to automate the creation of any type of programs: ie function module (like how we normally create in SE37 together with the parameters), class object (like how we normally create in SE24 together with attribute & method), normal report (like how we did in SE38), module pool and so on.
    For example. I backuped my program into a flat file (the entire source code in txt formal or HTML) through a download program and I need to upload back this flat file into another installation of SAP.
    Does SAP provide any predefined FM to cater for the above cases or better still, does anyone know of any upload program which I can use for the above requirement.
    Thanks in advance.

    Hi Kris, I can't use the transport system as these are 2 separate SAP installation in a different place. The requirement came in the form of creation of program to be able to generate FM/Class/Report on the go.

  • How to change the name of function module ,generated by SMARTFORMS

    Dear All,
    As you all know, SMARTFORMS generates one function module.
    The default name is somewhat like    /1BCDWB/SF00000099
    instead of, i want to give some specific user defined name.
    how to do???

    Hi,
    I think its not possible to give it a user defined name, but you can assign it to a variable and use that variable name instead.
    Please see the code below
    Data: V_FMNAME type RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                 EXPORTING
                   formname                 = 'ZSMARTFORM'
                  VARIANT                  = ' '
                  DIRECT_CALL              = ' '
                IMPORTING
                  FM_NAME                  =  V_FMNAME
                EXCEPTIONS
                  NO_FORM                  = 1
                  NO_FUNCTION_MODULE       = 2
                  OTHERS                   = 3
               IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ENDIF.
              CALL FUNCTION V_FMNAME
               EXPORTING
                ARCHIVE_INDEX              =
                ARCHIVE_INDEX_TAB          =
                ARCHIVE_PARAMETERS         =
                CONTROL_PARAMETERS         =
                MAIL_APPL_OBJ              =
                MAIL_RECIPIENT             =
                MAIL_SENDER                =
                OUTPUT_OPTIONS             =
                USER_SETTINGS              = 'X'
                  wa_itab1                   = wa_itab1
                  wa_itab2                   = wa_itab2
                  wa_itab3                   = wa_itab3
                  wa_itab4                   = wa_itab4
                IMPORTING
                DOCUMENT_OUTPUT_INFO       =
                JOB_OUTPUT_INFO            =
                JOB_OUTPUT_OPTIONS         =
                TABLES
                  i_itab1                    =  i_itab1
                  i_itab2                    =  i_itab2
                  i_itab4                    =  i_itab4
                  i_itab3                    =  i_itab3
              EXCEPTIONS
                FORMATTING_ERROR           = 1
                INTERNAL_ERROR             = 2
                SEND_ERROR                 = 3
                USER_CANCELED              = 4
                OTHERS                     = 5
              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,
    Manish

  • How to find the outbound idoc function module?(Urgent)

    Dear All,
    How to identify the outbound function module if there is process code assigned to message type.
    For partner profile the mesasge type is assigned and idoc type .This is the only information maintained .
    Now my question is how to identify the fucntion module which is getting trigger in the system is there any data maintained in the standard table  or any t-code .
    Points will be rewarded for right answers.
    Thank You.
    Regards,
    Ravi Ganji

    Hi,
    If u know the message and basictype then we can know the process code for that message type in transaction code WE64.
    if we know process codes then we can know the function modules in transaction codes WE41(Outbound process code) and WE42(Inbound process code).
    Each process code is attached with a FM...
    Reward if helpful
    Regards,
    Nagaraj

  • How to find the names of Function Module used in the program

    Hi all,
    can you people help me with this issue.I want to the names of all the Function Module used in the program  along with their parameters into an internal table.It will be helpful for your suggestions.
    Kind Regards,
    Edited by: Prasenjit Sengupta on Nov 20, 2008 7:39 AM

    Take structure of internal table as
    TYPES : BEGIN OF TY_FM,
            FUNCNAME TYPE RS38L_FNAM,  "Name of Function Module
            PARAMETER TYPE RS38L_PAR_, "Parameter name
            PARAMTYPE TYPE RS38L_KIND, " Parameter type
            R3STATE TYPE R3STATE,      "ABAP: Program Status (Active, Saved, Transported...)
            STRUCTURE TYPE RS38L_TYP,  "Associated Type of an Interface Parameter
            DEFAULTVAL TYPE RS38L_DEFO,"Default value for import parameter
            REFERENCE TYPE RS38L_REFE, "Call by reference
            OPTIONAL TYPE RS38L_OPTI,  "Optional parameters
            TYPE TYPE RS38L_TYPE,      "Reference Structure is an ABAP/4 Type
            END OF TY_FM.
    DATA : IT_FM TYPE TABLE OF TY_FM WITH HEADER LINE.

  • How to Debug the DMEE exit function module

    Hi All,
    I wants to Debug the DMEE  tree exit function module.
    Could you please guide me.
    Regards,
    Seshadri

    Put a BREAK USER in User-Exit.
    Once the system enters into debugging mode,
    in debuger on setting tab,
    check the Update Debugging and System Debugging.
    Regards
    Bala Krishna

  • How to identify update mode in function module for generic extractor

    Hi All,
    I have created generic extractor using function module which supports delta load.
    Delta logic is handeled in coding...by using ROOSGENDLM table.
    Now problem is we need to identify the update mode, requested from infopackage in our function module in order to apply logic for Repair full.
    I would like to know table or parameter in source system, which contain the update mode (Init , Delta , Full).
    Thanks,
    Niraj

    Hi Niraj
    You can use the FM import parameter "i_updmode" (This is of type "SBIWA_S_INTERFACE-UPDMODE") to determine if infopackage triggerred in full or delta mode.
    I_REQUNR     TYPE     SBIWA_S_INTERFACE-REQUNR                                                                               
    I_ISOURCE     TYPE     SBIWA_S_INTERFACE-ISOURCE                               InfoSource Name
    I_MAXSIZE     TYPE     SBIWA_S_INTERFACE-MAXSIZE                               Data Packet size
    I_INITFLAG     TYPE     SBIWA_S_INTERFACE-INITFLAG                               Initial Flag
    I_UPDMODE     TYPE     SBIWA_S_INTERFACE-UPDMODE                               Update Mode
    I_DATAPAKID     TYPE     SBIWA_S_INTERFACE-DATAPAKID                               Datapacket Id
    I_PRIVATE_MODE                                                                               
    I_CALLMODE     TYPE     ROARCHD200-CALLMODE                               Single-Character Flag
    I_REMOTE_CALL     TYPE     SBIWA_FLAG                                                                               
    Cheers
    Vasu Sattenapalli

  • How to use the first row function value for the rest of records

    Hi all,
    I am having a select statement like this. We are calling function enabled for each row. So it is taking
    time. As per our bussiness logic, we can use what the function 'enabled' will give for the first row to
    other rows also. so that we can avoid calling the function 'enabled' next row onwars.
    Before
    SELECT
    decode(enabled(col1, col2, col3),'TRUE','xxx', col4),
    decode(enabled(col1, col2, col3),'TRUE','xxx', col5),
    decode(enabled(col1, col2, col3),'TRUE','xxx', col6),
    decode(enabled(col1, col2, col3),'TRUE','xxx', col7),
    decode(enabled(col1, col2, col3),'TRUE','xxx', col8),
    from
    table1 t1, table2 t2 where t1.col1 = t2.col1
    After
    SELECT
    decode(enabled(col1, col2, col3),'TRUE','xxx', col4),
    decode('true/false','TRUE','xxx', col5), --Here 'true/false' is the first row value after calling the function 'enabled'
    decode('true/false','TRUE','xxx', col6),
    decode('true/false','TRUE','xxx', col7),
    decode('true/false','TRUE','xxx', col8),
    from
    table1 t1, table2 t2 where t1.col1 = t2.col1
    Any thoughts on this, how to implement this logic
    Thanks,
    Pal

    It's not clear where col1, col2, col3... etc. come from, so I've assumed they're in table1.
    with table1_X as (select enabled(col1, col2, col3) as enbl
                            ,col1, col2, col3, col4, col5, col6, col7, col8
                      from   table1)
    SELECT decode(t1.enbl,'TRUE','xxx', col4)
          ,decode(t1.enbl,'TRUE','xxx', col5)
          ,decode(t1.enbl,'TRUE','xxx', col6),
          ,decode(t1.enbl,'TRUE','xxx', col7),
          ,decode(t1.enbl,'TRUE','xxx', col8),
    from   table1_x t1 join table2 t2 on (t1.col1 = t2.col1)p.s. you'd be better leaving out the enabled function altogether and incorporating the logic of the function directly in the SQL, and then you would be avoiding any context switching which will clearly impact performance on any large amount of data.
    Edited by: BluShadow on 14-May-2013 08:26

  • How to restrict the Qty & Val in MIRO for Customs

    Hi Xperts
    I have a reqmnt.
    I have found in case of Import procurement process , we are not using GR based IV Indicator in the PO.Also we need to perform MIRO for Customs prior to GR.
    1. Hence users need to manually enter the qty/val for all the duties during MIRO(Custom). I have also chkd that users can enter more than the PO-Qty & more then PO-Condition Value as well during that.
    2. Also user can do MIRO(for Custom) multiple times as they wish, though MIRO(Custom) has already been completed for that item.
    Ho to restrict the above in AP?Plz suggest.
    Rgds
    Soumick

    You requirement can be achieved by enhancement in MIRO.
    Check these exits related to MIRO
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                  User exits in Logistics Invoice Verification
    LMR1M002                                  Account grouping for GR/IR account maintenance
    LMR1M003                                  Number assignment in Logistics Invoice Verification
    LMR1M004                                  Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                  Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                  Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                 Logistics Invoice Verification: ERS procedure
    MRMH0002                                 Logistics Invoice Verification: EDI inbound
    MRMH0003                                 Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                 Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE                    Business Add-In: Logistics Invoice Verification
    refer below link
    Code To Find BAdi - ABAP Development - SCN Wiki

  • How to restrict the Usage of Rejection Store for an User?

    Hi!
    I am a QM User. without QAD Knowledge store & Production persons moves the Components to Rejection stores thro' Mvt 311. The rejection Components are getting accumulated and we are questionable for the same.
    So Can anybody resolve the problem to restrict the Rejection storage location for an user or any other solution is highly appreciated.
    Pls. help me.
    Thanks & Regards,
    Surya

    Hi
    Avoid particular storage location from QC 
    this is possible through autherization object M_MSEG_LGO
    Go to SPRO->mat mgt->Inventory mgt& physical inventory->Autherisation Manegement>Autherizarion check for storage location-->for you plant & Storage loaction click on Autherization.
    When the indicator is set you must have authorization for the authorization object Goods movements: storage location ( M_MSEG_LGO) in order to enter a goods movement in the storage location using a particular movement type.
    In M_MSEG_LGO
    The authorization object contains four fields:
    1.Activity: defines whether the user:
    may enter goods movements (Activity=1)
    may change goods movements (Activity=2)
    may display goods movements (Activity=3)
    2.Movement type: defines the movement types you can use to to maintain goods movements.
    3.Storage location: defines which storage locations in which plant you may maintain.
    4.Plant: defines which plants the user may maintain.
    here you can Quarentive Quality people from these storage loactioon.
    Regards
    Sujit

  • How to restrict the accessibility of a class to specific class(es)

    How can I restrict accessibility of a class (instantiating or using) to a specific class or a set of classes. For example, I have a class 'CreditCard'. I want to limit its accessibility to a specific class 'CreditCardManager'. i.e., anyone could only create or use objects of 'CreditCard' class from 'CreditCardManager' class only.
    This may look like 'friend' functionality in c++. But it is not. The private members should not be accessed from the manager class.

    Define a CreditCard interface:
    public interface CreditCard {
    }Put the implementation inside CreditCardManager:
    public class CreditCardManager {
        private /* static (?) */ class CreditCardImpl implements CreditCard {
        public CreditCard newCreditCard(...) {
            CreditCard  cc = new CreditCardImpl();
            return cc;
    }Since you are going on about it, I assume CreditCard is a key concept in your app, so there are probably other reasons to make it an interface too. For example, so that youi can mock it in unit tests.

  • How to Install the Downloaded NetBeans(*.nbm) Modules for Sun Java Studio

    Dear All,
    I have downloaded NetBeans Modules files with Extension *.nbm, and they are not getting installed, when I double click on them, or if I go through the Update Center and Select the Downloaded Modules even then also they are not getting installed, so please tell me the procedure how to install them.
    mahesh.

    It would be helpful to know which version of Java SE you are using, what NetBeans modules are you attemping to install, and any pertinent error messages that arise when you try to install the modules. As Jin_B pointed out, check the system/ide.log file in your .jstudio directory for possible error messages.

Maybe you are looking for