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.

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.

  • Is it possible to call a subscreen/modal dialog box from the global class

    Hi,
    Is it possible to call a subscreen or modal dialog box from the global class ..
    or is there any option to display a pop screen or subscreen in order to get the values from user which as to be implemented
    in the global class..
    thanks and regards,
    Poornima.

    Hi Poornima,
    you should follow Uwe's suggestion. The only alternative I can imagine is dynamic document in a dialog container. But I don't know any standardized classes to make use with minimum effort. Have a look at report DD_ADD_FORM_INPUT. Here they put the input field in a container control in a screen; you can put the container control on a dialog container (CL_GUI_DIALOGBOX_CONTAINER).
    We will not get rid of any screen for the time being, but if your application is started from any screen, the DIALOGBOX_CONTAINER can start from there.
    Regards,
    Clemens

  • 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

  • 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

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

  • 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

  • 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

  • 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

  • Update BP relationship from a user-exit in the BP

    Hi Everyone,
    Is it possible to update the BP relationship from within the BP, when a new BP is saved? I have a requirement to automatically create a new relationship when a BP is created. I am using BP events.
    Thanks,
    Margaret Brooker.

    Hi,
    Here is what you should do.
    Before calling BUR_BUPR_MEMORY_FILL, call FM BUP_BUPA_BUT000_GET. this gets you BUT000 data from current buffer. Here, the partner number shall be something like ##1 (as partner no is not yet determined). This is some kind of handle.
    Use this same value for partner1.
    This should work.
    Regards
    Kaushal

Maybe you are looking for

  • Error while importing record extracted from R3

    Our sceerio is R3-MDM one, When any changes occured in R3 in any masterrecord it will trigger change pointer and generate the record thru XI and send it to MDM inound file using XI. The error import server is not able to import it,taking into structu

  • Relatedlink in TCODE LPD_CUST and create/change configuration

    Hi All - I'm trying to add a link in the related link area, I need to trigger a custom WEBDYNPRO from that link. there is a document in sdn [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50&overridelayout=tr

  • I cannot get into any sights

    When I click on Firefox, I enter the then type in a site or subject, and every time the response is "Unable to connect" box. This situation began 17.08.2010.

  • Automating Final Cut Express using AppleScript?

    Hello, just another question: is it possible to use AppleScript (or something similar) with Final Cut Express? And if so, where to find a good reference? I have some DV movies and a for each a csv containing the In and Out Points for the subclips, in

  • Ipod works but is slow to react sometimes...

    i recently got the INVISIBLE SHIELD and applied it yesterday at around 3:00...since there was a lot of water involved i made sure i was going to wait the full 24 hrs that are recommended. later i found out that just 3 hrs after being applied, my brot