Workflow actions like FORWARD, RETURN, CANCEL in the Custom Screens

We have a requirement to perform the Workflow actions like FORWARD, RETURN, CANCEL from a Custom transaction Screen.
Usually these Workflow actions can be performed from SAP Inbox SWBP of the user and related WF logs are reflected by SAP automatically. 
For example,
we will add the Push buttons in CC02 transaction and want to perform these Workflow Actions, Is it possible to do so? If possible, How can I reflect these changes into WF logs and all similar to Standard SAP?
Help is appreciated.
Thanks,
Prathap

we will add the Push buttons in CC02 transaction and want to perform these Workflow Actions,
Is it possible to do so? If possible, How can I reflect these changes into
WF logs and all similar to Standard SAP?
Question & Answers
we will add the Push buttons in CC02 transaction ?
Are you going to add only one button or three separate buttons, if you can add three separate buttonts then under each button action,
For Forward  =  SAP_WAPI_FORWARD_WORKITEM make use of the standard FM.
For Retrun ( Assuming that you want to put back the workitem ID back to the user's inbox ) in that case use of FM SAP_WAPI_PUT_BACK_WORKITEM.
For Cancel   =  SAP_WAPI_WORKITEM_DELETE this might help you to cancel ( Assuming that Cancelling means Deleting the workitem...
Note : to make use of all the above FM you need to have the workitem ID, Will you be able to determine the exact workitem id?
for more :
Now you can find more FM regarding the workitem by simple search in SE37 Txn by using the term SAP_WAPI_*.

Similar Messages

  • I found a iPad Mini and would like to return it to the original owner.  I believe it was previously stolen and it cannot be activated.  Any idea how I can get it back to the original owner?

    I found a iPad Mini and would like to return it to the original owner.  I believe it was previously stolen and it cannot be activated.  Any idea how I can get it back to the original owner?

    I am very disappointed (yet I somewhat understand) Apple and how they completely have no interest in helping return lost items.  I don't believe the person who traded me this was from around here so I don't even know where to begin.  I seen on ebay you can sell them for parts but I don't really believe in doing that and would like to at least try my best to get it back to whom it belongs to.  I will be contacting my local police department regarding this but I don't think they will be able to do much if it was stolen from somewhere else.  However if nobody claims it in 90 days and I have a letter from my local police station saying I am the new owner, will that be enough for apple to unhold their policy of proving the item belongs to you?

  • Mountain Lion Desktop crash? Randomly it returns me to the login screen and I have restart all my apps

    So after install of Mountain Lion (never happened before) my desktop crashes and it returns me to the login screen.  After I login I have to restart all my apps.
    One morning this happened 5+ times in under an hour.  So my productivity has gone down :-(
    I work around this by only running three apps (finder, terminal & firefox), and then it sees to only happen 2-3 times a day...sigh.
    The only other odd thing and have no idea if it is related is that firefox was showing some animated image from the olympics and when I had it on one screen it was fine, when I had the window on the other screen, the image was not the right image, it looked like it had reached into the screen buffer of other applications and was displaying that (e.g. where there was a scrolling flame for the right image, there was some scrolling upside down text from my terminal when I had it on the other screen where the flame was supposed to be).
    An help on how to debug/solve would be helpful.

    You're welcome. If you use Zoom often try the new show controller feature. It's below where you turned zoom off. Once you turn it on you can use it to turn Zoom on and off. Plus you can use zoom as a magnifying glass instead of full screen.

  • When i'm in email, after about 10 seconds, i get a black screen.....10 seconds later, it returns me to the general screen....anyone have this before???  thx

    when i'm in email, after about 10 seconds, i get a black screen.....10 seconds later, it returns me to the general screen....anyone have this before???  thx

    I don't know if you've got this solved or not but I started getting this too about a month ago. I just had it happen again about 10 minutes ago. I was on a website & BAM black screen, I don't hear the usual "winding down" of the hard drive though, so the HD sounds as though it's still working properly AND there's a weird hue around the edges of the screen so it's not pitch black as though the monitor turned off. Once I force shut down then I get the true pitch black screen before it turns back on again.
    Also, every time this happens & I re-start the hard drive tends to be working very hard doing something in the background for at least 2-5 minutes not sure why?

  • I'd like a basic icon in the lock screen to indicate Text, Email etc.  Seems all I can have in lock screen is full alert (with or without detail) or am I missing something?

    I'd like a basic icon in the lock screen to indicate Text, Email etc.  Seems all I can have in lock screen is full alert (with or without detail) or am I missing something?

    I'd like a basic icon in the lock screen to indicate Text, Email etc.  Seems all I can have in lock screen is full alert (with or without detail) or am I missing something?

  • All of sudden my i pod screen is working upside down like when i touch for the typing screen it shows on the screen upside down.

    all of sudden my i pod screen is working upside down like when i touch for the typing screen it shows on the screen upside down.

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                 
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                                              

  • Adding the customer screen to enhance the header for Enjoy PO

    Dear Expert's,
    My requirement is to add a new tab on Header for Enjoy PO by enhancing ME21N/ME22N and ME23N.
    I have already implemented the BADI's ME_GUI_PO_CUST and ME_PROCESS_PO_CUST.
    Actions Taken:
    I have created a custom Function group and subscreen '9000'.
    I have created a 'Z' structure as per the screen layout on the Header Tab
    I have appended the custom fields in EKKO custom include CI_EKKO.
    Reactions:
    1. I am able to successfully display the screen on additional tab at header level.
    2. The Display & Change is working perfectly for screen '9000' on ME21N/ME22N and ME23N header.
    Problem:
    I am unable to read the 'Z' fields from EKKO to populate the TAB Screen '9000' and neither able to save the 'Z' fields from '9000' TAb screen for header data.
    I am not using any EXIT for this and have to use only BADI for this solution. Please help me to implement this solution using BADI only.
    Also i have tried implementaing the transport Data object -> Model + Model -> Dynpro + Dynpro -> Model + Model -> Data object methods, but these methods are not getting triggered.
    Please let me know if i can use EVENT_PBO & EVENT_PAI if yes , than how to trigger these events and where..?

    Hi ,
    try to enhance PO header using SAP Note 407975
    Summary
    Symptom
    You are using SAP customer enhancement MM06E005. There is no sample source
    code for this enhancement.
    More Terms
    User exit, customer enhancement, MM06E005, example, sample
    Cause and Prerequisites
    You want to activate user exit MM06E005. Note that this is a consulting
    note and not a correction of the user exit.
    Solution
    You can use the sample source code attached here to recognize the basic
    functions of the exit. This example is, however, only one of many options
    that are offered by the customer enhancement.
    The sample source code includes the following functions:
    o Supply of an additional field on header level
    o Supply of an additional field on item level
    o Derivation of a field on item level from the copied reference
    document
    Now, in order to be able to use the sample source code, you must create
    field ZZFLAG on the header level of the document and field ZZFIELD on the
    item level.
    Double-click on Include table CI_EKKODB
    Enter the following values:
    - Name Component type DType Length DecPlace Short text
    - ZZFLAG CHAR1 CHAR 1 0 1-digit indicator
    Save and activate the include table.
    Double-click on Include table CI_EKPODB
    Enter the following values:
    - Name Component type DType Length DecPlace Short Text
    - ZZFIELD CHAR1 CHAR 1 0 1-digit indicator
    Save and activate the include table.
    In order to activate the sample source code, you additionally have to carry
    out the following changes on screens 0101 and 0111.
    1. Screen 0101: Create the following fields:
    2010.02.05 Page 2 of 3
    SAP Note 407975 - MM06E005: Collective note: Examples for
    implementation
    "Checkbox" Name: EKKO_CI-ZZFLAG
    2. Screen 0111: Create the following fields:
    "Input/output field" Name: EKPO_CI-ZZFIELD
    "Pushbutton" Name: BUTTON
    FctCode: ZZDETERMINE
    The following assignments apply to the sample source code:
    EXIT_SAPMM06E_006 --> LXM06F36
    EXIT_SAPMM06E_007 --> LXM06F38
    EXIT_SAPMM06E_008 --> LXM06F37
    EXIT_SAPMM06E_009 --> LXM06F39
    EXIT_SAPMM06E_016 --> LXM06F41
    EXIT_SAPMM06E_017 --> LXM06F42
    EXIT_SAPMM06E_018 --> LXM06F40
    Copy the source code from the attachment and insert it into the
    corresponding function modules. Save and activate the function modules.
    Create the following variables in the corresponding TOP include in order
    not to get any syntax errors:
    INCLUDE ZXM06TOP
    data: gl_aktyp type c,
    gl_no_screen type c,
    gl_rekko like ekko,
    gl_ekko_ci like ekko_ci,
    gl_ekpo_ci like ekpo_ci,
    gl_ekpo like ekpo,
    gl_ucomm like sy-ucomm.
    types: begin of ekpo_tab,
    ebeln like ekpo-ebeln,
    ebelp like ekpo-ebelp,
    ekpo like ekpo,
    end of ekpo_tab.
    data: gt_ref_ekpo_tab type table of ekpo_tab.
    Save and activate the TOP include.
    On header level, you can now store a character, X or space, via field
    ZZFLAG on the database with the document and read it also again.
    On item level, you can fill field ZZFIELD with a one-digit value and save
    it with the document. If you copy this document, the system displays an
    additional function button on tab page "Customer data". If you press this
    button, the value of the reference document is copied to field ZZFIELD.
    If you want to store the source code as sample source code in your system,
    start Transaction SMOD. Enter MM06E005 as an enhancement. Select
    "Components". Press "Change". Position the cursor on the corresponding
    module and choose "Sample code". Create the corresponding include and copy
    2010.02.05 Page 3 of 3
    SAP Note 407975 - MM06E005: Collective note: Examples for
    implementation
    the source code from the note. Save the include. Note that, of course,
    syntax errors may occur when you check components. This is because the
    includes of the sample code are not integrated into a program but rather
    are completely independent and, therefore, do not have any relationship to
    each other either. For this reason, only save the include and do not
    activate or check it. The sample code has to be copied into the
    corresponding function modules in order to become active.
    If you use the user exit in the new purchase order, it is not guaranteed
    that the customer screen is always processed. To make sure that possible
    required fields are checked, include a corresponding message into the
    EXIT_SAPMM06E_012. This screen is always processed.

  • Process chain status message in the custom screen.

    HI All,
    We have created a custom screen for hierarchy upload in BW once the file has been uploaded it will trigger an event which is triggering a process chain. The process happen like
    Upload the file from desktop it will go and sit in al11 folder
    Trigger an event which will trigger the process chain
    Infopackge routine has been written which will download the file for al11.Please find the attached screenshot is for your reference.
    Once the DTP has been completed we need to trigger a message which will tell us the status of the DTP like finished successfully or not. This message should have to show in the custom screen which we have provided to the customer.
    We are aware of mail recipient list option. Please suggest further options
    Many thank sin advance.
    Regards,
    Sakthivel S

    Hi Appana,
    Yes, we can identify any screen changes from sy-datar. It is set when I make any changes in the custom screen also. But I dont want to give a pop up every time I leave the custom screen. I want to give raise a pop up for saving the delivery document just like any other SAP screen (For eg. SAP Screens do not give a pop up when we move from one screen to another screen, but it gives a pop up if we try to do a subsequent functions like picking without saving the changes in delivery).
    Thanks
    Anil

  • How to open a Excel file and display on the custom screen

    Guys, I am new to screen programming. In my first screen (SCREEN #9000) I want to put a field, where I must be able to select a file from my desktop and when I click the DISPLAY button, it should suck all the data from the spread sheet in to an internal table, and should display the next screen  (SCREEN #9001), displaying the data from the internal table along with a button called LOAD. Now when I click the LOAD button after reviewing the data, it must load the data to my custom table in R/3. I know how to load an Excel spreadsheet to R/3 without the custom screens. But my requirement now is to do from custom screens like I mentioned above. Any ideas how to do this? Thanks.
    Dan

    Hi Dan,
    In my first screen (SCREEN #9000) I want to put a field, where I must be able to select a file from my desktop and when I click the DISPLAY button, it should suck all the data from the spread sheet in to an internal table, and should display the next screen (SCREEN #9001)
    For  this create a MPP program and create a Push button. Write the code for this to open a file like use f4_filename.From here you are able to select a file.
    + displaying the data from the internal table along with a button called LOAD. Now when I click the LOAD button after reviewing the data, it must load the data to my custom table in R/3.+
    With the above you are able to open a file and now you have to load that data into internal table. Select the file from the desktop.
    Totally you have to create 1) Screen 2) Push button( Open File) 3) Load data ( From file) .
    [Create Push Buttons|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm]
    Check this if there is any please post.
    Regards,
    Madhu.

  • Identifying changes in the custom screen added to Delivery

    Hello,
    I have added a custom screen in delivery transaction(VL02n) at header level. I used BADI LE_SHP_TAB_CUST_HEAD to do that. Now if user comes and enters some data on the custom screen, then goes to menu option Subsequent processing-->Create Transfer Order, user is not prompted with a pop up screen to save changes.
    It happens with SAP Standard screens for any data changes. How do we achieve the same functionality to prompt a popup message for any changes in the custom screen and save the data?
    Thanks
    Anil

    Hi Appana,
    Yes, we can identify any screen changes from sy-datar. It is set when I make any changes in the custom screen also. But I dont want to give a pop up every time I leave the custom screen. I want to give raise a pop up for saving the delivery document just like any other SAP screen (For eg. SAP Screens do not give a pop up when we move from one screen to another screen, but it gives a pop up if we try to do a subsequent functions like picking without saving the changes in delivery).
    Thanks
    Anil

  • Print the custom screen

    hi
      I need some clarifications in the module pool programming. I need to print the custom screen. Is there any standard function module or a standard program which prints the screen

    HI
    fcode for print is fcode = 'UTPR'.
    call function 'SET_EDITOR_HANDLE'
    call function 'SWITCH_FRAMEWORK
    call method get_cursor
    call method source_instance->get_state
    if me->editormode-casemode = '0' or
    me->editormode-casemode = 'L'.
    case_mode = 'LOWER'.
    elseif me->editormode-casemode = '1'.
    case_mode = 'UPPER'.
    elseif me->editormode-casemode = '2'.
    case_mode = 'HIKEY'.
    elseif me->editormode-casemode = '3'.
    case_mode = 'LOKEY'.
    endif.
    cursor-new_index = cursor-index.
    cursor-new_offset = cursor-offset.
    me->edit-buf_scline = content_display..
    me->edit-buf_culine = cursor-index.
    me->edit-buf_cuoffs = cursor-offset.
    if source_instance->l_control_instance_identical = space.
    source_instance->l_backend_actual =
    call method source_instance->get_source_tab
    call method source_instance->get_compressed_source
    describe table content lines content_fill.
    call method source_instance->set_lineindex.
    call method source_instance->get_lineindex
    importing
    lineindex = lineindex[].
    call method source_instance->get_linenumbers
    importing
    linenum = linenum[].
    call method source_instance->get_modification_inf
    call method source_instance->get_state
    call method source_instance->get_change_information
    call method me->get_editor_mode
    CALL FUNCTION 'SET_EDITOR_HANDLE'
    Hope this is useful.....
    Regards,
    Pavan

  • I have OSX 10.5.7 on my Intel Mac. When I try to login using the correct password the screen goes white and just returns back to the login screen. It does not jiggle like when you enter the wrong password.

    I have had a number of issues with my Intel Mac recently and had to reboot using disk utilities, safe mode, OSX recovery, but always come back to the login screen but when I type my password the screen goes white and returns to the login screen. My password is correct and the login does not jiggle as it would if the password was wrong. Please advise,

    Back up all data if you haven’t already done so. There are ways to back up, even if you can’t log in. Before proceeding,you must be sure you can restore everything to the state it’s in now. If you’re not sure you can do that, STOP.
    The procedure below may spare you the need for a clean reinstallation of OS X. If you don't feel comfortable carrying it out, don't. try.
    Briefly, you need to delete the following file:
    /var/audit/current
    If you already know how to do that, you can skip the rest of this message. Do it, and try again to log in.
    Boot in single-user mode by holding down the key combination command-S at the startup chime. If you’re using an external USB keyboard, it must be plugged directly into a built-in port on the Mac, not into a hub. Release the keys when you see a black screen with scrolling white text. In this mode, there’s no graphical interface; just a command line. Initially, you can’t make any changes to files.
    When the text stops scrolling, and you see a line ending in a pound sign (“#”), type the following command:
    mount -uw /
    You must type the command exactly as given, with no mistakes. If you don’t feel able to do that, STOP. At this stage, no harm will be done if you make a mistake, but later, it will be. Press the return key.
    Next, type the following command:
    rm -i /var/audit/current
    Press return. You should get the following output:
    remove /var/audit/current?
    If that's not what you get, STOP. Type the single letter N, press return, and try again. Otherwise, type the single letter Y and pressreturn.
    Finally, enter the command:
    exit
    Press return. The text will start scrolling again, and then the system will reboot. Try again to log in.
    Credit for this solution to ASC user AnthonyTW.

  • Calling Stored function and showing returned value on the UI screen

    I am calling a stored function by using the following steps mentioned as per the below link. The stored function returns a single scalar value
    http://download.oracle.com/docs/cd/E1790401/web.1111/b31974/bcadvgen.htm#sm0297_
    Please verify if I am putting the code in the classes as required by the ADF framework.
    * 1) In class CustomApplicationModuleImpl extends ApplicationModuleImpl*
    // Some constants
    public static int NUMBER = Types.NUMERIC;
    public static int DATE = Types.DATE;
    public static int VARCHAR2 = Types.VARCHAR;
    protected Object callStoredFunction(int sqlReturnType, String stmt,
    Object[] bindVars) {
    CallableStatement st = null;
    try {
    // 1. Create a JDBC CallabledStatement
    st = getDBTransaction().createCallableStatement(
    "begin ? := "+stmt+";end;",0);
    // 2. Register the first bind variable for the return value
    st.registerOutParameter(1, sqlReturnType);
    if (bindVars != null) {
    // 3. Loop over values for the bind variables passed in, if any
    for (int z = 0; z < bindVars.length; z++) {
    // 4. Set the value of user-supplied bind vars in the stmt
    st.setObject(z + 2, bindVars[z]);
    // 5. Set the value of user-supplied bind vars in the stmt
    st.executeUpdate();
    // 6. Return the value of the first bind variable
    return st.getObject(1);
    catch (SQLException e) {
    throw new JboException(e);
    finally {
    if (st != null) {
    try {
    // 7. Close the statement
    st.close();
    catch (SQLException e) {}
    With a helper method like this in place, calling the func_with_no_args procedure shown in Example 37-7 would look like this:
    *2) In class CustomServiceImpl extends CustomApplicationModuleImpl*
    public String callEnvironmentName(){
    return (String) callStoredFunction(VARCHAR2, "CAR_UTIL_PK.get_environment_name()", new Object[] {});
    3) If I have the first two steps correct, I was to display the value returned by method callEnvironmentName() with scalar values like (Development, Production etc) at the footer of each JSFX page. What is the flow I should follow, should I call callEnvironmentName() from some managed bean? Also I want to store it once on first call to some application variable and use that to populate the JSFX pages. Is there a working example. What is the best practice?
    Thanks
    Edited by: user5108636 on Apr 5, 2011 11:58 PM

    Hi John,
    Duplicate alerts are coming for BP_Confirmed as well as one custom event. Earlier I thought there is some issue with my custom event, but when it came for BP_Confirmed also, then i have a doubt something is wrong with the application.
    I have also checked that BP_Confirmed is being raised only once inside the method-BP_CONFIRM of class-cl_crmcmp_b_cucobupa_impl.
    raise event BPConfirmed
      CLASS cl_crm_ic_services DEFINITION LOAD.
      CREATE OBJECT event.
      event->set_name( if_crm_ic_events_con=>gc_bpconfirmed ).
      event_srv = cl_crm_ic_services=>get_event_srv_instance( ).
      event_srv->raise( event ).
    Are you aware of any other place from where this event is getting triggered?
    Thanks for your help!
    Regards,
    Rohit

  • My Ipad Mini Keeps Closing Apps and Returning back to the Home Screen?

    Hi,
    I bought an ipad mini at the beginning of December and i have had problems with it ever since.
    For some reason i could be in the middle of doing something (doesnt matter what app or what i'm doing) and it will just shut down and return to the home screen so i then have to open the app again?
    Its quite frustrating and i have searched the web high and low for other similar problems but i cannot find anything.
    I am using the ios 6.0.2.
    Thank you
    Daniel

    You might need to consider restoring the iPad to factory settings: http://support.apple.com/kb/index?page=search&src=support_site.home.search_sugge sted.search&locale=en_US&q=restore%20ipad%20manually

  • Is there a way to prevent actions, like spaces, to only occur on one screen when using multiple monitors?, Is there a way to prevent actions, like spaces, to only occur on one screen when using multiple monitors?

    Hello, I am using my Macbook Pro, late 2012 with a second monitor, which is a TV. I am wondering if there is a way to prevent spaces from poping up in the second monitor when i want it to ocur in the primary monitor? So on one monitor, or whichever one the mouse is, I want say Spaces, or Launch pad to popup on and not interfer with the other screen. Is there a way to do this?
    Thanks,
    Harrison Howard

    I believe the answer is no.
    I have not been able to make extra monitors stick with a particular space.
    Also, there is a relevant discussion here regarding this matter.
    The last poster suggests a workaround which does not work as far as I can tell.
    Here is the discussion thread
    Best of luck

Maybe you are looking for