Workflow not getting triggered on status change
Hiii Everyone
Workflow is not getting triggered whenever I change the status of the Order (Lead). When we create a lead a workflow is triggered.
1. If the status is Open a mail is sent.
2. Then the status is checked for in process. And whenever the status is changed to inprocess it is assigned to the agent by the rule attached to the workflow.
3. And again when the status is changed to sanctioned a mail is sent.
Now problem is if I create a lead and change its status to inprocess and then save , then the mail is sent and it is assigned to the agent properly. But when I change the status to sanctioned , then the mail is not sent for sanctioned(i.e. no worklfow step is shown in swel).
If I open the lead and save it then the mail is sent properly. But then after that when I change the status to inprocess, the workflow is not showing agent assignment (jn swel).
Summary: Whenever I cahnge the status after saving the order , the workflow is not showing any further step .
Please suggest the solution.
Regards
Shafali
Hi,
Your workflow has been triggered when the status is open and then when change the status to in process,it is not sending mail as there is no agent assignment.
That means, workflow triggered, but it is not going to the next step.
Is it a standard or custom one?
Can you post the workflow log screenshot over here?
Cheers,
Raja.D
Similar Messages
-
Treasury workflow not getting triggered .
I have done all as given in the SAP doc ...
The release procedure for the business partner has been set up using a Business Workflow, for
which SAP has defined the standard role 20000053 'TRLOAPPROVAL' and the Workflow
template WS20000263 'WSTRLOAPPROV'.
Procedure
In order to use the release workflow for the business partner, you are also required to make
settings in Customizing for the Basic Functions area in Treasury in the following IMG activities:
By choosing u2019Activate Releaseu2019, you can activate the release for the business partner.
By choosing u2018Maintain and Activate Release Parametersu2019, you can specify the number of
release steps you require for each role category.
By choosing 'Adjust/Copy Workflow Template', make the following settings:
By choosing 'Define Standard Roleu2019, you create the responsibilities for the standard roles
delivered with the system, to which you assign users, positions, organizational units,
work centers, jobs, or people. Using the settings you make here, the system determines
the Responsible Agent [Ext.] during the workflow run.
By choosing 'Adjust Workflow Template', you then have to activate the event linkage.
but its not getting triggered .. the event which is gettting triggered is not the one whcih is used in the workflow
Thanks for help .
Naval BhattNaval,
Either you can check SAP notes for the same or you can customize the workflow. If the event being triggered is different then copy the workflow and change the workflow start condition. -
Workflow not getting triggered from Action definition in CRMD_ORDER
Hello Experts,
I have created a workflow which should send mail to partner team in a Change Request.This workflow should be triggered when a particular Zaction is performed on the CR.Zaction is created properly and my workflow is also assigned to it.I have also followed OSS note-733675 and created a workflow container with name "BUSINESSOBJECT" to get the application data into my workflow when the action is performed.My workflow is a background processing one.
I have tested it separately by providing GUID foreground and it works perfectly fine and mail is sent to partner team.But when i perform the action,mails are not getting triggered nor the workflow.I am not even able to check the logs.I am not even able to know if all the action has triggered my workflow.Kindly help.Would appreciate your contribution.
Regds
VLPPlease check in SWI2_FREQ whether the Workflow is really getting triggered.
Thanks
Arghadip -
Workflow not getting triggered from Z inbound FM
Hi
I have created a simple workflow with start events
Object Type IDOCAPPL EVENT - INPUTERROROCCURRED
activated the binding and activate the linkage
also in the idoc inbdound FM i put workflow_result = 99999 also added the object and the start and end event in process code link
however the workflow is not getting triggered do i need to trigger it manually using swe_event_create....
what is the miostakeHello,
Even if the event linkage is configured correctly, you have to trigger an event with the FM swe_event_create to run your workflow.
You have a transaction SWU0 that can simulate an event => then you can check if your event linkage is correct.
Please reward if useful.
René -
OIM 11gR2 Approval workflow not getting triggered
I created an approval workflow by following the 11gR2 developer's guide and deployed it. then created an app instance and also an approval policy for operational level which is auto approved and for request level with this composite. when i raise a request for this app instance in the catalog the SOA composite is not getting triggered. I am able to see a task in pending approval of system admin whenever i raise request for any user and if i complete that pending approval the app gets provisioned directly. Also i do not see any request ID also. please help to find out whats going wrong
Now i tried raising a request from another user who is not a member of SYSADMIN role. This time the request id is generated and a task 'Manual Task for Provision operation for Beneficiary X' is generated in pending approvals of xelsysadm user. When completed the app instance gets provisioned. So this means operational level approval task is triggered? and it has auto-provisioning?
why my custom approval workflow is not getting triggered?
I have created 2 approval policies, one for request level which is auto approval and other for operational level where i have selected the deployed composite name.In both the approval policies i have selected the request type as Provision ApplicationInstance. There is no error also while deploying the composite. Am i missing any step? please help.
Edited by: 955932 on Jan 10, 2013 10:19 PM -
Issue in Production for Workflow not getting Triggered .
Hi Guys,
I have a workflow, which is properly triggering in the development and Quality but not getting triggered in the Production. Can't get the Exaact reason because by using T-code PFTC when i test the workflow independantly its working properly and even BOR does not have any problem. Please Help me guys as this is a issue in Production.
The workflow is a customized one, It getting triggered throught the funtion call in User Exit of MM01.
ThanksIt getting triggered throught the funtion call in User Exit of MM01.
1. I hope the workflow customization is done properly in production system, as you stated that if you are trying to trigger from PFTC then it is working fine, can you please try to Refresh Organizational Environment from SBWP ---> On MEnu ---> Settings --> Workflow Settings ---> Refresh Organizational Environment and secondly try to refresh the buffer from txn SWU_OBUF
2. Make sure the user exit is transported to Production.
3. Check the workflow log from the txn SWIA if you have proper authorizations for the userid. -
Workflow not getting triggered from webdynpro event
Hello gurus,
I have a requirement in which if an employee changes his own information on the ESS portal, then an approval should be done by HR. For this i created a custom webdynpro application in which i fetch the employee data and check it with old data in one view and when user clicks save button the approval workflow should be triggered.
For this i created a custom BO using transaction SWO1. I added a 'CHANGE' event and 'send_data_to_wf' method.
In SWDD i created the workflow which is working fine when i test it in SWDD only. But when i trigger it using FM 'SWE_CREATE_EVENT', only the event is getting triggered and not the workflow. I checked the trace in transaction SWEL in which i can see the 'CHANGE' event under Event column but Name of Reciever Type column is emty. It should display my custom workflow ID. Please let me know where i m lacking or going wrong.
Regards,
Yayati EkboteHello Ricardo,
Thanks for immediate reply. Yes, the linkage is active in SWE2. My custom object type is ZHRAD and event is change. I also tried the FM 'SAP_WAPI_CREATE_EVENT'. But in this FM the event also doesn't get triggered. Using FM 'SWE_CREATE_EVENT' atleast triggers the event. I debugged the FM. The container inside the FM is remaining initial. I am posting my code which i am using.
DATA: pernr TYPE pa0001-pernr VALUE '40000001'.
DATA: objtype TYPE swr_struct-object_typ VALUE 'ZHRADCHO',
objkey TYPE sweinstcou-objkey,
event TYPE swr_struct-event VALUE 'CHANGE',
it_wfcont TYPE STANDARD TABLE OF swcont,
wa_wfcont TYPE swcont,
event_id TYPE swedumevid-evtid,
ret_code TYPE swedumevid-evtid.
wa_wfcont-element = 'PERNR'.
wa_wfcont-value = '40000001'.
APPEND wa_wfcont TO it_wfcont.
wa_wfcont-element = 'SUBTY'.
wa_wfcont-value = '1'.
APPEND wa_wfcont TO it_wfcont.
wa_wfcont-element = 'ENDDA'.
wa_wfcont-value = sy-datum.
APPEND wa_wfcont TO it_wfcont.
wa_wfcont-element = 'BEGDA'.
wa_wfcont-value = sy-datum.
APPEND wa_wfcont TO it_wfcont.
objkey = pernr.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = objtype
objkey = objkey
event = event
* CREATOR = ' '
* TAKE_WORKITEM_REQUESTER = ' '
* START_WITH_DELAY = ' '
* START_RECFB_SYNCHRON = ' '
* NO_COMMIT_FOR_QUEUE = ' '
* DEBUG_FLAG = ' '
* NO_LOGGING = ' '
* IDENT =
* IMPORTING
* EVENT_ID =
* RECEIVER_COUNT =
TABLES
EVENT_CONTAINER = it_wfcont
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. -
Workflow not getting triggered from MM01
Hi,
I understand there is a similar post but the solution is not so clear there.
I wish to trigger a workflow whenever a material is created using tcode MM01.
For which i am using BUS1001. (In the header data > start events tab > BO/BUS1001/CREATED binding exists and activated)
whenever i am creating a material using MM01, and check the trace in SWEL i am getting the following info:
BUS1001006 VIEWCREATED 25.03.2011 13:00:12 @AI@ No receiver entered
BUS1001006 CREATED 25.03.2011 13:00:12 WS99900237 @5B@ SWW_WI_CREATE_VIA_EVENT_IBF
Can someone please help where to enter the receiver.
regards
abhishekHi sanju,
I have created the event as per your suggestions but the workflow is not yet triggered from mm01.
the event stack trace is as follows :-
BUS1001 CREATED 28.03.2011 08:28:42 WS99900237 @5B@ SWW_WI_CREATE_VIA_EVENT
BUS1001006 VIEWCREATED 28.03.2011 08:33:03 WS99900237 @5B@ SWW_WI_CREATE_VIA_EVENT_IBF
BUS1001006 CREATED 28.03.2011 08:33:03 WS99900237 @5B@ SWW_WI_CREATE_VIA_EVENT
BUS1001 CREATED 28.03.2011 08:33:03 WS99900237 @5B@ SWW_WI_CREATE_VIA_EVENT
Linkage is activated in SWE2 and the receiver FM is SWW_WI_CREATE_VIA_EVENT.
still unable to get the workflow triggered.
Secondly as per SAP suggestion the BO BUS1001006 should be used for std material master. But while i enter BUS1001006 no such methods are available in F4. (refer atttachment)
I have checked in the BOR and i see that BUS1001006 is released and active. -
Workflow not getting triggered
Hi All,
We are having issue in Claims and Leave Encashment workflow. From Portal side we are able to create the request successfully with requets numbers being generrated but nothing is triggered in SWI1. Here we are using standard workflow WS18900023 and we have activated the same in SAP.
Although our Leave and Travel workflows are working fine and getting completed as well.
When I reregister the UWL system I am getting followowing warning for few tasks,
WebDynproApplication value not found for task TS18900010 in system SAP_Webdynpro_UWL
WebDynproApplication value not found for task TS20000118 in system SAP_Webdynpro_UWL
WebDynproApplication value not found for task TS20000130 in system SAP_Webdynpro_UWL
WebDynproApplication value not found for task TS20000131 in system SAP_Webdynpro_UWL
WebDynproApplication value not found for task TS20000135 in system SAP_Webdynpro_UWL
WebDynproApplication value not found for task TS20000139 in system SAP_Webdynpro_UWL
WebDynproApplication value not found for task TS20000189 in system SAP_Webdynpro_UWL
First task is of claims which is not getting trigered and rest of tasks relates to Travel which is working fine.
We have recently upgraded both HR and Portal systems. Before upgdare all the workflows were working fine.
HR system is upgraded from release 604 SP 31 to SP 33.
Portal 7.01 SP3 to SP8.
I have seached in xmls as well, tasks TS20000118,TS20000131, TS20000135 are there in xml but I am not able to find other task in any of xmls.
These tasks are present in SWFVISU as well.
Please advise on this issue, IS the warning the cause of the issue or there is something on workflow side.
Thanks,
Honeyhi,
use your callback url to trigger events:
call method cl_swf_ifs_ws_export=>launch_callback
exporting
callback_url = lv_url
http_method = cl_swf_ifs_ws_export=>c_http_method_get
this will advance your workflow to next step
grtz,
Koen -
Error handling workflow not getting triggered
Hi all,
I'm creating a outbound IDoc. And for error handling workflow.. I created a organization structure in PPOME and assigned users. I gave this position number thus created in the partner profile in post processing permitted agent tab.
But when the Idoc is in error, this is not coming to my inbox.
Can someone please help me with this.. and let me know what went wrong.
Thanks in advance.Here you need to be careful,
if the agent assignment is not maintained properly, there may be a chance everyone in the organization will get the item.
I hope you have created a single workitem for error handling. goto additional data-> agent assignment-> maintain. make sure the attribute is defined as general forwarding allowed. or you maintain the role/position/user/whatever.as the possible agents. still you dont get the result, debugging the default rule in the task ->default rule -> agent.
hope this helps.
with regards,
Sudhahar R -
Change Process are not getting triggered
Hi,
I have changed the first name of the user in OIM but the same is not getting sycned in DSEE.
When I have added the Change First Name Process task from Resource then it got successfully completed and the user's first name got changed in DSEE.
Automatically Change First Name process task is not getting triggered. It worked for me earlier but now it is not working.
Could you please let me know the reason for the same.
Thanksverify below
1. task name under DSEE process def and process trigger lookup is exactly same(remove if any white space etc.)
2. make sure the task is marked as conditional
3. Allow Multiple should be checked
--nayan -
Workflow not starting and RFC status is 'User Switch Is Not Possible'
Hi All,
I am using ABAP classes to raise an event that triggers the workflow.
When I am executing the workflow from SWUS or raising event from SWUE or SE24, the workflow is starting fine.
But when I am raising the event from a Webdynpro application, the same event is raised, but the workflow is not getting triggerred.
I could see a record in SWEL, but the workitem is not created.
In SWEL, it is showing the RFC status as 'User Switch Is Not Possible'.
When I go to SM58, I am able to re-execute the failed transaction and this time the workflow is getting triggered.
The same workflow is working fine in D env. but not in T env.
The event linkages are all same and I also used the COMMIT WORK statement after raising the event.
Another problem is the RFC status is sometimes set to SYSFAIL and sometimes as 'System overloaded, repeat immediately by batch' other than 'User Switch Is Not Possible'.
Please help.
Thanks,
Cay.Hi,
call function module AUTHORITY_CHECK_RFC explicitly before a remote call to be able to treat a possible exception. If the authorization exists, the function module does not return an explicit result but, like all successfully executed function modules, sets sy-subrc to 0. If sy-subrc is not equal to zero then it could be the problem with the user authorization.
I also think it could alos possible because of your Host name check whether any changes are done to host name.
Regards
Pavan -
Due to MODIF ID, SELECT query in START-OF-SELECTION not getting triggered
Dear SAP Gurus,
I'm stuck with this program, where, my program is not being executed, as in, my SELECT query in my event START-OF-SELECTION is not getting triggered. Since i hav used MODIF ID, for SELECT-OPTIONS, even after putting the entries in select-options...................when i click on the execute button, or press F8, the program still goes into the AT SELECTION-SCREEN OUTPUT event..........but i want it to goto START-OF-SELECTION event where my SELECT query is........what should i do??????????????
Please find the notepad file having the code, n exucse me for any selection-texts absence.
Need help from u in this issue.
Thanks in advance.
REPORT ZPPR_CONVSTAT NO STANDARD PAGE HEADING.
INCLUDE ZPPR_CONVSTAT_TOP. " data declaration
INCLUDE ZPPR_CONVSTAT_SEL_CRITERIA. " selection criteria
INCLUDE ZPPR_CONVSTAT_PBO. " event at selection-screen output
INCLUDE ZPPR_CONVSTAT_START_SELECTION. " event start-of-selection
INCLUDE ZPPR_CONVSTAT_F_START_OF_SEL.
*& Include ZPPR_CONVSTAT_TOP
TABLES : VBUK,
VBUP,
VBAK,
VBAP,
VBEP,
VBPA,
TVAK,
EKUB,
LIKP,
LIPS,
MARA,
MAKT,
MARC,
PLAF,
AUFK,
AFKO,
AFPO,
AFVC,
AFVV,
CRHD,
PBIM,
KNA1,
T134,
IOHEADER,
IOITEM.
TYPE-POOLS : slis.
TYPES : BEGIN OF ty_final,
werks TYPE vbap-werks, "Plant
auart TYPE vbak-auart, "Sales Order Doc. type
erdat TYPE vbak-erdat, "Sales Order Creation date
vbeln TYPE vbak-vbeln, "Sales Order No.
posnr TYPE vbap-posnr, "Sales Order Item No.
aedat TYPE vbak-aedat, "Sales Order Change Date
kwmeng TYPE vbap-kwmeng, "Sales Order qty.
vdatu TYPE vbak-vdatu, "Requested Delivery Date
lfimg TYPE lips-lfimg, "Sales Order Delivered Qty.
matnr TYPE vbap-matnr, "Material ID
arktx TYPE vbap-arktx, "Material Description
strgr TYPE marc-strgr, "Planning Strategy
vrkme TYPE vbap-vrkme, "UOM
plnum TYPE plaf-plnum, "Plan Order No.
gsmng TYPE plaf-gsmng, "Plan Order Qty.
auffx TYPE plaf-auffx, "Plan Order Firming Indicator u2013 Qty.
stlfx TYPE plaf-stlfx, "Plan Order Firming Indicator - Component
erdat2 TYPE aufk-erdat, "Production Order Creation Date
aufnr TYPE aufk-aufnr, "Production Order No.
prdqty TYPE afko-gamng, "Production Order qty.
pckqty TYPE lips-lfimg, "Packed Delivered Qty.
psamg TYPE afpo-psamg, "Allotted scrap
igmng TYPE afko-igmng, "Confirmed Yield Qty.
iasmg TYPE afko-iasmg, "Confirmed Scrap Qty
iamng TYPE afpo-iamng, "Expected Yield
wemng TYPE afpo-wemng, "Delivered Qty.
altscrp TYPE c LENGTH 6, "Allotted Scrap %
actscrp TYPE c LENGTH 6, "Actual Scrap %
umrez TYPE afvv-umrez, "Ups (from Prd. ORD)
ups TYPE clobjdat-ausp1, "Ups (from Material Master)
crtnstl TYPE clobjdat-ausp1, "Carton Style
ppopr TYPE clobjdat-ausp1, "Pre-Printing Operation
brdtyp TYPE clobjdat-ausp1, "Board Type
lsdim1 TYPE clobjdat-ausp1, "Layout Size u2013 Dim 1
lsdim2 TYPE clobjdat-ausp1, "Layout Size u2013 Dim 2
lsgsm TYPE clobjdat-ausp1, "GSM
inktyp TYPE clobjdat-ausp1, "Ink Type
foiltyp TYPE clobjdat-ausp1, "Foiling
wintyp TYPE clobjdat-ausp1, "Window Type
lamin TYPE clobjdat-ausp1, "Lamination
fsvrnsh TYPE clobjdat-ausp1, "Front Side Varnish
bsvrnsh TYPE clobjdat-ausp1, "Back Side Varnish
emboss TYPE clobjdat-ausp1, "Embossing
punch TYPE clobjdat-ausp1, "Punching
paste TYPE clobjdat-ausp1, "Pasting
oprno TYPE afvc-vornr, "Operation No.
wrkcntr TYPE crhd-arbpl, "Work Centre
oprtxt TYPE afvc-ltxa1, "Operation Text
oprqty TYPE afvv-mgvrg, "Operation qty.
yield TYPE afvv-lmnga, "Yield
scrap TYPE afvv-xmnga, "Scrap
jobtyp TYPE vbak-augru, "Job Type
prordst TYPE bsvx-sttxt, "Production Order Status
solinst TYPE vbup-lfsta, "Sales Order Line Item Status
sldprty TYPE kna1-name1, "Sold to Party Name
shpprty TYPE kna1-name1, "Ship to Party Name
shpcity TYPE kna1-ort01, "Ship to party - City
END OF ty_final.
TYPES : BEGIN OF ty_vbak,
auart TYPE vbak-auart,
erdat TYPE vbak-erdat, "Doc creation date
vbeln TYPE vbak-vbeln,
aedat TYPE vbak-aedat, "Doc change date
vdatu TYPE vbak-vdatu, "Requested delivery date
kunnr TYPE vbak-kunnr,
augru TYPE vbak-augru, "Job Type
END OF ty_vbak.
TYPES : BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
werks TYPE vbap-werks,
matnr TYPE vbap-matnr,
arktx TYPE vbap-arktx,
kwmeng TYPE vbap-kwmeng,
vrkme TYPE vbap-vrkme,
END OF ty_vbap.
TYPES : BEGIN OF ty_pbim,
pbdnr TYPE pbim-pbdnr, "Requirements Plan Number
bdzei TYPE pbim-bdzei, "Independent requirements pointer
matnr TYPE pbim-matnr,
werks TYPE pbim-werks,
END OF ty_pbim.
TYPES : BEGIN OF ty_pbhi,
bdzei TYPE pbhi-bdzei, "Independent requirements pointer
pdatu TYPE pbhi-pdatu, "Requirement date
laeda TYPE pbhi-laeda, "Date of Last Change
END OF ty_pbhi.
TYPES : BEGIN OF ty_ekko,
ebeln TYPE ekko-ebeln, "STO doc no
bsart TYPE ekko-bsart,
reswk TYPE ekko-reswk, "Supplying plant
aedat TYPE ekko-aedat, "Doc creation date
END OF ty_ekko.
TYPES : BEGIN OF ty_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat, "Doc change date
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
matnr TYPE ekpo-matnr,
txz01 TYPE ekpo-txz01,
END OF ty_ekpo.
TYPES : BEGIN OF ty_eket,
ebeln TYPE eket-ebeln,
ebelp TYPE eket-ebelp,
eindt TYPE eket-eindt, "Requested delivery date
END OF ty_eket.
TYPES : BEGIN OF ty_lips,
vbeln TYPE lips-vbeln,
posnr TYPE lips-posnr,
vgbel TYPE lips-vgbel,
vgpos TYPE lips-vgpos,
lfimg TYPE lips-lfimg,
END OF ty_lips.
TYPES : BEGIN OF ty_plaf,
plnum TYPE plaf-plnum,
matnr TYPE plaf-matnr,
gsmng TYPE plaf-gsmng,
auffx TYPE plaf-auffx,
stlfx TYPE plaf-stlfx,
kdauf TYPE plaf-kdauf,
kdpos TYPE plaf-kdpos,
pbdnr TYPE plaf-pbdnr,
END OF ty_plaf.
TYPES : BEGIN OF ty_aufk,
aufnr TYPE aufk-aufnr,
erdat TYPE aufk-erdat,
objnr TYPE aufk-objnr,
END OF ty_aufk.
TYPES : BEGIN OF ty_afko,
aufnr TYPE afko-aufnr,
gamng TYPE afko-gamng, "Total order quantity
gasmg TYPE afko-gasmg, "Total scrap quantity in the order
igmng TYPE afko-igmng, "Confirmed Yield Qty
iasmg TYPE afko-iasmg, "Confirmed Scrap Qty
aufpl TYPE afko-aufpl, "Routing number of operations in the order
END OF ty_afko.
TYPES : BEGIN OF ty_afpo,
aufnr TYPE afpo-aufnr,
plnum TYPE afpo-plnum,
matnr TYPE afpo-matnr,
pgmng TYPE afpo-pgmng, "Plan Order Qty
kdauf TYPE afpo-kdauf,
kdpos TYPE afpo-kdpos,
psamg TYPE afpo-psamg, "Allotted scrap
iamng TYPE afpo-iamng, "Expected Yield Variance
wemng TYPE afpo-wemng, "Delivered Qty
END OF ty_afpo.
TYPES : BEGIN OF ty_afvc,
vornr TYPE afvc-vornr,
aufpl TYPE afvc-aufpl, "Routing number of operations in the order
aplzl TYPE afvc-aplzl, "General counter for order
arbid TYPE afvc-arbid, "Object ID of the resource
ltxa1 TYPE afvc-ltxa1,
END OF ty_afvc.
TYPES : BEGIN OF ty_afvv,
aufpl TYPE afvv-aufpl, "Routing number of operations in the order
aplzl TYPE afvv-aplzl, "General counter for order
umrez TYPE afvv-umrez,
mgvrg TYPE afvv-mgvrg,
lmnga TYPE afvv-lmnga,
xmnga TYPE afvv-xmnga,
END OF ty_afvv.
TYPES : BEGIN OF ty_mdvm,
mdkey TYPE mdvm-mdkey,
disst TYPE mdkp-disst,
matnr TYPE mdkp-matnr,
plwrk TYPE mdkp-plwrk,
END OF ty_mdvm.
DATA : it_final TYPE STANDARD TABLE OF ty_final,
it_vbak TYPE STANDARD TABLE OF ty_vbak,
it_vbap TYPE STANDARD TABLE OF ty_vbap,
it_lips TYPE STANDARD TABLE OF ty_lips,
it_pbim TYPE STANDARD TABLE OF ty_pbim,
it_pbhi TYPE STANDARD TABLE OF ty_pbhi,
it_ekko TYPE STANDARD TABLE OF ty_ekko,
it_ekpo TYPE STANDARD TABLE OF ty_ekpo,
it_eket TYPE STANDARD TABLE OF ty_eket,
it_plaf TYPE STANDARD TABLE OF ty_plaf,
it_aufk TYPE STANDARD TABLE OF ty_aufk,
it_afko TYPE STANDARD TABLE OF ty_afko,
it_afpo TYPE STANDARD TABLE OF ty_afpo,
it_afvc TYPE STANDARD TABLE OF ty_afvc,
it_afvv TYPE STANDARD TABLE OF ty_afvv,
it_mdvm TYPE STANDARD TABLE OF ty_mdvm.
DATA : wa_final TYPE ty_final,
wa_vbak TYPE ty_vbak,
wa_vbap TYPE ty_vbap,
wa_lips TYPE ty_lips,
wa_pbim TYPE ty_pbim,
wa_pbhi TYPE ty_pbhi,
wa_ekko TYPE ty_ekko,
wa_ekpo TYPE ty_ekpo,
wa_eket TYPE ty_eket,
wa_plaf TYPE ty_plaf,
wa_aufk TYPE ty_aufk,
wa_afko TYPE ty_afko,
wa_afpo TYPE ty_afpo,
wa_afvc TYPE ty_afvc,
wa_afvv TYPE ty_afvv,
wa_mdvm TYPE ty_mdvm.
DATA : it_object TYPE hum_object_t,
wa_object TYPE hum_object,
it_item TYPE hum_hu_item_t,
wa_item TYPE vepovb,
count1(6) TYPE n.
DATA : gv_objek TYPE ausp-objek. "Put matnr for use in FM u2018CLAF_CLASSIFICATION_OF_OBJECTSu2019
DATA : BEGIN OF it_sclass OCCURS 0.
INCLUDE STRUCTURE sclass.
DATA : END OF it_sclass.
DATA : BEGIN OF it_clobjdat OCCURS 0.
INCLUDE STRUCTURE clobjdat.
DATA : END OF it_clobjdat.
*& Include ZPPR_CONVSTAT_SEL_CRITERIA
SELECTION-SCREEN FOR 'PLANNING STAGE'
SELECTION-SCREEN BEGIN OF BLOCK main WITH FRAME TITLE text-001.
PARAMETERS: mrpntdn RADIOBUTTON GROUP sel DEFAULT 'X' user-command flag,
pldord RADIOBUTTON GROUP sel,
prdord RADIOBUTTON GROUP sel.
SELECTION-SCREEN END OF BLOCK main.
SELECTION-SCREEN FOR 'SELECTION BY PLANT AND PLANT DATA'
SELECTION-SCREEN BEGIN OF BLOCK plant WITH FRAME TITLE text-002.
PARAMETERS : p_werks LIKE ioheader-werks OBLIGATORY DEFAULT '1100' MATCHCODE OBJECT H_T001W.
SELECT-OPTIONS : so_matnr FOR ioitem-matnr MATCHCODE OBJECT MAT1.
PARAMETERS : so_mtart TYPE t134-mtart OBLIGATORY DEFAULT 'ZFIN' MATCHCODE OBJECT H_T134.
SELECT-OPTIONS : so_plnum FOR ioitem-plnum MATCHCODE OBJECT plnum MODIF ID pld,
so_aufnr FOR ioheader-aufnr MATCHCODE OBJECT orde MODIF ID prd.
PARAMETERS : p_prdsta LIKE tj02t-txt04 MODIF ID prd.
SELECTION-SCREEN END OF BLOCK plant.
SELECTION-SCREEN FOR 'SELECTION BY REQUIREMENT TYPE'
SELECTION-SCREEN BEGIN OF BLOCK reqtyp WITH FRAME TITLE text-003.
PARAMETERS : cb_so TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag,
cb_sto TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag,
cb_pir TYPE AUSWL_EB AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN END OF BLOCK reqtyp.
SELECTION-SCREEN FOR 'SELECTION BY DATE AND REQUIREMENT TYPE NOS'
SELECTION-SCREEN BEGIN OF BLOCK dtreqtypno WITH FRAME TITLE text-004.
SELECT-OPTIONS : so_crtdt FOR vbak-erdat MODIF ID gen,
so_vbeln FOR vbap-vbeln MATCHCODE OBJECT WTY_F4_VBAP MODIF ID rso,
so_posnr FOR vbap-posnr MODIF ID rso,
so_ebeln FOR ekub-ebeln MATCHCODE OBJECT MEKKM MODIF ID rst,
so_ebelp FOR ekub-ebelp MODIF ID rst,
so_pbdnr FOR pbim-pbdnr MODIF ID rpi,
so_reqdt FOR vbep-edatu MODIF ID gen.
SELECTION-SCREEN END OF BLOCK dtreqtypno.
SELECTION-SCREEN FOR 'SELECTION BY OTHER PARAMETERS'
SELECTION-SCREEN BEGIN OF BLOCK othrparam WITH FRAME TITLE text-005.
SELECT-OPTIONS : so_kunnr FOR kna1-kunnr MATCHCODE OBJECT debi MODIF ID rso,
so_auart FOR tvak-auart MATCHCODE OBJECT H_TVAK MODIF ID rso,
so_lfsta FOR vbup-lfsta MODIF ID rso.
SELECTION-SCREEN END OF BLOCK othrparam.
*& Include ZPPR_CONVSTAT_PBO
*& Event AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
IF mrpntdn = 'X'.
LOOP AT SCREEN.
IF ( screen-group1 = 'PLD' OR screen-group1 = 'PRD' ).
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF pldord = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'PLD'.
screen-intensified = 1.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'PRD'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF prdord = 'X'.
LOOP AT SCREEN.
IF ( screen-group1 = 'PLD' OR screen-group1 = 'PRD' ).
screen-intensified = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF ( cb_so = ' ' AND cb_sto = ' ' AND cb_pir = ' ' ).
LOOP AT SCREEN.
IF ( screen-group1 = 'GEN'
OR screen-group1 = 'RSO'
OR screen-group1 = 'RST'
OR screen-group1 = 'RPI' ).
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_so = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
IF cb_sto = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RST'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_pir = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RPI'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ELSEIF cb_sto = 'X'.
IF cb_so = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_pir = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RPI'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ELSEIF cb_pir = 'X'.
IF cb_so = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RSO'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF cb_sto = ' '.
LOOP AT SCREEN.
IF screen-group1 = 'RST'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
*& Include ZPPR_CONVSTAT_START_SELECTION
*& Event START-OF-SELECTION
IF mrpntdn = 'X'.
PERFORM start_of_selection_mrpntdn.
ELSEIF pldord = 'X'.
PERFORM start_of_selection_pldord.
ELSEIF prdord = 'X'.
PERFORM start_of_selection_prdord.
ENDIF.
*& Include ZPPR_CONVSTAT_F_START_OF_SEL
*& Form START_OF_SELECTION
Subroutine for MRP NOT DONE
FORM start_of_selection_mrpntdn.
SELECT mdkey INTO TABLE it_mdvm FROM mdvm
WHERE GSAEN = 'X'
AND AKKEN = 'X'.
IF sy-subrc = 0.
LOOP AT it_mdvm INTO wa_mdvm.
wa_mdvm-disst = wa_mdvm-mdkey(3).
wa_mdvm-matnr = wa_mdvm-mdkey+3(18).
wa_mdvm-plwrk = wa_mdvm-mdkey+21(4).
MODIFY it_mdvm FROM wa_mdvm INDEX sy-index TRANSPORTING disst matnr plwrk.
ENDLOOP.
ENDIF.
ENDFORM.
*& Form START_OF_SELECTION
Subroutine for PLAN ORDER CREATED
FORM start_of_selection_pldord.
ENDFORM.
*& Form START_OF_SELECTION for PRODUCTION ORDER CREATED
Subroutine for PRODUCTION ORDER CREATED
FORM start_of_selection_prdord.
ENDFORM.You need to mention START-OF-SELECTION explicitly in your code.
Change your code as below:
*& Event START-OF-SELECTION
START-OF-SELECTION.
IF mrpntdn = 'X'. -
SAP BUS2012 Rejection Stop not getting triggered
Hi experts,
I am facing one particular problem. When I am rejecting a PO, by default , REJECTION_START event of BUS2012 is getting triggered, I can see it in SWEL. But when I am cancelling the Rejection REJECTION_STOP event of BUS2012 is not getting triggered. Its not even coming in SWEL(Event trace).What could be the reason as every thing is standard, no custom work.Hi,
That's strange. Where did you get this idea that this event should be created? (Well, I can see it also in SAP documentation.) And are you sure you are doing the rejection cancellation correctly (well, I don't know how many ways there could possibly be..) - the status of PO is changed, etc.?
SWETYPV should not have anything to do with this problem. The event is either created or not. SWETYPV is about how to react to events after they are created.
Are you sure that there is no filter set up in SWELS for the events. Perhaps the event is created but you cannot see it in SWEL due to a filter.
Regards,
Karri -
User Exit not getting triggered
Dear all,
we are creating a workflow for PR Release which needed release strategy customization. so we are trying to set the release stratagy by changing the communciation structure CEBAN-USRC1 field.
for this, i had done the following things:
1. SMOD->M06B0005->components->EXIT_SAPLEBND_004->INCLUDE ZXM06U31 (double clicked) wrote few lines of code.
2. CMOD-> created a proj ZMM_PREL->assigned Enhancement M06B0005 under enhancements tab-> EXIT_SAPLEBND_004-> activated all
(User exit, project eveything).
Now my problem is when i create a PR, this user exit does not get triggered at all. I am working on ECC6.0 the same code which i did in Ecc5.0 for my previous client is still working fine.
Can anyone please guide me where i might have gone wrong?
Thank you,
Regards,
LakshmiHi,
HAve u verifiyed that the user-exit u r using is triggered whenever u create ou PR.?
First of all u have to put breakpoints at each and every user-exits provided for that transaction, then check which user exit is getting triggered when u carete ur PR. and thenafter write ur code in this user-exit only.
Reward is useful.
Regards,
Harsha
Maybe you are looking for
-
How do I put an event into my reminder list?
With the old ical, I could simply drag an event over to the "to do" list (now Reminders) on the right side. I need this function for appigo Todo on my iphone. Anybody know how to add an event to the reminder list? I hate to have to type everything
-
MDT and Configmgr, side by side
Hi, Currently, we are using an MDT environment (2012) to do our OS deployments. Configmgr is used to install and update applications. We would like to terminate the use of the PXE server on the MDT box and use the PXE boot via configmgr. If I enable
-
I downloaded a password protected file that requires Acrobat reader 10. iOS version cannot seem to open. Any suggestions? I'd like to be able to use the text highlight and note features in the iOS version.
-
Error : Cannot resolve symbol shape
I get the following error message <----------------------------------------------------------------------> C:\RandomShapeApplet.java:87: cannot resolve symbol symbol : variable shape location: class RandomShapeApplet return shape; ^ 1 error
-
Can't activate a solution in CAL
I am unable to activate the solution "SAP ERP Foundation Extension powered by SAP HANA - Fully Activated Appliance Landscape Trial" in CAL. "Try Now" button is not responding. I have tried in multiple browsers. As per the How-To guide, I am following