Custom inbound Idoc error handling/ Workflow
Dear Experts,
I have a requirement where in I created a custom inbound idoc, but now i need to handle the errors in the workflow and notify the users thru workflow on an error.
Can some one please provide me a step by step guide on how to create a organizational unit, position and assign users to the position... and any other steps that need to be configured to notify the user on the error.
I'm pretty new to all these organizational uints and workflow related stuff. Any step by step would really be helpful.
Thanks for your time.
-Amit.
Moderator message: sorry, these forums cannot replace proper training, if there is step by step guides out there, then please use the search functions.
Edited by: Thomas Zloch on Oct 31, 2010 11:50 AM
Vittal,
1. If your requirement is for a SAP Standard Basic Message type and a Z extension: Then you simply have to find out the 'Standard Task' associated with basic type. You shouldn't worry about extensions. The standard task will be triggered at input error.
2. If your requirement is for a Z basic type i.e. you have created a customer IDOC for a custom processing: There are many dependencies on how you can achieve this. Firstly, you need to know how you're are processing this Z_IDOC. Are you using a standard FM or custom workflow or custom FM? There should be some triggering event within the processing of this Z_IDOC which will raise a certain flag when the error you want to capture happens (or when there is a generic error). You can configure this event in binding objects to trigger a workflow task. If you take a look at any standard tasks, you'll get an idea how the triggering event happens.
Once the workflow task (you can use custom task or use a standard task i.e. by triggering a standard event within the IDOC processing program) is triggered, you can either send it to SAP inbox, e-mail, trigger another processing etc. This is altogether another story.
So bottomline: For custom IDOC processing, you need to trigger an event when error happens. This can be a custom event or a standard event. This event should be linked to a task (custom/standard - check in SWETYPV). Bind all of these in PFTC. Once the task is triggered, you can do whatever you want to do with it.
Similar Messages
-
Hi,
I am using message type PORDCR1 to create a purchase order. This is calling a BAPI_PO_CREATE1 to create the PO inside. Now I have coded some validation in user exit that is available in Pre processing. So when there is any any error i populate the table bapi_return.
Now what is happeing after executtion of user exit it continues the function module and find out if there are any more errors. After execution it shows all the errors.
My requirement is when ever i get an error in user - exit it should stop further processing and write that error in log.
Can anybody please suggest me how can we do this.
Thanks,
Neha.Think this as your last option:
1) create and attach ZBAPI_PO_CREATE1 in ALE Config
2) COPY your User Exit code at the start and it it gets through then only submit BAPI_PO_CREATE1 -
Handle Idoc errors through workflow
How to handle inbound idoc errors through workflow and How to handle outbound idoc errors through workflow
Thanks,
Ashain transaction SALE go to menu Basic Settings/Perform Automatic Workflow Customizing
then in WE46 you can assign a workflow task to various errors
in partner profiles (WE20) you can assign post processing agent per partner/message type -
Idoc error handling for error status 51
hi all,
I am trying to set up inbound idoc error handling. For that I have activated task TS00008068.
This task gets triggered for all error statuses except error status 51.
Could you please help me understand why it doesn't trigger the task for error status 51?
KR,
VithalStandard task 8068 is triggered for IDOC syntax, partner profile issues etc. The error message 51 is probably coming in from an inbound function module.
Firstly there isn't a single standard task that will be triggered for all errors. Each IDOC error, depending on the events triggered, will fire a predefined standard task. For example, you're trying to process an order inbound and the IDOC is successfully created and passed on to application. Then the inbound FM will attempt to create an order and probably fail at determining a sales order or a ship to etc due to a missing setup. Then a different event is triggered which is attached to standard task 8046. That is different from 8068.
Here is small subset of error 'vs' tasks:
Message Workflow Task
SHPCON TS20000051
INVOIC TS00008057
ORDERS TS00008046
SDPICK TS00008031
WMMBXY TS00008009
So you have to choose the IDOC which you want to activate WF task. Then look at the event that is associated with it. Then make sure the event is linked to the message type and routing is active. -
Outbound Idoc error handling through workflow
Hi,
I am trying to set up the workflow for outbound error handling. I found that there is a task TS00007989 which need to set up.
How this task can be triggered when outbound idoc error occurs in the system?
Kr,
Vithalprasad
Edited by: Vittalprasad on Jun 9, 2010 11:52 AMHi,
Have a look
Outbound IDoc Error Handling via Workflow
Outbound idoc error handling through workflow -
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 -
Inbound idoc processing by workflow
Hello,
How can I find if an inbound IDoc has been processed via workflow ?
following are details -
1)status records 50 and 64 for the idoc show RFC user ID whereas 62 and 53 show WORKFLOW_020 user ID.
2)manual re process in test system using WE19 has all four status records by login user ID.
3)BD67 values for this process code was checked for the start events.
4)I checked standard task 30200090 following oss note 325361
5)The invoice document posted via this idoc has created by user ID as WORKFLOW_020
I do not have full knowledge of inbound idoc processing via workflow and I am in the process of learning the same. Kindly help.
thank you very much in advance,
BhaktiHello,
How can I find if an inbound IDoc has been processed via workflow ?
following are details -
1)status records 50 and 64 for the idoc show RFC user ID whereas 62 and 53 show WORKFLOW_020 user ID.
2)manual re process in test system using WE19 has all four status records by login user ID.
3)BD67 values for this process code was checked for the start events.
4)I checked standard task 30200090 following oss note 325361
5)The invoice document posted via this idoc has created by user ID as WORKFLOW_020
I do not have full knowledge of inbound idoc processing via workflow and I am in the process of learning the same. Kindly help.
thank you very much in advance,
Bhakti -
Inbound IDOC error 51 Application Document not posted
Inbound IDOC error 51: Item: 002 Goods/Service number not entered So application document not posted.
Please help me outhi
check whether service number is available in the idoc if not check the field mapping -
Regarding idocs error handling
HI . i want to learn idoc error handling on sap xi side because my current project is in PRODUCTION They implemented lot of idocs so is there any documents(guides ) regarding error handling of idocs for both sender and receiver side.
Hi
Please refer File to IDOC Scenario..
the 2nd post (Troubleshooting IDOC scenario) from Swarup Sawant , you will get a very good understanding
as lots of reference links are attached with different scenarios.
Regards,
Srinivas -
IDOC Error handling using workflow for Inbound process.
I have a custom idoc which I am processing using a custom inbound function module with the help of a custom process code. I have made the config in BD51/bd67/We42/We57and doing the coding in the inbound function module to handle workflow. But i am still unable to get the workflow item in my inbox. I have set my userid in the partner profile as the agent to receieve the workflow.
Is there any other config that needs to be done vis-a-vis workflow ? like..assignement of some standard task,etc etc ? The message type I am using for the IDoc is zWMMBXY .
Pls advice..thanksSeetha,
I have this already..
IDOCPACKET
Object type IDPKWMMBXY
End event MASSINPUTFINISHED
IDOC
Object type IDOCWMMBXY
Start event INPUTERROROCCURRED
End event INPUTFINISHED
Application object
Object type BUS2017
Start event -
Handling outbound IDOC errors through workflow TS00007989
Hi,
I want to sent an notification e-mail to external mail box when an outbound idoc has an error status. This needs to be achieved through a workflow template.
I noted that there is a standard task TS00007989 in WE40 which is used for handling outbound idoc errors.
Moreover i couldnt find any trigerring events for the above task.
Can any one help me with a step by step guide for achieving this.
Regards,
KrishnakumarHi,
the single step task TS00007989 that you see is NOT TRIGGERED thru' any BO's event. It is created by the std. pgm RSEWFERR. If you go to the wflow log of the witem generated by it, you will see the Creator.
And you can control the activation / deactivation of these single step tasks for various inbound and outbound Error IDOC's thru' Transaction WE46.
If you want, create a single step task of your own and maintain that task here. But, you will ahve to know the exact BO like IDOCORDERS or IDOCEMBMAS etc. or look for events triggered by General IDOC objects like IDOCAPPL.
Hope this helps.
venu -
IDoc error handling using workflows
Hi,
I have a requirement to generate IDocs in the Source system and process them in the target system. The IDoc message type is HRMD_ABA. And I am using standard processes to generate them and post them using PFAL and RBDAPP01 program respectively.
All this is working fine. But now I need to include error handling in the source and the target systems which would send mails to a User's Outlook mailbox whenever there is an error. I mean to say, we need more functionality than just monitor them through WE05 transaction.
Can any one tell me how this can be achieved. I have been looking into the program RSEIDOCA which would send workflows to SAP Inbox, but I need to send it to Outlook Inbox.
And I have heard that there is a workflow process which would help me to do this.
All your answers would be highly appreciated.
Thank you in advance,
Sid.Hi,
First Step:
You have to maintain the e-mail-address in SU01 for required users.
Second Step:
SCOT Configuration
Third Step:
Depends on your SAP Version do configuration SWNADMIN
Or excuting the report RSWUWFML2 as the background job.
Thanks and Regards,
Prabhakar Dharmala -
Idoc Error Handling through workflow
Hi all,
I want to send the Error Notification for a particular person for whom the task orders is assigned in the organization chart.
What all the things I need to do.
I have created the org chart and I have assigned the task to a user under a position.
I have linked the Idoc error event in Tcode SWETYPV .
What all the things I am supposed to do.
Regards
KumarPlease go to transction WE20, pick the Partner / Idoc that you would like to assign the Org. chart to.
Then you should configure "post processing :permitted agent" Tab with the Organizational unit.
Then double click the process code associated with the Idoc Type and click the button next to the Function Module associated with this process code.
Check IDoc Tab and see if Stanard Event INPUTERROROCCURRED is present in the field called start event. -
Scheduling agreement inbound idoc error.
Hi Experts,
I am creating an Scheduling Agreement with DELFOR02 inbound idoc, while creation the Scheduling Agreement system is giving error regarding Scheduling Agreement not found. In fact I have create the Scheduling agreement by T-code VA31. And I check the table VLPKM, there are relevant record stored.
Then I maintain the view V_T663A to not check everything when inbound idoc recevie. and tried agan in t-code BD87. the system give me another message Make an entry in all required fields.
How can I handle these error messages?
Thanks..
Regards....Does any one has ideas for that?
Thanks. -
Inbound Idoc error notification. Help needed
Hi Gurus,
Sorry, maybe it's a silly question.
I have a requirement to send an email when occurs any kind of error at inbound processing. The dest. of this mail must be the postprocessing agent from partner profile (WE20) of the message.
I have standard and custom process codes.
I've followed notes 44416 and 11610 but it still doesn't works.
Somebody knows how can I achieve that?
Thanks in advance,
David Gimeno.Thanks to all, but it still don't works.
J&Y: this report is necessary to process error Idocs? As I understand, notifys an alert message if a max number of error idoc is reached.
I've done the following things:
- Define custom message type (WE81)
- Bind message (custom) with Idoc type (standard) (WE82)
- Define FM with message type (we57)
- Define FM attributes (BD51)
- Define Process. Code (WE42)
- Define Partner profile with my custom Process Code.
I've tried to link my custom process code with an Standard Object (IDOCAPPL and IDOCPACKET) at BD67, but system brings me the message B1405 Application object type is not planned .
I've defined all tasks at http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b81b943d711d1893e0000e8323c4f/frameset.htm as standard tasks, and I've assigned it to a Org. Structure.
Finally, I enter an Idoc with an error wich brings to Idoc status 51 but I have no error notification. (I've found at SWI1 but no work item is generated).
Does anyone knows what I'm doing wrong, or what else can I do?
Thanks all in advance!!!!
Maybe you are looking for
-
Is there a way to avoid image "compression/downscaling" on the iPad yet??
Is there a way to avoid image "compression/downscaling" on the iPad yet?? I'm sick of saving/downloading/transferring images to my iPad, only to find them being downscaled when saved to the device.. Is anyone aware of a way to change this?? <edited b
-
Best practice for viewing short home videos on AppleTV?
Please help me find a simple way to view short home videos taken on a digital video camera, photo camera or cell phone on my Apple TV. I've been using AppleTV to showcase my photos for a couple months now, but all the short little videos I take along
-
Hi My Oracle details are: Oracle Database 11g Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for Solaris: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production I'm getting
-
Hi All, I'm learning XI from some material i have . i'm doing my masters . I have no real time experience . Can i take the certification test or is it a must that some company sponcers me. How much is the fee for certification.If
-
I cannot find webmail in the admin console
Help! I have paid hosting site with email accounts and the instructions say that there is a webmail link in the BC admin console. I cannot fine it ANYWHERE. The second option suggest entering mail.mydomain.com. This is not working either. I was able