How to restrict transaction to run in Foreground?

Hi,
can i restrict a user to run one particular transaction in foreground?
Regards
Lijo joseph

Here is a way that you can remove the "Execute in Background" option from the "program" menu of a report program. 
report zrich_0002 .
* Used to limit user commands on selection-screen
include rsdbc1xx.
* Selection Screen
parameters: p_check type c.
* Events
at selection-screen output.
  append 'SJOB' to current_scr-excl.
Regards,
Rich Heilman

Similar Messages

  • How to restrict transaction type in customized activity pop-up

    We have created a custom workcenter link for search enhancement of activities. We copied the work center link and are calling the same component as in std search but a different customized configuration with added and deleted fields in search criteria. This works fine. Now the requirement is to restrict the 'transaction types' available when we click on the 'new' button in the new custom activity search page. As this pop-up emanates from the std component, it can not be functionally configured (because that would restrict the 'transaction types' while creating new activity in std componnet) but should be technically handled. Please advise.

    Hi Amar,
    Solution here is to let the framework know who is caller ?
    That is, when pop up is opening, you have to put a code in this pop up view to understand who is invoking this pop up , Is it the search page of std. component configuration or is it the custom search page configuration ?
    So have a static attribute in some Z class, you can use your IMPL class also for that matter, Now whenever you know that its custom config i.e. in DO_CONFIG_DETERMINATION, read the role key( i assumed that you have a role key for your custom config)
    and if its custom role key, then set this static parameter say ZCUST_CONFIG = abap_true else abap_false (this is must to reset it using else as this is static attribute )
    Now, in your pop_up view, read this static attribute as XXXX_IMPL=>zcust_config , and if true, then you know that the pop up is invoking from custom config, so do the coding to remove the unwanted transaction types.
    and you are done !!
    Hope it helps you.
    Thanks & Regards,
    SUCHITA

  • How to Restrict transaction GR55

    Hi friends,
    I want to restrict generate option in transaction GR55 to  some users. only few groups needs to be able to generate the reports.I ran a trace and could not find any auth object which restricts the Generate option.Please help.
    Thanks,
    kumar.

    Juul Beckers,
    Thanks a lot for your reply. I am able to restrict user by S_Program and group: GRWT .I tested it wrongly before(my apologies). I appreciate your help. But this does not work for me because we have a common access role which has access to all auth groups from S_develop object. If I want to restrict program RGRGEN00 then I need to change from authorization group GRWT to other customized auth group.
    I opened SAP note and waiting for reply as to me program should check for object G_803J_GJB   and activity 01 and allow user to generate report groups which is not happening as expected. Please correct me if I  am wrong.
    Gowrinadh ,
    Thanks for your time. End users will not access to auth object S_CTS_ADMI

  • How long a program can run in Foreground/background?

    Hi ,
    Can anyone know what is the maximum time a program can run without time out ,in foreground/background?
    Let me know,its an urgent requirement....
    Thanks in advance!!!

    Hi Hemant,
    Updation of the timeout limit is task of BASIS.
    In Tcode : RZ10, you can maintain systme parameters.
    The parameter name is rdisp/max_wprun_time. If it not maintained in the profile it will be default 10 mins(600 seconds) as SAP has recommended.
    Also check this links for more info.
    http://sap.ittoolbox.com/groups/technical-functional/SAP-R3-DEV/timeout-in-abap-debugger-560635
    http://sap.ittoolbox.com/groups/technical-functional/SAP-R3-DEV/timeout-in-abap-debugger-560756
    Regards,
    Ferry Lianto

  • How to restrict transaction PE03 (HR: Features)  to display only mode?

    We have a situation where a set of users need access to transaction PE03 to display HR Features. However they should not be changing any feature through it.
    The only auth objects that are checked for this transaction seem to be s_tcode and p_tcode. As both this objects are checked during transaction start, there does not seem to be any check for display/change access.
    Appreciate any inputs.....Thanks!

    > I was wondering if we could find an appropriate user exit and put in some custom code for checking the display/change access of the user. However, I am yet to find an exit to do this.
    Just had a quick glance at the program and couldn't find anything fast either... that could say more about my abap reading skills than the program structure
    I suggest you have an abaper look at it to see if it's easier to build a read-only copy of PE03 or create a report that delivers the same information. To find out if any user exit is available you could also give the HR forum a go.
    Jurjen

  • How to restrict users working on Windows 7 clients from accessing Windows Explorer and other systems in the network through Group Policy with a domain controller running on Windows Server 2008 r2

    Dear All,
    We are having an infrastructure setup of around 500 client computers managed through group policy.
    Recently the domain controllers have been migrated from Windows Server 2003 to Server 2008 R2.
    Since this account requires extremely strict environment, we need to figure the solution for restricting the users from access anything locally.
    It would be great if you can assist me with the following query.
    How to restrict users logged on Windows 7 clients from accessing Windows Explorer and browsing other systems in the network through Group Policy with a domain controller running on Windows Server 2008 r2 ?
    Can we disable Network Tab on the left hand pane ?
    explorer.exe is blocked already, but users are able to enter the Windows Explorer by clicking on the name which is visible on the Start Menu.

    >   * explorer.exe is blocked already, but users are able to enter the
    >     Windows Explorer by clicking on the name which is visible on the
    >     Start Menu.
    You cannot block explorer.exe when you do not replace the shell - the
    desktop you see effectively IS explorer.exe...
    Your requirement sounds like you need a custom shell:
    http://gpsearch.azurewebsites.net/#2812
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to restrict some users from viewing a screen of standard transaction

    Hi All,
    I need to restrict certain user ids from viewing the 'Payment Transactions' screen for the below mentioned transactions.
    FK01, FK02, FK03, MK01, MK02, MK03, XK01, XK02, XK03
    The Basis consultant has tried to configure it. However its not working. So need to find other solution.
    For all transactions other than FK01, MK01, XK01 (create vendor), the BAdi GOS_SRV_SELECT is called before the payment transaction screen appears. But for transactions FK01, MK01and XK0, no such BAdi is there.
    Also I'm not able to figure out how to restrict that particular screen using Badi GOS_SRV_SELECT. What will be the service name for this?
    Please help !!!
    Thanks in advance,
    Radhika

    hi,
    u can do this using user exits.
    identify the appropriate exit for ur transaction and thn put condition like
    if username = ...
    loop at screen.
    hide..
    endloop.
    i was just trying to give u some hint .make it to ur best.
    reward if hlpful.

  • How to delete Pending WIP Move Transactions with running status

    hello,
    can any one guide me, how to delete Pending WIP Move Transactions with running status
    thanks in advance
    sadiq

    Please refer to the following note:
    Note: 105647.1 - WIP and COST Frequently Used Troubleshooting Scripts
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=105647.1

  • How to Identify program is running in background or Foreground mode?

    Hello Experts,
    I have developed on Z report and from this report BDC for Transaction CO11 is runnning using CALL TRANSACTION statement.
    On Selection screen there is a option for selecting the BDC mode either in  Background or Forground or Error mode.
    My question is:- how do I recognize this selected BDC mode in the function exit ZXMBCU02.
    This exit triggers when transaction CO11 runs.
    Because based on the selected BDC mode i have to apply some logic in this exit.
    Please suggest.
    Regards,
    Jagesh

    Hi Jagesh...
    You can do the following..
    1. Export the Batch Input Mode in to ABAP memory using the EXPORT statement.
    2. Import that value in the user exit.
    3. To execute your code only if its batch input mode, use the field SY-BINPT.
    You can also check if this structure "BDCRUN" is used in that program, b'cas this is contained in the VA01 an VA02 transacation, this would contain all the data.
      CALL FUNCTION 'BDC_RUNNING'
           IMPORTING
                bi_info = bi_info
           EXCEPTIONS
                OTHERS  = 1.
      bi_info will contain all the data.
      GET PARAMETER ID 'SD_BACKGROUND_DEBUG' FIELD background_debug.
    Best Regards,
    Pradeep.

  • How to call a SM35 transaction and run in BDC report.

    Hi Experts,
    I knew that how to call a transaction but here, I've to call the SM35 transaction ,which have my BRS BDC recording, to run my session.
    Pls help me how to call the transaction and run/process the first session tab in the table control of SM35 window.
    thanks & regards
    sankar.

    Hi,
    Look up this example..here v have recorded one transaction & running it throough BDC report programming.
    report ZBDC_16JUL2008
           no standard page heading line-size 255.
    include bdcrecx1.
    DATA : BEGIN OF it_tab OCCURS 0,
             LIFNR(016),
             BUKRS(004),
             KTOKK(004),
             NAME1(035),
             SORTL(010),
             STRAS(035),
             PFACH(010),
             ORT01(035),
             LAND1(003),
             REGIO(003),
             SPRAS(002),
             TELF1(016),
             AKONT(010),
             FDGRV(010),
           END OF it_tab.
    start-of-selection.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'D:\'
       FILETYPE                      = 'ASC'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        data_tab                      = it_tab
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       INVALID_TABLE_WIDTH           = 2
       INVALID_TYPE                  = 3
       NO_BATCH                      = 4
       UNKNOWN_ERROR                 = 5
       GUI_REFUSE_FILETRANSFER       = 6
       OTHERS                        = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    perform open_group.
    LOOP at it_tab.
    perform bdc_dynpro      using 'SAPMF02K' '0105'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  it_tab-LIFNR.
    perform bdc_field       using 'RF02K-BUKRS'
                                  it_tab-BUKRS.
    perform bdc_field       using 'RF02K-KTOKK'
                                  it_tab-KTOKK.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-TELF1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  it_tab-NAME1.
    perform bdc_field       using 'LFA1-SORTL'
                                  it_tab-SORTL.
    perform bdc_field       using 'LFA1-STRAS'
                                  it_tab-STRAS.
    perform bdc_field       using 'LFA1-PFACH'
                                  it_tab-PFACH.
    perform bdc_field       using 'LFA1-ORT01'
                                  it_tab-ORT01.
    perform bdc_field       using 'LFA1-LAND1'
                                  it_tab-LAND1.
    perform bdc_field       using 'LFA1-REGIO'
                                  it_tab-REGIO.
    perform bdc_field       using 'LFA1-SPRAS'
                                  it_tab-SPRAS.
    perform bdc_field       using 'LFA1-TELF1'
                                  it_tab-TELF1.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-VBUND'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-FDGRV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    perform bdc_field       using 'LFB1-AKONT'
                                  it_tab-AKONT.
    perform bdc_transaction using 'FK01'.
    ENDLOOP.
    perform close_group.

  • SHD0 transaction-how to restrict the variant transaction to specified users

    I have created a variant transaction for MM02 wherein am disabling a field .I want this field to be disabled only for certain users.The variant transaction which I created affects all users.So,for everyone the field is grayed out.How to restrict this for specified users???

    Hello,
    Try to look an exit for that transaction, either user exit or badi, then try to disable the field doing a LOOP AT SCREEN, but first you should have the restricted users in a Z table, or by cheking the profiles for each user..
    Another way to do it is trying to do it the profiles customization, maybe you can do it that way.
    Cheers!!
    Dont forget to reward.
    Gabriel P.

  • How to restrict the duplicate values in lov column of VO based Adv Table

    Hi Gurus,
    I want to restrict the duplicate values at lov which is a colunm in an Adv Table.
    If user enters duplicate values then first it should show an error msg that Duplicate values have been entered.
    After the duplicate values have been removed, then the user can save all the values in the table.
    My Adv Table is based on a VO.
    The link how to restrict the duplicate values at form level
    talks about Adv Table based on a EoVO, which doesnot work in my case.
    My Approach,
    I am iterating through RowSetIterator and committing through PROCEDURE.
    I am able to avoid duplicate entry through a function checkRespId. (given below)
    Below code is for iterating and committing.
    public void saveline(String reqid,String userid)
    System.out.println("RequestId/saveline"+reqid);
    System.out.println("UserId/saveline"+userid);
    OAViewObject vo = (OAViewObject)getRespLineVO1();
    RespLineVORowImpl row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    System.out.println("Inside the for LOOP");
    row = (RespLineVORowImpl)deleteIter.getRowAtRangeIndex(i);
    String respoidid = row.getAttribute("ResponsibilityId")+"";
    String respname = row.getAttribute("ResponsibilityName")+"";
    String stdate = row.getAttribute("StartDate")+"";
    String enddate = row.getAttribute("EndDate")+"";
    String linestatus ="A";
    if(userid!=null)
    if(!(respoidid.equals("null")) && respoidid!=null)
    String checkingrespid=null;
    checkingrespid = checkRespId(userid,respoidid);+contains no if not duplicate and yes if its duplicate+
    System.out.println("checkingrespid for Resp with ID :"+respoidid+"exists or not "+checkingrespid);
    if(checkingrespid.equals("No"))
         String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    try
    calling PROC ...
    catch(Exception e)
    message = "Error in Inserting into line" + e;
    throw new OAException(message, OAException.ERROR);
    else
    throw new OAException("You have entered duplicate no. of values", OAException.ERROR);
    else
    System.out.println("respoidid is null");
    break;
    deleteIter.closeRowSetIterator();
    public String checkRespId(String userid,String respoidid)
    String createRow="No";
    OAViewObject vo = (OAViewObject)findViewObject("CheckRespVO1");
    if (vo != null)
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0, userid);
    vo.setWhereClauseParam(1, respoidid);
    vo.executeQuery();
    System.out.println("ROW COUNT IS "+vo.getRowCount());
    if(vo.getRowCount()>0)
    createRow="Yes";
    else
    createRow="No";
    return createRow;
    Problem:
    I remove the duplicate entries and click on save and get this error.
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user.
    \nAction: Cancel the transaction and re-query the record to get the new data.
    Thanks,
    Sombit

    Hi Anil,
    I am trying out your code but stuck in inserting the rows
    using your code in URL: http://oracleanil.blogspot.com/2010/09/oaf-passing-table-type-object-to-oracle.html
    I am always getting the same exception i.e COde blast in when I run.
    My modified code is:
    String[] as = null;
    Number[] vNumber = null;
    Number[] vNumberrespid = null;
    Number reqidnumber = null;
    reqidnumber = new Number(Integer.parseInt(reqid));
    Connection txn = getOADBTransaction().getJdbcConnection();
    String mCreateSearchRequestStatement = null;
    OAViewObject vo = (OAViewObject)findViewObject("RespLineVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new Number[j];
    vNumberrespid = new Number[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = (reqidnumber);
    vNumberrespid = ((Number)vo.getCurrentRow().getAttribute("ResponsibilityId"));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ResponsibilityName")).concat(String.valueOf(""));
    System.out.println("Request ID "+reqidnumber[i]);//getting null even there is some value selected
    System.out.println("ResponsibilityId "+vNumberrespid[i]);//getting null even there is some value selected
    System.out.println("Resp Name "+as[i] );//getting null even there is some value selected
    i++;
    CallableStatement cs = txn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2,:3)}");
    ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumber);
    ARRAY arraynew = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumberrespid);
    ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", txn), txn, as);
    cs.setArray(1, array);
    cs.setArray(2, arraynew);
    cs.setArray(3, array1);
    cs.registerOutParameter(3, 2003, "JTF_VARCHAR2_TABLE_100");
    cs.execute();
    ARRAY error = null;
    error = (ARRAY)cs.getArray(2);
    if ((error != null) && (error.length() > 0))
    System.out.println(String.valueOf("Error is ").concat(String.valueOf(error.getArray())));
    String[] retError = new String[j];
    retError = (String[])error.getArray();
    System.out.println(String.valueOf("Error in saving data").concat(String.valueOf(retError[0])));
    cs.close();
    catch (Exception exception)
    throw new OAException("code blast", OAException.ERROR);
    Thanks,
    Sombit

  • How to create Transaction code for ABAP and execution by other user

    Hi All,
    Could someone please let me know how to create transaction code in detail for ABAP program. Step by step procedure expected. I would like to know how other user can execute the report using same transaction code which I have created.
    More about authorization.
    Thanks in advance.

    Hello,
    You can create transaction code from se80 as well.In object navigator,right click on your program name and create->transaction code.You can create transaction and select if it is only a report,a report with selection-screen depending on your requirement.You can run your report directly by entering the transaction code in the command field.
    You can authorise the users who can use your transaction:
    <b>Authorisation objects</b> are used to restrict certain transactions to users.Critical data must be protected from unauthorised users.For example,the head has access to certain data.But it cannot be accessed by his subordinate.For this we need to define <b>roles</b>.
    •Create an authorization object with transaction SU21.
    An object usually consists of the ACTVT (activity) field and one other field,which specifies the data type to be protected.By ACTVT, we can decide if the data is accessible for change,display only etc.
    •Add authorization fields to the authorization object created.
    •Assign the authorization object to the transaction using SE93.
    Attach the authorization object to the role using transaction PFCG.
    If you want <b>to assign roles</b>,use transaction PFCG.Create a new role.In the AUTHORIZATIONS tab,you can get a self generated profile name and a profile text by clicking on the icon next to it.Then go to the "Change Authorization data" and choose an authorization template.Then you can choose to display/change/create an activity and after the selection,click on the red and white circle.The profile will now be created.
    In the user tab,you can give the user details who can use this role.
    <b>Also check this link:</b>
    http://www.*********************/r3_security/r3_security_tips.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/6716a6439b11d1896f0000e8322d00/content.htm
    <b>Very helpful guide:</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c
    Regards,
    Beejal
    **Reward if answer is helpful

  • F110 - Automatic payment. How to restrict picking up payments say,$10.

    Hi Everyone,
    Automatic Payment proposals when run, currently picks up all amounts including little cents like , 0.35. The payment method is Check and this involves cutting cheques for very small amounts.
    How to restrict the program from picking  up amounts say for eg , between 0 and $10 ..? Is there any settings we can use for this..?
    Thnaks,
    Jaya

    Hi,
    Thanx..But if I put a minimum amount here, even my GST payments don't get processed with small payments.
    Is there a way to restrict it for some payments alone..? Here the problem is there are Vendor payments and GST payments and we want to restrict it only for vendor payments involving smaller amounts.
    Rgds,
    Jaya

  • -How to restrict Description into single row in the report

    Hello Colleagues
    I have a report which shows Material number versus Revenue. In the row, material is displayed with Technical name and description.
    Here, the view of the report shows the description in single line. While, in the report, description of the report runs 3 to 4 lines though description contains 5 to 6 words (which can fit easily into single line).
    Let me know how to restrict each row descrption into single line.
    Regards,
    Ningaraju

    Hello Colleagues
    Please find the format it is currently appearing in the web reports.
    Material Num        Material Description    Revenues (In Eur)
    1000001               "SAP
                                ERP
                                Professsional
                                 User"                             111
    Wanted to change above format into as below in which it has to show material description in single row.
    Material Num          Material Description                              Revenues (In Eur)
    1000001                 "SAP ERP Professsional User"                         111
    Regards,
    Ningaraju

Maybe you are looking for

  • Onclick doesn't work with images

    why would you not encorporate the onclick event for images, images are after all such a big part of webpages, it severly messes up so many websites, can you please make the next version work onclick for images? == URL of affected sites == http:// ==

  • Profit Center and Business Arra

    Hi, What are the Disadanatages of Business Area and what are the advantages of profit center? Thanks,

  • Few questions related to moving from aperture to iphoto

    i have decided that i want to move from aperture to iphoto, a. provided iphoto can meet some basic needs that i have in mind. assuming it can, b. the next question will be on how to make the move easiest and effective. why, you might ask: aperture is

  • Solution Manager BPR issues

    Goodday, Since there is no specific Solution Manager forums yet i will post my question here: We are working with Solution Manager 3.2 to support an implementation of MySAPERP 2004. Within the SM there is the functionality to use the Business Process

  • Copy modifications done to a view in WIP package to a Released package

    Experts, We are looking to configure a package structure in our HANA development environment where we want to set up 2 high-level packages, WIP package where the development and unit testing are going to be performed and when ready to be migrated to