Professional Documents
Culture Documents
SAP Standard Outbound IDoc PO Creation
SAP Standard Outbound IDoc PO Creation
Titus T Thomas,
Sr. ABAP Development consultant, Collabera
titus.thomas@collabera.com; titus.t@hotmail.com
June 2012
I. Pre-requisites:
Minimum requirements to create a purchase order in SAP.
1. Company code
2. Purchasing organization
3. Purchasing group
4. Plant (for which to procure items)
5. Vendor (Purchasing from).
6. Material (the item being purchased)
5. Create Vendor.
1. Configure an output type (for ALE/EDI Idoc output) for Purchase order. Transaction NACE.
1.a. Select EF for Purchase order and click on Output types in Application toolbar.
1.b. Let us take the output type NEU to be our EDI output of the PO. Select NEU and
double-click on processing routines.
1.c. Make sure an entry for medium "EDI" exists. This screen indicates that for an EDI
output to be processed, the subroutine EDI_PROCESSING of program RSNASTED is
to be called.
1.d. Next, double-click on Partner functions in the left Dialog structure. Make sure the
medium "EDI" has been assigned to the parner function VN, which is vendor.
1.e. Now come back to the NACE initial screen. Select the EF purchase order and click on
Condition records.
1.f. Select the output type "NEU" and click on condition records.
1.g. Now, we need to assign the NEU output (which is our EDI output) to a vendor with
whom we raise the PO. We will now assign this output type to vendor ZVEND_IDOC.
Select the first key combination "Purchasing Output Determination: Purch. Org./Vendor
for EDI".
1.h. Now, select the vendor and purchasing organization and execute.
1.i. Add the vendor and the partner function in the next screen and assign medium 6 (EDI)
and Date/Time as 4 (Immediate output).
1.j. Come back to the NACE initial screen and select EF and click on Procedures.
1.k. Ensure the output type NEU is configured for the procedure that is active.
2. Create a port to specify the end-point of the generated Idoc file. For testing, we can use file
port. Transaction WE21.
2.a. In our example, we will create an Idoc file. For this, select File and click on create.
2.b. Specify the directory in application server level where the Idoc file needs to be created.
A function module can be specified which will be used to supply a name for the
generated file.
2.c. Click on Access test to see if we have access permissions to the specified directory.
3. Create partner profile for vendor to whom PO is created. Transaction WE20.
3.a. Select the line Partner type LI and click on Create button to create a partner profile for
vendor. Enter the details and click on Save.
3.b. Since we want to configure an outbound Idoc during PO creation, we click on Insert
button under the Outbound parameters table control.
3.c. Enter the partner role VN, message type ORDERS, receiver port , Idoc type
ORDERS03. Select the output mode Transfer Idoc immediately. If collect Idocs are
selected, a report program "RSEOUT00" needs to be scheduled to transfer.
4. Create a PO and check the messages screen for the configured output type – to appear in
yellow status icon. Transaction ME21N.
4.c. Click on Messages button in application toolbar to ensure output type NEU is displayed.
4.d. Save the PO.
5. If a release procedure exists, Idoc is generated on releasing the PO. Else, On saving the PO,
the Idoc is generated and an outbound file is created and sent to the port. For releasing PO
use Transaction: ME29N.
5.a. Now open the PO in Change/Display mode and click on messages tab. If a green icon is
seen against the output type NEU, the Idoc generation was started successfully. In order
to get the Idoc number, select the NEU line and click on Processing log button.
5.b. To view the file, use transaction AL11.
Text Document
Outbound
IDoc file
SAP recommends that you used EC01 to copy an existing company code to a new one.
This has the advantage that you also copy the existing company code-specific parameters.
If necessary, you can then change certain data in the relevant application.
This is much less time-consuming than creating a new company code.
Following are the steps to create a new company code:-
Use EC01 to copy an existing company code. This will ensure that you will not missed out any
customizing settings.
Tcode is OX02 or Goto tcode SPRO
SPRO -> SAP Ref IMG -> Enterprise Structure-> Definition -> Financial Accounting -> Edit,Copy,
Delete, Check Company code
OKKP - Assign company code to the controlling area
OBY6 - Define company code global parameters
OB62 - Assign company code to chart of accounts
Then check the following if needed, there may be other areas depending on your needs:
OBA4 - FI Tolerance Group for Users
FBZP - Maintain Payment program
OBYA - Inter Company code clearing if being used
Annexure 2: