CJ20N BADI or user-exit when back without saving

Dear all,
I am looking for a BADI or a user-exit when the user press the back button in transaction CJ20N.
Please note that the user don't want to ave in this case.
Thank you for your help.
Regards,
Kevin MICHEL
Moderator message: please (re)search yourself before asking, make use of available information/documentation.
Edited by: Thomas Zloch on Oct 22, 2010 11:23 AM

Hi venkatesh,
put a breakpoint into method GET_INSTANCE of class cl_exithandler.
Then do what you want to supervise. The method is called for all BADIs triggered. You will find out which one can be used.
Please excuse the generic nature of my answer. I didn't know what you already tried.
Regards,
Clemens

Similar Messages

  • Updating custom field in table EKKO within user exit when PO is saved

    I am trying to update a custom field in table EKKO when a PO is saved.  I am using FM EXIT_SAPMM06E_013, within enhancement MM06E005.  Since EKKO is not a table that can be updated with this user exit, I am using a technic that I read about on SDN where I assign a field symbol to the calling program variable and then am able to access data within EKKO table.  But when I pass this data back into the field symbol, for some reason this field is not getting saved when the PO is saved.  In debug mode, it looks like this field is getting updated, but when I look in the table after the PO is saved, it is not there.  My code sample is below.  What I am doing wrong?
    data:
      CHAR(50) VALUE '(SAPLMEPO)EKKO-ZHDRCSTCENTER',
      g_zhdrcstcenter like ekko-zhdrcstcenter,
      FIELD-SYMBOLS <F1> type any.
    if i_ekko-ekorg = '5401'.
      ASSIGN (char) to <F1>.
      g_zhdrcstcenter = <F1>.
      move '0000113322' to g_zhdrcstcenter.
      <F1> = g_zhdrcstcenter.
    endif.
    Thanks!
    Sarah Smyth.

    Firstly, have you investigated using EXIT_SAPMM06E_008 to set any custom fields you have added in the EKKO_CI / CI_EKKODB structure?.. that might work more easily.
    In terms of doing an assign back into a calling program's memory, it can work but it's probably worth setting a break point in your code then stepping through watching the values in EKKO - sometimes you can find subsequent code that re-writes an earlier copy of values back into the structure, thereby preventing you doing your change...  SAP does warn this method is for "internal use".  Also check in your debugger that it's SAPLMEPO and not SAPMM06E you need.

  • User Exit when i am saving notification in IW21(Create PM Notification )

    Please give a correct exit name
    I tried all this but control not going inside the exit.
    IWO10026          
    IWO10027          
    IWOC0001          
    IWOC0002          
    IWOC0003          
    IWOC0004
    QQMA0024          
    Thank you
    Kumar

    hi,
    IWOC0001 this ll get triggered when u create notification...in iw21 as soon as u press enter after putting the notification type in IW21...........

  • BADI or USER EXIT for MIGO when changing order number

    Hi experts, I'm looking for a BADI or USER EXIT in Tx. MIGO that is triggered after pushing ENTER when you change the order number. What I need to do is to propose the movement type depending on the order data. Thanks.

    Not sure but you can try in BADi MB_DOCUMENT_BADI menthod:
    MB_DOCUMENT_UPDATE

  • Badi or User exit for CJ20N..Milestone date

    HI...
    I have to access the field of CJ20N fieldname (LST_ACTDT) (Milestone date).I have to send the alert mail using that value.
    But i am unable to get the BADI or user exit to get that value.I am using the BADI  WORKBREAKDOWN_UPDATE. But not reaching to solution.
    Can anyone help me out..

    Hi Priyank,
    Instead of that you can directly use the BAPI -BAPI_PROJECT_GETINFO
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'
    EXPORTING
    PROJECT_DEFINITION           =
       WITH_ACTIVITIES              = 'X'
       WITH_MILESTONES              = 'X'
       WITH_SUBTREE                 = 'X'
    IMPORTING
      E_PROJECT_DEFINITION         =
      RETURN                       =
    TABLES
       I_WBS_ELEMENT_TABLE          = " send the pspnr value by appending in the table i.e. IT_WBS_ELEMENT-PSPNR
      E_WBS_ELEMENT_TABLE          =
       E_WBS_MILESTONE_TABLE        = "catch this in a internal table
      E_WBS_HIERARCHIE_TABLE       =
      E_ACTIVITY_TABLE             =
      E_MESSAGE_TABLE              =
    If u wish to have details of wbs only..by entering WBS ELEMENT in I_WBS_ELEMENT_TABLE u have to give
    WITH_ACTIVITIES X
    WITH_MILESTONES X
    WITH_SUBTREE X
    then only u will get deatils of corresponding wbs via bapi BAPI_PROJECT_GETINFO.
    In the milestone internal table you will have all the dates.
    Please refer to the function module documentation for further details.

  • BADI or User Exit required when a Task is created in a Transport

    Hi Experts,
    Could you please tell me is there any BAdi or User exit Triggered when a task is created in transport by any other users.
    I need to track if some one simply adds task under others transport.
    Thanks and regards,
    Venkatesh

    Hi venkatesh,
    put a breakpoint into method GET_INSTANCE of class cl_exithandler.
    Then do what you want to supervise. The method is called for all BADIs triggered. You will find out which one can be used.
    Please excuse the generic nature of my answer. I didn't know what you already tried.
    Regards,
    Clemens

  • BAdI: or User Exit  for Campaign Creation

    Hi all,
              we are working in CRM 5.0,
    we have a Requirement like :
          when we create the campaign it should check higher level project ID        (marketing Plan ID)
          if it is there it should permit for create campaign else it ll show error...
    Any BAdI: or User Exit  for Campaign Creation?
    I ll geive reward points....
    Rhanks & Regards,
    Ganesh

    Dear Ganesh,
    As campaign can be created and executed individually also, it will never check for higher level project ID.
    Let me check the system if we can block creation of campaign individually, without having a higher level marketing plan.

  • BAdI: or User Exit for Campaign Creation   IN CRM 5.0

    Hi all,
    we are working in CRM 5.0,
    we have a Requirement like :
    when we create the campaign it should check higher level project ID (marketing Plan ID)
    if it is there it should permit for create campaign else it ll show error...
    Any BAdI: or User Exit for Campaign Creation?
    I ll geive reward points....
    Rhanks & Regards,
    Ganesh

    IN WHICH TRANSACTION U R CREATING CAMPAIGN ??

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • Badi or user exit for FTR_CREATE for modifying the Payment Details

    Hi,
    I need a Badi or user exit that will modify the internal table for the "Payment Details" in transaction FTR_CREATE. Basically, instead of using the default entries in the "Payment Details", data from a Z custom table will overwrite the "Payment details" or the internal table containing the "Payment details". This should create entries in the Transparent Table VTBZV with the values fron the Z custom table.
    I'm trying to implement the BADI FTR_TR_GENERIC but I cannot find where and how to modify the original "Payment Details" entries. Or if its even possible to do this.

    Hi Ravi,
    I was trying to do that but I am not sure were to start. I tried to modify the contents of PI_PROXY_TRANSACTION->A_TAB_CASHFLOW using MODIFY <itab> but an error occured when I tried to activate it saying that the Class/Interdace Attribute is read-only and cannot be modified. Is there a Method that I need to do in order to modify the Attribute? (I'm not that familiar yet with Classes and Methods though)
    Also, just to test, I manually changed the contents of two internal tables containing the "Payment Details" data during debug mode. But after the program has ended its run and finally saved the data, the Table VTBZV was not updated with the manual data I introduced. So I'm not sure if the Badi FTR_TR_GENERIC (which is I'm implementing) really allows the "Payment Details" to be modified or if I'm modifying the correct internal table(s).

  • BADI or User-Exit for MSEG

    Hi,
    I'm looking for a BADI or User-Exit to modify a field in MSEG. This field is an IS-Oil component, but, I must modify this field when I make an outbound delivery.
    I have tried the BADI MB_DOCUMENT_BADI but the system short-dumb when I modify the field. "The program tried to assign a new value to a field even though it is protected against changes.".
    If you have any user-exit or BADI or any solution for this BADI please tell me.
    Regards
    Frédéric

    Hi
    You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001
    in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.
    FIELD-SYMBOLS <F1> TYPE MSEG.
    DATA NAME(50) VALUE '(SAPMM07M)MSEG'.
    ASSIGN (NAME) TO <F1>.
    <F1>-KOSTL = 'XXXX'.
    ( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).
    Cheers

  • BADI or USER Exit for BP Adress check

    Hi All ,
                what is the badi or user exit for giving a additional check on Postal Codes when creating a BP ?
    I have checked BUPA_ADDR_CHECK
    BUPA_ADDR_EXPORT
    BUPA_ADDR_IMPORT
    BUPA_ADDR_UPDATE
    BUPA_ADRREL_EXPORT
    and the user exit ZXSZARU01
    but when i am entering the postal code and pressing Enter , i am not able to catch the User/EXIt or badi .
    Thanks for help.

    Hi
      Use the BAdi : ADDRESS_CHECK
      Implement the method: ADDRESS_POSTAL_CHECK
    Once you enter the Post Code and Country on BP Txn, Pressing Enter will trigger this Badi for  address check !
    Good Luck !
    Thanks
    <b>Allot points if this helps !</b>

  • BAdI or User Exit for MIRO

    Hello All,
    Our requirement is to change line item data in the MIRO before save. It would be a great help if you can provide any BAdI or User Exits.
    Thanks
    Anurag

    Have a look at below code
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode.
    Also have a look at below code which lists the BADI for particular tcode.
    *& Report  ZNEGI16                                                     *
    REPORT  ZNEGI16                                 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    I hope this helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • FIND BADI OR USER EXIT FOR TRANSACTION CORK -STEP SAVE CONFIRMATION

    Hi all .
    I need to find  a badi or user exit to make some w/h movements on action "save confirmation"
    in transaction CORK .
    Please  ,your help !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
      Helena

    CONF0001            Enhancements in order confirmation                                                        
    CONFPI01            Process order conf.: Calculate cust.specific default values                               
    CONFPI02            Process order confirmation: Customer spec. input checks 1                                 
    CONFPI03            Process order conf.: Cust. spec. check after op. selection                                
    CONFPI04            Process order conf.: Customer specific input checks 2                                     
    CONFPI05            Process order conf.: Cust. spec. enhancements when saving                                 
    CONFPI06            Process order confirmation: Actual data transfer                                          
    CONFPM01            PM/SM order conf.: Determine cust. specific default values                                
    CONFPM02            PM/SM order confirmation: Customer specific input checks 1                                
    CONFPM03            PM/SM order conf.: Cust. spec. check after op. selection                                  
    CONFPM04            PM/SM order conf.: Customer specific input check 2                                        
    CONFPM05            PM/SM order conf.: Cust. specific enhancements when saving                                
    CONFPP01            PP order conf.: Determine customer specific default values                                
    CONFPP02            PP order conf.: Customer specific input checks 1                                          
    CONFPP03            PP order conf.: Cust. specific check after op. selection                                  
    CONFPP04            PP order conf.: Customer specific input checks 2                                          
    CONFPP05            PP order conf.: Customer specific enhancements when saving                                
    CONFPP06            PP Order Confirmations: Actual Data Transfer                                              
    CONFPP07            Single Screen Entry: Inclusion of User-Defined Subscreens                                 
    CONFPS01            PS confirmation: Determine customer specific default values                               
    CONFPS02            PS confirmation: Customer specific input checks 1                                         
    CONFPS03            PS confirmation: Customer specific check after op. selection                              
    CONFPS04            PS confirmation: Customer specific input checks 2                                         
    CONFPS05            PS confirmation: Customer specific enhancements when saving                                                                               
    No of Exits:         24

  • BADI or User Exit

    Hi,
    When I am forwarding the work item from my SAP Inbox to another user. I want to capture the data like the wrk item no and the sender user id and forwarded user id.
    Is there any BADI or User Exit which can be used in this case or any other of doing this.
    Regards,
    Ravi G

    Ravi
    Open FM SXV_GET_CLIF_BY_NAME. Set a breakpoint inside.
    Now forward the work item to your inbox and see if the control breaks in the above FM.
    If yes, see what is the value in the field 'name'. The value in this field is nothing but  a BAdI.
    Regards
    Sabu.

Maybe you are looking for

  • HOW TO TRANSFER CREDIT FROM ONE ACCOUNT/COUNTRY TO ANOTHER COUNTRY?

    I RECENTLY MOVED FROM CANADA TO BOLIVIA IN SOUTH AMERICA. I WANTED TO DOWNLOAD NEW APPS AND A MESSAGE CAME UP WARNING ME THAT THE PURCHASES I HAD BELONGED TO CANADA APPLE STORE ONLY.  MY QUESTION IS, HOW CAN I TRANSFER MY CREDIT AND SUCCESSFULLY DOWN

  • Sftp on Solaris 10 with ssh_config(5) support?

    Solaris 10 comes with sftp as part of its image. Underneath, it uses sun-ssh, which supports ssh_config(4). Is there any patches/upgrades out there that supports ssh_config(5)? Thanks very much in advance for your help, pam

  • Credit Control Area - SAP ISU FICA or SAP Finance (ERP) ??? and why?

    Hello Experts, I was reading about credit control area which is basically - organizational unit that represents an area responsible for granting and monitoring credit. One control area can corresponds to many company code (though vice versa is not tr

  • Photoshop Elements 10 & Premier 10

    Having recently purchased from Adobe and installed the above I decided at the time not to down load the 30 day free trial of Premier Elements 10 so can I still do that and if I decide I want to contiue with the product how much will it cost me? R

  • Install Mac OS using Screen Sharing or VNC - is it possible?

    I've always wondered how to do this: Is it possible to remote install a Mac OS (in this case Leopard and up) using screen sharing or a vnc connection, when once the remote machine restarts and boots from the installation volume, you know longer have