EXIT from a user exit to intial screen of MM01

hi friends,
I am working on MM01 user exit..after saving user exit ll trigger..and in one scenerio we need to come back to screen MM01 with message at task bar..
Please give some idea ..
regards

well to come back to your initial screen is quite easy.
goto mm01 on your initial screen and hit F1.
in the help hit the button technical information.
there you get some information. amongst them your dynpro number of the screen you are on. (ahhh BTW make sure you place you cursor on the main screen before doing above steps, otherwise you get the dynpro-number of the subscreen your cursor is placed on.)
Then at the end of your user-exit write: leave to screen (your dynpro number you identified with the steps above).
to place a status message i believe you already have to be on the dynpro on which you want it to display. this would mean you had to modify the PBO event of that dypro, and i dont think you want that.
but i dont see any other solution. maybe some other dude will post something about that

Similar Messages

  • Send email from PA30 user exit

    When I try to send an email from user exit in ZXPADU02 it never makes it to SOST.  WIll always go to SBWP outbox if I set the flag but never gets sent to receiver address.
    If I paste the following code into a report it works fine.  Is there some other parameter for this FM or some additional process needed to send email from a user exit?
        DATA: maildata TYPE sodocchgi1.
        DATA: mailtxt  TYPE TABLE OF solisti1 WITH HEADER LINE.
        DATA: mailrec  TYPE TABLE OF somlrec90 WITH HEADER LINE.
          CLEAR maildata.
          REFRESH: mailtxt, mailrec.
          maildata-obj_name = 'SRVC_EMAIL'.
          maildata-obj_descr = 'Email test'.
          maildata-obj_langu = sy-langu.
          mailtxt-line = 'Test line from user exit'.
          APPEND mailtxt.
          mailrec-receiver = '[email protected]'.
          mailrec-rec_type  = 'U'.
          APPEND mailrec.
          CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
            EXPORTING
              document_data              = maildata
              document_type              = 'RAW'
              put_in_outbox                = 'X'
              commit_work                  = 'X'
            TABLES
              object_header                = mailtxt
              object_content               = mailtxt
              receivers                       = mailrec
            EXCEPTIONS
              too_many_receivers            = 1
              document_not_sent            = 2
              document_type_not_exist    = 3
              operation_no_authorization  = 4
              parameter_error                  = 5
              x_error                              = 6
              enqueue_error                    = 7
              others                           = 8.

    Put the function call 'SO_NEW_DOCUMENT_SEND_API1'
    in a report Program & SUBMIT that report from ZXPADU02.
    Arya

  • Trigger a waiting ABAP program from a User Exit of CO01

    Hi all,
       We would like to launch a ABAP program from a User Exit (EXIT_SAPLCOZV_001) of CO01, this ABAP program has a special characteristic: using Function Module RFC_PING_AND_WAIT, so this program will be existing until terminating event coming.
        Our purpose is terminate CO01 normally before finishing of ABAP program. We don't know if it's possible?
        Actually:
           1. when we use SUBMIT ..., the process will stop CO01 (stop not normally) and then launch ABAP program. => This is not suitable for our purpose.
           2. when we use SUBMIT ... and RETURN, CO01 will wait for finishing of ABAP program => This is not suitable for our purpose too, because we wish CO01 terminated normally when ABAP program is still existing and waiting for its terminating event.
    Do you have a solution that is suitable for our purpose, could you please help us?
    (The context is below:
    Time:  Begin-->CO finished> ABAP finished-->    
       Launch CO01 --> Call User Exit --> Call ABAP program for waiting --> CO01 saved normally.
    > ABAP program still waiting ---> waiting for terminating event       
    Thanks a lot,
    Vinh Vo

    Hi,
         Try with the function module BP_EVENT_RAISE, it takes eventid, and eventparm as import parameters in the User exit.
    1) With Eventid, you create a background job of the ABAP program and schedule it. Eventparm can be the Production order number.
    2) So when ever the Event is triggered the FM gets triggered and which in turn run the ABAP program, so the foreground the CO01 transaction runs without waiting for the ABAP program to complete.
    Regards
    Bala Krishna

  • Starting a GP from a User Exit?

    Hi all,
    How do I start a GP from a user exit?
    The scenario is like this: when a notification is created in SAP (transaction QM01), it should trigger the GP.
    Thank you very much,
    Frederik-Jan

    The actual place to find the information you need to start GP using Web Services (which you can then implement in a User Exit) is here
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm

  • How does the PRODUCTION SYSTEM take the benifit from the USER EXITS?

    how does the PRODUCTION SYSTEM take the benifit from the USER EXITS?
    please explain

    and it is not the production system that benefits. its the company and the people working with SAP that benefits from the user exits which allow SAP to be altered for the company specific situations.

  • Calling a std user exit from a user defined user exit

    hi
    I have a standard User Exit. I want to call it from a User Exit created by me something like zaaabbbb.
    Can you please tell me the procedure how to do it ?

    Hi,
    If the user exit is a Z include in a function module then you can call the function module like any other function module passing the required parameters. For example CALL CUSTOMER-FUNCTION '002' in transaction VA01 corresponds to function module EXIT_SAPMV45A_002. You can call this function module like you do any other function module.
    CALL FUNCTION 'EXIT_SAPMV45A_002'
      EXPORTING
        i_tvak        =
        i_tvta        =
        i_vkgrp       =
        i_vkbur       =
    * IMPORTING
    *   E_KUNNR       =
    If the user exit is a subroutine in an include in SAP name space (For example subroutine userexit_delete_document in include mv45afzz), then find out the main program in which the include is included (for example mv45afzz is included in program sapmv45a). Once you have done that you can using the following statement to call the subroutine.
    PERFORM <subroutine name> IN PROGRAM <program name>.
    For Examaple
    PERFORM userexit_delete_document IN PROGRAM sapmv45a.
    Please make sure that you use the main program name (In our example sapmv45a) and not the include name (in our example mv45afzz).

  • Coming back to the Transaction from a User Exit

    Hi,
    I perform some checks in a User-Exit before saving a transaction & throw an error message if something is not proper. But, the transaction terminates after that. I need to give the user an option to make changes in the transaction. eg, if user exit checks if a certain field should not be empty, the user should have an option to enter the field after the user exit throws the message. How can i go back to the same screen from the exit to achieve the same.
    Thanks in advance.
    Bikash
    This was for a general scenario wherein after an error message triggered by an Exit is displayed, the transaction just terminates.
    Message was edited by: Bikash  Agarwal

    Hi,
    If you give error message, it will leave the current transaction.
    Instead try using some POPUP function module, which will have options 'OK' and 'CANCEL'.
    If user presses 'OK', then allow user to do modifications and if he presses 'CANCEL', then write LEAVE PROGRAM to come out of transaction.
    Hope it helps.
    Regards,
    Shashank

  • Need to schedule a report in background from an user exit

    Hi Experts,
    I have a requirement to execute a report in background from an <b>user exit</b>. Please advise.
    Thanks in advance,
    Vivenchandar R

    Use the <b>submit</b> statement.
    For example
    SUBMIT zipr_trans_details "VIA SELECTION-SCREEN
                                  WITH so_trdt  IN lr_tr_period
                                  WITH so_empno IN lr_emp
                                  AND RETURN.
    Where <b>zipr_trans_details</b> is the report name.
    Message was edited by:
            Naren Someneni

  • Modify a value of a field in dynpro, from a User-Exit

    Hi guys, i have a problem and i wish you can help me.
    In transaction IW32, I am using EXIT_SAPLCOIH_002 to generate a stock transfer order with BAPI_PO_CREATE1. Once this bapi is used, it gives me the number of the document created.
    I need to put this number in the field PMSDO-BSTKD (Customer purchase order number) of the dynpro.
    First, i tried to modify directly the database (from table pmsdo), but naturally, the dynpro is not updated and when i save the document, it overwrites with a blank value.
    Then I tried to use a field symbol directly to the variable of the program of the dynpro, like this:
    FIELD-SYMBOLS: <rv_bstkd> TYPE pmsdo-bstkd.
        ASSIGN ('(SAPLCOI3)PMSDO-BSTKD') TO <rv_bstkd>.
        <rv_bstkd> = ls_return-message_v2.
    But its has no effect in the screen.
    Lastly, i tried to use two FM C14Z_DYNP_WRITE_FIELD and C14Z_DYNP_READ_FIELD
    With the "READ" one, I can read the value on the screen. Then with the "WRITE" one, i can write a new value. (that i can, once again, read it, with the new value!). But when I exit the user exit and return to view the screen, the field is still in blank (or with the previous value).
    Any, Ideas? I would be grateful for any suggestions.
    Thanks in advance.

    Hi Jguerra,
    Please try FM 'IQS1_FILL_WA_FROM_BUFFER'.
    Please see a sample code, am not sure about it, but i just give a try.
    data: Lv_VIQMEL like VIQMEL.
    CALL FUNCTION 'IQS1_FILL_WA_FROM_BUFFER'
           EXPORTING
                I_QMNUM        = CAUFVD_IMP-QMNUM
                I_AKTYP        = 'V'
           IMPORTING
                E_VIQMEL       = Lv_VIQMEL
           EXCEPTIONS
                NUMBER_INITIAL = 1
                OTHERS         = 2.
    check sy-subrc = 0.
    if Lv_VIQMEL-MSAUS is initial.
        move 'X' to NO_RELEASE.
    endif.
    Regards,
    Antony Thomas

  • How to select several values from a user exit variable in a planning folder

    Hello,
    I have created a user exit variable for limiting the values only to which the user need to access.
    For a simulation part, it is then necessary for him to select several values from these values (not only one, and not all)
    But It seems in this case the user has only two possibilities :
    - keep all the values without any restriction
    - restrain the selection to only one value.
    It seems possible for the user to access to a multiple choice window, but this possibility doesn't seems to work : in all tests we did, only the first value was taken into account by BPS.
    If this method is not good do you know an other manner to permit the user to choice several values amongst a set of pre-selected  (because the original set is too important) values ?
    Thanks for your help.

    Hi Mayank,
    Thanks for your response, but I don't think it corresponds to my problem.
    I my case, I use a user exit variable to filter some data. It seems BPS offers the possibility to the user to select several values amongts the pre-selected values presented by the user exit variable, but it doesn't work. We can use a popup in which we enters the required values, but in final, only the first value is taken into account.
    I don't know if it is due to a BPS bug or if it is not a good solution in regard to BPS philosophy. In this case, the concerned caracteristic isn't in the header but in lead columns.
    I must present a solution to my client next monday, so I have not enough time to open an OSS message.
    An alternate solution should be interesting too.
    My need is to present to a user a selection of values amongst all values from an infoobject (the user exit variable seemed to be a good solution) and the user must have the possibility to select some values amongst these as filter.
    Regards

  • Calling a subscreen in a ME22N from an user exit

    Hi Experts,
    i added a custom field in the 'Customer data' tab of transaction ME21N/ME22N.
    i coded its validation in exit 12. for its validation i am displaying a warning message using fm 'POPUP_TO_CONFIRM'.
    now the requirement is that when the user selects option 'No' in the popup, the cursor should automatically go to the custom field in the screen 'customer' tab even when we are in a different screen.
    please let me know how to achieve this by coding the logic in the user exit. also, the screen for customer tab is a subscreen.
    Thanks
    Aditi

    i tried using FM ABAP4_CALL_TRANSACTION and tried to pass a recording in
       CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
      STARTING NEW TASK 'VA02'
      DESTINATION 'NONE'
        EXPORTING
          tcode                         = 'VA02'
    *     skip_screen                   = 'X'
         mode_val                      = 'N'
    *   UPDATE_VAL                    = 'A'
    * IMPORTING
    *   SUBRC                         =
       TABLES
         using_tab                     = i_bdc2
    *   SPAGPA_TAB                    =
         mess_tab                      = i_msg2
       EXCEPTIONS
         call_transaction_denied       = 1
         tcode_invalid                 = 2
         OTHERS                        = 3
    its working when i give the mode as "A", but then it runs like a recording.

  • Infoobject from multiprovider user exit

    hi,
    how can I retrieve Infoobjects from multiprovider in a user exit.....
    with regards,
    JD

    Can you be more specific? Are u trying to write a virtual char? or a variable exit?
    If you could explain your scenario, i'll try to give a solution.
    - Arun KK

  • Adding entries to Custom table from IDOC User-Exit

    Hi All,
       I need to add an entry into a Ztable, based on the entries in the IDOC.. The user-exit available to me is EXIT_SAPLVEDF_002.  But it is called a number of times... Is there any way to update the Ztable getting the data from different segments?..
    Please help..
    Regards.
    Asha

    The table INT_EDIDD type EDIDD conatined the interface tables of the FM contain all the segmanent data, you can read that and populate the Z table respectively ...
    Thanks,
    Adi.

  • How do I SUBMIT from a user exit which is called in an update task?

    I want to send an idoc each time there is a goods movement. So, in the user exit of MB_POST_DOCUMENT I am calling IDOC_OUTBOUND_WRITE_TO_DB. This creates an idoc of status 30. However, in order to send the idoc I want to SUBMIT RSEOUT00. I get an ABAP dump on the SUBMIT because MB_POST_DOCUMENT is called in the update task, where SUBMIT is not allowed. Do you know any other way I can execute RSEOUT00 at this moment without having to call it later in batch?
    Thanks!!
    Joy

    Hi Naren,
    Your reply is VERY helpful!! Thank you so much.
    I added  CALL FUNCTION 'RSAP_IDOC_EINBUCHEN_VOM_BIW_4' IN BACKGROUND TASK. I am no longer getting the dump, but my idoc is still a status 03 and not a status 30. Should I expect to see it turn to a status 30? I ran this function directly in SE37 -> Test with the same parameters and it ran perfectly and turned the idoc to a status 03. Is there anything else I need to do in the code?
    Thanks again,
    Joy

  • EXITS-PARAM in user exit

    Hi ,
       When we do substitution in FICO by user exit there are three types of EXITS-PARAM
        EXITS-PARAM = C_EXIT_PARAM_NONE.
        EXITS-PARAM = C_EXIT_PARAM_FIELD
        EXITS-PARAM = C_EXIT_PARAM_CLASS.
       Could you tell me the difference among them? Thanks.

    There are three values for this parameter, and are defined as constants:
    C_EXIT_PARAM_NONE:
    This constant means that no parameters are defined for this user exit. In truth, there is one parameter defined and that is a boolean flag that is used to specify whether there is an error in the data or not. A value of false for this parameter means that the data is valid(!) and a value of true means that there is an error.
    This parameter is valid for rules, validations and substitutions.
    C_EXIT_PARAM_FIELD:
    This constant is valid for substitutions only and means that one parameter can be defined for the user exit which is the field to be sustituted.
    C_EXIT_PARAM_CLASS
    valid for Rules, Validations and Substitutions, this parameter signifies that all the data (BKPF and BSEG data) will be passed as one parameter to the user exit. You will be passed a table containing all the relevant information. Have a look at the routine U101 to see how to access this data.
    The last thing to include before the append is a text sting which is used to display the title of the user exit in an upcoming transaction
    ===========================================================================
    'register' your exit in ZGGBS000, subroutine (FORM) GET_EXIT_TITLES, for example:
    exits-name = 'U999'.
    exits-param = c_exit_param_field.
    exits-title = 'Substitute ZUONR from SGTXT'.
    append exits.
    Then add the subroutine (FORM) to hold the code:
    form U999.
    bseg-zuonr = bseg-sgtxt+0(10).
    endform.
    ===========================================================================
    ===========================================================================
    The substitution like this:
    BSEG-SGTXT = '' AND BKPF-BLART = 'WE'
    Our exit name is U900 and below is the code for the text substitution as
    applied in the ABAP:
    (in form get_exit_titles:)
    exits-name = 'U900'.
    exits-param = c_exit_param_none.
    exits-title = 'Substitute BSEG-SGTXT with EKPO-TXZ01'.
    APPEND exits
    ===========================================================================
    ===========================================================================
    Substitutions allows you to populate vendor number (BSEG-LIFNR).
    Create a STEP for item
    The prerequisite:
    SYST-TCODE = 'FB60' AND BSEG-KOART = 'S'
    Create anx EXIT where you'll create the text for item.
    To create the exit: copy the std program RGGBS000 in your ZGGBS000.
    Here insert your exit, for example Z001.
    So in the routine GET_EXIT_TITLES insert the name of your routine:
    FORM get_exit_titles TABLES etab.
    exits-name = 'Z001'.
    exits-param = c_exit_param_class.
    exits-title = 'MY EXIT'.
    APPEND exits.
    And the define the exit:
    FORM z001.
    ENDFORM.
    Insert the name of your program in the table T80D
    ===========================================================================
    Regards
    Venkat

Maybe you are looking for

  • Unable to repair External Drive disk permissions

    I have an external harddrive which holds my itunes library. Today I have been getting permission errors and now my itunes won't access the files on the drive. I have tried to fix the errors with disk utility but now when I try to repair it I get the

  • Data missing in reporting views

    Hi, As you can see below in the query, I am trying to report on hourly data (say 9:00 am, 10:00 am, 11:am , 12 pm) of current date time...I am finding data only in the CURRENT and DAILY views (whereas the DETAILS and HOURLY views are empty). Where do

  • Help with Photoshop 2.0.0.16271

    Hi, I have a really old copy of Photoshop (v2.0.0.16271).  I just bought a new computer and would like to migrate Photoshop over to it.  Can I do that?  If so, how?

  • RRI - pulling all customers info for jump query

    Folks, I have created a RRI from query Q1 (Order information for all customers) to query Q2 (Detailed Invoice information at Customer level) also I have created a Variable on Customer in query Q2. My intention is when I right click on the customer fr

  • Color Printing Problems

    OK, this one is strange. I have been using Safari on this iMac since day one. It is currently at 4.0.5. I print eBay invoices/packing slips for my customers, usually about 10 - 20 per day, via the normal eBay web page, over to my USB-attached Canon M