Event parameter setting

Hi All,
I have a event DISPLAY of the BOR Object ZTESTBOR.
The Event DISPLAY has a parameter 'Matnr' of type mara-matnr.
Now i want to start a work flow when the event is triggered.
So i have done the binidng in the worl flow.
How can i pass a value say '1000001' to Matnr ( i.e the event parameter ) and then trigger the event so that the work flow container element can take the value in the container element so that i can use it in the WF.
Can u suggest any FM's or documents where this could be found.

This program might Help:
REPORT ZTESTING1 .
tables :
ZOPM_OBJKEY.
data :
* object key
objectkey type SYSUUID_C,
objkey like sww_contob-objkey.
* defining the event container..........................................
data begin of event_container occurs 0.
include structure swcont.
data end of event_container.
* workitem list
data :
t_wid like SWOTOBJID occurs 0 with header line.
clear event_container.
refresh event_container.
CALL FUNCTION 'SYSTEM_GET_UNIQUE_ID'
EXPORTING
DCE_COMPATIBLE = 1
IMPORTING
UNIQUE_ID = objectkey.
objkey = objectkey.
clear objectkey.
call function 'SWC_ELEMENT_SET'
exporting
element = 'CONTEXT'
field = 'UAD'
tables
container = event_container
exceptions others = 1.
call function 'SWC_ELEMENT_SET'
exporting
element = 'SUBJECT'
field = '3333'
tables
container = EVENT_CONTAINER
exceptions others = 1.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'ZPSKUMAR'
objkey = objkey
event = 'GENERIC'
* CREATOR = ' '
* TAKE_WORKITEM_REQUESTER = ' '
* START_WITH_DELAY = ' '
* START_RECFB_SYNCHRON = ' '
* NO_COMMIT_FOR_QUEUE = ' '
* DEBUG_FLAG = ' '
* NO_LOGGING = ' '
* IDENT =
* IMPORTING
* EVENT_ID =
TABLES
EVENT_CONTAINER = EVENT_CONTAINER
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF
Hope That Helps
Anirban M.

Similar Messages

  • Set events parameter in oracle 11g for SAP

    Hi All,
    Recently we have upgraded 10.2.0.4 oracle database to 11.2.0.3 (AIX 7.1) for SAP application.
    Some non-default event parameters were set when Database was running with 10.2.0.4 version. After upgrade to 11.2.0.3, those events were not seen in pfile/spfile. However, post_upgrade log shows that those events were set (and log displays the list of the events as well).
    Now, my concern is whether those event parameters were set already by default (if it is already set after upgrade, not sure why pfile not reflecting them) or do I need to set the parameters manually.
    Thanks in advance for all your help.
    Regards,
    Prakash

    Yes, they seem to be part of the upgrade itself, and SAP seems to set them in multiple places:
    1) During the dbua.sap.sh run, post-processing calls custom scripts which set these events (check the CustomScript.log in $ORACLE_BASE/cfgtoollogs/dbua/SID/upgrade1 and you can see where it is set)
    2) The post_upgrade_status.sql script in $ORACLE_HOME/sap/ora_upgrade/post_upgrade sets them when you run it as directed after the upgrade
    3) The SBP post-patch instructions specify a command to run that sets these in the spfile
    I don't think any of the upgrade steps regenerate the pfile, so if you're looking at one you generated pre-upgrade (like I did earlier today to pull out underscore parameters and user/background_dump_dest) that you then used to startup the database, SAP is definitely changing stuff behind your back. I'd just regenerate the pfile to avoid confusion.

  • Init.ora  EVENT parameter to trace processes?

    Thanks to all who read my question and offer suggestions!
    I have seen in a book the ability to trace individual background processes.
    It gave an example of adding the following 2 lines to the init.ora file:
    event = "10246 trace name context forever"
    event = "10500 trace name context forever"
    After stopping and restarting it creates trace files for the PMON and SMON
    processes in the Background_Dump_Dest folder.
    But my question... is there any reference chart anywhere that shows you what
    event numbers you would use for other background processes?
    I am running 8.1.7 on Windows 2000
    Thank you for your help!
    [email protected]

    Thanks Hemant again.
    Pasted from the link.
    <How the COMPATIBLE Initialization Parameter Operates
    The COMPATIBLE initialization parameter operates in the following way:
    It controls the behavior of your database. For example, if you run an Oracle Database 11g Release 2 (11.2) database with the COMPATIBLE initialization parameter set to 10.1.0, then it generates database structures on disk that are compatible with Oracle Database 10g Release 1 (10.1). >
    So eventhough the oracle version is 11.2.0.2.0 it works more or less like 10.1.0.2.Is my understanding correct?If so,then there is no point in upgrading oracle to 11.2 if this parameter has a lower value.Pls correct me.
    Thanks.

  • Tracking ID for different event handlers set

    In the following link i send the file with the image purpose:
    http://www.sendspace.com/file/cxbd8l
    Dear experts,
    We need to give Visibility for the next process, conformed by three visibility process, show more detailed in the following explanation:
    1. First Visibility process -> purchasing scenario
         Purchase Order -> Confirmation -> Goods Receipt -> Invoice Verification
    Note: In this scenario we need to modify the rule set (don´t include inbound delivery) and modify the standard functions (Create Z), of expected events and Goods receipt.
    2. Second Visibility process -> Stock transport order Scenario
    Stock transport order (PO) -> Outbound Delivery -> Shipment -> Goods receipt -> Invoice Verification (Planned delivery costs).
    Note: In this scenario we need to create a Z function to planned delivery costs and create the Z events according to the Planned delivery costs we want to control.
    3. Third Visibility process -> Second Stock transport order scenario
    Stock transport order (PO) -> Outbound Delivery -> Goods receipt -> Invoice Verification (Planned delivery costs).
    Note: In this scenario we need to create a Z function to planned delivery costs and create the Z events according to the Planned delivery costs we want to control.
    After this introduction, the question is how we can see an entire operation (the combination of the three scenarios), I mean, when we ingress to /SAPTRX/EH_LIST transaction, and execute this, the transaction show an event handler level (Same way /SAPTRX/EH_SET, event handler set level), but my grouping fields are according to Event handler (example: Bussines process type), but we don´t have a u201CProcess Unique IDu201D, that combine the different Application Object Types involved (In this process, PCM10_ITEM, TRA10_DELIV, TRA10_ROAD).
    In the following image I show an example of the point exposed (think in /SAPTRX/EH_LIST transaction):
    Appl.Obj.type             PROCESS UNIQUE ID
    PCM10_ITEM                123456
    TRA10_DELIV              123456
    TRA10_ROAD              123456
    Ok for do this; we expect to follow the next steps:
    1.     Define a field in the Tracking documents (Purchase order, Stock transport order, shipment and outbound delivery), where we ingress the same value (Process value ID) at the moment of execute the indicated transaction:
    a.     ME21N -> PO and stock transport order.
    b.     VT01N -> Shipment.
    c.     VL01N -> Outbound delivery.
    2.     Define a new Info Parameter both in the application system and in event management system.
    3.     Create Z function for expected event extractors and Info parameter Extractors (These functions have to look and save the info parameter defined previously).
    4.     Because this field doesn´t exist in any report, we think to create an enhancement in the /SAPTRX/EH_LIST transaction with the objective of don´t create a new report for only one new field (It require an ABAP program).
    According with this explanation, it´s correct our analysis? We forget any step to get our purpose?
    We appreciate a lot your help in this issue.

    Hello,
    Kevin thanks a lot by your answer, the question is how to associate three event handlers, but i don´t know about the number range, i appreciate a lot if you can explain to me more detailed, how i can define this number range and what tables has associated in order to define de Function module for "Control parameter extractor". I appreciate too if you can explain me how the system assign the same number in the three event handlers.
    According to this, I appreciate a lot if you confirm  to me, the followings steps that cover this requirement (I propose two different scenarios, the second scenario was adjusted after your explanation):
    SCENARIO 1 -> Using a custom number range.
    1. Define a custom number range.
    2. Define a new Control Parameter both in the application system and in event management system. Assign the control parameter to the list and create the event handler set.
    3. Create Z function for "expected event extractors" and "Control parameter Extractors" (These functions have to look and save the control parameter defined previously).
    4. In this case, cause its defined a common event handler set, we can execute the /SAPTRX/EH_SET transaction and look the operation consolidated.
    SCENARIO 2 -> Including information in one additional field in the ECC transactional documents
    1.     Define a field in the Tracking documents (Purchase order, Stock transport order, shipment and outbound delivery), where we ingress the same value (Control parameter) at the moment of execute the indicated transaction:
    a.     ME21N -> PO and stock transport order.
    b.     VT01N -> Shipment.
    c.     VL01N -> Outbound delivery.
    2. Define a new Control Parameter both in the application system and in event management system. Assign the control parameter to the list and create the event handler set (with relation type -> 2 control parameter).
    3. Create Z function for "expected event extractors" and "Control parameter Extractors" (These functions have to look and save the control parameter defined previously, in this case according with the extractor (PCM10_ITEM or TRA10_ROAD), the function has to find in the respective field in any case (it means in the PO its the field XXX in the shipment its the field YYY, but in event management the "control parameter" its the same).
    4. In this case, cause its defined a common event handler set, we can execute the /SAPTRX/EH_SET transaction and look the operation consolidated.
    According with this explanation, it´s correct my analysis? I forget any step to get our purpose?
    I appreciate a lot again your help in this issue.

  • WD(ABAP) table as event parameter

    Is i possible to pass an inernal table as an event parameter. if so, how?

    Yeah, got it working.
    I made a schoolboy mistake of defining a database table instead of an internal table
    Thanks though.

  • A clarification about block# wait event parameter ....

    Hi ,
    In Oracle Database Reference of 10g (Part Number B14237-02) about the block# wait event parameter is pointed out ... :
    This is the block number of the block for which Oracle needs to wait. The block number is relative to the start of the file. To find the object to which this block belongs, enter the following SQL statements:
    select name, kind
    from ext_to_obj_view
    where file# = file#
         and lowb <= block#
         and highb >= block#;Can you give me a simple example of using the above sql statement.... as ext_to_obj_view object does not exist.....
    Many thanks ,
    Simon

    This view is created by $ORACLE_HOME/rdbms/admin/catclust.sql script (to be run by sys user).
    http://download-uk.oracle.com/docs/cd/B19306_01/rac.102/b14197/monitor.htm#RACAD718
    Nicolas.

  • Capture Hyperlink event and set value

    Hello everyone,
    I have a hyperlink on a report column and when I click on the hyperlink it takes me to an URL. Now I need to capture the time the user clicked on the URL and update a DB table column. So I created a Dynamic event to update an item, but I am not able to get the hyperlink event. When I select the Event as 'Click' and 'Selection Type' as 'Item', the report column does not show up on the Item(s) LOV. Can Dynamic Actions be based only on click of page items?
    If so, is there any other to capture this Hyperlink event and set value? Also, as my 'Column Link' target is 'URL', I cannot set any value for items there!
    Please help,
    Ramya

    Thanks a lot Vee, that was very helpful.
    I added the dummy page with 'OnLoad' page process with the PL/SQL code and my current page redirects to a new page with the new page's attributes set. Now I am able to update the timestamp on the table with the sysdate when I click on the click. However, my URL does not work. A page cannot be found error is returned. I displayed the P2_URL_ITEM on the page and it displays only until 'http', the rest of the text is cut. Is there a way I can increase the length of this page item?
    As the URL value assigned to the page item did not work, I tried to hardcode the URL. Below is my page process on the load of dummy page,
    BEGIN
    UPDATE xxnf.XXNF_APEX_RR_REPORTS
    SET last_used = SYSDATE
    WHERE report_id = :P2_REPORT_ID;
    sys.owa_util.redirect_url('www.google.com');
    --owa_util.redirect_url(:P2_URL_ITEM);
    END;
    However, still the page not found error comes up. Could you please help fix both these issues?
    1) P2_URL_ITEM - not having the complete URL
    2) redirect_url not working.
    Looking forward to any helpful pointers,
    Ramya

  • Do you have the recommend Parameter Sets Controlling IPC Resources on Solaris 8 (64-bits)

    Do you have the recommend value of "Parameter Sets Controlling IPC Resources"
    for Tuxedo8(32-bits) on Sun Solaris8.0 (64-bits) ?

    Hi Asgorath,
    Unfortunately I do not have an answer for you but I
    am experiencing the identical problem on a HP
    Proliant BL25p Blade Server. Here is my hardware
    config:
    CPU - Dual Opteron 2.6 Single Core
    Memory - 16gb
    Controller - HP Smart Array 6i
    Logical drives - 1 (2x72gb RAID1+0)
    I have tried the same things as you and I still get
    intermittant boots. Power on and off does not always
    work as the system still hangs. It's totally hit or
    miss. Once it soes boot it seems to work fine. I have
    also installed the latest Solaris 10 for x86 Patch
    Cluster in hopes that some of the kernal patches
    would fix the problem. So far no luck as the system
    continues to hang...HARD!! HP was out to my site
    today and the Eng. is going back to the group that
    qualified Solaris10 on the HP Blades and see if they
    have any input. If I receive anything back I will
    post it here. I know this post is late and if you
    have resolved please post your fix.Hi doc42755,
    I have not come up with a solution as of yet, if I do come up with a solution i will most certainly post it here.
    However, if you find the solution could you let us know in this thread aswell.
    Thanks
    Asgaroth

  • MI - Configuration Parameter Sets

    When trying to access the "Configuration Parameter Sets" option under the Mobile Administrator page I am getting an error:
    Connection is already closed and no longer associated with a managed connection
    When I try to create a new parameter set I get a java.lang.NullPointerException  exception. Please help.
    Thanks,
    Mahwish

    Hi,
       If you click on any link under the mobile Administrator you will get similar error like "Connection is already closed and no longer associated with a managed connection"
         For this above issue please check the following points.
    1. Visual Admin>Services>Connection Container.. here Check the number of connections values?? 
    2. Check all the authorization are assigned to access the RFCs to user which is mentioned in SAPJRAFactory_EN.
       If we resolve the above problem you would not get any null pointerException during creation of the parameter sets.
    Regards,
    Anil Kumar.

  • SAP language parameter setting

    Dears:
    The parameter zcsa/installed_languages which is in RZ10, control the sap language parameter setting, but i am not very understand how to set the value, i find some set the value to 123EM, i don't know that the 123 meaning here. And some just set it to DE2, D is for Germany, and E is for English, so what is 2 for? Do you know the standard value setting for this parameter?

    The language environment that comes with the standard SAP installation includes German and English. To use SAP with other languages, you must perform a language import or supplement (use transaction SMLT). Changes in the language environment usually require changes in the codepage setup, which requires changes in some database tables and in the profile files.
    Most language administration can be done with transactions SMLT and SP12, and reports RSCP0001, RSCP0004, RSCP0017, and RSCP0020.
    The codepage environment is summarized in the report RSCP0001. Running the report will generate a screen with codepage parameters drawn from different places. A proper codepage setup usually requires that all codepage parameters are the same. This table show the output of the RSCP0001 report, and where its data is drawn from:  Report output Source 
    1.  Table TCPDB   
    Code page for transparent data in the database  Entry in TCPDB table 
    Code page for non-transparent data in the
    database (for example, pools and clusters)  Entry in TCP0C table (can change from online report above) 
    2.  System profile parameters   
    Code page for transparent data in the database  install/codepage/db/transp = 8300 
    Code page for non-transparent data in the
    database (for example, pools and clusters)  install/codepage/db/non_transp = 8300 
    Code pages used by this application server  install/codepage/appl_server = 8300 
    Code pages used by SAPTEMU  saptemu/Codepage = 8300 
    For example, changes in the instance profile, for Traditional Chinese, might look like:
    Change Installed languages to include M (Traditional Chinese)
    zcsa/installed_languages = DEM
    Change to desired language for logon screen
    zcsa/system_language = E
    Add the following parameters for Chinese Character Set
    install/codepage/appl_server = 8300
    install/codepage/db/transp = 8300
    install/codepage/db/non_transp = 8300
    saptemu/Codepage = 8300
    abap/locale_ctype = Chinese(Taiwan)_Taiwan.950
    install/collate/active = 0
    abap/locale_all/needed = 0
    rscp/TCP0B = TCP0D
    abap/set_text_env_at_new_mode =1
    abap/import_char_conversion = 0

  • Retrieve event and event parameter in event based background job

    Hi,
    I think it must be possible but I cannot find documentation of it:
    When a batchjob is triggered via an event (defined in SM62) how can I retrieve the event and event parameter from within the triggered job itself. We want to use the event parameter to trigger other batchjobs, but first we must be able to retrieve them...
    Thanks
    Tom

    Standard SAP triggers can be found in TCODE SM64, Background Processing events.

  • How to set Lov item property (Action type,event,parameter etc) in PR when page load

    Hi gurus
    I am new to OAF, First I need to explain my scenerio.
    I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list).
    for this i extended the controler and apply the changes, but in this case what heppen, It will effect only when i open the list (pop list) and click on more (Available in poplist) and it will open a new form and i select value from that form. But when I open the poplist and select the value from the same list rather going to more option (it does not open new form), then there are no effect. I though the issue with refreshing when selecting value from the same list.
    To resolving this issue what i did
    1. go to page == > the same LOV
    2. Change the Client Action properties (
         Action type  = fireAction
         event          = xxevent
        submit = true.
    After doing this when i run the page from my OAF enviroement , every thing is OK. Then I transfer the Controler to Server machine and change the controller and run the same page from the server, it has the same refreshing issue, Then I thought because I did not transfer LOV such properties so this is hepening,
    Now I want to initilize such properties in Page load or what I need to do, Please advise me.
    Regards,
    Haq

    Edward,
    Thank you for the suggestion! It directly lead to my solution wherein I used CASE statements for the column in my Region SELECT such as the following:
    WHEN (:P2_GRADING_METHOD = 'CR/NC' OR scs.scs_pass_audit = 'P') AND GET_GRADE_B93 (sac.stc_final_grade, sac.stc_verified_grade) IS NULL THEN htmldb_item.select_list_from_lov (5, 'Enter Grade', 'GRADE_LOV_CRNC','onBlur="return validate_grade(this,''FW_DATE_'||ROWNUM||''')"','NO',NULL,NULL,'GRADE_'||ROWNUM)
    When the column is NULL, the Select List (LOV) contains the entry 'Enter Grade' and that is the value displayed on page load. I bypass the value 'Enter Grade' during Submit Processing where database updating occurs.
    I did not find the need to enter values for p_null_value and p_null_text since I don't believe that it would cause the 'Enter Grade' value to display on page load for null value columns but rather would enable the user to select 'Enter Grade' from the list and have a specified return value stored in htmldb_item array.
    Again, thank you for the help!

  • EVENT PARAMETER VALUES.

    Hi all!
    Cud anyone guide me as to how to pass values to the event parameters created by me in a BUSINESS OBJECT.
    To be more precise: I have created an event with some parameters in it in a Z-Object. Now thru Select query, want to assign values to the event parameters from DB-tables. But unable to access event parameters in the object-program thru object-(parameter-name).
    Cud anyone guide me as to how to do the same else any other way out?
    Regards,
    Sudipto.

    Hello,
    You can use the FM SWE_EVENT_CREATE to trigger the event.
    When calling you can use the tables parameter EVENT_CONTAINER to populate the event container.
    With the macro below you initialize the event container
    SWC_CREATE_CONTAINER event_contaier
    with the macro below you add/set elements to the container
    SWC_SET_ELEMENT event_container 'ELEMENT1' 'VALUE1'.
    This must be it...

  • Oracle.apps.gl.Journals.journal.post event parameter

    I have written a subscription on the oracle.apps.gl.Journals.journal.post event and it's raising fine and I would like to control this event's subscription to a particular set of books id instead of firing across all set of books. How can I send the parameter to my event subscription?
    Thanks,
    Srini C

    The note shows the raising the subscription, I have successfully generated the subscription but I need to know the how can I pass the set of books id to my custom subscription.
    Thanks,
    Srini C

  • SSRS Cascading Parameter Setting Default Value of Parameter by Expression

    Hi All,
    I need some help on an issue I am running into in SQL server 2008 report parameters. I have the following Report Parameters defined:
    1) @PredefinedDateSelection - Boolean (User Selectable True/False, Default Value - 'False')
    2) @StartDate - Text (User input text box)
    If @PredefinedDateSelection = TRUE, then I would like to provide a particular default value to the StartDate textbox (i.e. @StartDate Default Value), If @PredefinedDateSelection = FALSE, then I would like to provide a different default value.
    I have the following code for the Expression for the Default value of @StartDate: =code.GetStartDate(Parameters!PreDefinedTimeSelection.Value)
    where GetStartDate is a very simple VB function defined as :
    Public Function GetStartDate(x as boolean ) As String
    Dim a as string
    Dim b as string
    a = "Report Uses Predefined Values"
    b = "Please Input Value"
    If (x) then
    Return a
    else
    Return b
    end if
    end function.
    Now the default value of @StartDate stays set as "Please Input Value", and does not change when I toggle @PredefinedDateSelection from False to True and vice versa. I was expecting to see the Default value to change between the two messages depending on my selection in the report preview.
    Another parameter which is a dropdown and uses a dataset to display two different set of selectable items depending on the value of @PredefinedDateSelection is working just fine. I am not sure if I am missing something or I am doing something wrong.
    Instead of using the VB code I also tried : =iif(Parameters!PreDefinedTimeSelection.Value = True,"Report Uses Predefined Values","Please Input Value")
    I also tried changing the default value using a dataset with SQL query and the available value set to NONE, so that the user could input. But the Default value does not refresh or change values.
     I hope I have explained my question clearly. I would really appreciate any thoughts and comments.
    Thanks,
    Arunesh

    Thank you much for your response.
    I tried that and it did work. But my requirement is to have a user input the date. The basic idea is if the user decides on a predefined time range like Day Shift Today or Yesterday and so on... then the report would automatically calculate the values based on predefined date time values. On the other hand, if the intent is to run the report for an arbitrary period then the user supplies the date and time limits.
    What I am trying to achieve is have the same parameter available for user input , but when the User decides he wants Predefined then the "textbox" populates with date and time as per his choice of predefind range.
    I understand that by this the user can still overwrite the date and time on the text box, but the report will run the predefined values as long as he has the @PredefinedDateSelection Set to true.
    Is there a way I can impement this?
    Once again I thank you and appreciate  your input.

Maybe you are looking for

  • 5th Generation ipod touch stuck in recovery mode...

    Hi there, recently purchased the new 5th gen ipod touch . Its for some reason now in what i now know is recovery mode..It's frustrating the **** out of me because i can't seem to find any way of of fixing it...! It's running IOS 6 and I'm hoping that

  • What is the best practice for package source locations?

    I have several remote servers (about 16) that are being utilized as file servers that have many binaries on them to be used by users and remote site admins for content. Can I have SCCM just use these pre-existing locations as package sources, or is t

  • Pre-loaded software

    Does the MacBook come with Apple Works or some other type of word processing software other than the trial version of Microsoft Office?

  • Some quick feedback on Flex 3

    This is my second day with Flex 3 (a first-time user of Flex), and this is my second day of trying out Flex 3, so, bear with me if I don't seem to know what I'm talking about. Because I'm particularyly interested in data interaction I picked the "Wor

  • RaiseBundledException does not raise exception??

    Hi all, I am validating an entities attributes and collect the exceptions in a list and finally throw an exception with if(!getExceptionList().isEmpty()) OAException.raiseBundledOAException(getExceptionList()); the exception list is not empty but som