Identifying function modules in standard workflow
Dear Experts,
I have a standard workflow WS17900427. I want to know the list of function modules that are used in this workflow. Where can i see this in swdd.
Regards,
Bharath
Edited by: bharath padmanabhan on Jan 12, 2009 11:04 AM
Dear Jagdish,
Thanks for your reply.
"Also you can check the function module used in the rule to determine the agent".
Can you kindly please clarify me how should i check the function modules used.I am not able to find out where i should check it.
Regards,
Bharath
Edited by: bharath padmanabhan on Jan 12, 2009 1:42 PM
Edited by: bharath padmanabhan on Jan 12, 2009 1:42 PM
Similar Messages
-
How to call a function module from a workflow ? ?
hi all,
i have to call a function module from an workflow, i got a hint from someone that i have to enhance an object and then write and methode, in this methode i can call that function module. I dont know even how to go for it.
Can anyone suggest that how to go for it ?
thanks.
raman khurana.Hi Raman Khurana,
Please go through the links it might be helpful , notsure
http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4af8b453d11d189430000e829fbbd/content.htm
http://www.abapcode.info/2007/07/standard-function-module-text.html
http://it.toolbox.com/wiki/index.php/SAP_Workflow
Regards,
Sreekar.Kadiri. -
Existing Function modules or Standard upload Programs
Hi,
Can any one tell, Are there any Function modules or Standard upload programs exists for following transactions:
Creating production version(C223)
Creating Master recipe(C201)
Creation Apportionment Structure(C202)
Creation BOM Allocation(CS08)
(This all tcodes comes under Production planning.)
Thanks in advance.Hi Vanitha,
Check this
for C223
CM_FV_PROD_VERS_MAINTAIN
CM_FV_PROD_VERS_SAVE
CM_FV_PROD_VERS_SAVE_ALL
CY01_ORDER_MODIFY_PROD_VERSION
For C201
C2_CU_RECIPE_EXCLUDE_CREATE
CONTROL_RECIPE_CREATE
For C202
APPOINTMENT_GRP_CREATE
APPOINTMENT_CREATE
APPOINTMENT_GENERATE
APPOINTMENT_GENERATE_2
For CS08
CSAP_MAT_BOM_ALLOC_CREATE
Hope it helps...
Lokesh
pls. reward appropriate points
Message was edited by: Lokesh Aggarwal -
How to identify function module
Hi all,
iam doing where used list for a perticular filed and getting some programs.In that porgrams i have to identify function modules.Normally we can identify executable prog,Include,module with PROG TYPE 1,I,m respectivly.
Is there any way to identify Function modules.
Thanks in advance.
Regards
srinivas.mFunction modules belong to function groups. You can spot a program that is a function group because it begins SAPL.
E.g. fn group SP01
SAPLSP01
Function modules begin with L, and end with Unn, where nn is a number between 00 and 99.
E.g. LSP01U01
Other includes belonging to function group, for example those containing forms, have a the last three characters as anything.
E.g. LSP01FRM, LSP01MOD
If you spot any includes that look like this, when you do a where-used, they are related to function groups and/or function modules.
matt -
How to find the function module for standard tables.
Hi
Could any one please tell me how to find the standard function module to update the standard tables
Thanks & Regards
SowmyaHi sowmya,
To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
Hope this information would help you
Regards
Narin Nandivada -
Creating a Function Module for Standard Include
Hi ALL,
There is a standard Include in that i have created 1implicit Enhancement Point and there is 200 lines code is there ,so my client is saying to keep this code in function module. This is the below code can any one do how to write this code in function module with passing parameters and all the stuff.Means Import parameters ,Export parameters and Source code ?
Perform change_order_va02.
data: l_vbfa like vbfa,
l_FKART like vbrk-FKART,
l_fksto like vbrk-fksto,
l_sfakn like vbrk-sfakn.
data: begin of lt_vbfa occurs 0,
vbeln like vbfa-vbeln,
end of lt_vbfa.
if komfk-vbtyp ca 'PO'. " debit/credit memo
select vbeln into table lt_vbfa from vbfa
where vbelv = KOMFK-VBELN and
( vbtyp_n = '5' or vbtyp_n = '6' ).
loop at lt_vbfa.
clear: l_fksto, l_sfakn.
select single FKART fksto SFAKN into (l_FKART, l_fksto, l_sfakn)
from vbrk
where vbeln = lt_vbfa-vbeln.
check: sy-subrc = 0,
l_fksto is initial,
l_sfakn is initial.
message e310(zz) with l_FKART l_vbfa-vbeln.
endloop.
endif.
*} INSERT
ENDFORM.
*{ INSERT D01K9A0PBY 1
*& Form change_order_va02
228810/45115 FUWAGNK implement VA02 into VF01 for Turkey
--> p1 text
<-- p2 text
FORM change_order_va02.
Tables : *knvi, *lips, *likp.
DATA: Z_MODE value 'N'.
data: hf-date(10).
DATA: BEGIN OF BDC_TAB OCCURS 0.
INCLUDE STRUCTURE BDCDATA.
DATA: END OF BDC_TAB.
DATA: BEGIN OF BDC_MSG OCCURS 0.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA: END OF BDC_MSG.
select single vbeln vgbel from *lips into corresponding
fields of *lips
where vbeln = KOMFK-VBELN.
select single vbeln LFART from *likp into corresponding
fields of *likp
where vbeln = KOMFK-VBELN.
if *likp-lfart = 'LF'.
select single vbeln vkorg kunnr from vbak into corresponding
fields of vbak
where vbeln = *lips-vgbel.
if vbak-vkorg = '1252'.
clear bdc_tab. refresh bdc_tab.
move 'SAPMV45A' to BDC_TAB-PROGRAM.
move '102 ' to BDC_TAB-DYNPRO.
move 'X' to BDC_TAB-DYNBEGIN.
APPEND BDC_TAB. CLEAR BDC_TAB.
move: 'VBAK-VBELN' to BDC_TAB-FNAM, "Doc.Number
VBAK-VBELN to BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
MOVE: 'BDC_OKCODE' TO BDC_TAB-FNAM, "OK-CODE
'/00 ' TO BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
move 'SAPMV45A' to BDC_TAB-PROGRAM.
move '4001' to BDC_TAB-DYNPRO.
move 'X' to BDC_TAB-DYNBEGIN.
APPEND BDC_TAB. CLEAR BDC_TAB.
MOVE: 'BDC_OKCODE' TO BDC_TAB-FNAM, "OK-CODE
'KKAU ' TO BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
move 'SAPMV45A' to BDC_TAB-PROGRAM.
move '4002' to BDC_TAB-DYNPRO.
move 'X' to BDC_TAB-DYNBEGIN.
APPEND BDC_TAB. CLEAR BDC_TAB.
select single * from *KNVI into *KNVI where KUNNR = vbak-kunnr
and ALAND = 'TR'
and TATYP = 'MWST'
and TAXKD = '2'.
if sy-subrc = 0.
exit.
endif.
move: 'VBAK-WAERK' to BDC_TAB-FNAM, "Currency
'YTL ' to BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
write sy-datum to hf-date.
move: 'VBAK-AUDAT' to BDC_TAB-FNAM, "Doc.Number
hf-date to BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
move: 'VBKD-PRSDT' to BDC_TAB-FNAM, "Doc.Number
hf-date to BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
MOVE: 'BDC_OKCODE' TO BDC_TAB-FNAM, "OK-CODE
'/11 ' TO BDC_TAB-FVAL.
APPEND BDC_TAB. CLEAR BDC_TAB.
CALL TRANSACTION 'VA02'
USING BDC_TAB MODE Z_MODE UPDATE 'S'
MESSAGES INTO BDC_MSG.
IF SY-SUBRC NE 0.
clear bdc_tab. refresh bdc_tab.
endif.
endif.
endif.
ENDFORM. " change_order_va02
Regards,
Venkatans
-
Is there any function module to trigger workflow template
Hi,
I have created a workflow template in tcode PFTC, which i am using to send email, this workflow needs to be triggered once the document is posted, there are no events being triggered at that stage, My query is 'Is there any function module to trigger this workflow template from the user exit'?.
Thanks in Advance
SantoshUse FM
SAP_WAPI_START_WORKFLOW.
or if you have triggering event for the wflow use
SWE_EVENT_CREATE
SAP_WAPI_CREATE_EVENT
Thanks
Arghadip -
Function modules of standard the standard MSS applications
Hi,
I would like to know how to get the standard function modules used in the MSS applications like attendance overview and others. Is there anyone who can throw some light on this issue?
Regards,
Vijayu can either run tcodes st01 or st05 in the backend and run the iview in the front end and u can get the list of fms in the back end
or if nwdi is installed check the model in the corresponding dc in nwds .
reward points if helpful -
To overcome Authorization error while executing a Function module
Hello Friends,
In my custom workflow , I need to execute a validation function module ( SAP standard ) in a dialog step - Approval step.
But the issue is approvers will not have authorization to the FM ( They have minimum authorization - Just to approver the custom workflow ) .
So , I need to know is ther a option to execute the FM using another user ID ( a BATCH user ID ) .
thanks
Raghu Vmake the validation task before the dialogue step. a general task will run in background from user WF-BATCH and that wont need to authorization issue... after completion of this validation you can go for the dialogue step i.e the approval step..
|
__u2193__
| u25BA__| Validation task
u2193
__|___
|_?u25BA_| User decision
|
u25CF_______
u2193 u2193reject
|
approve -
Function Module to Read attributes value from Classification tab
Dear Experts ,
We are using material classification in the material master. Under classification tab of material master , we are maintaining certain characteristics and their corresponding values.
I want to read those values and use those in one of the report.
Can you please help me in identifying Function Module which will return the values of all the attributes of that material.
Thanks in advnce,
Regards,
NikhilYou can check those details using CT06 transaction.
FM CLAF_CLASSIFICATION_OF_OBJECTS can be used to retrive the data using program.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
class = gc_class
classtext = 'X'
classtype = gc_classtype
clint = gc_mmpsk
features = 'X'
language = sy-langu
object = l_object
key_date = sy-datum
initial_charact = 'X'
change_service_clf = ' '
inherited_char = 'X'
TABLES
t_class = lt_class
t_objectdata = lt_objectdata
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4. -
Exception Raising in Function Module
Hi,
I am having a custom function module that calls a standard function module. Custom function module has following exception defined: manufacture unknown.
Standard function module has enhancement sections that I implement. For a defined condition I have to raise an exception and return from the function module. However, the exception is not defined in function module.
Standard exception OTHERS is available. Is it possible to raise OTHERS exception from the code? I have tried statement Raise OTHERS. But it has syntax errors.
Regards,
Bhavish BhatiaHi,
If you raise an exception not defined at exception's tab, sy-subrc will be returned with the number of exception OTHERS.
Just with the sentece:
RAISE ZEXCEPTION. (Assuming that ZEXCEPTION is not included at exception's tab).
Regards,
Pablo. -
Difference between User Exit & a Functional Module
Dear all,
Please help me in understanding ,what's an User Exit & a Functional Module in
standard SAP.How do we define both of them.
1.When can/cannot I use an user exit?How to check for which T codes in PP
Module an User Exit can be used or present.
2.Can I use only a Functional Modules for Z developments or also an user Exit for
Z developments?
Please explain it in a simple way.
It will be a great help for me,Expecting for your help.
Regards
Mangaluser exit is a customised code used to extend or change normal SAP functionality.FM is a piece of reusable code uesed as a part of modularisation technique in SAP so that you can use this code again & again.
1. you create FM through se37. First create function group which in return will contain your FM. you creates user exits through SMOD and CMOD. In case of some standard programs there are special includes where you can add u r own code to extend standard functionality. ( in pro sapmv45a include sapmvfzz used).
to find an exit go to se80 or se84 give the package name and find exit corresponding to it ( ex for sales exits give package VA then search for exit )
for second point i didnt get get what u want to know?
for any z development u dont need at all to use exits u can do it thru SE38.USER-EXIT is add on functionality to customise u r standard transaction.
i hope this will clear u r doubt.reward points if helpful.
Rushikesh -
Better way of Sending E-Mail Notifications -- Workflow or Function Module ?
Hi All,
I have an implicit enhancement written in a t-code and based on some conditions I am creating event which inturn will trigger the workflow which inturn send e-mail notification via send mail step.
My question is:
Which one of the ways is better in terms of performance or overhead to send an e-mail notification. (There are no Approval processes in the workflow.. Just One Step E-mail Notification).
1) In the Implicit Enhancement, Trigger an event which inturn will trigger the workflow and e-mail is sent via send mail step.
2) In the Implicit Enhancement, Send the e-mail notification via standard function modules available... such as
"SO_OBJECT_SEND", "SO_DOCUMENT_SEND_API1".........
Would be grateful if someone can post the Advantages and Disadvantages in the above 2 ways of sending e-mail notifications..
Regards,
PR.Just to throw in some additional factors, consider exception handling:
An event-based send mail step is decoupled and thus independent of your application. This means your exception handling is separate. It means you do not need to hold up the transaction if there is a failure. All this depends on how important the mail is. You could of course add validation code to ensure the mail address is valid and send it elsewhere if not.
Regarding performance, consider how often this happens. If it's an infrequent occurrence then I wouldn't worry about performance. Hundreds or thousands a day is a different story.
So the answer is:
Workflow for low-volume scenarios (low performance impact) that are important (better error handling in WF),
Direct mail for high volume and noncritical
In between these, use whatever you like
One more thing to perhaps consider the future. What are the chances of the mail being replaced by a work item in furture? Sometimes it's only by observing a process after go live that you can identify the best solution. e.g. you may decide to replace the mail with a "Please go fix this" work item because you need deadline monitoring -
Workflow Agent Function Module
I am trying to develop a workflow for the approval of CATS time entries. Users will enter their time data and specify a receiving maintenance work order (CATSD-RAUFNR). The approver of the CATS time entry should be the user ID identified in the Partner tab of the maintenance work order identified in the CATS record.
I am trying to determine the agent in a workflow task based on a default rule for agent assignment. My idea was to capture the work order number (stored in table AUFK) from the CATS entry, then reference plant maintenance partners table (IHPA) to get the user id to use as the agent in the workflow.
I have developed a function module that works when testing it in the function builder, but when I try to test it in the "Maintain Rule" transaction (PFAC_CHG), it does not work. Can anyone let me know how to make this code work in the Maintain Rule simulation?
Here is my code for the function module:
FUNCTION Z_GET_WO_PARTNER.
""Local Interface:
*" IMPORTING
*" VALUE(ORDER_NUMBER) TYPE AUFNR OPTIONAL
*" TABLES
*" ACTOR_TAB STRUCTURE SWHACTOR
*" AC_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" NOBODY_FOUND
*INCLUDE .
TYPES: BEGIN OF PLANT_MAINT,
OBJECT TYPE IHPA-OBJNR,
PARTFUNC TYPE IHPA-PARVW,
PARTNER TYPE IHPA-PARNR,
END OF PLANT_MAINT.
TYPES: BEGIN OF ORDER_MASTER,
ORDER TYPE AUFK-AUFNR,
OBJECTN TYPE AUFK-OBJNR,
END OF ORDER_MASTER.
DATA: WA_MAINT TYPE PLANT_MAINT.
DATA: WA_ORDER TYPE ORDER_MASTER.
DATA: ITABIHPA TYPE STANDARD TABLE OF PLANT_MAINT.
DATA: ITABAUFK TYPE STANDARD TABLE OF ORDER_MASTER.
DATA: PARTNERVAR TYPE STRING.
DATA: OBJN TYPE STRING.
Get object number from order master
SWC_GET_ELEMENT AC_CONTAINER 'OrderNumber' ORDER_NUMBER.
CLEAR: ACTOR_TAB.
REFRESH: ACTOR_TAB.
SELECT SINGLE AUFNR OBJNR FROM AUFK INTO WA_ORDER
WHERE AUFNR = ORDER_NUMBER.
IF SY-SUBRC NE 0.
RAISE nobody_found.
ENDIF.
OBJN = WA_ORDER-OBJECTN.
*get Partner field (system user id) from Plant Maintenance: Partners table
SELECT SINGLE OBJNR PARVW PARNR FROM IHPA INTO WA_MAINT
WHERE OBJNR = OBJN AND PARVW = '§G'.
IF SY-SUBRC NE 0.
RAISE nobody_found.
ELSE.
ACTOR_TAB-OTYPE = 'US'.
ACTOR_TAB-OBJID = WA_MAINT-PARTNER.
APPEND ACTOR_TAB.
ENDIF.
ENDFUNCTION.
(sorry about the poor ABAP code...)To my guess, the function module interface is incorrect. The function module should contain only the following interface:
""Local Interface:
*" TABLES
*" ACTOR_TAB STRUCTURE SWHACTOR
*" AC_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" NOAGENT_FOUND
You seem to be passing an order number. you need pass container elements using the table AC_Container and cannot send it directly. For further information, look at the following tutorial:
http://www.****************/Tutorials/Workflow/Rules/Create.htm
Hope this helps
SS -
Function module for getting information about position workflow
Hi,
Version SRM 4.
Only approval WF (workflow for position WS145000015), my customer needs a report with fields about approvers and times.
We have implemented it mainly using the FM BBP_PDH_WFL_WI_FROM_OBJECT_GET and considering the task (WI_RH_TASK=TS14508044) there we get the agent.
But when the approver approve or reject we have not seen how we can get the information specific for each position
We need to know programatically how to get who is the approver for each position when he approve and we reject.
Does anybody know what funcion modules, methods we can use
Thanks
Best regards
JorgeBefore creating any customer reports, first check standard transaction SWI5, this workload analysis tool is very powerful and gives an immediate insight in the business processes.
for custom reports you have to use a couple of the SAP_WAPI_* function modules to safely retrieve all the data you need.
Kind regards, Rob Dielemans
Maybe you are looking for
-
HT5299 Does anyone know where I can find a thunderbolt to VGA adapter?
Does anyone know where I can find a thunderbolt to VGA adapter?
-
We received a request from the business to block time entry charges for WBS with C* status. Also, block time charges for PM order and Network order if their settlement receiver WBS is in C* status. I was trying to find a transaction or functionality
-
How to transfer all of my data to another mac?
Hello folks, I have a MacBook Pro 15", I recently bought an MBP 17", now I want to transfer all of my data from 15 to 17. All of my mails, network connections, settings and maybe applications. What should I do in order to transfer my data? Is there a
-
EJB module loading gives error in java project
Hi All, i made an ejb jar file.........i imported it in a java project and in this prj, i called a main function.........in this main function, i instantiated the ejb class....<b>But when i am running it then in the debug mode, i see that when the pk
-
When attempting to update or remove adobe reader x 10.1.1 i get fatal error
Is there any way to correct or bypass this?