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

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 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

  • 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?

  • 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.

  • 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

  • Updating logs of output message of a delivery using custom program

    Hi Experts,
    I have a requirement where in i need to create processing logs for a output message type of a delivery using custom program. So basically for a delivey a output type will be triggered , furhter i will develop a custom program which i will run from se38 and update logs. I even need to update teh status of the output message type.
    Any inputs on this would be very useful.
    Thanks & Regards
    Dipak,

    many possible ways...
    1. create a report which queries table NAST for required output type and run the report in background for every 2 mins or 5 mins.
    2. you can write it in the driver program for the output message.

  • Trigger custom program on creation sales invoice (VF01)

    Hello,
    I need to trigger a custom program whenever a user creates a sales invoice.
    Apparently, there's no change document created at creation, only on updating an invoice. There seems no user exit/badi which gets triggered on saving an invoice...
    Is there someone who could help me a bit ?
    thanks !

    Hi,
    Find Badi Like this.
    1) Go to the transaction SE37 to find your function module.
    2) Locate the function SXV_GET_CLIF_BY_NAME.
    3) Put a breakpoint there.
    4) Now open a new session.
    5) Go to your transaction.
    6) At that time, it will stop this function.
    7) Double click on the function field EXIT_NAME.
    8) That will give you name of the BADI that is provided in your transaction.
    Also Check this .
    [Link|http://www.uber-goober.com/forums/showthread.php?t=101884]
    [https://forums.sdn.sap.com/click.jspa?searchID=17414617&messageID=6233206]
    Rhea.
    Edited by: rhea on Oct 14, 2008 10:25 AM
    Edited by: rhea on Oct 14, 2008 10:27 AM

  • 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

  • Re: Payment order Reversal using custom program

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

  • 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

  • Report to check authorization object used in customized programs

    Hi Guys,
    An auditor came and he raised a question to us, he asked whether all of our customized transactions and programs are maintained with authorization checks? The question is how can we check what authorization objects are used for our customized programs and transaction codes? The developer did not maintain the objects used for that program in SU24 table. Is there a program or a report to show us all the authorization object used for a customised program or transaction? Example : T-code MIGO we can check in SU24 table for all the authorization object used. How do we check for customized tcodes? Please advise. Thanks!
    Edited by: Jarod Tan on Nov 25, 2010 9:42 AM

    Note that some programs are built in such a way that no (visible) auth check is necessary, or even desired at all.
    To determine the necessity of an auth check, you should check that starting it has an entry point (tcode, rfc, service) which is appropriately restricted. The rest (whether and where and how a further check is evaluated) is entirely dependent to what the program actually does.
    Well designed applications generally have centralized functions and methods, and the checks are in there or a "base check" they use.
    Others again use the same in UI programming to determine the visibility of functions, to make the application more intuitive for the user. This on it's own is however not a sufficient auth check to rely on.
    Code review is an art form!
    Cheers,
    Julius

  • How to get the custom program generated in Background

    Dear Freinds,
    I have written a below code in my submit program ( zreport) .
    REPORT  ZHRRPCPRRU0_SUBMIT  NO STANDARD PAGE HEADING MESSAGE-ID zhr_msg.
    SUBMIT RPTQTA00 VIA SELECTION-SCREEN
    WITH pnpbegda = sy-datum
    WITH pnpendda = lv_date
    with pnppernr = '99007057'.
    As per your logic i have used the submit program and i am able to default the dates  in the Standard program RPTQTA00 , that is perfectly correct . Now if run the standard report it is giivng me the ouput ..so the foreground concept is working correctly.
    Now if iam scheduling the Z report of the custom report (z program) where iam calling the submit program
    it is just scheduling and further when i look at the sm37 i can see the  job getting finished . However , i dont  find any spool because the standard report has not been executed , with my custom report (using the logic with submit program above in zprogram ) i am calling the standard program (RPTQTA00).
    so could you please let me know how the standard program will execute and get the spool genereated? in the case of background
    because when  i have executed only the standard report in background i can see that it is being exceuted spool as well, however when iam calling from custom program no spool is created because my custom program only submiting the standard report and it is not executing the standard report in the case of backround ...because when iam running the custom program in the Foreground it is calling the standard program and getting the values defaulted based on the parameters which i passed , so it gets defaulted later iam running the standard program manually .
    So please could you let me know how will the standard program also gets genereated in the backgroung along with my custom report.
    Thanks in advance
    regards
    madhuri,

    Hi Can you try the following?
    Hope this helps... (Taken from help)
    Example
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.

Maybe you are looking for

  • EMET 5.0 Pinning Rule doesn´t work

    I have installed EMET 5.0 on my Windows 7 pro system. I have configured a pinning rule for my internetbank exactly the same way as i did with EMET 4.1. But when I apply a different certificate from my bank's to test the rule nothing happens - no warn

  • Missing ACROBAT Tap from MS Word 2007 for Windows top Menu

    I could generate PDF file using a TAP on the top right of the screen (ACROBAT it was next to developer), however, I must have done something ... and now the Tap is missing. Anyone knows how can I get it back? Thank you, Monasterolo

  • Calling  Report in   Customized Method   Created in  ZBUS2081

    Hi , I have created ZBUS2081  in that I  have  create one Customized  method  ZEMAIL  . now  in SE38   i have  wriiten  logic  to send  email to  person   . I want to use  this  report in ZEMIL   method   .   even I  used that  report  by  using   SU

  • Position Hierarchy Diagram

    Dear All We are upgrading from Oracle 11.0.3 to R12. The Organization Diagram is working fine.But the Position Hierarchy Diagram is empty. The position hierarchy is set properly. In the Job window nothing is updated in front end, but there are 32 rec

  • Starting itunes on a new computer

    I just installed itunes on a new computer. How do I get my old library to the new itunes? If I start to sync my iphone, it tells me that the current info in on my iphone will be replaced with the new more or less empty itunes.