Custom Transaction code .... back ground run

Hi All,
We have custom transaction ZPRS(Module pool program)... which contains selection screens ..
usually user run give the values on selectin screens and press submit.. it displays the list of values on table control..
But user asking instead of table control .. after selection screen input they have run in BACK GROUND.
Please suggest how to that... I know submit is for executable program,...
Thanks...
reddy.

>
Dave L wrote:
> so, a little very basic analysis here....
The first bit of analysis would include looking at the date of the initial post
Rob

Similar Messages

  • How to Run a Custom Transaction in Back Ground after give the Input?

    Hi,
        I have problem that how to execute a Custom Transaction in Back Ground after end user will save a variant for input. In my Transaction there is no menu to save a Variant & to Execute in Back Ground.
    Please suggest me how to do this in my Custom Transaction.

    Hi Ramana,
    what kind of report you want to  execute? the report is Executable Report or Modulepool prog. ??
    if it is a executable program so when u execute (F8) from SE38 when u find the selection-screen in the menu bar ->Program ->Execute in Background( F9) option exits there u can schedule your report in Background or else use toce SM36 ( Define Background Job).
    Why you want to run it in background with transaction code if you have this options?
    Regards,
    Sunil kairam.

  • Field missing when running the KSB1 transaction in Back ground

    Hi,
    With the help of  Zreport am executing the KSB1 transaction in back ground and after execution of KSb1 am retrieving the report output and am displaying.
    Issue is when am running Zreport in back ground the the output of KSB1 is giving the output by hiding the last column, where as am running Zreport in foreground the output of KSB1 giving the output with out hiding last field. Please guide me why the variance is coming in output when am running the Zreport in background........ and please advise me to rectify the problem....

    In background it cant be displayed if report width is more than 255 chars. Check line size.
    Satya

  • Program associated with Custom transaction code.

    Hi Guys,
    I was studying two custom transaction code made in my company's SAP System.
    Program associated with one custom transaction was starting with name SAPZMxxx and program associated with other custom transcation code was starting with Z.
    Can anyone tell me whhat is the difference or in other words what is the significance of starting with SAPZM....
    Tushar.

    You can exactly know the kind of program only seeing the program attribute.
    Infact if the program name begin with SAPMZ, you're sure it's a module pool custom, but if it begin with Z* you can't be sure it's a report.
    SAPM is a convention, if you're creating a program called SAPMZ... the system know you want to create a module pool.
    But if you're creating a program called Z... the system can know which kind of program you want to create only after you've indicated the type in the attributes.
    Here you can choose whichever type of program, a module pool too.
    So the name of module pool can begin with SAPMZ or Z.
    Max
    Message was edited by: max bianchi

  • How to call a custom transaction in retailstore which runs in same session?

    Hey guys,
    hope you can give me some hints. OK, i have a resultlist and it should be possible to call a SAPGui transaction via webgui service. This works fine but the link which i created has no info about the current session ID. I build an URL with the function modul ITS_GET_URL and concatenate it with the neccessary transaction code and parameter. Then i call this URL by function ITS_BROWSER_WINDOW_OPEN. A new browser window is opened with the right transaction in webgui. But if i hit the button back, i get the message, i was succesfully logged off. This wasn't the result which i want.
    What i want is to call the transaction via webgui and this transaction should run in same window and in same session. Any idea how to do that?
    I know i need to build an URL with a valid session ID for the transaction, but how can i do that?
       thx,
          Wei-Ming

    Hello Sal.
    This does not look like an ABAP issue, but rather JavaScript, JQuery or whatever you are using to handle the button-click-event in your "Internet Service" web application.
    You might try window.open("http://xxx...me23n","_self").
    Best regards,
    Frank.

  • ABAP Query Execution via Custom Transaction Code - Not working

    We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
    The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
    We then transported the new transaction code to run the query to production and it was successful.
    However, when we run the transaction is production we get a sys dump stating it can not find the query.
    We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
    I would have thought that the export on the query would have brought in this entry -but obviously not.
    Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
    Please help!
    Thanks.
    Scott

    Hi,
    The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
    For this. Do the below:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
         D_SREPOVARI-REPORTTYPE = AQ
         D_SREPOVARI-EXTDREPORT = Name of the Query
         D_SREPOVARI-REPORT = User Group
    Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
    Regards
    Vijay Hebbal

  • Create custom Transaction code

    BW Experts,
    Can I create a custom transaction (T-CODE) in BW  which will basically bring up a screen to trigger an event which would run a infopackage.
    I need to give user the access to run a infopackage and not to admin workbench. The above is the method I thought about, but do not know if it is possible to do it. I would appreciate any help on this.
    Thanks
    Ashwin

    Aswin,
       It is very much possible. Create an ABAP Program and call the Function Module BP_EVENT_RAISE . Pass your Event to Function Module.
    Go to SE93. Create a Transaction Code by providing Technical Name. You will get a pop up to choose the Transaction Type. Select Program with selection Screen. provide Description and Program Name you created earlier. Save.
    all the best.
    Nagesh Ganisetti.
    Assign Points if it helps.

  • How can i set a specific time for a transaction code to be run?

    I want to know if a certain Transaction Code (not only the customized tcodes) could only be run on a specific time (ie. 4pm to 6am only)

    There are two ways to achieve the purpose you wanted:
    1. If the work to be done by this Tcode can be processed automatically without any interactive session (dialog user) then I would suggest it to process as Batch Job in the time period you specified. And make sure that none of the users are not having corresponding authorization to execute the same task in foreground.
    2. If you need the Tcode to be executed only when you can monitor then the best way is to monitor the users containing the Tcode through SM20 audit log as a Mitigating control.
    No such facility is currently available to protect a Tcode for a particular time interval in a day. You may write a message to SAP for suggestion.
    regards,
    Dipanjan

  • How to find all Custom tables (transp) that have a custom transaction code?

    My client has asked us to provide a list of all Z (custom) tables and the associated transaction codes for maintaining them.
    I know I can manually do this with a Z* search in se11 and then do a where used on each table to find out if a view (transaction code) exists for the table - BUT THIS WOULD TAKE HOURS IF NOT DAYS TO DO AND BE LIABLE FOR HUMAN ERROR.
    Does anyone know the way we could code a search for this information (ABAP) and know what tables to use?
    Thanks.
    Scott

    Hi
    You can search in table TSTCP for custom tables that have a maintainance view and a transaction associated, which is a call to SM30. To do this, just select the table with TCODE starting with 'Z' and PARAM starting with '/*SM30'.
    But you can also have some Z tables updated by an module pool program. This is more complex to find, because you don't know if you simply have the field used in the screen for some other use in a transaction, or if it is in that screen just to update the table. In this case, you need to analyze each screen.But I hope the first tip help you to solve your problem.

  • Back ground running of Standard reports

    Hi,
    I have some requirement in report processing. I need to run(in back ground) statndard structure reports for project def, WBS and activities and CM51 and CJI3. Then output should be saved in predefined folder in an excel format. The whole process of running and saving the report should be automated. And this job has to be run every night.
    I have checked the option of running in back ground for structure reports but variant selection and saving in destination folder should be automated. I could not find the option of running CM51 in back ground.
    Appreciate help in this regard
    Regards,
    Laxminarsimha

    You can try running of the program in the background - you will need to create a background job with the correct selection and display variants.
    Go to SE93 and check the program
    e.g. from SE93 enter CJI3 you will see the program is RKPEP003
    now create a background job for this program with correct variants
    Do the same for the other transaction

  • Custom Transaction codes overwritten during transports

    Hi,
    When I create custom queries in my production client, assign transaction codes to them, and assign them to roles they get overwritten every time I perform a transport for those roles. We are still at an early stage of implementation and there are still some daily authorization changes that require a transport from test to production. When the roles are transported it wipes all my reports (transaction codes) assigned to these roles in the production system. Is there a way to perform a transport without wiping out the customizations made to the role in the production system like these?
    Thank you,
    Sergiy

    The answer is in the way one works with BI (or BW).
    If the design is that queries are to be created in production (which is often used). As far as i know the only exception on the rule that everything should be build in DEV. And this is the only good way as you do not want end-users to work in DEV. There are some things to know about the way SAP works.
    If a role is changed in DEV and transported to PROD all queries assigned to the role in PROD will be disconnected.
    Solution a role to be used in PROD were queries will be assigned to should never be transported again.
    Solution in detail, there should be roles for different use:
    1.     Access to Info providers in version read and write.
    2.     Access to publish reports in roles per query role.
    3.     Query/Menu roles per info area.
    Roles 1 and 2 allow for access and can be transported as often as you want. Role 3 is only to be used as a container of queries to be used by end users and should NEVER be transported again (best practice is to delete if in DEV after transport and NOT assign it to a transport before deletion).
    In the publisher role it can be arranged to which role(s) the publisher can assign reports. It is also possible to force users to use a report naming convention in this role.

  • Custom transaction codes?

    Hi All,
    Is there any possibility in CRM to create our own transaction code? I want to create my own transaction code to create BP - Person - new role -> contracted employee as default.
    Thanks and Best Regards,
    Abdul

    Hi,
    You can enhance the BP by creating a transaction code that allows you to create BP only with specific roles.
    Tx code: to create a transaction code is SE93
    To assign the Tx code to a specific role related activity: BUSF
    Hope this helps
    Regards
    Rekha Dadwal

  • CALL transaction in back ground

    Hi
    i am writeing the bdc program for iw32 transaction using call transaction
    iw32 for updating the status of a order
    it is working good in all screesns mode and error mode
    but it is not updating the status of a order in no screens mode
    any answers

    In all screens mode you should be doing nothing but pressing enter until the end of processing.
    But as you had said you check something to set the status, if I ain't wrong I think you should go through your code so that even the status is set when the transaction is run and you need to only keep pressing enter to go through all the screens.
    Check where in all screens mode where user interaction is being done by you and try modifing the code. Try putting in code for the status selection. Then it will not give any error and will go through without any user-interaction.
    Hope what I had to say is useful to you.
    3Cheers,
    Raga Suman.

  • HELP: Customized Transaction Codes

    dear sap gurus,
    just want to ask about what i observed with my customized tcodes (for my Z programs, which are run by users using SA38).
    the customized tcodes call a screen layout different from that of running the Z programs themselves. i do not see the actual fields.
    is there a way to correct this?
    thanks a lot.
    best regards,
    albert
    Edited by: Albert Joseph  Canceran on Apr 30, 2009 10:23 AM

    Hi,
    You should get the first-appeared screen number (SY-DYNNR) when running the Z program, then go to SE93 to check the corresponding Tcode.
    If the Z program calling a standard selection screen, or just show result without a selection screen, the SY-DYNNR should be '1000' in SE93, and its type should be 'report transaction'.
    If the Z program calling a customize screen, please check SY-DYNNR with that in SE93. Also, it should have the type 'dialog screen'.
    Regards,
    Xiaohong.Z

  • Execute a transaction in back ground

    Hi,
    How can i execute an user defined transaction in background
    This transaction does not have an selection screen.

    hi rajitha,
    try this code
    hi
    use this table
    btcevtjob
    and a sample code is also there
    Try this
    Execute the below program
    tables: btcevtjob.
    parameters: job like btcevtjob-jobname.
    data: count like btcevtjob-jobcount.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    DELANFREP = ' '
    JOBGROUP = ' '
    jobname = job
    SDLSTRTDT = NO_DATE
    SDLSTRTTM = NO_TIME
    JOBCLASS = JOBCLASS
    IMPORTING
    JOBCOUNT = COUNT
    CHANGING
    RET = RET
    EXCEPTIONS
    CANT_CREATE_JOB = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING = 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.
    write:/ sy-subrc.
    CALL FUNCTION 'JOB_SUBMIT'
    EXPORTING
    ARCPARAMS = ARCPARAMS
    authcknam = authcknam
    COMMANDNAME = ' '
    OPERATINGSYSTEM = ' '
    EXTPGM_NAME = ' '
    EXTPGM_PARAM = ' '
    EXTPGM_SET_TRACE_ON = ' '
    EXTPGM_STDERR_IN_JOBLOG = 'X'
    EXTPGM_STDOUT_IN_JOBLOG = 'X'
    EXTPGM_SYSTEM = ' '
    EXTPGM_RFCDEST = ' '
    EXTPGM_WAIT_FOR_TERMINATION = 'X'
    jobcount = count
    jobname = job
    LANGUAGE = SY-LANGU
    PRIPARAMS = ' '
    REPORT = ' '
    VARIANT = ' '
    IMPORTING
    STEP_NUMBER = STEP_NUMBER
    EXCEPTIONS
    BAD_PRIPARAMS = 1
    BAD_XPGFLAGS = 2
    INVALID_JOBDATA = 3
    JOBNAME_MISSING = 4
    JOB_NOTEX = 5
    JOB_SUBMIT_FAILED = 6
    LOCK_FAILED = 7
    PROGRAM_MISSING = 8
    PROG_ABAP_AND_EXTPG_SET = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write:/ sy-subrc.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    AT_OPMODE = ' '
    AT_OPMODE_PERIODIC = ' '
    CALENDAR_ID = ' '
    EVENT_ID = ' '
    EVENT_PARAM = ' '
    EVENT_PERIODIC = ' '
    jobcount = count
    jobname = job
    LASTSTRTDT = NO_DATE
    LASTSTRTTM = NO_TIME
    PRDDAYS = 0
    PRDHOURS = 0
    PRDMINS = 0
    PRDMONTHS = 0
    PRDWEEKS = 0
    PREDJOB_CHECKSTAT = ' '
    PRED_JOBCOUNT = ' '
    PRED_JOBNAME = ' '
    SDLSTRTDT = NO_DATE
    SDLSTRTTM = NO_TIME
    STARTDATE_RESTRICTION = BTC_PROCESS_ALWAYS
    STRTIMMED = ' '
    TARGETSYSTEM = ' '
    START_ON_WORKDAY_NOT_BEFORE = SY-DATUM
    START_ON_WORKDAY_NR = 0
    WORKDAY_COUNT_DIRECTION = 0
    RECIPIENT_OBJ = RECIPIENT_OBJ
    TARGETSERVER = ' '
    DONT_RELEASE = ' '
    TARGETGROUP = ' '
    DIRECT_START = DIRECT_START
    IMPORTING
    JOB_WAS_RELEASED = JOB_WAS_RELEASED
    CHANGING
    RET = RET
    EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE = 2
    JOBNAME_MISSING = 3
    JOB_CLOSE_FAILED = 4
    JOB_NOSTEPS = 5
    JOB_NOTEX = 6
    LOCK_FAILED = 7
    INVALID_TARGET = 8
    OTHERS = 9
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write:/ sy-subrc.
    note: pre-requiste for doing this is execute the report and save the variant for the report which you need to execute in bg.
    after doing this program execute it give a jobname for this.
    then provide the report , variant and authcknam in job_submit FM.
    *go to sm37
    *enable the option scheduled
    *and then enter the period for which u need to execute ur program in background providing necessary details such as jobname , time and date etc
    With regards
    S.Janagar

Maybe you are looking for

  • "Warning! Not Enough Memory!" A bug in Logic 7.1?

    Hello, I seem to have discovered a bug in my Logic 7.1, and would like to see if this is a system specific bug, or a bug in everyones Logic. It seems to occur in the Matrix editor which results in the error ""Warning! Not enough memory! This operatio

  • Send HTML mail with image

    Hi experts and gurus, how can I send an HTML email which is displaying an image in the HTML context (table)? I'm using the 'SO_NEW_DOCUMENT_SEND_API1' like below: CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'     EXPORTING       document_data            

  • Special Character XML Web Service call from Flex

    Hi, Let me first give a little background. I have to query and return data in XML format. To do so, I have created a custom DSC component. In cases where XML has special characters, LC throws error saying that XML is not properly formed. To over come

  • Using Pages on iPad mini retina

    We opened Pages & were looking at the list of documents saved when it suddenly went blank showing the message "No documents".  We have now been unable to find those documents, so would appreciate any help in restoring them & stop it happening in futu

  • Ical--NOTHING is working, brand new installation

    Hi, folks, I had to reinstall my system (brand new installation on erased hard drive). iCal is pulling my synched calendars in. But nothing related to the To Do list is working. No old to do items show up. I can't enter new ones. Most times the to do