Table update from workflow
Hi,
I have a requirement to start workflow when table entry or modification is made. And in one has to authorize for the data. then only data should be saved in data base. if manager rejects data should not be saved in data base.
What i have done till now is i have generated a table maintainence and created and new (using business objects )event to raise. (writing a FORM). So when ever we create new table entries event is raised. And i am using this event to trigger my workflow.
I have two problems
first one. this event is only getting trigged if i make entry to table through se11 and create new entries option. if i am using a program to update the table then event is not getting trigged. Is there way i can make this event to trigger even if i insert data to this table from any where?
Second problem
i want to complete my workflow. based on manager decision only database should be commited or rolled back.
if any one needs further details regarding problem reply.
Thanks in advance
Mohan
Hi,
I also think you should use a temporary table where you store the data you want to insert into the database before the approval is done. You create the maintenance view on this temp table and start the workflow from there. Once manager approves the new entry / change, workflow automatically updates the permanent table and deletes the record from the temp one.
You can use the change documents, maintenance view event routines or maintenance view screen logic to trigger the WF. But I`m not aware of any tools to capture a database change done by a direct update, so if you also have programs directly updating the database table, you have to trigger the workflow start event explicitely in those as well.
Regards,
Krisz
Similar Messages
-
Table Updation through Workflow
Hi All,
I have a scenario in my project in which a workflow is to be triggered when an entry is made in a table.
Now this workflow has to read some data from some tables and then update some other tables.
My doubt is it possible through workflows to update the tables? If yes is it advisable.Also how will the
updation happen? Should methods for updation will be written in BO methods? Or should a task be called
which does the same.
Please suggest,
Saket.Hi Saket,
Yes it is possible!
To trigger workflow from table updates you can use table level events. Refer to
Re: WorkFlow when Data is changed in Table or program
Also you can update a table from a workflow. To do this, create an Activity step in workflow. In this, you can call a BO method. This BO method would store the code to update the database table required.
Just take care of the bindings between the method -> task -> workflow container.
Hope this helps!
Regards,
Saumya -
Table update from text file on server
How do I get a table in dreamweaver to update from a text
file thats on the server it will be posted on? Do I need to use
some sort of weird coldfusion or asp.net, or can i do it in basic
html. It would be sweet to make happen for my portfolio news
section ... thanks!Hello,
What you need is to know the structure (fields) of your internal table LS_BKPF at runtime.
The standard SAP class CL_ABAP_TYPEDESCR contains Methods to describe not only repository structures but also variables used in your ABAP program.
DESCRIBE_BY_DATA : Description of data object type
DESCRIBE_BY_NAME : Description of object type using relative/absolute names
DESCRIBE_BY_OBJECT_REF : Description of object type using reference
DESCRIBE_BY_DATA_REF : Description of data object type using reference
Example on how to do this can be found here :
[http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1687263150DB21033411053326729243End?blog=/pub/wlg/2071|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1687263150DB21033411053326729243End?blog=/pub/wlg/2071]
After you have retrieved the fieldnames of your internal table at runtime you can add them in the first line of your dataset.
Success.
Wim -
Hi Frds,
I am updating the Order Status from Workflow. So the Status update (or Order Changed) is save with Workflow ID. I need to insert UserID instead of workflow ID. Please help me out of this.
Thanks
ImranHi Imran
With the very few details available on your process, the workflow design and the "Order", all I can suggest is that:
1) In your workflow definition, go to the step which sends the user decision, in the binding FROM the TASK TO the Workflow, set _ACTUAL_AGENT to a workflow container element , say DECISION_AGENT (of type SWHACTOR)
2) Assuming that the next step in APPROVAL branch is setting of the status, go the task ID of that Step -> make it a dialog step (remove the Background Processing check) -> set it's agent assignment to general task
3) Back in the workflow, set that STATUS SETTING step to Advance With Dialog under the details tab
4) In the control tab of the same step, in the agents section, set agent as EXPRESSION and the value as &DECISION_AGENT&
When a user approves the decision item, his ID will be stored in DECISION_AGENT
The status set will execute immediately (because of "Advance with Dialog") in the same session of approving as the user who approved is the same running this step now
The status will be set by the ID of the Approver
The above is hypothetical considering
1) You do not have dynamic parallel processing
2) Status setting happens immediately after the approval; as a first step in the approval branch
3) The Decision Task does not has "Confirm End of Processing" checked.
Regards,
Modak -
RBKP and BKPF table update from MIRO
Hi All,
I am using the BADI BADI_FDCB_SUBBAS01 to add a custom field in MIRO transaction. The added custom field is getting updated in RBKP transaction.
I also want to update the custom field data in BKPF table, but i dont know when the BKPF table gets updated in MIRO transaction.
Can you help me where the BKPF table will get updated. Is there any BADI for updating the custom fields in table BKPF via MIRO?
Thanks and Regards,
VijayHi Baskar,
I have done this thing from MIRO transaction to update BKPF table. Please check the below code.
METHOD if_ex_badi_fdcb_subbas01~put_data_to_screen_object.
CONSTANTS:
c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
fill interface attributes from importing paramters
me->if_ex_badi_fdcb_subbas01~invfo = im_invfo.
ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
IF sy-subrc = 0.
<fs_bkpf_xref1> = me->if_ex_badi_fdcb_subbas01~invfo-zlet_number.
ENDIF.
ENDMETHOD.
METHOD if_ex_badi_fdcb_subbas01~get_data_from_screen_object.
CONSTANTS:
c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
fill export parameters from interface attributes
ex_invfo = me->if_ex_badi_fdcb_subbas01~invfo.
ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
if sy-subrc = 0.
<fs_bkpf_xref1> = ex_invfo-zlet_number.
endif.
ENDMETHOD.
After passing the data through field symbols, then you need to update the BKPF table using the BADI AC_DOCUMENT. Refer the below code.
METHOD if_ex_ac_document~change_after_check.
variable declaration
DATA: lv_let_number TYPE zisr_let_number,
lv_field TYPE char18 VALUE '(SAPLMRMP)xaccit[]',
lv_let_field TYPE char27 VALUE '(SAPLMR1M)RBKPV-ZLET_NUMBER'.
Field symbol declaration
FIELD-SYMBOLS : <ft_accit> TYPE accit_t,
<fs_accit> TYPE accit,
<fv_let_number> TYPE ANY.
Constant declaration
CONSTANTS : lc_miro TYPE sytcode VALUE 'MIRO'.
Check for transaction code MIRO
IF sy-tcode EQ lc_miro.
ASSIGN (lv_field) TO <ft_accit>.
CHECK sy-subrc EQ 0.
ASSIGN (lv_let_field) TO <fv_let_number>.
CHECK sy-subrc EQ 0.
Assign the letter number to BKPF table field XREF1_HD
LOOP AT <ft_accit> ASSIGNING <fs_accit>.
lv_let_number = <fv_let_number>.
<fs_accit>-xref1_hd = lv_let_number.
ENDLOOP.
ENDIF.
ENDMETHOD. -
Table update from T-SQL question
Ok, I have a T-SQL query that I'm trying to convert in Oracle SQL.
Here is the T-SQL:
Update E
Set field1 = 'some text',
field2 = NULL
from table1 E
Left join table2 A
On e.fieldx = a.fieldx
and e.fieldy = a.fieldy
I think I'm close, but I'm not sure about the left join:
Update table1 E
set (field1, field2) = (
select 'sometext', NULL
from table2 A
where a.fieldx = e.fieldx
and a.fieldy = e.fieldy)
What can I do to fix this?
Thanks.The equivalent to your T-SQL Query would be:
Update table1 E
set (field1, field2) = (
select 'sometext', NULL
from table2 A
where a.fieldx (+) = e.fieldx
and a.fieldy (+) = e.fieldy);
But since you don't do anything with the columns from table A and it is left joined, you can simply write:
Update table1 E
set field1 = 'sometext', field2 = NULL ; -
CUA user master table updates from child system
Hi Experts,
In my system although there are roles assigned to users in child system they are not showing up in CUA for few user.
Is there any program in CUA which i can use to update the user master tables for only a limited set of users from child systems.
Regards,
SandeepHi Sandeep,
Just want to check below queries....if this solves your problem..
Is these are the new systems assigned to CUA or moved from other CUA as you said that role assignment is available in child system but not in CUA ? Another thing that I want you to check the User Group assigned to user in child system and in CUA.If user gorups assigned to users are different in CUA and child system or particular group is missing in any one of the system then idoc will not move. Also check the Output device type along with address data...Any mismatch of these will stop the idoc.
After that run the SCUG for all users, in CUA as suggested by akshay, this you can run for all 10 child system from CUA, no need to go in every child system..... -
BADI/User Exit for custom table update from Delivery
Hi
Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
Thanks in Advance for your immediate help .Hi Joseph,
See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
I hope this helps you
Regards
Eduardo -
Hi All,
I have couple of fields in my screen,based on the entries made on these two fields i will have have to
update my database table with the same entries.
Please help as how my PAI should be..
Thanks,
RahulHi Rahul,
Pl see
Data: screen_input1, "these are the field names defined as well on screen
screen_input2, "screen field name where data would come after entering on to screen
input1,
input 2.
in PAI module
input1 = screen_input1. "trf the data to the field reqd by you.
input2 = screen_input2.
UPDATE <database table name>
SET field1 = input1
field2 = input2
WHERE condition to select the right record for updation. -
Update internal table data from table control
Hi GURUS,
I need help regarding one of my requirement.
I need to display data from the internal table on the screen and when the user selects a record/multiple records from screen and clicks on approve button i need to update one of the field from N to Y in the corresponding Ztable. Once the record is updated from Ztable , that should no longer be visible for the user on the screen.
I am using table control wizard to display data. I am able to update the Ztable, but that record is not refreshing from the user screen. Any suggestions would be approved.
Also please let me know if table control is the best way to do this/ alv grid control??hi
REFRESH CONTROL Control-Name FROM SCREEN '0100' -> use this command to refresh the table control
to know more, read into
https://forums.sdn.sap.com/click.jspa?searchID=2934287&messageID=673474
Re: URGENT HELP REQ IN TABLE CONTROL WIZARD
if helpful, reward
Sathish. R -
FAGLFLEXT table is not updating from FAGLFLEXA
Hello Experts,
In thru which program the summarisatin table of FAGLFLEXT getting updated from table FAGLFLEXA .
We've updated some filed values like prctr , cost center to FAGLFLEXA but the same cumulative amount is not showing in the table period wise and there is a difference in balace sheet.
Pls advise, how to generate the table FAGLFLEXT to get my overall balances or how to run this table to go and do their own std calculations and updation.
Pls advise.
thanks & regards
sankar.Thanks
-
How To Update A Table View From Client Side !!!!
Hi I would like to update a table view from the Client Side. So that the user can keep updating the relevent data on the client and when they have finally finished they can press Save so the entire page is then sent to the Server.
Does anyone know how to do this, I guess u have to use the EPCM, I have just started on it and would really appreciate some Help.
Thanks,
Emmanuel.This is what I found :-
There are a couple of ways to approach this.
1) load the excel spreadsheet into the database "as is". You can use interMedia
text to convert the .xls file into a .htm file (HTML) or use iFS (see
http://technet.oracle.com/
for
more info on that) to parse it as well. InterMedia text will convert your XLS
spreadsheet into a big HTML table (easy to parse out what you need at that
point)
2) Using OLE automation, a program you write can interact with Excel, request
data from a spreadsheet, and insert it. Oracle Forms is capable of doing this
for example as is other languages environments. In this fashion, you can remove
the "manual" and "sqlldr" parts -- your program can automatically insert the
data.
3) You can write a VB script that uses ODBC or Oracle Objects for OLE (OO4O) in
Excel. This VB script would be able to put selected data from the spreadsheet
into the database. We would recommend OO4O. It provides an In-Process COM
Automation Server that provides a set of COM Automation interfaces/objects for
connecting to Oracle database servers, executing queries and managing the
results. OO4O is available from
http://technet.oracle.com -
I had an interview question that is:
How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
Set up steps so inset, update or delete operation takes place across the servers.
It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
Also please describe would it be different for SQL Server 2012?
If so, then what are the steps?I had an interview question that is:
How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
Set up steps so that inset, update or delete operation gets done correctly across servers.
I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps? -
Calling Batch input from Web Dynpro - any alternatives for table updates?
Hi!
I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ? We are not supposed to do direct table updates.
Anyone who have struggled with the same issues and found a solution??
regards, TineHi,
as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
Thanks,
Chandra -
GL Approval Action History from Workflow tables
Hi All,
I have prepared the query to retrieve the Journal Approval Action History from Workflow tables. Below is the Query. This is the Form Personalization. In the Journal Screen i have attached the Menu Action History and placed this query for form personalization.
Now the problem is in GL_JE_BATCHES i have 80 thousand records. In the query which i have written i am getting only 1000 records. How can i achieve all the records.
SELECT DISTINCT gjb.NAME batch, default_period_name period,
wn.recipient_role approver,
DECODE (gjb.approval_status_code,
'A', 'Approved',
'I', 'In Process',
'J', 'Rejected',
'R', 'Required',
'V', 'Validation Failed',
'Z', 'N/A'
) status,
wn.begin_date approval_start_date,
wn.end_date approval_end_date,
wn.due_date approval_due_date
FROM wf_notifications wn, wf_items wi, gl_je_batches gjb
WHERE wn.CONTEXT LIKE
'GLBATCH%'
|| (SELECT item_key
FROM wf_items a
WHERE a.user_key = wi.user_key
AND a.item_type = 'GLBATCH'
AND ROWNUM = 1)
|| '%'
AND wi.item_type = wn.MESSAGE_TYPE
AND wi.user_key = gjb.NAME;
Can any one please suggest me how to proceed on this issue ASAP?
Regards,
Anjan.Hi Anjan,
You can try to set the FND: View Object Max Fetch Size to a value that would allow more data to be returned. However, be aware that this can cause performance issues.
Cheryl
Maybe you are looking for
-
I had an old account for my apple I.D and the email that i had expired, so I switched my apple I.D as my recent gmail, but it still asks me for my old apple I.D and password, what do I do?
-
Using icloud drive as a media storage site
i use both Adobe lightroom and iphoto ( now photos) for my pictures. Thus they comprise the bulk of my hard drive storage use. I am wondering if I can just store these in the icloud drive and erase them from my hard drive to free up space. I also hav
-
Automatic trim of too long strings
Hi, if I try to insert a too long string value into a VARCHAR column, I get the error ORA-12899. Is it possible to set the Oracle database so that too long strings get trimmed automatically? Thank you.
-
Flash Game hitTestObject Error
I'm new to ActionScript but I've been following Lynda tutorials and tried to tailor them to my game. I simply want to make my character at the top of the screen shoot at enemies below. The error I'm getting when I press the shoot button is "Parame
-
Safari 5.1.10 preferences does not open and then Safari quits
Safari Version 5.1.10. When I try to open "preferences" nothing happens, and then I get "Problem Report for Safari / Safari quit unexpectedly". Preferences worked fine earlier today.