Start workflow with BAPI / RFC
HI!
I want to start a workflow in Business workflow by RFC. Are there any BAPI for this that i can use. ?
Hey Dominik,
Use following FM to start Workflow
<b>SPH_SWW_WI_START_SIMPLE - RFC
SWW_WI_START_SIMPLE - Normal FM</b>
You can pass data by using parameter WI_CONTAINER in TABLES tab.
Reward points if the answer is helpful.
Thankx,
Mukul
Similar Messages
-
Starting workflow with HTTP-Post
Hello,
like I wrote in Starting workflow with HTTP-Post I have a problem with starting a workflow with a http-post:
I have an installation of SAP ERP 2005 SR2 IDES on Win2003 SR2 SP2 and want to start a simple workflow with an external application. Therefor I created an elementary test-workflow and set the general task flag so everybody is allowed to start it. So far everything work fine as I start it manually.
Now I want to start the workflow by an external application over a HTTP-Post as described in
http://help.sap.com/saphelp_47x200/helpdata/EN/54/de9e3887d6174fe10000009b38f842/content.htm
I configured the webserver (Customizing Web-Server) as follows:
Service: WebFlow (Intranet)
Address: http://192.168.0.216:8000/
Path: SAP/BC/WORKFLOW_XML/?
and sent a post via perl to http://192.168.0.216:8000/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=WS99900004
<?xml version="1.0" ?>
<WfMessage Version="1.0" xmlns="http://www.wfmc.org/standards/doc/WF-XML">
<WfMessageHeader>
<Request ResponseRequired="No">
<Key>http://192.168.0.216:8000/SAP/BC/WORKFLOW_XML/?protocol=01&localkey=WS99900004</Key>
</WfMessageHeader>
<WfMessageBody>
<CreateProcessInstance.Request StartImmediately="true">
<ObserverKey>http://192.168.0.224</ObserverKey>
</CreateProcessInstance.Request>
</WfMessageBody>
</WfMessage>
The Web-Server returns
C:\FH\SAP\perl-scripte>perl http-post.pl
HTTP/1.1 200 OK
Server: SAP Web Application Server (1.0;700)
Content-Length: 0
Content-Type: text/plain
Client-Date: Sun, 01 Jun 2008 11:00:24 GMT
Client-Peer: 192.168.0.216:8000
Client-Response-Num: 1
but it seems that nothing happens.
I also tried to post the XML via html-form-field with the same result.
Did I forgot something essential?Hello Daniel
It's 6 years after you posted your question, but I found your post very useful and thought it would be worth updating for future reference.
I've just managed to trigger a workflow via http.
URL :
http://server.domain:8000/sap/bc/workflow_xml?sap-client=110
Java :
URL obj = new URL(url);
URLConnection con = (URLConnection) obj.openConnection();
String userpass = "username:password";
String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes());
con.setRequestProperty ("Authorization", basicAuth);
con.setRequestProperty("Content-type", "text/xml");
con.setDoOutput(true);
DataOutputStream wr = new DataOutputStream(con.getOutputStream());
wr.write( xml.getBytes("UTF-8") );
wr.flush();
wr.close();
You can then read the response.
I found that until I added the sap_client parameter I couldn't debug in CL_HTTP_WORKFLOW_XML->IF_HTTP_EXTENSION~HANDLE_REQUEST. Then I found that the content type has to be "text/xml".
I set the xml variable (the data sent to ECC) to :
<?xml version="1.0" ?>
<WfMessage Version="SAP.1.0" xmlns="http://www.wfmc.org/standards/doc/WF-XML">
<WfMessageHeader>
<Request>
<ResponseRequired>Yes</ResponseRequired>
</Request>
<Key>HTTP://server.domain:8000/SAP/BC/WORKFLOW_XML/?~localkey=WS90000074</Key>
<Operation>CreateProcessInstance</Operation>
</WfMessageHeader>
<WfMessageBody>
<CreateProcessInstance>
<Key>HTTP://server.domain:8000/SAP/BC/WORKFLOW_XML/?~localkey=WS90000074</Key>
<ContextData>
<YOUR_CONTEXT_VARIABLE>x</YOUR_CONTEXT_VARIABLE>
</ContextData>
<StartImmediately>Yes</StartImmediately>
</CreateProcessInstance>
</WfMessageBody>
</WfMessage>
regards
Steve -
Start workflow with f. module to trigger event and how to pass data to BOR?
Hi,
I have a custom BOR object, with Event "Created". I have also an attribute in this BOR, just simple field Plant.
I have prepared a custom Workflow which is triggered when event Created of that custom BOR business object is raised.
To raise an event and to start a workflow I run f. module SAP_WAPI_CREATE_EVENT.
I have a problem to pass a Plant value to the Workflow container. In the PFTC_CHG for my Workflow I made the container
of BOR object, and the data binding &_EVT_OBJECT& => &MATREQ& (symbol of my BOR).
Below both of EVTOBJECT and MATREQ I can see my field Plant.
Then I run f. module SAP_WAPI_CREATE_EVENT with tables parameter input_container.
I try to fill the data in many ways, but the started workflow does not have Plant filled.
I try to use '_EVT_OBJECT.WERKS' in field name for input_container parameters.
Business Object is passed to the Workflow container, but I do not get the fields
as attributes. Do I have to use the parameters for the event Created ?
Thank you in advance
WojtekHello,
I've never used GUID as a key but I suppose the principles are the same - the object instance is equivalent to "something", say a widget.
This widget has attributes, e.g. the factory where it was created, the day it was created, its weight etc.
If you make a widget BOR object and you specify attributes then you're telling SAP how, given the key, it can deduce the value of the attributes. Widget 1234's weight can be looked up in table XXX by doing this select.
If you pass an object instance to a workflow then all you need to pass is the type of object and the key, the rest can be done by the workflow (or any other program). It can instantiate the object, and the attribute values are immediately available.
If you can instantiate the object in SWO1 and the attributes get values, then it should work in the workflow as well.
If not, please provide the code of the attribute or describe how it finds the attribute value.
regards
Rick Bakker
hanabi technology -
Hi All,
Iu2019m wondering if I can set up a secure connection between MII and ECC when I'm working with BAPI/RFC calls. I heard that MII supports the SAP proprietary interface called Secure Network Communication (SNC), but I donu2019t know if it is already enabled or if I should to do some additional configurationu2026
Does anyone have any experience on this topic?
Regards,
HenryHi Henry,
I never setup a SNC with MII. I can't see any properties in the JCO. In the JRA exist some properties for SNC.
Take a look on this:
http://help.sap.com/saphelp_nw04/helpdata/en/96/a4804258544b76e10000000a155106/content.htm
Thats all what I know about SNC.
BR
Pedro -
How to start a Workflow with a Dynpro action button.
Hi @ all,
i have the problem, that i want to start a workflow with a self-made dynpro.
The dynpro consist the following information who had to be transported in the workflow.
Stacknr.
User
Date
Time
and a tif data file
Somebody have an idea how it works?
i am very new in workflow. So if you want to help me than please with a step by step guide.
Thanks a lot.
Regards PhilHi,
Please go through the wiki. There are plenty of instructions. Also, this is commonly discussed topic, so try to search first. The key for your problem is that there are function modules to tirgger workflows (either directly or with an event).
Regards,
Karri -
Problem starting a workflow with a timed event.
Hi all,
I am trying to start a workflow with a timed event this way,
Start Date Expression: StringToDate("20:09", "HH:mm")
Reschedule: 1 day
I save the workflow at 20:07, but nothing happens at 20:09.
Any hints?
Thanks in advance.Hi Thomas,
Wf-XML was implemented when XI wasn't even a glint in SAP's eye. The message arrives in the SAP Web AS and triggers a workflow directly (or responds to an incoming workflow request message).
Exception: prior to the 6.10 release of the Web AS the incoming messages are received in an ITS.
Best regards,
Alan -
How to start with a RFC transaction
HI,
i am give with a rfc transaction issue i dont have any idea about it so can some boby guide me how can i get started early ie. tell me the way to approach and pls provide some documentsHi Ravi,
Search SDN for RFC related document and ask the specific questions if you don't find after searching to keep the forum neat and clean.
Just check these links:
http://help.sap.com/saphelp_nw04/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf
Regards,
Sachin -
Hello,
The project server workflows were running fine on my servers (2 App and 2 WFE). suddenly workflows are not working anymore.
and I am getting the below error:
DBNull.. Trace: at Microsoft.Office.Project.Server.Schema.WorkflowDataSet.WorkflowInstanceRow.get_WORKFLOW_INSTANCE_UID() at Microsoft.Office.Project.Server.BusinessLayer.Workflow.StartWorkflow(Guid projectGuid, Guid enterpriseProjectTypeUid, Boolean
isNewProject, Guid previousEntepriseProjectTypeUid, Boolean skipStage, Guid stageToSkipTo):
WorkflowExceptionStartingWorkflow (35115). Details: id='35115' name='WorkflowExceptionStartingWorkflow' uid='047a6f2d-8a44-e411-8bf4-0050568b37eb'.
I checked all DBs; all running fine. Also I tried to re-register the workflow with my site collection. but nothing worked.
Any suggestions?
Twitter : @MShoubaki | http://jo.linkedin.com/in/mshoubakiHi Mohammad,
I was able to resolve my issue by installing KB2880963. I did not have any of the other updates mentioned installed, but it did resolve the issue.
Note: I did need to restart my servers.
See Below from
http://social.technet.microsoft.com/Forums/windowsserver/en-US/b189e4b8-bb9e-4ade-a3d5-cd2e0f90e93f/workflow-not-working-after-installing-service-pack-1-and-patches?forum=sharepointadmin
Here is
the security update which you will need to install.
Update 2880963 for SharePoint Server 2013
http://support.microsoft.com/kb/2880963
Chcek the link for details.
http://expertsharepoint.blogspot.de/2014/08/workflow-not-working-after-installing.html -
Tutorial SyBase Unwired with SAP RFC
Hello everyone.
Does anybody have a tutorial or books how create project with SAP RFC?
I need to create a project approval Purchase Order (BAPI_PO_GETITEMSREL and BAPI_PO_RELEASE);
Thank's.Hi Leandro,
You can refer to the following video: http://www.youtube.com/watch?v=1ZcTJYsPzYQ
It creates a MBO based on a the standard BAPI: "BAPI_FLIGHT_GETLIST" and then a Mobile Workflow Form.
Althought version is 2.1 I've runned same test in version 2.0 and it worked fine.
Hope it helps
Cheers
Pablo. -
How to create SynBO with BAPIs from R/3 server?
Hi,
Can I get any documents or links regarding Syncbo creation with BAPIs from another R/3 server. I think I have to create RFC destination for this. The steps for creating RFC destination in Netweaver 2004s is also helpful for me.
Also I need the required configurations also.
Regards
ShemimHi Shemin,
Refer the following link for Mobile Development Kit
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21eba3a7-0601-0010-b982-92f1fca3258a
This will provide you with rules of creating BAPI wrappers and sample BAPI wrappers.
For creating RFC destination, contact your BASIS team member. You may not rights to do it by yourself. They will also tell the exact prodecure. It start with transaction SM59.
Regards,
Rahul -
Workflow Event Trace:RFC Status : Error in target syst
Hi Gurus,
I am working on a custom workflow which is called in a loop from a transaction. There is a transaction which creates multiple documents. We need to start the workflow for each of them. This works fine for around 80-85 documents. For the remaining documents workflow does not start. I am trying with 200 documents.For the remaining documents event is triggered and in event trace, i see the information that receiver started correctly.But in RFC Status it displays as 'Error in Target System'. This is definitely due to system overload. Is there something that can be done for the same. Is this number configured somewhere like how many workflows can work in parallel.Hello,
How do you know it's due to system overload?
200 workflows should be okay, but how quickly are they created? If it's all done within one second then yes, there could be a problem. You could stretch it out programmatically or you could use the queue, as Sue suggests.
regards
Rick Bakker
hanabi technology -
Dear all,excuse me for my english.
1) I want to create workflow with
record.For doing this i'm creating service provider for workflow
and use standart function to start wf.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/057 03a1ff16f68e1
0000000a11402f/content.htm
For this function programm send input container , that must
include parameters:
- RECORD Business object RECORD.
- AKTID: ID of the record
- ACTCL: Document class of the record
- RMSID: RMS ID of the RMS in which the record was
created.
- AKTSPSID: Element type of the record
- FIRSTAGENT: "US" + current user name
- AKTLOGSYS: RFC destination of the system in which
Records
But in debug mode i can see only last 4.What i must do for
programm sends also record,aktid, actcl?
2)When adding a document to case we may execute method create, but in this method we need that BO reading elements from container.
How i can solve this problem?
Help me plz, thanks.You have created your own function module to start the workflow, is that correct? The obvious question then is: How do you set up the container to pass parameters to the workflow? This isn't done with customizing when you create your own function module, it is done with ABAP coding.
There are (at least) two possibilities for passing a BOR object instance to a workflow. The simple one is to raise an event for the object, then the BOR object will be found as the event object and can be bound from the triggering event. Another possibility is to fill the container manually. That means you must create the object ID (persistent object reference). Typically you will use the macros available in <cntn01> to create this object reference. Then you must put this object ID in the container with the correct element name, i.e. the name you find in the workflow definition.
<i>PS: When you put a URL in here, use the URL option to hide the address so the link works. Your URL contained two spaces and didn't work immediately. When pasting into Firefox the spaces in the URL were converted to underscores, so at the URL is technically valid, but the page is not found.</i> -
Hi,
My friend asked me to post this question in his name here.
He wants to create a simple workflow in PM. After user creation of the equipment in IE01 workflow need to be started and give the task for asset number creation to the next user.
Do you have any manuals like "workflow for dummies" )?
BR
Saso
PHi
Workflow automates the steps and activities in a business process according to predefined procedures and rules.
Workflow presents information and documents to the appropriate knowledge worker or agent (another entity such as a program) to make a decision or perform an activity.
Workflow tracks each and every step in the process flow and maintains an ongoing status.
Workflow also collects and reports all of the metrics associated with the execution and completion of the process.
Check the below links u will get lot of info..
http://www.sap-press.com/product.cfm?account=&product=H950
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Go through the following links on FORK :
http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
http://www.insightcp.com/res_23.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
For more reference on workflow: http://****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/9277a346f311d189470000e829fbbd/frameset.htm
Check these links.
http://www.sapgenie.com/workflow/index.htm
/people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
Debug a workflow.
This has a step by step procedure :
http://fuller.mit.edu/workflow/debugging.pdf
www.erpgenie.com/sap/workflow/debugging.htm
http://www.erpgenie.com/workflow/debugging.htm?2b5de440
Workflow tutorials with step-by-step and with screenshots are available at
http://www.****************/Tutorials/Workflow/Workflow.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://www.sapbrain.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
Regarding Work Flow
work flow scenarios.
1. applying for a leave.
2. approval process.
3. material creation process.
4. mainly work flow is for notification purpose.
chk this links
http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.erpgenie.com/workflow/index.htm
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
http://www.insightcp.com/res_23.htm
A good tutorial
http://www.thespot4sap.com/articles/Invoice_Verification_Automation_Using_SAP_Workflow.asp
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
/people/alan.rickayzen/blog
/people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
a good book
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.sap-press.com/downloads/h950_preview.pdf
Check the following PDF
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
also seach the workflow forum: SAP Business Workflow
Transactions
AWUV Wizard for event creation Definition tools -> Event creation -> Set up with wizard
MCA1 Workflow Information System Reporting -> Workflow Information System (WIS)
OOAW Evaluation paths
PFAC Maintain standard roles
PFAC_CHG Change roles Definition tools -> Standard roles -> Change
PFAC_DEL Delete roles Definition tools -> Standard roles -> Delete
PFAC_DIS Display roles Definition tools -> Standard roles -> Display
PFAC_INS Create roles Definition tools -> Standard roles -> Create
PFOM Maintain assignment to SAP organizational objects Definition tools -> SAP org. objects -> Create assignments
PFOS Display assignment to SAP organizational objects Definition tools -> SAP org. objects -> Display assignments
PFSO Organizational environment of a user
PFT Maintain customer task
PFTC General task maintenance
PFTC_CHG Change tasks Definition tools -> Task/Task groups -> Change
PFTC_COP Copy tasks Definition tools -> Task/Task groups -> Copy
PFTC_DEL Delete tasks Definition tools -> Task/Task groups -> Delete
PFTC_DIS Display tasks Definition tools -> Task/Task groups -> Display
PFTC_INS Create tasks Definition tools -> Task/Task groups -> Create
PFTR Standard task for transaction
PFTS Standard task
PFWF Maintain workflow task (customer)
PFWS Maintain workflow template
PPOC Create organizational plan Definition tools -> Organizational plan -> Create
PPOM Maintain organizational plan Definition tools -> Organizational plan -> Change
PPOS Display organizational plan Definition tools -> Organizational plan -> Display
SWDA Ongoing Settings Administration -> Settings
SWDC Workflow editor administration data
SWDM Business Workflow Explorer Definition tools -> Business Workflow Explorer
SWE2 Display and maintain event type linkage Utilities -> Events -> Type linkages
SWE3 Display instance linkages Utilities -> Events -> Instance linkages
SWE4 Switch event log on/off Utilities -> Events -> Event/log -> On/Off
SWEC Link change documents to events Definition tools -> Event creation -> Change documents -> Linkage
SWED Assignment of change document objects to object types Definition tools -> Event creation -> Change documents -> Define workflow properties
SWEL Display event log Utilities -> Events -> Event log -> Display
SWF3 Workflow Wizard Explorer Definition tools -> Wizards -> Workflow Wizard Explorer
SWF4 Workflow Wizard Repository Definition tools -> Wizards -> Workflow Wizard Repository
SWI1 Selection report for workflows Utilities -> Work item selection
SWI2 Work item analysis Reporting -> Work item analysis
SWI3 Workflow outbox Runtime tools -> Workflow outbox
SWI4 Task analysis Reporting -> Task analysis
SWI5 Workload analysis Reporting -> Workload analysis
SWI6 Object links Runtime tools -> Object links
SWI7 Workflow resubmission folder From Integrated Inbox or Workflow Outbox
SWI8 Error overview Part of administration of workflow runtime system (transaction SWUF)
SWL1 Settings for dynamic columns Customizing, part of ongoing settings
SWLC Check tasks for agents Utilities -> Consistency check -> Organizational assignment
SWLD Workbench for Workflow 4.0
SWLP Copy plan version
SWLV Maintain work item views Customizing, part of ongoing settingS
SWLW Workbench for Workflow 3.0
SW01 Business Object Builder Definition tools -> Business Object Builder
SW06 Customizing object types From Business Object Builder, choose Settings -> Delegate -> System-wide
SWU0 Event simulation Utilities -> Events -> Simulate event
SWU2 RFC monitor Utilities -> Workflow RFC monitor
SWU3 Customizing consistency check Utilities -> Customizing
SWU4 Consistency check for standard tasks Utilities -> Consistency check -> Task -> Standard task
SWU5 Consistency check for customer tasks Utilities -> Consistency check -> Task -> Customer task
SWU6 Consistency check for workflow tasks Utilities -> Consistency check -> Task -> Workflow task
SWU7 Consistency check for workflow templates Utilities -> Consistency check -> Task -> Workflow template
SWU8 Switch technical trace on/off Utilities -> Technical trace -> On/off
SWU9 Display technical trace Utilities -> Technical trace -> Display
SWUD Diagnostic tools Utilities -> Diagnosis
SWUE Trigger event Utilities -> Events -> Generate event
SWUF Runtime system administration Administration -> Runtime system
SWUG Workflow start transactions Definition tools -> Workflow start transactions
SWUI Start workflows From the R/3 initial screen, choose Office -> Start Workflow
SWUS Start tasks Runtime tools -> Start workflow
SWUY Wizard for message linkage to workflow Definition tools -> Wizards -> Create "Call workflow from message"
SWX1 Create notification of absence
SWX2 Change notification of absence
SWX3 Display notification of absence
SWX4 Approve notification of absence
SWXF Form applications: Access point Environment -> Demo examples -> Fill out form
Reports
RSWWWIDE Delete work items
RHSOBJCH to fix PD Control Tables
Tables
SWW_OUTBOX - Lists Workflows in outbox together with status
SWW_CONT - Container Contents for Work Item Data Container
SWW_CONTOB- Container Cont. for Work Item Data Container (Only Objects)
SWWLOGHIST- History of a work item
SWWORGTASK- Assignment of WIs to Org.Units and Tasks
SWWUSERWI - Current Work Items Assigned to a User
SWWWIHEAD - Header Table for all Work Item Types
Regards
Anji -
What are idocs, BAPI, RFC?
Hi,
What are idocs, BAPI, RFC?
Regards,
anujHii,
BAPIs and RFCs are the functions exposed by SAP, when it comes to the integration part, you have to know that particular BAPI or RFC. For example, if you want to get table data or want to query to the SAP table then you use RFC_READ_TABLE. Similarly if you want to know whether customer is existing, you need to know which RFC/BAPI has this info. May I know which tool are you using, are you talking about generating a proxy and playing around that.
Data Creation in Idoc
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
IDoc is a intermediate document to exchange data between two SAP Systems.
*IDocs are structured ASCII files (or a virtual equivalent).
*Electronic Interchange Document
*They are the file format used by SAP R/3 to exchange data with foreign systems.
*Data Is transmitted in ASCII format, i.e. human readable form
*IDocs exchange messages
*IDocs are used like classical interface files
IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
WE30 - you can create a IDOC type.
An IDOC with data, will have to be triggered by the application that is trying to send out the data.
FOr testing you can use WE19.
How to create idoc?
*WE30 - you can create a IDOC type
For more information in details on the same along with the examples can be viewed on:
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
http://www.sappoint.com/presentation.html
http://www.allsaplinks.com/idoc_search.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://www.erpgenie.com/sapedi/idoc_abap.htm
To Create Idoc we need to follow these steps:
Create Segment ( WE31)
Create Idoc Type ( WE30 )
Create Message Type ( WE81 )
Assign Idoc Type to Message Type ( WE82 )
Creating a Segment
Go to transaction code WE31
Enter the name for your segment type and click on the Create icon
Type the short text
Enter the variable names and data elements
Save it and go back
Go to Edit -> Set Release
Follow steps to create more number of segments
Create IDOC Type
Go to transaction code WE30
Enter the Object Name, select Basic type and click Create icon
Select the create new option and enter a description for your basic IDOC type and press enter
Select the IDOC Name and click Create icon
The system prompts us to enter a segment type and its attributes
Choose the appropriate values and press Enter
The system transfers the name of the segment type to the IDOC editor.
Follow these steps to add more number of segments to Parent or as Parent-child relation
Save it and go back
Go to Edit -> Set release
Create Message Type
Go to transaction code WE81
Change the details from Display mode to Change mode
After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter
Click New Entries to create new Message Type
Fill details
Save it and go back
Assign Message Type to IDoc Type
Go to transaction code WE82
Change the details from Display mode to Change mode
After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter.
Click New Entries to create new Message Type.
Fill details
Save it and go back
Check these out..
Re: How to create IDOC
Check below link. It will give the step by step procedure for IDOC creation.
http://www.supinfo-projects.com/cn/2005/idocs_en/2/
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
go trough these links.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
2.IDOCs are independent of the sending and receiving systems.
3.IDOCs are independent of the direction of data exchange.
The two available process for IDOCs are
Outbound Process
Inbound Process
AND There are basically two types of IDOCs.
Basic IDOCs
Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
Extended IDOCs
Extending the functionality by adding more segments to existing Basic IDOCs.
To Create Idoc we need to follow these steps:
Create Segment ( WE31)
Create Idoc Type ( WE30)
Create Message Type ( WE81)
Assign Idoc Type to Message Type ( WE82)
imp links
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
www.sappoint.com
--here u can find the ppts and basic seetings for ALE
http://sappoint.com/presentation.html
www.sapgenie.com
http://www.sapgenie.com/ale/index.htm
WE30 - you can create a IDOC type.
An IDOC with data, will have to be triggered by the application that is trying to send out the data.
Try this..Hope this will help.
SAP ALE & IDOC<<<<
Steps to configuration(Basis) >>
1. Create Logical System (LS) for each applicable ALE-enabled client
2. Link client to Logical System on the respective servers
3. Create background user, to be used by ALE(with authorizaton for ALE postings)
4. Create RFC Destinations(SM59)
5. Ports in Idoc processing(WE21)
6. Generate partner profiles for sending system
The functional configuration(Tcode: SALE)
Create a Customer Distribution Model (CDM);
Add appropriate message types and filters to the CDM;
Generate outbound partner profiles;
Distribute the CDM to the receiving systems; and
Generate inbound partner profiles on each of the clients.
Steps to customize a new IDoc >>>
1. Define IDoc Segment (WE31)
2. Convert Segments into an IDoc type (WE30)
3. Create a Message Type (WE81)
4. Create valid Combination of Message & IDoc type(WE82)
5. Define Processing Code(WE41 for OUT / WE42 for IN)
6. Define Partner Profile(WE20)
Important Transaction Codes:
SALE - IMG ALE Configuration root
WE20 - Manually maintain partner profiles
BD64 - Maintain customer distribution model
BD71 - Distribute customer distribution model
SM59 - Create RFC Destinations
BDM5 - Consistency check (Transaction scenarios)
BD82 - Generate Partner Profiles
BD61 - Activate Change Pointers - Globally
BD50 - Activate Change Pointer for Msg Type
BD52 - Activate change pointer per change.doc object
BD59 - Allocation object type -> IDOC type
BD56 - Maintain IDOC Segment Filters
BD53 - Reduction of Message Types
BD21 - Select Change Pointer
BD87 - Status Monitor for ALE Messages
BDM5 - Consistency check (Transaction scenarios)
BD62 - Define rules
BD79 - Maintain rules
BD55 - Defining settings for IDoc conversion
WEDI - ALE IDoc Administration
WE21 - Ports in Idoc processing
WE60 - IDoc documentation
SARA - IDoc archiving (Object type IDOC)
WE47 - IDoc status maintenance
WE07 - IDoc statistics
BALE - ALE Distribution Administration
WE05 - IDoc overview
BD87 - Inbound IDoc reprocessing
BD88 - Outbound IDoc reprocessing
BDM2 - IDoc Trace
BDM7 - IDoc Audit Analysis
BD21 - Create IDocs from change pointers
SM58 - Schedule RFC Failures
Basic config for Distributed data:
BD64: Maintain a Distributed Model
BD82: Generate Partner Profile
BD64: Distribute the distribution Model
Programs
RBDMIDOC Creating IDoc Type from Change Pointers
RSEOUT00 Process all selected IDocs (EDI)
RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
RSARFCEX - Execute Calls Not Yet Executed
RBDMOIND - Status Conversion with Successful tRFC Execution
RBDMANIN - Start error handling for non-posted IDocs
RBDSTATE - Send Audit Confirmations
FOr testing you can use WE19.
BAPI
BAPI Programming guide: -
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
BAPI user guide: -
http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
BAPI STEP BY STEP PROCEDURE: -
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
Example:-
http://www.erpgenie.com/abap/bapi/example.htm
PDF download: -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
Also refer to the following links..
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.planetsap.com/Bapi_main_page.htm
http://www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
BADI
Check these links on BADI
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
Check this link for advantage of BADIs over User exits
http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
Reward points if useful.
Regards,
Sushama -
BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP
Hi,
Is there any BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP and VBPA tables for specified inputs.
The BAPI or RFC should return the Sales Order details with tables VBAK,VBAP,VBEP and VBPA.
Rewards if useful.
Thanks,
MichTry creating an RFC calling FM: SD_SALES_DOCUMENT_PREFETCH with required details for Header, Item, Schedule and Partners.
Below code can give you idea in handling the FM.
PARAMETERS: p_vbeln TYPE vbeln_vl OBLIGATORY.
CONSTANTS: c_x TYPE char01 VALUE 'X'.
DATA: st_view TYPE order_view,
i_vbak_key TYPE TABLE OF sales_key,
i_vbak TYPE TABLE OF vbak,
i_vbap TYPE TABLE OF vbapvb,
i_vbep TYPE TABLE OF vbepvb,
i_vbpa TYPE TABLE OF vbpavb.
START-OF-SELECTION.
MOVE c_x TO : st_view-header,
st_view-item,
st_view-sdschedule,
st_view-partner.
APPEND p_vbeln TO i_vbak_key.
CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'
EXPORTING
i_sales_view = st_view
i_memory_read = 'A'
TABLES
i_vbak_keytab = i_vbak_key " List of Sales Orders to extract
fxvbak = i_vbak " Header
fxvbap = i_vbap " Item
fxvbep = i_vbep " Schedule Lines
fxvbpa = i_vbpa. " Partners
Maybe you are looking for
-
I can no longer see my account name so I can gain access to my information, but now all I get is a Guest user account and it won't let me log into that account. All it lests me do is re-start the computer and use it in restricted mode. Can someone pl
-
I have a simple sharepoint workflow that sends and email to users. I know that the mail portion works because I can put a user's email address in the to: field and it sends fine. If I use a string variable with the email address, I get a workflow e
-
How do I delete photos that I downloaded from my IMac in Iphoto?
-
I want to add some text to my idvd that is a word document and don't know how to add it to the magic idvd. I've tried dragging it and it won't work. I'd like to add some word files to the piece but can't seem to figure it out. Seems like it should be
-
Our client has purchased material through OLD ERP system.Now,we want to return the material to supplier due to rejection. It is to be sent through SAP.I have tested the following scenario- 1) Created return PO. 2) Made MIGO . For excise challan , I h