Start a Workflow in User-Exit RGGBS000
How can I start a Workflow into the User Exit RGGBS000 for FI module?
Regards,
Ricardo
I tried this FM, it isn´t starting.
See:
CALL FUNCTION 'SWW_WI_START_SIMPLE'
EXPORTING
CREATOR = 'ricardov'
PRIORITY = '5'
task = 'TS99900005'
CALLED_IN_BACKGROUND = ' '
DEADLINE_DATA = ' '
NO_DEADLINE_PARAMETERS = ' '
IMPORTING
WI_ID = WI_ID
WI_HEADER = WI_HEADER
RETURN = RETURN
WI_RESULT = WI_RESULT
SWF_RETURN = SWF_RETURN
TABLES
agents = agents
DEADLINE_AGENTS = DEADLINE_AGENTS
DESIRED_END_AGENTS = DESIRED_END_AGENTS
LATEST_START_AGENTS = LATEST_START_AGENTS
EXCLUDED_AGENTS = EXCLUDED_AGENTS
NOTIFICATION_AGENTS = NOTIFICATION_AGENTS
SECONDARY_METHODS = SECONDARY_METHODS
WI_CONTAINER = WI_CONTAINER
CHANGING
WI_CONTAINER_HANDLE = WI_CONTAINER_HANDLE
EXCEPTIONS
ID_NOT_CREATED = 1
READ_FAILED = 2
IMMEDIATE_START_NOT_POSSIBLE = 3
EXECUTION_FAILED = 4
INVALID_STATUS = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Is there something more to put???
Thanks
Ricardo
Similar Messages
-
Triggering workflow using user-exits
Hi all,
can anyone tel me how a workflow can be triggered using user-exits??
thanks in advanceCall function module SAP_WAPI_CREATE_EVENT (with COMMIT_WORK = space) to create an event, and use the event to start your workflow (triggering event). Alternatively, you can start the workflow directly using the corresponding SAP_WAPI function module for that purpose. My recommendation is that you normally don't start workflows directly as it is a less flexible solution (or you have to build that flexibility yourself instead of using what you get for free with triggering events).
However, why are you asking this question? I started wondering after seeing you ask an almost identical question in [another thread|Triggering Workflow Using BADI; here. -
Hi all,
I need to start a Workflow at user exit RGGBS000.
I know that I need to do a copy of this program ( ZRGGBS000).
But I don´t know how to implement on there.
I only need to call this function like this:
*Calls Workflow
call function 'SWE_EVENT_CREATE_FOR_UPD_TASK'
exporting
objtype = 'QMSM' "Name of the object
objkey = l_objectkey "Key field
event = 'zwf_create_acao' "Eventacionador WF
creator = w_creator "User
tables
event_container = t_event_container "WF variables
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.
Is there a form to pass values to this exit?
How this works?
Thanks
RicardoIn RGGBS000 (or the copy thereof) you can maintain user exits that will be used in field value substitions of accounting documents.
Please see SAP help for all background information.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/5b/d231a843c611d182b30000e829fbfe/frameset.htm
Cheers
Thomas -
User exit or BADI to internal order (CO)
Hi,
I need a user exit or BADI to in order to shoot workflow, this user exit or BADI it must have I number of the order to be created to pass it to it to workflow
Regards
DayanaHi Dayana,
try user exit:
COOPA002 Customer function for master data maint. - internal orders
reward points if useful. -
Additional User Exits For Special Ledger Extraction
Hi,
I have a requirement to append 2 additional fields to data extracted for a 3fi_sl_xx_tt datasource.
I was planning on using the standard transactional data user exit. However a consultant we have on site has suggested there is another user exit available prior to the data being extracted. He suggests that this will allow me to retrieve the additional data at the same as all the other data and therefore prevent having to loop around what could be a large internal table in the standard exit.
Does anybody know if this is possible/feasible or even how I might check if an exit is avaialable.
Any help much appreciated.
Simon BaileyHi Simon,
Is the consultant referring to the user exit for populating into the FI-SL table rather than populating the extractor during the data pull from SAP BW ?
It is very likely he is talking about using the user exit for populating the FI-SL tables using the user exit RGGBS000 or ZRGGBS000(generally coped to a Z). -
SAP Standard Workflow for PR Release (with user exit)
Hi SAP WF Gurus,
Good day!
I just wanted to check with you if you have ever used a user exit in the activation of the standard workflow for PR (overall ( release. What we have is a two0step approval process wherein each level has a proxy/alternate approver. We used the available user exit to accommodate this customer requirement since the standard release would only allow us to define 1 approver as a prerequisite for the next level. We were able to execute this on the first level approval; however, we observed that the workflow is not anymore triggered (i.e. does not send work items to agents) for the level 2 release. My questions therefore are:
1. How to set up SWEC? I already executed SWELS and SWEL to check if the events are being created and event linkage is automatically deactivated after running into an error regarding the binding...My initial SWEC setup is for BANF BUS2105 RELEASED On Change. I am assuming that since the workflow was released from the first level, this should be the starting point
2. How to rectify the binding error? I already executed automatic binding in the WF header for the start events but still face it
Your inputs/comments are most welcome
Regards,
DeLoJust to add:
The error that I am encountering in the second run/cycle for the PR approval workflow is Import container contains errors (are any obligatory elements missing?)
Basically, WS20000077 will be executed if an approval level is seen. Once the approval is made, then the workflow is also completed. However, for multiple approvers, I only get to execute successfully the first level approval. The succeeding levels are encountering errors as stated above -
User exit for start-up date in transaction ib02
Hi all,
i need to change the start-up date in transaction ib02.
Is anyone know how to change it? Is there a user exit for this field?
thanks in advanced.
Dana.Hi Check out following exits
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
Thanks
Sandeep
Reward if helpful -
Passing data from user exit to workflow.
HI,
Please consider the below scenario.
In the user exit 'MV50AFZ1' I have created an include in the form 'USEREXIT_SAVE_DOCUMENT_PREPARE.'.
In this include based on some certain conditions a workflow is triggered.
I am using the function module 'SWE_EVENT_CREATE' to trigger the workflow.
Now the requirement is to pass some data from this user exit ('USEREXIT_SAVE_DOCUMENT_PREPARE') into the workflow.
Could someone please explain me how to pass this data from the user exit into the workflow ?
Thanks in advance.
With regards
AbhishekHello everybody,
Thanks a lot for your responses.
I am using the fuction module 'SAP_WAPI_CREATE_EVENT' to trigger the workflow, I am also able to pass the delivery number through the paramater 'OBJECT_KEY' of the function module in to the workflow container.
But I am unable to pass the line item number and the material number into the workflow.
I am following the below process:
I have defined a stucture ZST_DELIVERY containing the POSNR and MATNR in the data dictionnary.
I have pouplated the internal table of this structure inside my user exit.
Then I m passing the values of the above internal table into another internal table - 'Container''which is of structure type 'SWR_CONT'.
And I am passing the internal table 'Container' into the paramater 'INPUT_CONTAINER' of the function module 'SAP_WAPI_CREATE_EVENT'.
And in the workflow I have created a container 'ST_DELIVERY' which is of the structure ZST_DELIVERY and I have made it 'import', 'export.'
And in my business object ZLIKP in the custom event CheckPrice I have defined a paramater 'ST_DELIVERY' of the structure ZST_DELIVERY and I have made it multiline.
And in I have binded my workflow container 'ST_DELIVERY' and the ZLIKP paramater with the same name.
Please do let me know if the above steps that I have followed is correct.
Please do let me know if any further information is required.
Thanks in advance,
~Regards
Abhishek -
Need a user exit or enhancement point for loading start button in VT02
I have a requirement to write the code for loading start button and complete PGI as soon as loading start is checked in VT02(shipment transaction).
Please suggest....HI Venkata,
Below are the user exits and BADIs in the transaction VT01
Enhancement
V56UNUMB Shipment number allocation
V56UDLUP Obsolete as of 4.6C: Delivery Update on Delivery Routines
V56UCHCO Check shipments are complete
V56UCHCH Shipment processing: Check whether changes were made
V56TDLIF Filter Delivery Items for Shipment
V56SLDET Shipment processing: Leg determination
V56MVT04 Extensions for Collective Processing of Shipments
V56LOCID Shipment Processing: Determine Location Identification
V56LDELI Read Delivery Data for Shipment Processing
V56L0001 Status of Shipments for a Delivery
V56FSTAT Shipment processing: Activities when setting a status
MV56AINI Initialization of transaction control for transportation
V56USTAT User-individual definition of transportation planning status
V56USVDO Update new objects for transport
V56USVDP Preparation for updating new objects for transport?
V56AFCCH Shipment processing: Check function code allowed
V56AGTAR User Exit for Filtering Shipping Unit Calculation
V56ARCHV Customer-spec. checks for archiving shipments
V56ATKTX Change the number of lines for text input in shipment
V56BMOD Transportation processing: Field modification
V56DISTZ Shipment Processing: Determine Distance
V56FCOPY Shipment processing: Copy delivery data
Business Add-in
BADI_V56N User Exit Transport - Message Determination
BADI_LE_SHIPMENT BadI: Shipment Processing
Regards,
Radhika -
VA42 user exit to update contract start and end dates at Item level
Hi Experts,
I need to update contract start and end dates at Item level in 'VA42' transaction, for this i am using user-exit 'USEREXIT_FIELD_MODIFICATION' in the include 'MV45AFZZ'. i am able to display the data into item level through my coding but the data is not getting updated into 'VEDA'
Note: No need to change contract start date and end date in header level. Only at item level i want to change dates.
Thanks,
Sateesh.Thanks For your reply Vikram,
i tried with 'USEREXIT_MOVE_FIELD_TO_VBAP' user-exit earlier it self its not working. Can you suggest me any another way how we can achieve this functionality. modification of Contract start date and end date in only item level.
'USEREXIT_MOVE_FIELD_TO_VBAP':
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_MOVE_FIELD_TO_VBAP, Start A
*$*$-Start: (3)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZSD_CONT_DATE. "active version
DATA : lv_var TYPE CHAR10.
lv_var = '0040000219'.
if sy-tcode = 'VA42'.
IF VBAK-VBELN EQ lv_var.
VEDA-VBEGDAT = '20140502'.
XVEDA-UPDKZ = 'X'.
VEDA-VENDDAT = '20140602'.
XVEDA-UPDKZ = 'X'.
ENDIF.
ENDIF.
ENDENHANCEMENT. -
VA42 user exit to update contract start and end dates at header
Hi.
My requirement : In VA42, if a user changes a contract end date at item level, I want the change to be reflected at header level automatically.
I have looked in MV45AFZZ, USEREXIT_SAVE_DOCUMENT and USEREXIT_SAVE_DOCUMENT_PREPARE. I am unable to affect the contract end date in those user exits, whatever I put in VEDA-VENDDAT or XVEDA-VENDDAT or whateverVEDA-VENDDAT, does not have any effect on the actual contract dates.
Can anyone help?
Please note that we are running 46C.
Thank you.Thanks For your reply Vikram,
i tried with 'USEREXIT_MOVE_FIELD_TO_VBAP' user-exit earlier it self its not working. Can you suggest me any another way how we can achieve this functionality. modification of Contract start date and end date in only item level.
'USEREXIT_MOVE_FIELD_TO_VBAP':
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_MOVE_FIELD_TO_VBAP, Start A
*$*$-Start: (3)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZSD_CONT_DATE. "active version
DATA : lv_var TYPE CHAR10.
lv_var = '0040000219'.
if sy-tcode = 'VA42'.
IF VBAK-VBELN EQ lv_var.
VEDA-VBEGDAT = '20140502'.
XVEDA-UPDKZ = 'X'.
VEDA-VENDDAT = '20140602'.
XVEDA-UPDKZ = 'X'.
ENDIF.
ENDIF.
ENDENHANCEMENT. -
Starting a GP from a User Exit?
Hi all,
How do I start a GP from a user exit?
The scenario is like this: when a notification is created in SAP (transaction QM01), it should trigger the GP.
Thank you very much,
Frederik-JanThe actual place to find the information you need to start GP using Web Services (which you can then implement in a User Exit) is here
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm -
Hello,
I want to log the BW query starts. So I'm searching for a user exit in which I can implementate a abap code to fill a log-table.Hi Stefan,
What kind of stats are you looking for? Have you looked at transaction ST03N? -
User exit for contract start date in sales order change mode.
24.10.2008
Hi Gurus,
I need to disable the 'contract start date' (VEDA-VBEGDAT) field in Contract data tab at header and item level. Can someone suggest a user exit for the same ???
Regards,
UdaynathDear Udyanath,
Please check these User exits with the help of ABAPer
User exits in the program MV45AFZZ
The user exits which you can use for modifications in sales document
processing are listed below.
USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen
fields.
To do this, the screen fields are allocated to so-called
modification groups 1 - 4 and can be edited together during a
modification in ABAP. If a field has no field name, it cannot be
allocated to a group.
The usage of the field groups (modification group 1-4) is as
follows:
- Modification group 1: Automatic modification with transaction
MFAW
- Modification group 2: It contains 'LOO' for step loop fields
- Modification group 3: For modifications which depend on check tables or on other fixed information.
USEREXIT_MOVE_FIELD_TO_VBAK
Use this user exit to assign values to new fields at sales document
header level. It is described in the section "Transfer of the
customer master fields into the sales document".
The user exit is called up at the end of the FORM routine
VBAK_FUELLEN.
USEREXIT_MOVE_FIELD_TO_VBAP
Use this user exit to assign values to new fields at sales document
item level. It is described in the section "Copy customer master
fields into the sales document".
The user exit is called up at the end of the FORM routine
VBAP_FUELLEN.
USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of
the sales document schedule lines.
The user exit is called up at the end of the FORM routine
VBEP_FUELLEN.
USEREXIT_MOVE_FIELD_TO_VBKD
Use this user exit to assign values to new fields for business data of the sales document. It is described in the section "Copy customer
master fields into sales document".
The user exit is called up at the end of the FORM routine
VBKD_FUELLEN.
I hope this will help you,
Regards,
Murali. -
User exit U935 in Mod. Pool RGGBS000 not executing in Parallel Processing
Hi,
Settlement of IO (KO88) is not successful in parallel processing mode.
While doing Settlement of IOs (KO88) in parallel processing mode, I am getting an error on account assignment object. CO account assignment in OKC9, an user exit U935 is maintained and this user exit is used in Mod.Pool RGGBS000.
When running the settlement in normal mode, the program is running through this user exit and settlement is successful. But in prallel processing mode, looks like the settlement program is not executing / by passing the user exit and errs out with CO object assignment.
How can we make the settlement execute through the user exit in parallel processing mode?
ThanksHi,
If the user exit supposed to trigger thru substitution (GGB1), then check whether active status is 1 in OKC9. Just a wild guess....
Best Regards,
Madhu
Maybe you are looking for
-
BAPI to insert a new row in the MCHA table
Hi all, I am in search of a BAPI to insert a new row in the MCHA table... with the fields of the materail, plant and batch values. Any inputs on this..is highly appreciable... thanks in advance... regards.. prathima.
-
Do I Need To Install Lenovo Drivers After A Fresh Install Of Windows 7 Pro
I've just installed Windows 7 Pro (with SP1) on a Lenovo ThinkPad Edge and after running the Lenovo System Update utiltiy it doesn't list any drivers that need installing. When I had a look at the Drivers & Downloads section of this website it lists
-
Hi All, i am debuggin a code which is creating SUB ORDER (iw36) through call transaction method. The transaction is filling the superior oder ,but after OK CODE it doesnt navigate to the next screen, instead it shows a message log, without
-
I have a second generation nano. I am connecting it to my computer with the USB wire but the computer doesn't seem to detect it. This is a sudden problem as it works fine normally but now it doesnt. It is not a problem with the wire because it works
-
Como puedo enviar email desde LabVIEW 6i?
necesito enviar email desde labview 6i desde el labview 5 si se como pero el el 6i no he podido encontrar la opcion gracias! pueden escribirme a [email protected]