Trigger a workflow in fbcj on save of cash journal.
Hi All,
Have a requirement to trigger a workflow on saving a cash journal. We found out the business object "bus2023" . But it does not have any events in it which can be used in the workflow. i have searched through the forum and havent found suitable solutions.
Looking forward for the solution.
Thanks in advance ,
Regards,
Kavya.S
Hi,
Track the event (if any ) which is getting triggered on saving the cash journal.
use tcode: SWELS and SWEL. The event might be in different business object.
If there no event is getting triggered, search for user exit/Badi and from there
you can trigger your workflow directly or by using event ( custom event that you need to create).
Or if you know the change document you can trigger the event through customization (SWEC)
Regards
Kedar
Similar Messages
-
BAPI or Function Module for FBCJ Posting of Parked Cash Journal Entries
Hi Experts,
A blessed day.
We have one requirement that requires the creation of Batch Program that will post all the outstanding (status is set in yellow) Cash Journal Entries in transaction FBCJ.
Hereu2019s the issue, to satisfy the requirement, we either use BDC/Call Transaction OR use a Function Module/BAPI.
I would prefer to use Function Module/BAPI. However, currently thereu2019s only one BAPI available for FBCJ (BAPI_CASHJOURNALDOC_CREATE). This BAPI can only create cash journal entries BUT DO NOT change the cash journal entry for posting. The Function Modules (Function Modules of FCJ_POST* series) cannot be used for background processing because of GUI pop-ups. These FMs also donu2019t have the Exceptions functionality for error handling and would not report the Accounting document created from the Cash Journal Entry posting.
The problem with using BDC/Call Transaction is that it should incorporate line item selection of the cash journal entries, which I havenu2019t tried yet. Iu2019m not sure if this is possible and if itu2019s possible, how much complexity will it incur.
If you have the availability, would it be possible if you can help us explore on the potential solutions for this requirement?
Thanks so much. God bless!
Cheers,
ianneYou can use RFBIBL00 program for FB01 postings. Go through the program help on how to use this program.
This program requires a file to be on application server in a certain format.
You may also refer the program RFBIBLT0 on how the file format should be.
Hope this helps.
Thanks,
SKJ -
Hi,
I need to Trigger the workflow for FBCJ Transaction in UWL in portals.
A user will save the document then a workflow should be triggered and Posting should be done through diff user using the workitem.
1) Do we have any Standard template for this workflow.
2) else steps to achieve this through workflow
Thanks for the help in advance.Hi Lokesh
First create a event in that business object.
use this fm 'SWE_EVENT_CREATE' to trigger that event.
i hope , you should use this fm in the badi of that tcode (FBCJ) .
reward if useful,
Regards ,
Sabari -
How to Trigger a Workflow from ABAP Webdynpro
Hi All Gurus,
I have the following urgent requirement, my client is implementing HR and there is a requirement, where is a ABAP Webdynpro component in which we have integrated a Adobe Interactive Form. When the user calls this from through Portal and fills out the relevant data and submits it, a Workflow in the backend ECC system should lauch,
I am not familiar with, this concept although I have worked in Workflow this is the first time I am interfacind with ABAP Webdynpro and Adobe Interactive From.
Can you please let me know in steps what needs to be done to make the workflow trigger for my scenario and also the specific settings to be done in the bacckend.
Regards,
Pratima JainHi,
If you are using HCM Processes and Forms, the Workflow and form are not directly related, thats true.
But the method in the task calls the corresponding webdynpro application which responds to the action triggered by the user in turn to trigger the workflow and update the data in the HR Master Data.
There are 3 layers 1. UI (webdynpro which launches Adobe Interactive form based on ISR Framework)
2. Workflow
3. Backend framework (used for retrieving F4 helps, default values, save data in the infotypes).
for more documentation, please refer it on help.sap.com.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/82/b6b94278560c31e10000000a1550b0/content.htm
hope this helps.
Best Regards,
Saujanya. -
How to trigger GP workflow through ABAP Program.
Hi All.
i have one scnerio , i want to create BOM through Custom Ztransaction that will be developed in ABAP Modulepool.
User will create BOM from this ztransaction through Transactional Iview in PORTAL,Once the user save transaction , i want to trigger a GP(Guided Procedure ) workflow,from ABAP Program.
is it possible to trigger GP workflow?
if yes how to do it , please suggest the way out.
Regards,
Shyam.Hi lingana,
As u see in my requriment that, Workflow is not designed within SAP , But the Workflow will be designing
in SAP Netweaver, its a GP Workflow. And Ztransaction(Developed by ABAP) will be seen by user through portal and
he save transaction on PORTAL, In backend ABAP program will run , and after meeting certain condition, it should create
or(Initiate) GP workflow(process).
So my question is , how ABAP Program will call GP workflow, How the connection will be made in between ABAP Code and GP workflow framework.
If any doubt regarding requriment let me know,
Regards,
Shyam. -
How to trigger the workflow from the excel sheet
hello friends,
my problem is that i should trigger the workflow from a excel sheet which contains a list of appraisers and appraisees.how to do this. can anyone help on this.
thanks.Hi Murthy,
If you are asking if a workflow can be started on R/3 while in Excel - may be possible if you can develop some fancy macros that can make RFC calls to an ABAP function module. I won't even attempt to travel that route.
Save the excel sheet as CSV or Tab delimited file and process it using ABAP. You can use the WAPI function module SAP_WAPI_CREATE_EVENT (Rel 4.7)to start the Workflow by raising the relevant event. In earlier releases, see FM SWE_EVENT_CREATE.
Please do keep in mind there could be performance and response time issues for dialog users of the system if you are going to start several workflows using a report program.
Cheers,
Ramki. -
Trigger a workflow from ABAP Webdynpro
My Scenario:
Step 1: When a user hits the SAVE button on the webdynpro form, check if that data is consistent only and trigger a message(I have a BAPI to handle this check).
Step 2: If the data is consistent, then trigger a workflow to send an alert to an agent along with the data user entered on the form.
Step 3: AGENT shall review the data(Same form from step 1 should appear here) and will have the option to SUBMIT / POST or REJECT. If SUBMITTED, data will be posted to R/3(I have a 2nd BAPI to handle this). If REJECTED, send an alert back to the USER who entered data in step 1.
I checked lots of threads from the forum, none gave me a complete idea. Can any one give me a good documentation to trigger workflow from webdynpro to handle my requirement.
I am new to webdynpro.
I checked this blogs & articles also...
/people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf
Thanks a lot in advance.
Best Regards,
KiranHello Kiran,
I slightly misunderstood you requirement earlier. But if I am not wrong this time, here is what you need to do:
1) The Web dynpro form that you are creating is only for data entry purpose. But the agent who is going to review the data will need an access to this form. So this means that you need to save the content of this form to the database and provide a URL in the workflow workitem which the agent can use to open the web dynpro application with the form data on it.
2) To access the correct form, you need to save the form data in a Z-table with a GUID attached to it. Generate this GUID using GUID_CREATE function module. In the window controller of the Web dynpro component, there will be a handleDefault method where you can read the parameter'GUID' from the incoming request and use it to read the form data from the database to display the form.
3) You can use Object Oriented programming approach for creating Workflow. Check the following article to learn how to do that:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0409e6c-d213-2d10-3cb6-c12d417626c1?quicklink=index&overridelayout=true]
4) Create a Z-class and use this class as object type in your workflow (instead of BOR object).
5) In the constructor of this class, pass a parameter GUID, which would be passed when you create an object of this class in the Web Dynpro forms "OnActionSave" method.
6) Create a method in this class which will do the task of calling the BAPI to save the Acct Document. This method will be used in a Background task in a workflow step (after the agent approves the workitem).
7) Create a method in the class which generates the URL to the webdynpro application with the GUID passed as parameter.
(for eg: http://urltoserver/appname?GUID='guidoftheform').
8) In your save method of WD application, call the method to raise event that triggers the workflow (using OO)
lv_guid = '04AE4546EED7101DE10000000A424026'. "use GUID_CREATE
lv_objtype = 'ZWFCLASS'. " create a Z-class of your own
TRY.
CALL METHOD cl_swf_evt_event=>raise
EXPORTING
im_objcateg = 'CL'
im_objtype = lv_objtype
im_event = 'FORM_APPROVE' " this event needs to be defined in ZWFCLASS
im_objkey = lv_guid.
CATCH: cx_swf_evt_exception.
ENDTRY.
Please read through the workflow using Object Oriented document in the URL that I have mentioned above before you read through these instructions.
There would be a way to do this using BOR objects, but this is the way that I have tried and tested to use trigger workflows from Web dynpro applications.
Best Regards,
Gaurav
Edited by: Gaurav Salkar on Apr 6, 2010 6:13 PM -
Dear Viewers,
I have a requirement of workflow in FBCJ cash journal. User will enter the details and save it. After that his supervisor approves. Then it has to go to Finance department, Finance department posts the document,
Could any one suggest me how to use this in FBCJ-cash journal.
Thanks
AswinHi ,
In FPCJ there is no room for park and post as we have that in FI for FI invoice .
If the requirement is genuine then in that case what you can do is :
You can develop a screen where in you can add all those functionality of park and post , like one prepares and other approves .
Finally when the finance department approves then you can use the BAPI " BAPI_CTRACPAYMINC_CREATE" , to finally post the document .
As the screen would be a development for you , so you can play around with customised requirements as desired .
hope this suffices the purpose .
Cheers ,
Dewang -
Trigger GP workflow through ABAP
Hi,
i have one scnerio , i want to create BOM through Custom Ztransaction that will be developed in ABAP Modulepool.
User will create BOM from this ztransaction through Transactional Iview in PORTAL,Once the user save transaction , i want to trigger a GP(Guided Procedure ) workflow,
from ABAP Program.is it possible to trigger GP workflow?
if yes how to do it , please suggest the way out.
Regards,
Shyam.Hello,
To trigger the workflow from an ABAP program, there are function modules like
SAP_WAPI_CREATE_EVENT & SAP_WAPI_START_WORKFLOW
which can be executed.
Hope this will help.
Thanks,
Samson -
How to capture the status of a transaction to trigger the workflow
Hi,
I want to trigger the workflow whenever the user changes the status.How can i capture the status.I gone through some forms,there it has mentioned that with the help of SWEL transaction we can find the status,but we can trace the events with that,I want to trace the status.How can i acheive that.
Thanks & Regards,
Asmitha.Hi,
im using the SAP R/3 4.6C and trying to launch automatic trigger upon BO FIPP post method. I have configured Instance and Type Linkages but nothing ever happens. Whereas i tried this in SAP IDES and it was working fine.
What is or could be the problem?
Best regards
Laurynas -
Check for duplicate invoices and trigger a workflow
Hello All,
I have a requirement to check for duplicate invoices in AP(Accounts payable) and trigger a workflow when duplicate invoices are found. I a not sure how to do any of the above. Please let me know if you have any information on:
1) Checking for duplicate invoices in AP
2) Trigger a workflow
Are there any standard workflows that checks duplicate invoices?
Thanks.
--MithunHi MD,
I doubt if system gives an error on FI side when a duplicate invoice is posted.
I feel you would require a BAdi for it, where you can call your WF using FM SAP_WAPI_START_WORKFLOW.
Hope it helps.
Aditya
P.S also ask your Func Consultants, if there are any settings in the Customization, where you could capture Inv Dt, Inv Amt, Vendor, Company code.
Edited by: Aditya Varrier on Oct 15, 2008 9:38 AM -
Trigger a Workflow when a date is reached in SharePoint Online
I have created a simple list workflow (SharePoint Online) which emails a user, informing them a Document's
Target Closure Date has been reached. The workflow works fine when started manually.
I want to trigger the workflow only when Target Closure Date matches today's date.
The best solution seemed to be to use a Retention Policy. So I went to:
> Library Settings
> Information Management Policy settings
> Document content type
> ticked 'Enable Retention'
> Time Period: Target Closure Date + 0 days
> Action: Start the relevant workflow.
This worked only on two occasions - both were Saturday mornings, at 3.30am and 4.30am. I can see
in this MS article the Expiration Policy timer job only runs weekly on SharePoint 2013, so can anyone confirm that the schedule is the same in SharePoint Online?
If so, is there any way in SharePoint Online I can trigger a workflow when a date is reached?
Thanks for your help,
AlyoshaHi Alyosha,
According to your description, my understanding is that you want to send an email to a user when the Target Closure Date was reached in SharePoint Online.
The timer job of Retention Policy runs weekly in SharePoint Online, so we cannot use the Retention Policy to trigger the workflow.
As a workaround, I recommend to create a workflow associated with the library to send the email when the Target Closure Date was reached.
Here are the detailed steps:
Create a workflow associated with the library and set the workflow to start when an item is created.
Select Pause until Date to set the workflow to pause until the Target Closure Date.
Select Send an Email.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to trigger a workflow using generic object services?
Hi Experts,
Let me know on how to trigger a workflow using generic object services.
My requirement is to trigger the FI document reversal document using Object services.
Any info or docs relevant to this, please share with me..
Thanks,
Dinesh.Dinesh,
First of you need to check if the transaction has a BO (in released status) published to use the GOS.
These are the pre-requisites for GOS
http://help.sap.com/saphelp_46c/helpdata/en/94/aa532cddd511d289860000e8216438/content.htm
Once done.. check that you have valid workflow linkages active for this BO.
Now when you click on the 'start workflow' the system will show all relevant workflows for the BO to choose from and to start. -
Can we trigger a workflow from e-mail create event?
Hi Experts,
My scenario is very simple-Whenever a mail is send for approval to the approver,two workitems-Approve or Reject should be created in the Appover's inbox.On clicking on any one workitem, corresponding mail for approval/reject should be sent.
My only doubt is how to trigger an event which will start the workflow. Also it should be triggered only when the mail is sent to a particular person-say admin and not to every individual.
Can you please guide me on this since I am new to workflows?
What I am looking for here is:-
a) The definition of E-mail creation event, which can trigger my workflow.
b) This definition has to be specific. I mean workflow should trigger only when a mail is send to admin.It should not trigger everytime a new mail is created in the system.
c) I thought that the business object for E-mail is activity-BUS2000110.But again activity can be anything-E-mail,task,telephonic conversation.Which business object should be used here?
Please give me some pointers on this.
Thanks and Regards,
RohitHi Aditya,
Atlast somebody replied to my thread. Since yesterday I have created 3-4 threads and didn't got any single reponse.
Anyways, my query is:-
how to trigger the workflow? I know we need some event to trigger a workflow. Now how to generate this event, when the user is simply sending an e-mail to the admin for some approval request? How can an e-mail trigger an approval workflow in the background?
Any pointers/suggestions?
Thanks and Regards,
Rohit -
HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?
HELLO THERE ,
CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?Hello Neon,
If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
CALL FUNCTION 'SWU_START_WORKFLOW'
EXPORTING
task =
* LANGUAGE = SY-LANGU
user =
* SENDER_ID =
* IMPORTING
* RETURN_CODE =
* WORKITEM_ID =
tables
* CONTAINER =
* MESSAGE_LINES =
attachment_list =
A workflow can also be triggered by and event which is in turn triggered by a program.
By the FM, SWE_CREATE_EVENT
Example:
w_key = 'Connie'.
w_creator-otype = 'US'.
w_creator-objid = 'SAPDEV02'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'YH_BUDDIES'
objkey = w_key
event = 'event'
creator = w_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 =
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.
ELSE.
WRITE: / 'EVENT TRIGGERED'.
ENDIF.
COMMIT WORK.
Hope it helps you.
Regards
Indu.
Maybe you are looking for
-
I work with a child who has physical disability and cannot move his neck. The ipad needs to be eyelevel in order for him to see it, but he also is not able to raise his hand and would need mouse access... is this possible?
-
How to create a software tutorial with iMovie
Hi all, I need to create a video tutorial on OpenOffice for college students, and I wonder how to do it with iMovie. What I need is to show a continuous screen shot of what I need to do to perform some action in OO while voicing over the explanation,
-
"java.sql.SQLException: The url cannot be null"
Hi, I started to use the torque in my last project but when I try to insert new data to the db(i am using MySQL) I get the following error "java.sql.SQLException: The url cannot be null". Is that error familiar to anybody ? Regards RCY
-
I used migration assistant from a macbook pro to a new imac and now when I launch photoshop ps6 I get an error asking "we've encountered the following issues. The installer failed to initialize. Please download adobe support advisor to detect the pro
-
Ever since the upgrade to 1.0.1 I havent been able to sync with my Yahoo! address book. I get this error "Itunes could not sync with Yahoo! Address Book because an unknown error occurred (4). Please try again later." I've tried reentering my yahoo na