0% found this document useful (0 votes)
31 views25 pages

GU - Workflow Configuration of Inbound IDOC

Uploaded by

Abdelaziz Tounsi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views25 pages

GU - Workflow Configuration of Inbound IDOC

Uploaded by

Abdelaziz Tounsi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

https://s4hclub.

com/ ©

https://www.youtube.com/@s4hclubforyou ©

Workflow Configuration of Inbound IDOC processing

Standard SAP IDoc interface uses ALE as the transfer mechanism and workflow functionality is used
to route a failed IDOC to a specific individual or workgroup.

Application Link Enabling (ALE) is a component-based architecture enabling software component


from SAP and from other software vendors to communicate and be integrated with each other. ALE
can integrate business processes between SAP Systems and non-SAP systems as well as between SAP
Systems.

Business data is exchanged with an external system using the IDoc Interface. The IDoc Interface
consists of the definition of a data structure and a processing logic for this. The data structure is the
IDoc. It is the exchange format that unites the communicating systems. Using IDocs you can define an
exception handling within the SAP System using SAP Business Workflow, without the need for the
data to already be an SAP application document.

To implement the distribution of business application processes and functions using ALE you need to
construct a logical Distribution Model of the whole system. Within the framework of this
configuration, customers can specify which applications are to run on which systems and which
messages are to be exchanged between the applications.

1. Main Path: Tools->Business Communication

First step in the workflow configuration is to identify the IDOC type to be used for the inbound
processing

The main menu path to configure the IDOC can be found under Tools in SAP Easy Access Screen:

ALE > Inbound data processing

Business Communication > IDOC setup

Business Workflow > Org setup

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

2. WE30 - Identify the IDOC type

Identify the IDOC types for the inbound transaction, e.g.: ORDERS05 for orders, DELVRY03 for
shipments, etc

Make sure to use the latest available version, e.g.: for shipment, the latest would be DELVRY03

Make sure the IDOC has been released

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

3. WE81 - Identify the Message type

Identify the message type for the transaction, e.g.: ORDERS for orders, SHPCON for shipments, etc

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

4. WE82 - Link IDOC to Message type

In this screen, link the Message type with the Basic type

5. WE57 – Link IDOC to Function Module

For a custom function module that will be used to process the inbound IDOC:

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Use SE37 to create the FM

Find one that is related and copy

Create a new entry with the new custom FM

6. BD51 – Define FM attribute

If your custom FM would be using a 'Call Transaction', enter '2' in 'Input'

Check the 'Dialog allow', this will allow to run foreground and background if checked

7. WE42 – Define Process Code

For custom FM, create a new process code

Click on Logical message

Enter the Message Code if your setup required it, eg, you can setup different message code
that will be use in the FM to identify logic specific for Beaconlite vs MBP

Message Code can also be used to assign different org. unit for fallout notifications

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Double click on the process code to get to this screen

Click on the ==> to go to next screen

This setup will be use to configure the fallout event triggering

SWE2 – Event linkage

Take note of the Receiver type, this will be use in subsequent fallout configuration

Workflow Configuration ALE / Organization Unit:

8. ALE configuration

Transaction Code: SALE

Steps:

Maintain Logical system

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Maintain Partner profiles

Maintain inbox workflow recipient

Maintain recipient by responsibility (as needed)

9. Maintain Logical System

The logical system is used to uniquely identify a system in the network

Use this if the partner is neither a customer or a vendor

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

S_BCE_68000317_Organization Management

Organizational structure is created by assigning objects of the following types to each other:

Organizational Unit

Position

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Job

Person

User

Task

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

PPOCW - Maintain inbox workflow recipient:

10. Create New Org unit

This step is to setup the business user getting the error notification for any failed IDoc

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

11. Create New Position


Put the cursor on the org unit and click on 'Create'

Click on 'Position', and press the enter button

Create the new Position

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

12. Assign Position to User

Right click on the position, click on 'Assign'

Place the cursor on the 'User'

and press the enter button

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Find the user to be assign

Press Enter

Click on 'Yes'

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

13. Assign Task to Position


Place the cursor on Position again (Delivery fallout)

Right click, and select 'Assign'

Place the cursor on Standard task, and press the enter button

Click on the 'Column Configuration'button

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Put a check on all

Take the ID (XXXXXXXX) for the Org. Unit

Make sure to save the setup (will create a transport)

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

14. WE20 – Partner Profile


3 types of Partner type

KU – customer

LI – vendor

LS – logical system

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Create a new partner profile under Partner type LS

For AP, I think we would need to create the partner under LS

Enter the Partner number, Type and Agent.

You should not use a user for this, user can come in and out, not stable

This is the default Agent that will get notified if the agent in the inbound Post processing
agent does not get resolved

Click on the "+" create the inbound parameter

Enter the Message type and Process code

- Select Processing to be 'Trigger by background program'

Click on the 'Post processing permitted agent'

Enter Type, Agent and Lang

This is the setup for the error notification

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

Workflow Processing Inbox fallout:

15. SBWP – SAP Business Work Place

Any outstanding fallout items would be available here

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

A user can be assigned to multiple tasks

16. Reserving a work item

You can execute workflow items by either "double clicking the item" or selecting the item
and clicking "Execute" button on the menu bar

This prohibits anyone else from taking the same work item

There are 2 kind of status buttons, one is white (square shape) and the other is blue (square
shape). Items in white has not been reserved by anyone.

17. Releasing a work item

If you determine that the item does not belongs to your business unit or for any other reason you are
not going to trouble shoot this item you MUST release the item

This will allow the work item to be place back in the queue

Place the cursor on the item, right click and select 'Replace' or use the (dotted square shape)button
on top of the menu bar.

18. Forwarding a work item

To forward a workflow items beyond your team, place the cursor on the item, right click and select
'Forward'. A new popup screen will come up, you can enter the User in this box.

19. Fallout processing - Process

Double click on the work item to get more info for the fallout.

Use the 'Process' button to fix the fallout.

20. Fallout processing - Deletion

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

If there is a need to resend the IDOC, you must delete the existing fallout work item to delete it from
the queue

Click on the 'Delete flag' and the 'Yes' button to confirm the deletion.

21. Fallout processing - IDOC Status

Expand the 'Status records' to view error messages

Workflow Processing IDOC programming / Testing :

22. SE37 – Function Module builder

FM usually starts with IDOC_INPUT_XXXXXX

XXXXXX usually is the message type, eg DESADV for delivery, ORDERS for order, etc

The FILL_DATA_XXXXXX is where you do data validation and build internal tables and variables
needed for subsequent process

The MAINTAIN_DATA_XXXXXX is usually where you see the main logic of the program, eg: to update
orders, delivery, purchase order, etc

23. FILL_DATA_XXXXXX

This section contains editing logic and data validation

24. IDOC_STATUS_FILL

This is where you fill up the error messages you want display in the IDOC. You will need the status,
document number, message ID, message number, and detail messages (msgv1-4).

Status value:

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP


https://s4hclub.com/ ©

https://www.youtube.com/@s4hclubforyou ©

50 - erster_statuswert_eingang

51 - fehler_bei_uebergabe

52 - beleg_unvollstaendig

53 - alles_ok

54 - fehler_in_der_bearbeitung

25. WE19 – IDOC test tool

Find an IDOC to be copied and change the data

Use the Inbound function module to test the IDOC

Copyright©. Tous droits réservés. Par Mickael QUESNOT, Consultant SAP

You might also like