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

Similar Messages

  • Screen enhancement using BADI not workingin background for program RFRECPSFA520

    Hi Gurus,
    I implimented the badi BADI_RECP_SF (Enhancement spot BADI_RE_CP_SF) add custom tab with custom field for additional selection criteria.I used the steps provide in BADI documentation. Everything is working fine but when I run the program in background the additional field values are not comming in the method where I need to filter record. Additional field values are populating fine when I run the program in foreground.
    Does anybody come accross this issue, any input? Is the screen enhancemnets are only for foreground pocessing?
    Thanks,
    Seema

    Le,
    it will lil easy if you can take access key from basis and just add one more selection in selection screen.
    Amit.

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

  • Capture comp controller event n enhancement view - handler not triggered

    Hi,
    Enhanced a std WDA component through the enhancement framework.  Added a view in the enhancement.  This view will be a popup requesting user supplies more details.
    Ive enhanced a std component controller method to fire off a component controller event.  Ive also created an event handler method in the new view and associated with the component controller event.
    Unfortunately the new view method doesnt trigger.  If I add an event handler method to one of the std views through the enhancement framework it does trigger.
    Grateful for any solution/info, cheers!

    Hey,
    Std view A is the active view when the firing of the event occurs within the component controller.  Enhancement view Z is where the event handler method is defined.Defining an event handler method in active view A will be triggered upon component controller event firing, but not event handler method in view Z.  Handling within event view Z (not active/displayed) beyond the realms of WDA eventing?

  • Enhancement Spot is not working in Function Module

    Hi,
    I have enhanced standard FM and also enhanced the interface of the same FM, i have put piece of code in between ENHANCEMENT and ENDENHANCEMENT. this piece of code was working fine, but all of sudden when i try to execute that FM , piece of code inside my enhancement is not executed. enhancement is also active.
    Please suggest the solution

    Hello,
    Please put break point in standard code before your enhancement code and check by step by step debugging(F5).

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

  • Enhancement spot in ECC 6.0

    Hi all,
    can anyone please make it clear on what enhancement spot is in ECC 6.0.
    All Useful answers will be rewarded..
    Thanks & Regards,
    Saroja.

    Hi
    ENHANCEMENT-POINT
    ENHANCEMENT-POINT can either be static (for example, additional data declaration) or dynamic (for example, additional coding).
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/ee9441026aae5fe10000000a1550b0/content.htm
    Refer the very useful links below:
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs and wiki as well.
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    Please check these weblog for more information and sample codes.
    /people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    Look at this articles:
    New Enhancement Framework
    Enhancement Framework
    Enhancement Framework - The New Way to Enhance Your ABAP Systems
    Switch Framework Demo
    Introduction to the Enhancement Framework
    To now more about BADi Implementation see:
    How To Define a New BAdI Within the Enhancement Framework
    How to implement a BAdI And How to Use a Filter
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs .
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    Enhancement frame work is the new concept using which SAP allows you to change the existing programs
    See the following blogs that talk about the same in detail
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    Defines a position in an ABAP program as an enhancement option, at which one or more source code plug-ins can be inserted.
    Syntax
    ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ...
                      [STATIC]
                      [INCLUDE BOUND].
    Extras:
    1. ... STATIC
    2. ... INCLUDE BOUND
    Effect
    : This statement defines an explicit enhancement option at the current position in the program at which a source code enhancement can be made. In program generation, the source code plug-ins of the assigned enhancement implementation that are available in the current system and have a switch in the status stand-by or on, are inserted at this position.
    If the addition STATIC is not specified, the source code enhancement is dynamic. This means that in program execution, only those source code plug-ins are executed whose switch has the status on. If a source code plug-in does not have a switch assigned to it, it is handled in the same way as a plug-in with a switch in the status on.
    With enh_id, an ID must be specified directly for the enhancement option, which is unique in the current compilation unit without the addition INCLUDE BOUND, and with this addition, is unique in current Include program. At least one enhancement spot must be assigned to the enhancement option using the specification simple enhancement spots spot1, spot2, and so on.
    Within enhancements, one or more source code plug-ins can be created for one enhancement option. A source code plug-in is created by the assignment of an enhancement implementation in the Enhancement Builder. This automatically generates an empty source code plug-in with a unique ID, which is displayed underneath ENHANCEMENT-POINT in the Editor, where the actual enhancement can be implemented between ENHANCEMENT and ENDENHANCEMENT.
    A source code plug-in is assigned to only one enhancement option. Multiple source code plug-ins of one enhancement implementation and the source code plug-ins of multiple enhancement implementations can be assigned to one enhancement point.
    Notes
    : In the terminology of the enhancement concept, the statement ENHANCEMENT-POINT includes both the enhancement spot element definition and the enhancement spot invocation of the enhancement option.
    The statement ENHANCEMENT-POINT can either be entered directly or created by choosing Edit ? Enhancement operations ? Create enhancement in the Enhancement Builder. After the program has been saved or created using Edit ? Enhancement operations ? Create enhancement, the statement can only be deleted by choosing Edit ? Enhancement operations ? Delete enhancement.
    In addition to the enhancement options explicitly specified by ENHANCEMENT-POINT, ABAP programs also contain implicit enhancement points, which can also be enhanced using source code plug-ins.
    Addition 1
    ... STATIC
    Effect
    : The addition STATIC is used to define a static source code enhancement. In a static source code enhancement, all incorporated source code plug-ins are taken into account when the program is executed, including those whose switch is in the status stand-by.
    Note
    : The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding. When the statement is executed using Enhancements ? Create enhancement, the addition is set according to this selection.
    Addition 2
    ... INCLUDE BOUND
    Effect
    : This addition can be entered in Include programs. It links the source code enhancement to the current Include program. Each program that incorporates an Include program only includes the source code enhancements that are defined with this addition. Source code enhancements created using the INCLUDE BOUND addition have their own namespace in each Include program. This ensures that if several Include programs are integrated into one compilation unit, no namespace conflicts arise, either between Include programs, or with the source code enhancements of the compilation unit.
    Without the addition INCLUDE BOUND, a source code enhancement is assigned to only one compilation unit. If the statement ENHANCEMENT-POINT is executed in an Include program without this addition, a compilation unit must be assigned to it in the Enhancement Builder.
    Note
    : In an Include program, Include-bound and non-Include-bound source code enhancements can not be defined at the same time. This also applies if an Include program incorporates other Include programs.
    Enhancement points are points provided by sap in standard programs to modify the source code. Go to any standard program, Locate the spiral button on the toolbar. Then press it and then navigate to edit->enhancement operations->display enhancement point menu. Then a no of yellow lines would appear, which are the available en points. You would have to change it and write the applicable source code.
    Regards
    Anji

  • Enhancement Spot - Deletion

    Hi, can anyone advise how to delete enhancement spot in SE80?  When i try to delete, there's a information message saying the 'Enhancement spot is not empty'.  Pls advise.
    Thanks
    PP

    HI PP
    1.      Select the package and expand it.
           2.      Expand the Enhancements node.
           3.      Expand the Enhancement Spot node.
           4.      Select the desired enhancement spot.
           5.      Choose Delete from the context menu.
    Check out the following link
    http://help.sap.com/saphelp_nw70/helpdata/en/3b/0a39426f79f83ae10000000a1550b0/content.htm
    Let me know in case of any issues.
    Regards
    Sachin

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

  • Enhancement spot - Function module not getting triggered in background

    Hello Experts,
    I have implemented an explicit enhancement spot. In the code implementation, I am calling a Function Module.
    When I call that FM in background, things are not working as expected. But if I am calling that FM in normal mode, things are working fine.
    I am passing parameter to FM by 'Value'.
    Can anybody please let me know what I am doing wrong?
    Regards,
    Ashish

    Hi,
    Enhancement not getting triggered in BDC
    Regarding on your query, You would go through below link.
    Screen Enhancement of Transaction CO11N
    I hope, it helps to you.
    Regards,
    Sekhar

  • Custom enhancement spot not getting called.

    Hello guros,
    We are currently upgrading to ECC6 and I started playing a little bit with enhancement spots.
    I've tried inserting my own enhancement spot using
    ENHANCEMENT-SPOT ELI SPOTS ZELI_SPOT.
    I've created the ZELI_SPOT badi definition and created a sample interface.
    Then I implemenet an enhancement spot and implemented the BADI interface (Which by the way should have all its methods static right?).
    Despite all objects being active, and the explicit "IMPLEMENTATION IS CALLED" on the badi implementation, my implementation is not getting called, Is there something im missing here?
    I would also like to understand how in such a case do i actually transfer parameters to such a method.
    Thanks a lot in advance,
    Eli.

    Hi,
    Can you elaborate on where you have created the enhancement spot. If the enhancement spot you have created within some IF condition in the standard code, then it will get triggered only if the condition is true.
    Regards,
    Hari

  • Enhancement spot not getting triggered

    Hello Experts,
    I have activated an explicit enhancement spot by right clicking on 'ENHANCEMENT-SECTION->Create'. (ENHANCEMENT-SECTION     BELEG_SICHERN_23 SPOTS ES_SAPMV45A. line in MV45AF0B_BELEG_SICHERN include).
    I have then written my code in the placeholder given by enhancement spot. Then I have activated enhancement (Ctrl + F3) and then activated the code.
    When I debug, the enhancement is not getting called.
    Do I need to register the enhancement somewhere so that it will get triggered.
    Regards,
    Ashish

    Hi Ashish,
    Try writing breakpoint statement for your user id, and execute with your user id.
    And make sure  that you had not put the break point inside some conditions, because of which control is  not coming there.
    So try putting break point,at the beginning.
    Let me know if you are still unable to solve it.
    Thanks,
    Nisha Vengal.

  • Enhancements spot not working at debugging.

    Hi All,
    I am implementing enhancements spot in FM 'QEST_TOLERANCE_INSPECTION' that all implementation done successfully But while i am debug this code at that time the implemented  enhancements spot doesn't appear on debugging  screen. i have put all this think i.e BREAK-POINT and all and program control also going in that position, please help me out to resolve this.
    Thanks & Regards,
    Ams K.

    Ams,
    I use ECC 6.0 ( ABAP release 701 ) where the FM 'QEST_TOLERANCE_INSPECTION' is not released for customer usage.May be you should think twice before using it.
    Check if the FM is getting triggered in the first place.
    Check if the Enh is active.Try reactivating it.
    K.Kiran

  • Workflow is not triggered via program RBDMANI2

    Hi,
    We have a Workflow that triggers when an IDOC ends up in an error. It works fine when the IDOC is posted through XI and also when processed from WE19. When we try to re process through the Program RBDMANI2 the even is not triggered.
    Business Object used: ZIDOCAPPL (Subtype of IDOCAPPL delegated to IDOCAPPL).
    Event: INPUTERROROCCURED
    My doubt here is will an event be triggered when an IDOC is Processed through RBDMANI2 program? If yes then am i missing or is there some settings that needs to be or should i use any specific Business Object for this scenario.
    Please throw some light upon this.
    Thanks,
    Prashanth

    Hi Prashant,
    Best way to find out which event is getting triggered with this report is by using Event Trace, Follow the below steps.
    (1)- Go to Tcode SWELS, (SWITCH ON THE TRACE).
    (2)- Now run this Report .
    (3)- Go to Tcode SWELS again.(SWITCH OFF THE TRACE).
    (4)- Go to Tcode SWEL, Execute it, You'll find the Event name and Business object name that got trigerred.
    Note: If you don't see any event getting trigerred in SWEL, this means that with this report no event is executing.
    The other way around could be to use a BADI or User-exit in that you have to externally trigger the event by using function module.
    'SAP_WAPI_CREATE_EVENT'
    Note: If events are not getting trigerred through transactions, Then you can use this function module to trigger workflow from outside, So use this function module in any badi or exit or enhancement spot that suits your requirement.
    Thanks.

Maybe you are looking for

  • Owbsys.wb_rt_api_exec.open fails after upgrade to OWB 11gR2

    The following code is used as a PLSQL wrapper to execute OWB mappings and is based on the good old run_my_own_stuff.sql. We have been mandated to use Tivoli as the corporate scheduler, meaning we do not have Workflow as a solution. We have implemente

  • Call child package x number of times from parent package

    I have a child package that I need to call x (10 or less) number of times and have those all run at the same time. The parent package should kick them off either simultaneously or one after the other, but the parent package should not complete until

  • Relation between QuickTime 7.1.1 and AirPort problems

    I've read a few thread talking of relations between the last QuickTime 7.1.1 update and problems with AirPort in one way or the opposite. As this looked quite hard to explain I thoroughly checked the QuickTime 7.1.1 update package and I can tell ever

  • Glassfish v3 ClassCastException for same class, at a List.get() command.

    Hello everyone, I am in the process of developing a small web application with JSF 2.0 and JPA, both of which I am not entirely familiar with. But thanks to Google and a lot of very dedicated experts, the Java and JSF forums have helped me with creat

  • Error in menu painter

    Hello All, I m getting one red icon in Menu Painter> appln tool bar option(where we define appln icons). Its showing some red icon next to  the appln tool bar. Kindly guide how to proceed. Thanks, Vibha