Passing container vlaues using program
hi all,
i am triggering workflow using events. in the program i am using the following code as
DATA : V_OBJKEY LIKE SWEINSTCOU-OBJKEY,
T_CONTAINER LIKE SWCONT OCCURS 0 WITH HEADER LINE,
wa_cont like line of t_container,
V_ID TYPE SWELOG-RECID,
I0008 TYPE P0008,
IT_0008 TYPE TABLE OF ZPA0008,
WA_0008 LIKE LINE OF IT_0008,
WA_PA0008 TYPE PA0008.
wa_cont-element = 'EMPNAME'.
wa_cont-type = 'PERSNO'.
wa_cont-ELEMLENGTH = '8'.
wa_cont-value = '12345'.
append wa_cont to t_container.
CALL FUNCTION 'SWW_WI_CREATE_VIA_EVENT'
EXPORTING
EVENT = 'CHANGED'
RECTYPE = 'WS90000014'
OBJTYPE = 'BASICPAY'
OBJKEY = V_OBJKEY
IMPORTING
REC_ID = V_ID
TABLES
EVENT_CONTAINER = T_CONTAINER
EXCEPTIONS
READ_FAILED = 1
CREATE_FAILED = 2
OTHERS = 3.
here i am able to trigger the work flow but not able to pass the container values to the workflow.
kindly help me.
thanks,
sirisha
Hi
INCLUDE <CNTN01>. " <----- Include this
DATA : V_OBJKEY LIKE SWEINSTCOU-OBJKEY,
T_CONTAINER LIKE SWCONT OCCURS 0 WITH HEADER LINE,
wa_cont like line of t_container,
V_ID TYPE SWELOG-RECID,
I0008 TYPE P0008,
IT_0008 TYPE TABLE OF ZPA0008,
WA_0008 LIKE LINE OF IT_0008,
WA_PA0008 TYPE PA0008.
SWC_CREATE_CONTAINER t_container " <---- Include this statement.
SWC_SET_ELEMENT t_container 'EMPNAME' '12345'.
wa_cont-element = 'EMPNAME'. " <-- Replace the below 4 lines of code with the above line
wa_cont-type = 'PERSNO'.
wa_cont-ELEMLENGTH = '8'.
wa_cont-value = '12345'.
append wa_cont to t_container.
CALL FUNCTION 'SWW_WI_CREATE_VIA_EVENT' " <----- Repalce this with SWE_EVENT_CREATE
EXPORTING
EVENT = 'CHANGED'
RECTYPE = 'WS90000014'
OBJTYPE = 'BASICPAY'
OBJKEY = V_OBJKEY
IMPORTING
REC_ID = V_ID
TABLES
EVENT_CONTAINER = T_CONTAINER
EXCEPTIONS
READ_FAILED = 1
CREATE_FAILED = 2
OTHERS = 3.
COMMIT WORK <---- INclude this statement too after callin SWE_EVENT_CONTAINER
But make sure that you already have the container element EMPNAME in the workflow container before raising the event..
Edited by: Pavan Bhamidipati on Aug 30, 2010 3:51 PM
Similar Messages
-
PASS DATA FROM ABAP PROGRAM TO WORKFLOW CONTAINER
Hello Everybody,
I am a workflow beginner and I want to pass a data from my ABAP code to a workflow container. This workflow container is used in the Send Mail step.
The ABAP Program is:
REPORT zdb_work_flow.
tables : vbak.
DATA : k TYPE sweinstcou-objkey,
e TYPE swetypecou-event.
DATA : st TYPE swcont,
itab TYPE STANDARD TABLE OF swcont.
PARAMETERS : vbeln TYPE vbak-vbeln.
start-of-selection.
st-element = 'VBELN'. "This is my WORKFLOW CONTAINER
st-tab_index = 1.
st-elemlength = 10.
st-type = 'C'.
st-value = vbeln.
append st to itab.
k = vbeln.
e = 'TRIGGER' "This is an event in my BUS OBJ ZDB_WFLOW
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'ZDB_WFLOW' "My BUS OBJ
objkey = k
event = e "Event TRIGGER in ZDB_WFLOW
tables
event_container = itab
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. .
COMMIT WORK.
Now I have created a workflow in SWDD as ZDB_WF_SW.
In this WF I have created a container as VBELN.
In the SEND MAIL I have given a header as "Worflow Triggered for &VBELN&"
PROBLEM.
The Workflow is getting triggered. I am also getting a mail "Workflow Triggered for" in my mailbox but the &VBELN& is missing from the header.
I have set the IMPORT EXPORT flag of the WF CONTAINER "VBELN"
Please Help.
Edited by: Deepankar.B on Feb 22, 2011 4:08 PM
Edited by: Deepankar.B on Feb 22, 2011 4:10 PMYou wouldn't use a SMA as an assistance class - but refer to one within it.
I would use Shared Memory Area classes - but I'd also build a SMA that could talk across multiple application servers.
Thomas Jung proposed this in a forum reply some time ago.
It shouldn't be too difficult to use RFC's to access the content of SMA's in multiple app servers - ensuring synchronisation across multi app servers. I've not yet had the need, so haven't attempted.
The long polling in 7.02 apparently uses this approach, so in a 7.02 system there may even be standard components/ SMAs that you could use.
I do not think global areas in FM's are available across sessions - I don't think you could use that as a data transport. -
Problem with compiling STL using program with Forte C++ 6 update 1 in compat mode
I try to compile SGI STL using program with Forte C++ 6 update 1 and I get an errror
ld -L/opt/SUNWspro/WS6U1/lib -liostream test.o -o test
Undefined first referenced
symbol in file
__0oNIostream_initctv test.o
__0oNIostream_initdtv test.o
Iostream_init - declared as a static class CC4/iostream.h, but nm libiostream.a produce
__1cNIostream_init2T6M_v_
__1cNIostream_init2t6M_v_
and program can't link.
What's wrong?
Thank you for any commentsHi!
I experienced the same problem and the solution looks like the following: in sunpro6.mak file there is a variable STL_INCL that has the following value: -I. -I${PWD}/../stlport
Change that to -I. -I${PWD}/../stlport/SC5 and the problem vanishes. The reason is that stlport/SC5 contains files *.SUNWCCh which are used by SUNpro C++ compiler as standard headers and contain correct STLPort namespace information.
Regars,
Art -
Process chain execution using program
hi,
i want to run process chain 10 times using a program.
can any one tell me how to write a program in pc in order to run the chain 10 times.
any example of running the process chin using program .any nice code will be really useful
please suggest me.
i will assign pointsHi Venkat,
Go to SE37 input CHAIN F4 then you will get various function module that can be used for process chain.
IN you program call the function module RSPC_CHAIN_EXECUTE_REMOTE pass the required parameters and exceute.
Test throughly in DEV system before moving to PRD. I have not used this earlier.
Hope this helps.
PV -
How to pass container.index to javascript method?!?
Hi folks.
I have a netui:anchor, within a repeater. When the user clicks an anchor, I
need to know exactly which one it is, within the many that might be present
in the repeater. Hence I plan to pass the container.index to a javascript
method and then set a hidden field in my form, from within that method.
I cannot seem to pass container.index to my javascript method, however. Has
anyone done this before? Please help!
Thanks!Hi,
You should be able to achieve this using the netui-data:getData tag.
This tag is capable of binding the value of an xScript reference to an attribute in the pageContext. Having put the value in context, you should be able to set it anywhere.
sample :
<netui-data:getData resultId="idx" value="{container.index}"/>
should place the value in pagecontext, access this by
<%
pageContext.getAttribute("idx");
%>
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/taglib/www.bea.com/workshop/netui-tags-databinding-1.0/getData.html
- Anders M. -
Pass container object to testStand via queue
Hello,
I try to use queue mechanism to pass container data from labVIEW to TestStand.
In TesStand I create a queue, lunch VI and waiting for incoming queue element.
In LabVIEW I try to send some data to TestStand as container (cluster).
Before this, I tried to pass numeric data and then everything was OK. Problem is only with container.
In TestStand I created custom type. Can someone help me with this issue.
Thanks in advance and best regards.
Solved!
Go to Solution.
Attachments:
ts1.JPG 113 KB
LV1.JPG 140 KBHere you are. keep in minde, that this is only "testing" version.
Attachments:
Queue_test.vi 21 KB
Queue-testowanie.seq 9 KB -
Hello,
HAve a requirement in which i will need to pass pernr from a normal program to an HR program, I am using a submit program for the same, how do i default the selection screen of my HR program with the pernr number i pass from my normal program ?sorry just landed up with the solution, thanks
-
Using program RSTXSCRP to import FORM not successful
hi experts:
I have problems when import FORM using program RSTXSCRP.
message is below:
Transport object FORM YCN_TEST is being processed
Language vector used: DEFISNL
Original language was set to E
Definition E imported
Original language E imported
WARNING: The following error occurred when object was activated:
Form YCN_TEST does not exist
Object imported but not activated
001 warning message(s) appeared during importHi
It seems your form YCN_TEST is not active .check it
and see that correct parametrs are to be passed to the selection screen of the program RSTXSCRP. it will import correctly. first impor the same to desktop.
and then run the same program in other client and EXPORT the same
it will work.
Reward points for useful Answers
Regards
Anji -
Error - Create chemical using program
Hi All,
I am trying to create a chemical using BO EHFND_CHEMICAL using program. Referring the sample code listed in 'Navigating to BOPF' blog series.
I have passed ROOT node and BI_CHEMICAL nodes. But I am getting error 'Mandatory node ROLE is missing'.
When I tried to add ROLE node , in the code its giving errors like 'Mandatory node ROLE is missing' OR can not create, source object does not exist'.
I went through the node structure for the BO. In it we have Root - > Revision -> Role.
So my query is how to pass information for ROLE node? We need to add REVISION node also?
If anybody can guide, will be really helpful.Hi Shubhada,
The problem is that determinations are creating instances of some of the nodes. A determination is creating an instance of the REVISION node, but without the ROLE subnode instance—despite that the cardinality is 1:1…n. This results in the error Mandatory node ROLE missing.
The problem can be resolved by making two calls to the MODIFY method of the service manager. Create only the ROOT node instance with the first call, and the determinations will create additional node instances, including the REVISION node instance. Next get the key of the REVISION node instance, and use it to create an instance of the ROLE subnode by calling the MODIFY method again. Finally, commit the transaction by invoking the SAVE method of the transaction manager. Following is a code sample:
"Create the ROOT
CREATE DATA lr_s_root.
lr_s_root->key = /bobf/cl_frw_factory=>get_new_key( ).
lr_s_root->chm_nature = 'M'.
APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod>.
<ls_mod>-node = if_ehfnd_chm_c=>sc_node-root.
<ls_mod>-change_mode = /bobf/if_frw_c=>sc_modify_create.
<ls_mod>-key = lr_s_root->key.
<ls_mod>-data = lr_s_root.
CALL METHOD me->mo_chm_bo->mo_svc_mngr->modify
EXPORTING
it_modification = lt_mod
IMPORTING
eo_change = lo_change
eo_message = lo_message.
FREE lt_mod.
"The REVISION node instance was created via a
"determination. Get its key; it's needed to
"create the ROLE node instance.
lt_change = lo_change->get_changes( ).
READ TABLE lt_change ASSIGNING <ls_change> INDEX 1.
<ls_change>-change_object->get_changes( IMPORTING et_change = lt_node_change ).
READ TABLE lt_node_change
WITH KEY key1 COMPONENTS node_key = if_ehfnd_chm_c=>sc_node-revision
ASSIGNING <ls_node_change>.
lv_rev_key = <ls_node_change>-key.
"Create the ROLE node instance; it's mandatory but was
"not created in a determination
CREATE DATA lr_s_role.
lr_s_role->key = /bobf/cl_frw_factory=>get_new_key( ).
lr_s_role->chemical_role = '1'.
APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod>.
<ls_mod>-node = if_ehfnd_chm_c=>sc_node-role.
<ls_mod>-change_mode = /bobf/if_frw_c=>sc_modify_create.
<ls_mod>-source_node = if_ehfnd_chm_c=>sc_node-revision.
<ls_mod>-association =
if_ehfnd_chm_c=>sc_association-revision-role.
<ls_mod>-source_key = lv_rev_key.
<ls_mod>-key = lr_s_role->key.
<ls_mod>-data = lr_s_role.
CALL METHOD me->mo_chm_bo->mo_svc_mngr->modify
EXPORTING
it_modification = lt_mod
IMPORTING
eo_change = lo_change
eo_message = lo_message.
"Commit the transaction
CALL METHOD me->mo_chm_bo->mo_txn_mngr->save
IMPORTING
eo_message = lo_message
ev_rejected = lv_rejected. -
Low memory when using programs like iPhoto, office at the same time I have 4 GB ram
low memory when using programs like iPhoto, office at the same time I have 4 GB memory ram 3000 graphics 384 mb
Do you have a question?
-
new to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(
So where is LR trying to copy the files? Check your destination in the Import panel at the right.
-
The "recently used programs" section on the start menu has disappeared - how do I get it back?
On the start menu, the top few programs are those that I use frequently. There used to be a line, and underneath the line appeared the programs that I have most recently used (other than the frequently-used programs above the line). This bottom section has disappeared - how can I get it back? Running XP with Firefox 33.1.
This is a Windows question, not a Firefox question. Try using a search like www.bing.com/search?q=restore+recently+used+programs+windows+xp for help.
-
Hi everyone,
I had an iMac at home, but I've recently taken on some freelance work and they would like me to come into the office every now and then. I don't want to purchase a laptop and I know you can remotely connect to your desktop with an iPad, but I need to know if anyone has ever done that and successfully used programs like Photoshop on their iPad. Is there lag time when trying to use the software? Or is it just not possible and I should consider getting a laptop again?
Thank you!iPads are not exact laptop replacements. If you need to be using Photoshop, then buy a normal laptop computer.
Using a remote access app on an IPad or any tablet conputer to remote access your computer to operate will be quite a lot slower and clumsier than just having a laptop with a normal OS and Photoshop application installed. -
I have no other applications open, when I try to update with 9.2.0, but I receive subject error message. Task Manager shows NO Image Name called "Program Manager". There is nothing else running, that is obvious to shut down. Any suggestions, Please?
rickHave these posted suggestions worked for anyone? I have been using the same installation files on several different machines. Most machines upgrade just fine but, I have a few that receive this error and I cannot seem to get past it: "Some files that need to be updated are currently in use" "Program Manager" is the program that the installer is complaining about. Does anyone know what program "Program Manager" is? I'm assuming it is an Adobe file but, why would it interfere with one of my installations and not all of them?
I'm using the same installation files for all installs so, I don't believe that it could be my downloaded installation setup files.
Thanks so much in advance for your assistance -- -
Open note for S_ALR_87008272 using program RKAZUTR1
Hi Experts,
Please provide open note for S_ALR_87008272 using program RKAZUTR1, to run S_ALR_87008272 in Quality and Production client.
Thanks
NeerajaHi,
The t.code S_ALR_87008272 is used to maintain overhead percentages.
Once the percentages maintained in Development system, those percentages will come automatically via request number.
For that purpose you have to run this program RKAZUTR1 via se38 t.code with request number.
Regards
Ravi Polampalli
Maybe you are looking for
-
How to delete or add parameters in the list.
hi, can someone please tell me how to delete/ add parameters (the parameter list that is displayed in the Address Node). actually in my application i have to similar scripts. so i if can copy the whole script and make some changes in the list of para
-
ITunes no longer categorizing music
I just changed computers. All my music was backed up on an external hard drive. I downloaded new iTunes version and put my iPod files back into program files. iTunes is up and my iPod is recognized. Also put my old music files back in the proper my m
-
Cannot print to HP LaserJet 400 colorMFP M475dw after updating OS
I'm running a 2013 Macbook Pro, 2.4 GHz Intel Core i7, 8 GB 1600 MHz DDR3, OS version 10.9.4 (updated to this OS version 5 days ago, on July 2nd). For a little less than a year I've been printing to a HP LaserJet 400 Color MFP M475dw via wireless co
-
New document type for PR/PO
Hi, I have arequirement where the PO's and PR's are mapped from APO to R3. The requiremtn is the PO mapped should not trigger release strategy. But our release strategy is defined on Doc type/POrg/Value. So, we suggested for creation of new document
-
Business case to move from Oracle BPM 10.3g to BPM11g
We are a very large organisation doing our business process implementation using Oracle BPM 10.3g. Currently we are working on only 3 processes, but over next couple of years, we would have at least 10 LIVE processes. As an organisation, we are wonde