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

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

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

  • 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

  • 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

  • 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

  • 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

  • OSX will not start after reboot from single user mode

    Hello,
    Yesterday my iBook G4 was only starting in BASH mode. I've looked at discussions describing Kernel Panic and have followed the advice posted to the following post:
    http://discussions.apple.com/message.jspa?messageID=1553062#1553062
    When I reboot I get past the language setup and the boot progress screen/progress bar gets almost complete before going to a continuously stalling/reloading blue screen.
    When I try the command:
    rm /var/db/.AppleSetupDone
    described in one of the responses I get a 'No such file or directory' message
    I assume that as when I try:
    cd /System/Library/CoreServices/Setup\ Assistant.app/Contents/MacOS
    It returns '-rwxr-xr-x 1 root wheel 58912 16 Aug 21:10 Setup Assistant'
    it is the file that is missing.
    As the discussion thread I was following seemed to go off on a bunch of other tangents (and was completed), I am hoping somebody might have suggestions for my specific problem under this new discussion.

    Welcome To  Discussions Kongxyz!
    It will help if you first post some background info.
    "...only starting in BASH mode."
    Explain exactly what was happening, and what the screen displayed.
    Exactly which model iBook G4 is it?
    What is the Processor speed?
    What size is the Hard Drive, and how much space is available?
    How much RAM is installed, and is it original or added?
    Which version number of Panther 10.3.x is installed
    What peripherals do you have connected? A keyboard, mouse, printer, external drive or modem, router, etc?
    What happened between the last time the iBook started successfully, and when it didn't?
    Have you made any changes, like upgrading the system, updated or installed any applications or programs, etc?
    Have there been any unusual occurences, like freezes, crashes, power outages, etc?
    Are you able to startup from the system install disc to run Disk Repair?
    Have you run Repair Permissions?
    Instructions posted below.
    Is the Mac shutdown overnight, or does it run 24/7?
    Have you ever run any routine Maintenance procedures?
    THESE ARE THE STEPS FOR USING DISK UTILITY TO REPAIR YOUR HD
    1.Insert the System Install disk, Mac OS X CD-ROM disk, or Restore DVD disk, then restart the computer while holding the C key. Use the System disk, of the OS, that is currently installed.
    2.Once started up from CD or DVD, on the Menubar at the top of the screen, choose Disk Utility from the Installer contextual menu.
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from disc to access Disk Utility.
    3.Click the First Aid tab.
    4.Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5.Select your Mac OS X volume, if necessary.
    6.Click Repair. If DU reports errors it has fixed, re-run Repair Disk until no errors are reported.
    7.Repeat steps 5 & 6, but select the Hard Drive this time. It's usually the first listed with the manufacturer's model number. Make note of the S.M.A.R.T. status.
    8.When finished, select Quit Disk Utility from the Installer menu.
    9.Select Quit Installer from the Installer menu.
    10.In the resulting pop-up window, choose restart.
    11.After the computer has restarted, you can eject the CD.
    TO REPAIR PERMISSIONS ON THE STARTUP DISK
    1.Open Disk Utility, located in Applications/Utilities, and select the startup disk in the left column.
    2.Click First Aid.
    3.Click Verify Disk Permissions to test permissions or Repair Disk Permissions to test and repair permissions. (I never "Verify". Just run "Repair".)
    Rerun RP until the only messages reported, are listed here Spurious Permissions Errors Using: 10.3.x, authored by Michael Conniff.
    When "Repair Permissions" is complete. Quit "Disk Utility".
    ali b

  • 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