Calling sap tcode inback ground processing

how to call sap tcdoe se38 in back ground processing.
is - submit se38 - is enough.

hi
you cannot submit a t-code.
you have to submit an executable program
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm
or
create a t-code for your report and then call the tcode.
thx
pavan

Similar Messages

  • Calling SAP Tcode on Button click

    Hello All,
    i want to call SAP Tcode on click of button.
    below is the code for the same,
    data l_componentcontroller type ref to ig_componentcontroller .
      data l_api_componentcontroller type ref to if_wd_component.
      data l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      l_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      if l_sapgui_manager is not initial.
        l_sapgui_manager->fire_start_transaction( transaction = 'SE38' ).
      endif.
    But the object l_sapgui_manager  is not getting instantiated. please let me know if i am calling the right method or  the code is wrong???
    Regrads,
    Chandra

    Hi Chandra,
    You need to Initialise the  l_sapgui_manager before you are accesing. see the folowing code i initialised my select options component.This code can be obtained from Wizard also. I hope this will help you.
    Please do this in the WDDOINIT of component controller. So that it will be inistatiated before you are accessing the component.
    ** initialize select options component for query creation
      lr_cmp_usage = wd_this->wd_cpuse_sel_options( ).
      wd_this->usage_name = lr_cmp_usage->name.
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_sel_options( ).
      wd_this->mr_selopt_helper   = l_ref_interfacecontroller->init_selection_screen( ).
    Warm Regards,
    Vijay.
    Message was edited by:
            Vijaya Bhaskarudu Gangisetty

  • To call SAP TCode

    Hi,
        Is there any way to call SAP standard transaction (tcode) in webdynpro?
        Actually here goes my requirement. If I click a button, it should go to a specific transaction.
    Regards,
    Kalai.

    Hi,
        Thanks for ur reply.
        Actually I dint want to display the standard transaction in my screen. But I would like to design my own screen which looks similarly as standard transaction but without some fields and functionalities.
       Also, if I give some input, it should do the same functionality as standard transaction.  Such as retrieving values, updating values, listing all possible values(using F4) and updating values in the table in R3 System.
       Is it possible to do this?? If so, Kindly suggest me some ways to do this.
    Regards,
    Kalai.
    Message was edited by:
            Kalaivani Pachiappan

  • Call SAP TCODE in a view

    Hi,
    I want to call a TCODE CS03  and skip first screen in a view based on a linkto action???
    I have done this..But a new  window/browser is opened for CS03....But I want to call in view itself.....
    Is it Possible?
    Thanks,
    Ganga

    Check these links
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb40776d4?QuickLink=index&overridelayout=true
    How to close parent window in Webdynpro applications?.
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm
    CREATE_EXTERNAL_WINDOW to call another WDA but close current WDA
    Regards
    Srinvias

  • Rfc code to call  any sap tcode  in excel macro

    Hi all,
             We are trying call sap tcode in excel macro programm using RFC.
             Can any one  send me sample code for this?
             This is urgent.points will be rewarded.
    regards,
    Shyam

    Hi harish kollipara
    you should create the FM in the B system, that return some data that you can catch in system A after have called the FM.
    check this link for the function:
    http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm
    CALL FUNCTION 'NAME OF FUNCTION' DESTINATION rfc_destination_name
    importing ...
    exporting ...
    EXCEPTIONS
    system_failure = 1
    OTHERS = 2.
    hope this help you
    Marco

  • What is back ground processing

    what is difference between background and fore ground processing of a report. what are the various methods to execute a report in back ground.  and when we need schedule a report in back ground how shall we handle selection screen parameters.
    thanx in advance.

    Hi,
    <u><i>Background Processing</i></u>
    There are two ways for you to handle,
    one manually setting up the job through SM36 which is better and convinient,
    secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
      Find below steps in doing both:
    Procedure 1:
      1. Goto Trans -> SM36
      2. Define a job with the program and variant if any
      3. Click on start condition in application tool bar
      4. In the pop-up window, click on Date/Time
      5. Below you can see a check box "Periodic Job"
      6. Next click on Period Values
      7. Select "Other Period"
      8. Now give '15' for Minutes
      9. Save the job
    In SM37 u can check the status of the jobs that u have assigned to background...
    Here u mention the job name or the report name to check the status of the job...
    After mentioning the job name or program name u just execute it.. ( without any name also u can execute then it gives u all the jobs set by your user name..
    the status colud be released,active,finished etc..
    Procedure 2 via Program:
    Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
          L_RELEASE(1) TYPE c.
       CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           JOBNAME                = 'ZTEMP2'
        IMPORTING
          JOBCOUNT               = P_JOBCNT
        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.
       SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
              TO SAP-SPOOL WITHOUT SPOOL DYNPRO
              WITH DESTINATION = 'HPMISPRT'
              WITH IMMEDIATELY = SPACE
              WITH KEEP_IN_SPOOL = 'X' AND RETURN.
       CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
           JOBCOUNT                          = P_JOBCNT
           JOBNAME                           = 'ZTEMP2'
           STRTIMMED                         = 'X'
           PRDMINS                          = 15
        IMPORTING
          JOB_WAS_RELEASED                  = L_RELEASE
        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.
    Hope the above helps you.
    Regards
    Reshma

  • ERROR MESSAGE sap system manager:work process restarted, session terminated

    Hi,
    i am a beginer in SAP administration, users are getting this error message and i have done all my research and not able to resolve this issue. Here are the details
    SAP Version :ideas 4.7
    Database :Oracle
    OS : windows 2003
    Module user is working on MM
    user working on it is a Super user with all the permissions
    SAP is configure to run under the  European date and decimal format.
    I have never done any database administration on it, it is a new install and has been rarely used.
    User creates a RFQ and when he tries saving it , seems like for the first time after either restarting the macine or restarting the service it might work and at time it might not, this is a very sporadic error and most of the times it crashes out with the message "sap system manager:work process restarted, session terminated" and kicks the user out of the session.
    Below are the details of the error message from ST22 :
    name of the runtime error : system_core_dumped
    below are the details of the error message and its resoltion as suggested by sap help :
    ========
    Runtime Errors         SYSTEM_CORE_DUMPED           
           Occurred on     01.02.2008 at 07:52:19
    Process terminated by signal " ".                                             
    What happened?
    The current ABAP program had to be terminated because the                     
    ABAP processor detected an internal system error.                             
    The current ABAP program "SAPLCLSC" had to be terminated because the ABAP     
    processor discovered an invalid system state.                                 
    What can you do?
                                                                                    Make a note of the actions and input which caused the error.                                                                               
    To resolve the problem, contact your SAP system administrator.                                                                               
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer      
    termination messages, especially those beyond their normal deletion           
    date.                                                                               
    Error analysis
    An SAP System process was terminated by an operating system signal.           
                                                                                    Possible reasons for this are:                                                
    1. Internal SAP System error.                                                 
    2. Process was terminated externally (by the system administrator).           
               Last error logged in SAP kernel                                    
                                                                                    Component............ "Taskhandler"                                           
    Place................ "SAP-Server server1_DEV_00 on host server1 (wp 1)"      
    Version.............. 1                                                       
    Error code........... 11                                                      
    Error text........... "ThSigHandler: signal"                                  
    Description.......... " "                                                     
    System call.......... " "                                                     
    Module............... "thxxhead.c"                                            
    Line................. 9555                                                                               
    How to correct the error
    The SAP System work directory (e.g. /usr/sap/c11/D00/work ) often             
    contains a file called 'core'.                                                                               
    Save this file under another name.                                                                               
    If you cannot solve the problem yourself, please send the                     
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                                  
       To obtain this, select the "Print" function on the current screen.         
                                                                                    2. A suitable hardcopy prinout of the system log.                             
       To obtain this, call the system log with Transaction SM21                  
       and select the "Print" function to print out the relevant                  
       part.                                                                               
    3. If the programs are your own programs or modified SAP programs,            
       supply the source code.                                                    
       To do this, you can either use the "PRINT" command in the editor or        
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred            
       or which actions and input led to the error.                                                                               
    System environment
    SAP Release.............. " "                                                                               
    Application server....... " "                                                 
    Network address.......... " "                                                 
    Operating system......... " "                                                 
    Release.................. " "                                                 
    Hardware type............ " "                                                 
    Character length......... " " Bits                                            
    Pointer length........... " " Bits                                            
    Work process number...... " "                                                 
    Short dump setting....... " "                                                                               
    Database server.......... " "                                                 
    Database type............ " "                                                 
    Database name............ " "                                                 
    Database owner........... " "                                                                               
    Character set............ " "                                                                               
    SAP kernel............... " "                                                 
    Created on............... " "                                                 
    Created in............... " "                                                 
    Database version......... " "                                                                               
    Patch level.............. " "                                                 
    Patch text............... " "                                                                               
    Supported environment....                                                     
    Database................. " "                                                 
    SAP database version..... " "                                                 
    Operating system......... " "                                                 
    User, transaction...
    Client.............. " "                                                      
    User................ " "                                                      
    Language key........ " "                                                      
    Transaction......... "ME41 "                                                  
    Program............. "SAPLCLSC"                                               
    Screen.............. "SAPMM06E 0320"                                          
    Screen line......... 71                                                       
    Information on where termination occurred
    The termination occurred in the ABAP program "SAPLCLSC" in "EXECUTE_SELECT".  
    The main program was "SAPMM06E ".                                                                               
    The termination occurred in line 131 of the source code of the (Include)      
    program "LCLSCF2G"                                                           
    of the source code of program "LCLSCF2G" (when calling the editor 1310).      
    =============
    i even tried increasing the dialog processes but with no use.The same error occurs.
    I appreciate every one of help i can get, i am working on a deadline which is tomorrow evening to resovle this issue, any kind of help is highly appreciated.
    thanks
    mudessir.

    Hi
       follow correction method suggested in this dump,
    " The SAP System work directory (e.g. /usr/sap/c11/D00/work ) often
    contains a file called 'core'.  Save this file under another name."
    have you done this?
    with regards,
    raj.
    <i>pls, award points</i>

  • How to integrate EP & SAP TCodes with ccBPM in XI?

    Hi,
    <b>Scenario:</b>
    A non-SAP system is creating a BPEL file. I have to import that file into XI & create a BPM for it. Then I have to integrate the BPM to SAP MM transactions & EP also in such a way that if user interacts with EP then the processing should take place as per the process defined in BPM.
    <b>What I know:</b>
    I have a BPEL file created from some non-SAP system & using it I have to create ccBPM in XI. Up to this point I know what to do & how to do.
    <b>Problem:</b>
    Now the issue which I am facing is that how to connect my BPM to SAP transactions. As you told us in training that for every ccBPM a Business workflow is created in SAP. So, as per my understanding, it means the workflow should get triggered when any event is created by user’s action in EP. But the problem is that how to integrate EP & SAP transactions to my ccBPM?
    Please provide your valuable inputs ASAP. It is urgent.
    Thanks,
    Shaurya

    Hi,
    By useing SAP transaction iView in EP , you can directly interact SAP transaction then where is the portion of XI and ccBPM??
    Solution is already expalined in Above blog. correct suitable blog.
    from EP you can interact Xi through Webservice , this webservice can be created from NWDS , you can edit or EJB also..
    that Webservice ,through SOAP adapter integrate the XI , in XI use ccBPM, whatever you want through RFC /BAPI you can do suitable operation in R#, here you r problem is how to call SAP transaction,..
    here please expalin what is the requirement.. or select suitable BAPI /RFC to do such operation/functionality in R3.
    i hope you got it..
    Regards
    Chilla.

  • Back Ground Process In OOABAP

    Hi all,
    How can i process Back ground process on Object oriented
    Thanks Rayeez,

    Hi Rayeez,
    I had a requirement wherein I had to call ALV Grid display in background, here I used OO ABAP and just before creating the custom container I checked IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    You can find similar methods for your OO Class and check if it is initial.
    <b>Please reward points if it helps.</b>
    Regards,
    Amit Mishra

  • How To call a Tcode From a Program and returning back ?

    Dear All,
    I have a requirement, i have to show all the open orders as in the the tcode va05  and return back to the my program. so how to display the tcode and getting back to my program. please help?

    Hi,
    Basic syntax to call the transaction is:
    SET PARAMETER ID <id name> FIELD <filedname>.
    CALL TRANSACTION <TCOde> AND SKIP FIRST SCREEN.
    If your are using ALV then snippet is :
    FORM user_command  USING okcode    LIKE sy-ucomm
                           lselfield TYPE slis_selfield.
      CASE okcode.
        WHEN '&IC1'. " SAP standard code for double-clicking
          CASE lselfield-sel_tab_field."check if double click is only on
            WHEN 'ITAB-AUFNR'."aufnr not on any other field
              SET PARAMETER ID 'ANR' FIELD lselfield-value.
              CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
          ENDCASE.
      ENDCASE.
    Endform.
    Pooja

  • Calling custom tcode in HAP_DOCUMENT_LINK

    HI Experts,
                     I have req that i want to call my custom tcode in standard webdynpro component HAP_DOCUMENT_LINK. Actually i have a table in HAP_DOCUMENT_LINK with link, when user click on link i want to display my custom t-code.
    I have created a custom webdynpro component which contains ALV table, When i execute that component it display empty rows with editable mode, i have created t-code for that webdynpro component like ZTABLE ( tcode name of wd component ) i want to call this tcode by filing all records and display it in read only mode. please help me to solve this .
    Regards
    Syed

    Hi Syed,
    You will just pass the key information via URL parameters to your custom web dynpro application. I think for your requirement you no need to create t-code, you launch the url directly.
    Please refer the below links
    Calling one webdynpro application from another | Webdynpro ABAP
    Read URL Parameters in Web Dynpro ABAP
    The above links clearly explains how to call one web application in other component and pass the url parameters.
    Process can be divided as below:
      Enhance the standard component, use POST EXIT and call the URL of Zcomponent and pass the parameters
    Go to eventhandler method "HANDLEDEFAULT" of window of zcomponent and read the url parameters
    Now, Based on the above parameters, you can populate the data into alv table in custom component
    Also, make the alv as read only by using method if_salv_wd_table_settings~SET_READ_ONLY( abap_true)
    Hope this helps you.
    Regards,
    Rama
    Message was edited by: Ramakrishnappa Gangappa

  • Smartforms:Can i call a Tcod from Driver Prg 4 its o/p 2 be appended

    Hello Smartform Gurus
    I need 2 call 1 tcode from my Driver prog ,which has report o/p that is 2 be appended in my Smartform o/p as a
    appended page .
    Is it possible at all ?
    plz throw some light on this .
    thnx
    Moni

    Hi Moni,
    of course there are several ways to reach your goal.
    I have assumed:
    - your smartform is based on a SAP-document
    - document output is based on standard output determination with output messages
    This is defined in customizing (SPRO) at several places or combined in NACE.
    Anyway, create additional output just after smartform output, take care of same printer, spool name and so on ->  you will end with one (combined) spool request.
    Have a look for output messages, if you are unsure how to get a 'simple' smartform output.
    Regards,
    Christian

  • Calling SAP from javascript code

    hi
    I have come across a piece of  JS code where  an SAP tcode is called. the code is something like this
    [https://weblogs.sdn.sap.com/weblogs/images/251875500/code.JPG]
    I have read about the  JS function  activex object in the net. the parameters to this function are library.object and servername . In the above example we are not passing the servername. As for the library and object we are passing SAP.functions
    I want to know where the library SAP is stored and all the objects available in the library.
    thanks
    sankar
    Edited by: sankara rao bhatta on May 29, 2008 9:35 AM
    Edited by: sankara rao bhatta on May 29, 2008 9:36 AM
    Edited by: sankara rao bhatta on May 29, 2008 9:37 AM
    Edited by: sankara rao bhatta on May 29, 2008 10:03 AM
    Edited by: sankara rao bhatta on May 29, 2008 10:08 AM

    DDIC objects are store in table tadir and program name are stored in trdir.
    In your codes you are calling transaction va02 for change salesorder. All depends what rights your login id have.

  • How to call SAP Webservice in standalone java program

    Hi,
    In our Java application, we want to use the SAP Webservices. I dont know much about authentication mechanism used by SAP. Can any one please help me with any sample code how to Call SAP webservice in Standalone Jave Program. I searched alot on the web regarding this, but helpless. Please help me.
    Thanks,
    Mohan

    Hi Mohan,
    You need an account for the ES Workplace. I'm afraid this is not free, e.g. check [SAP NetWeaver, Composition Subscription|https://www.sdn.sap.com/irj/sdn/subscriptions/composition].
    But I thought you wanted to play with a WSDL [you already had at hand|Sample code to access BAPI Web services from JAVA required;?

  • How to call mmpv TCODE through BDC program.

    Hi
    In my  requriment i have to create custom program through which i have to call mmpv TCODE, because mmpv closes period for indivisual company code and for large number of company code it is time cunsuming exercise. for that i that i have to creat custom program. it is having selection screen like below.
    company code                                   (marv-bukrs)
    fiscal year of current period                 (marv-lfgja)
    current posting period                         (marv-lfmon)
    fiscal year of previous period                (marv-vmgja)   
    month of previous period                      (marv-vmmon)
    fiscal year of last periodof previous year (marv-vjgja)
    last month of previoud year                  (marv-vjmon)
    allow posting to previous year           (marv-xruem)
    disallow dack posting after a change of period (marv-xruev)
    and  output should show : company codes affected,the periods closed and the current period open for posting .and also show wheather back posting allowed / disallowed for the company code.

    CALL FUNCTION 'BDC_INSERT'  "BDC_OBJECT_UPDATE
             EXPORTING
                  TCODE     = 'mmpv'
             TABLES
                  DYNPROTAB = BDC_TAB.
    hope this helps
    Warren

Maybe you are looking for

  • Photoshop Elements 4.0 won't save changes for IPhoto 6.0.2.

    At some point following installation of IPhoto 6.0.2, a problem appeared during editing photos with IPhoto preferences set for opening in Photoshop Elements 4.0: When I hit "save", the following dialog box appears: "could not build a preview because

  • Tracking a purchased iBook

    Greetings, I was wondering if ther was any way to track who purchased a computer using the serial number. I have my friends iBook G4 30Gb drive, 256 Mb RAM and 800MHz processor, combo drive. pretty much the bottom of the line. my question is, he "sai

  • Asynchronous Interfaces treated as Synchronous one?

    Hi eXperts, I'm now having a weird problem on an Asynchronous inbound interface in a SOAP-XI-R/3 scenario. When data coming through XI into R/3, the proxy is called, and works fine. But after the proxy call, a short dump happens in CL_PROXY_FRAMEWORK

  • Connecting USB external HDD causes temperature to soar

    Having had my broken Mac Mini fixed, I'm now resuming usage. One "interesting" fact I've noticed is that whenever an external USB HDD is switched on, the Mac's temperature soars. It was sitting, according to smcFanControl, at c. 34C whilst doing gene

  • How to add infotype to a role

    Hello friends I am tring to create a link for Infotype 376 on ESS benefits page. I understand i need to add this Infotype to the ESS role in R/3 through PFCG. Is this the correct way? If yes, please let me know how do I add the IT to the role? If not