The segment is defined as a subarea of a company with activities that generate expenses and revenues, with an operating result that is regularly used by management for profit assessment and resource allocation purposes, and for which separate financial data is available.
What is the difference between Business Area, Profit center & Profitability Segment? The objective of business area is more for reporting purposes whereas profit center allows to analyse areas of responsibility and to delegate responsibility to decentralised units (eg., the various divisions within a company).
Use WE31 to see your segmet details. WE31---> Enter Segment Name ---> Press display button. If you have a different answer for this question, then please use the Your Answer form at the bottom of the page instead.
Assign Message Type to Basic Type and Extension
- Choose SAP Menu Tools IDoc Interface/ALE Development IDoc IDoc Type Development IDoc Type for Message (WE82) .
- Choose and then New Entries.
- Enter the basic type, its extension and the message type to which you are assigning this combination. Specify the current release.
- Save your entries.
SAP chart of accounts contains a list of G/L accounts to record activities of an organisation. It is required to first define respective account groups and then define G/L account master data at the chart of accounts level.
Create a segment as follows:
- Enter transaction code WE31.
- From the Segment type list, enter a segment type and then click the Create icon.
- In the Short Description field, enter a description for the segment.
- Click the Save icon.
- In the Package field, enter a name for the package and then click the Save icon.
Go WE19 transaction in SAP and select you IDoc type and trigger the same.
A GL (general ledger) segmentation rule determines how your summary journal entries are segmented when you perform a Journal Run. A GL segmentation rule contains a set of Segments, and transactions are grouped into summary journal entries according to the values that the transactions have for those segments.
After checking the error in transaction BD87 and the root cause, it should be possible to reprocess the IDoc following the steps below:
- Goto WE19, select IDoc and execute.
- The details will be shown of the IDoc.
- Change the data in the segment as per your requirement.
- Click on standard inbound process.
If the status of the IDOC is "03" and if you want to make changes to the existing IDOC,double click on the segment that you want to change. Click on Data Record(In menu bar)-->(Display->Change). Enter the values that you want to change. Save.
Hi, Message type you can get from the table EDMSG where all message type are stored. For the IDOC type just go through the table EDIDC which contain the field for the idoc type which is DOCTYP. You can also get the message type from the field MESTYP.
You can use WE05 to get a list of all idocs whether they are successful, failed or in a hold status. Input the date range, idoc name and execute. Depending on the version of SAP you have, you may have to click on the drop down beside the idoc name to get the different status'.
Outbound Idocs by ALE
- Create Custom IDOC Type:
- Define Logical system (Transaction SALE):
- Create RFC Destination for receiving client in sending client (Transaction SM59):(Transaction SM59):
- Define a new message type (Transaction WE81):
- Assign IDOC type to the message type (Transaction WE82):
You can copy an IDOC from Prod to Quality.. Go to Production server, T-Code We19, select the IDoc that you want to copy.. Select Inbound File, Give a File name, remember to remove the tick from Start IDOC inbound processing of file immediately and enter.
Run the program RC1_IDOC_SET_STATUS.
- Give the Idoc numbers for which you want to change the statuses in the selection screen.
- Give the current and the new status.
- Uncheck the Test Run check box and press F8.
- The statuses of the idocs will be changed.
SAP
| Message Type | IDOC Type | Description |
|---|
| IMPINV | IMPINV01 | Import Basis IDOC |
| INVOIC | INVOIC01 | Invoice |
| LOCKBX | FINSTA01 | Lockbox |
| ORDCHG | ORDERS01, ORDERS02, ORDERS03, ORDERS04, ORDERS05 | Sales Order Change Purchase Order Change |
In and outbound FM-s can be located in transaction WE41 and WE42. However outgoing processing is not so simple, because you can trigger outgoing IDOcs from a lot of programs, like user-exits (at a docment save), mass upload programs, during output printing, everywhere.
5 Answers
- First create the segment. using WE31.
- First go to WE30. Here you will extend the Idoc . Give the extension name, and choose the second radio button.
- Maintain Parner profiles using WE20.
- filling the Extension segments will be done using the EXITS. ( for inbound and Outbound)
Basic Type: Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems. Segments: Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease.
To generate Outbound iDocs from ABAP programs, first, you need to find the Outbound iDoc that creates Function Module of the iDoc Message type and iDoc Basic type. Go to transaction we57 to find the FM you can use in an ABAP program to generate outbound iDocs .
Process Code: Outbound iDoc process code of the Message Type/iDoc type. Click on the “Process Code” drop – down menu to find a list of valid Process Codes for the Message Type. You can also use transaction we42 to find the Outbound iDoc Process code.
You need to create an extension for the basic type if you want to add the Z Segment to the actual standard Idoc type. Go to WE30 to create extension and add segment of your choice. If you have a different answer for this question, then please use the Your Answer form at the bottom of the page instead.
Goto Transaction WE20-> collapse the required partner type node and click on your partner number 3. On clicking partner number you will see Outbound and inbound parameters.
Adding fields to SAP standard Infotype
- Using transaction PM01 chose the 'Enhance Infotype tab' and press the create 'All' button.
- The following screen will appear allowing you to enter the new fields you wish to add to the Infotype.
- Once saved and activated the new fields will appear in the Infotype screen and database table (See below)
To Create a Partner Profile
- In the SAP R/3 System home window, type WE20 into the command field and then click Continue (Enter) to display the Partner Profile: Initial Screen window.
- Type the name of the logical system created previously into the Partner number field, select LS for the Partner type, and select Create.
Procedure
- Using transaction SE37, create the new function module IDOC_INBOUND_TEST and assign it to your function group TEST.
- For the administration parameters, choose:
- · Your application code, e.g. V for SD.
- Choose the following parameters as an interface for the function module (similar to IDOC_INPUT_ORDERS).
IDOC Type: It contains exact structure, in which sequence data transfered from. one system to another system. Through Message Type a whole bunch of data transfered to process code/port for transferring data. IDOC type/Basic Type contains exact data.
To verify the IDoc, execute transaction WE02/WE05 to verify that the IDoc is there–it will be under the Inbound IDocs. Once the IDOC exists in the system, you can modify the control record with the IDoc test tool (transaction WE19).
ALE Technology : Application Link Enabling (ALE) is a technology to create and run distributed applications. ALE Technology is proprietary of SAP. ALE communication occurs from the SAP side and EDI from the non-SAP side. IDOCs uses ALE and EDI to deliver the data to the receiving system.
we can get SAP idoc types in tcode we31. For every requirment there will be different message type. For example we want idoc type for account invoice receipt. First find out message type for that purpose which can be found in we81-ACC_INVOICE_RECEIPT.