Triggering a custom program after session is processed

Hi All,
       I have created a session say SES1 .
Is it possible to trigger a custom program after the SES1 gets successfully processed?
       Can anyone help me on this issue.
Thanks for your precious time.

hi
YES, YOU CAN DO THIS USING SUBMIT
You can call executable programs from other ABAP programs using the following statement:
SUBMIT <rep>|(<field>) [AND RETURN] [<options>].
You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program.
Message was edited by: Harikishore Sreenivasulu

Similar Messages

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Triggering  a  custom program

    Hello,
    I have a  custom program for picking material from a  warehouse for issuing to production orders.
    I need to trigger this program after every external  goods receipt. is this possible?
    is there something in customizing for movement type - for example follow on  transactions, to achieve this
    or is there an ABAP solution for this?
    best regards,
    srini

    Hi Srinivas,
    You have to use the appropriate user exit. There will be a user exit for this purpose. I don't have access to system otherwise i could have given the right exit.
    Hope this clarifies.
    Regards,
    Viswanath

  • Triggering a custom program/function from a transaction

    Good Day,
    I am trying to create a process to send some data to BIZTALK which will forward it to an outside system.  I've written an ABAP and function which will gather the data and send it to a destination port set up for Biztalk. It works when executed by itself but the requirement for this is to trigger it when you run transaction ME35L (Release/Approve Purchasing Documents) to release a scheduling agreement document. I did some searching in this forum and there was some talk about setting up as a special function output  type and defining the program there.
    Has ayone done this type of set up.  Can you walk me through it?
    Thanks in advance,
    Glenn

    Okay, I've created an output type called 'DNEU' with the following:
    Output Type: DNEU
    Application: EV
    Transm. Medium: Special Function
    Program: ZLMMI002
    Form Routine:  Entry
    When I try to use it, I get the following message:
    "No communication data has been defined for transmission medium 8"
    Did I miss something in the configuration?

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • OO4O process never killed/clean up after session=NULL

    After session object is set to NULL, still the oracle processes are in memory, never cleaned up. Does require any special methods to kill the process.
    dbObject.Close(); // called
    dbSession = NULL ; // set session object to null
    Oracle processes are still in memory and crashes server.
    Using Oracle ver 8.1.7/OO4O 3.15
    What is wrong here?
    Anyone came across similar issues..

    Have you tried to remove all OraParameters after stored procedure call and before assigning null to session?
    Otherwise there may be circullar references between OraDatabase and OraParameter causing memory leak after releasing your reference to OraSession.

  • Unable to get process chain successful messages via custom program

    Hi all,
    I am executing a process chain both from the custom program and RSPC transaction. A message is supposed to generate for all the successful executions. The problem is I'm getting the message via email while executing it via RSPC transaction. But while executing it from the custom program I cant get the messages though the process chain has run successfully. I'm using the FM  RSPC_API_CHAIN_START where the synchronous and noplan parameters are checked to suppress the server name and priority pop-ups . Following is the code for reference,
    CALL FUNCTION 'RSPC_API_CHAIN_START'
           EXPORTING
          i_chain            = l_chain
          i_synchronous      = c_x
          i_noplan           = c_x
          IMPORTING
            e_logid          = l_userid
          EXCEPTIONS
            failed           = 1
            OTHERS           = 2
    Please suggest if someone has any idea in how to do it. Thanks in advance.
    Regards,
    Debapriya

    Debug and check what values you are getting  at Exceptions.
    or you can use RSPC_CHAIN_START instead RSPC_API_CHAIN_START.
    or you can get the status of process chain using FM RSPC_API_CHAIN_GET_STATUS or table RSPCPROCESSLOG.
    -SS

  • Re-process SAME IDOC no in a custome program without it generation another

    Hi
    I have an incomming idoc which depending on some condition i i put the idoc in staus 52 so that another program will be able to re-process is later on.  I put the idoc in a custom table.
    A custom program will come and pick the idoc in the custom table to be reprocess .  what FM can i use to make the custom program reprocess the same idoc with generation a new one
    thank a lot for helping

    Can't you use   BD87 to do it...! or use IDOC_INPUT and in passing parameter UNPROCESSED_IDOCS give yor idoc numbers you want to reporcess...!
    hope it helps
    Edited by: Anup Deshmukh on Mar 4, 2010 7:34 AM

  • After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iT

    After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iTunes makes the problem recur. Any answers?

    First I'd set up a System Restore point. Then try applying the LNK registry fix from the following document:
    File Association Fixes for Windows 7
    Does that get your icons back to normal?

  • SPAU for Custom program.

    Hello,
    I am new to Upgrade project.
    Is it required to adjust a customer program (z or y programs) using SPAU. If yes, please let us know why we need to adjust a custom program...
    Any documentation on SPAU would be appreciated.
    Kind Regards,
    Abhishek.

    Question on SPAU and SPDD.
    You have to aware of all related program like BDC's , Screens related errors and all dictionary related problems.
    Some function modules may become obsolete, and some screens will change
    abnd some new fields will be added in the new versions etc.
    Also take care of SPAU and SPDD tcodes.
    You should be able to know about Unicode concept in sap.
    Upgrading within a new version of SAP R/3 :
    The upgrade process for the SAP R/3 application does not modify any of the adapter's ABAP development, but it may modify the SAP R/3 application so that some of the adapter's ABAP development does not work properly.
    This section describes how to upgrade the adapter's ABAP development in an upgraded SAP R/3 application. Before you can upgrade the adapter, you must have already upgraded your SAP R/3 application.
    To upgrade the adapter's ABAP development:
    Install the latest ABAP Extension Module transport files for the correct version of the SAP R/3 application.
    You must install the correct version-specific transport files. For details on installing these transport files, see Connector transport file installation.
    Compile all programs and resolve syntax errors associated with the ABAP development.
    The easiest way to find syntax errors is to generate each function group associated with each object and fix the errors one at time. Repeat this process until all function groups compile successfully. Be sure to generate any other programs such as triggering programs that are not associated with a function group. Be aware that minor updates may need to be made to your ABAP triggering programs after applying the required new transports to upgrade the adapter.
    If you are upgrading to SAP R/3 version 4.x, note that the 4.x ABAP handlers use the product namespace /CWLD/. For special considerations for upgrading to the connector supporting SAP R/3 version 4.x, see Connector for SAP R/3.
    Test the new environment and make modifications as needed.
    Only a full system test enables you to work out any problems with the upgrade. Test your event detection mechanisms by running the appropriate transaction or program and sending business objects to the SAP system. Use the connector's log within the SAP system to help identify other issues.
    chk this
    http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
    also chk these 2 notes in service.sap.com
    Technical Upgrade is only a version upgrade without any functionality changes.
    The objects that are needed to be upgraded are:
    Includes
    Function Groups / Function Modules
    Programs / Reports
    OSS Notes
    SAP Repository Objects
    SAP Data Dictionary Objects
    Domains, Data Elements
    Tables, Structures and Views
    Module Pools, Sub Routine pools
    BDC Programs
    Print Programs
    SAP Scripts, Screens
    User Exits
    You can refer to the below links for more information on technical upgrade:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/07/upgradeFROMR3TOmySAPERP-PARTII&
    https://wiki.sdn.sap.com/wiki/display/profile/UPGRADEFROMR3TOmySAPERP-PARTIII
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/6d66647d9011d396b60000e82de14a/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
    Refer to these related threads
    Re: Role of ABAP Developer in Upgrade Projects
    ABAP developer part in an upgrade project
    wht abt the tcodes SPDD & SPAU
    please reward if useful
    Murali poli

  • Pay Scale inrease - Custom Program

    HI  Guyz,
       A custom program is developed for the pay scale increase  and it should be  run on a regular basis as a background job to update the pay increase of the employees who have completed either 60 days or 6 months or 9 months from the hire or rehire date. The program   should perform the processing only for the hourly employees of the Personnel Area. The processing would consist of checking the current date with the employee hire or rehire date and determining the increase in amount based on the number of days the employee has been working. After the necessary processing is done the program will update new data records for the basic pay infotype for the associates who need to have an increase in the pay.
    Can someone help me with the technical steps needed for this development.
    Note:Pay Scale Reclassification program cannot be used as we are not implementing compensation management

    Yes ..
    This Bapi will do the same job & i guess in a easier way than BDC
    Call this Bapi in loop.
    Make sure to lock and unlock master records of employee before
    and after the call using
    BAPI_EMPLOYEE_ENQUEUE --- lock
    BAPI_EMPLOYEE_DEQUEUE -
    unlock
    <b>or</b>
    HR_EMPLOYEE_ENQUEUE  -
    Lock
    HR_EMPLOYEE_DEQUEUE --- unlock
    otherwise bapi will throw a message personnel number not yet locked.
    Hope this helps.
    Kindly reward in case useful.
    Rgds,
    Darshan

  • Oracle11i AP positive Pay customized program setting

    Hi
      I need to know how to set up a new customized program for Positive Pay file for payment batch where the checkbox is in actions panel so once it is clicked by the user the program will be triggered
    Thanks

    ISUTri wrote:
    Thank you for your reply Hussein. Those documents don't appear to address the specific problem we seem to be having. Out of the log file that I posted I have been concentrating my search on this error message. Let me know if you have any other tips.
    java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "APPS.IBY_EXTRACTGEN_PVT", line 380
    ORA-06512: at line 1
    Is there a way I can get additional information that might help me track down what is happening? I have an SR on this but Oracle seems to be as stumped as I am.R12: Troubleshooting Payment Process Request (PPR) Errors: Comprehensive Listing of Errors and Solution Documents [ID 1314118.1]
    IBY_FD_PAYMENT_FORMAT_TEXT Format Payment Instructions Errors with ORA-06502 [ID 1073786.1]
    Thanks,
    Hussein

  • Trigger IDOC_OUTPUT_ORDRS using custom program.

    Hello.
    I have a requirement to send an order response (ORDERS05) IDoc by calling FM IDOC_OUTPUT_ORDRS using a custom program.  Wanted to know if anyone had suggestions on the best approach.  We are using much of the native mapping and adding a few segments (which I would handle updating in the customer exits).
    My biggest question is how to setup the call to IDOC_OUTPUT_ORDRS.  I think I need to simulate the NAST table entry.  Is that the recommended approach?  Any tips or hints would be appreciated.
    Thanks,
    Cal
    Edited by: Cal on Feb 3, 2009 7:07 PM

    Actually condition technique based on which output determination works - is designed for exactly what you are asking - triggering the output type under certain conditions.
    You can create ouput condition records with key fields that represent your business conditions: for example certain sales org, distrib channel, certain sales order type can only trigger the output. You can make it as finer as you want (like even including sold-to as a criteria), like you can include any field that appears in the sales document as a criteria to trigger the idoc.
    The tables that store condition records - condition tables - are custom created with your business field combination that you want to base the triggering upon.
    Goto the IMG path:
    IMG -> SD -> Basic functions -> Output control -> Output determination -> Maintain output determination for sales documents.
    1. A o/p determination procedure is assigned to sales document type
    2. A o/p determination procedure comprise a list of output types, which are checked sequentially by the system
    3. Custom condition tables with new business criteria can be assigned to new or existing access sequence
    4. Access sequence is attached to output type
    How the system triggers a particular output type during application document processing, say sales order processing:
    1. From the sales document type, the o/p determination procedure is determined
    2. The system then checks the output types inside the procedure one by one
    3. Say at output type 1, the system checks to see what access sequence it has
    4. The access sequence comprises of 1 or more condition tables.
    5. The system then checks each condition table, by comparing the key fields of the condition table with the correpsonding sales document fields - like comparing sales org, documen type in the condition record with what the sales document has. If every thing matches, the output type is triggered.
    I have just simplified the whole o/p determination. There are several other features which are controlle at o/p determination, procedure, output type and access sequence levels. Spend some time one these, it is a neat, flexible and future proof concept. You will never regret! )

  • How to create a workflow dealing with customizing program(Add-on program)

    Dear ALL,
    I am new to workflow and I was assigned to create a workflow related to an customizing program(Dynpro screen).
    I know we can refer to some std. template for workflow developing.
    However, I don't know how to create a brand new workflow to deal with the add-on program and table.
    My major difficulty is how to create a new object:
    --How to create the new event to track the operation of add-on program, for example, push 'submit' button.
    --How to create method to update the add-on table.
    I do hope someone could give me some guidance.
    Thank,
    Gary

    This is a Function Module that triggers an event ob Business Object tht you will create by making a subtype of Business Object. Use Transaction Code SWO1 to do so.
    FUNCTION zwf_process_trip.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_EMP_NUMBER) TYPE  PERNR_D
    *"     VALUE(I_EMP_TRIP) TYPE  REINR
      INCLUDE <cntn01> .
      DATA:i_emp_details TYPE STANDARD TABLE OF p0001,  "Employee Details
           wa_request    TYPE p0001,                    "Workarea for Employee details
           v_country_grp TYPE molga,                    "Country SubGrouping
           v_object_key  TYPE sweinstcou-objkey.        "Key for the buisness object ZWOBUSTRIP
      CONSTANTS: c_bo_trip     TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
                 c_event_trip  TYPE swo_event  VALUE 'TripCreate',
                 c_infy_type_1 TYPE infty      VALUE '0001'.
    Event Container declaration
      swc_container i_event_cont.
      swc_create_container i_event_cont.
    Reading the INFO TYPE 0001 to obtain the
    Employee details
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = i_emp_number
          infty           = c_infy_type_1
          begda           = sy-datum
          endda           = sy-datum
        TABLES
          infty_tab       = i_emp_details
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
    SY-SUBRC check is not required as the error
    handelling will be done by WorkFlow rule
    resolution.
      CLEAR wa_request.
      READ TABLE i_emp_details INTO wa_request INDEX 1.
      IF sy-subrc = 0.
      Retrieving the Country SubGrouping for the employee
        SELECT SINGLE molga
          FROM t001p
          INTO v_country_grp
         WHERE werks = wa_request-werks
           AND btrtl = wa_request-persk.
      ENDIF.
    Sending the relevant data to event container
      swc_set_element i_event_cont 'EmpId'     i_emp_number.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'PersonnelArea'    wa_request-werks.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpSubGrp'       wa_request-persk.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpTripId'       i_emp_trip.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
    Raising the event to trigger the workflow
      v_object_key = i_emp_number.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = c_bo_trip
          objkey            = v_object_key
          event             = c_event_trip
        TABLES
          event_container   = i_event_cont
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      COMMIT WORK.
    ENDFUNCTION.
    SWEL Transaction Code is used to track event linkage.
    SWUS is used to test Workflow manually with single test.
    <b>Please reward points if useful</b>
    Thanks
    Arghadip

Maybe you are looking for

  • I am facing difficulty sync my iPhone 5 to my macbook pro; It is not responding. How can I fix this?

    My Iphone 5 and my IPad suddenly started facing problem syncung with the Mac book Pro; I think this is after the last update. I used to get the update over the cloud, meaning of I purchase on my ipad, I will find it over my iphone. That has stopped.

  • Recovery DVD needed - Equium L20

    Hey, I purchased my L20 laptop around 2 years ago and it is in need of a system restore. I checked the manual and it tells me to insert my recovery disc. However, i know for a fact that i never recieved a recovery disc with my computer! Is there any

  • My computer has a virus , is it safe to use iTunes?

    hello I want to do backup for my iPhone , but my computer has a virus ,is it safe to use iTunes or not ?

  • Inbound message pickup

    We are trying an R/3 --> XI --> HTTP/SOAP scenario to send and receive xml messages. The external receiver is a secured web server. Is it advisable to use a HTTP or a SOAP adapter? Also during inbound, will XI be able to pick up messages from the sam

  • InDesign CS6 resolution for pixel documents not the same

    I have just opened in InDesign CS6, a document made originaly in CS5.5. This document is in pixels. At 100%, the document should be pixel for pixel with my monitor (iMac 27" at about 104 ppi), but it seems it is more at 100% if you calculate at 72 pp