SD Preparation
SD Preparation
Excellent explanation. But as a consultant we don't have access to production server. once the issue
raised by the end user if that issue is assigned to us we go to pre-production server and will do the
same transaction...at that time we should get the same error like end user. Because pre-production
server is the mirror image of production server. Once we get the error in the pre-production server
we will go to the development server and will do some necessary configuration and will generate the
request for that issue. BASIS consultant will transport that request to Quality server have mentioned
that end users will test the issue in quality server, but end users don't have access to quality server.
After transporting the request to quality server we send this to CORE-USER to test it and for the
approval purpose. Once the approval is made then BASIS will transport the request to production
server. Hence the status of the issue is closed.
Business Scenario:
You should carry out this step only if both of the followings apply:
If you need to implement any of these User exits, you first create a
project for the user exit, then assign the user exit(s) to your project. Then
you write the coding for the user exit, and finally activate the project.
For general information about user exits, in the R/3 Library, go to Basis
components and look at the Enhancements section. In addition, there is
detailed information about each user exit that you can access when you
assign it to your project (see below).
Activities
4. Select Components.
7. Select save.
8. Select back.
11. Select the user exit you want to write code for.
The system will then prompt you to create this include, and you can
continue to write your coding in it.
Routines
Routines are short sub-programs that carry out various checks during
document processing. In the SD module, you can create and process
routines for copying requirements, data transfer, requirements and
formulas using transaction VOFM. Besides the routines delivered to you
with the system, you can create your own individual routines.
The routines for coying requirements and data transfer are defined for the
document types sales orders, deliveries, billing documents, sales
activities, as well as for texts. You specify copying requirements and the
data transfers when defining the document flow for each document type.
You enter the routines for texts in the access sequences for texts.
Routines for requirements and formulas are used for functions using
the condition technique. You enter these routines in the pricing
procedure or the condition types. Requirements are also used for
statistics.
Creating routines
1. Creating by overwriting
2. Creating
You always have to activate a new routine before using it. Each routine
for requirements and formulas, copying requirements and data transfers
is stored in a separate program. For each new routine an entry is added in
table TFRM and TFRMT. For each routine, a long text can be stored as a
text module.
Business Process:
In third-party process the delivery of the goods required by the customer is not done by sales
organization where customer orders. Instead, the request of the goods is forwarded to an
external vendor who sends the material directly to the customer.
SALES ORDER
Third-party process is triggered when the sales order with third-party item is created. Depending
on settings done in customization third-party item categories can be automatically determined by
the system (automatic third-party processing) or they can be changed from standard item to
third-party item category in sales order (manual third-party processing).
ITEM CATEGORY TAS:
Create PO Automatic indicator is not marked in TAS. ALES is an item category for third-party
processing where this indicator is marked.
Item category TAS will be determined automatically for standard order (OR) and item category
group BANS (third-party item). Item category group can be found in material master, Sales:
Sales org.2 view.
After saving sales order with item category TAS the purchase requisition is automatically created.
In order to see the document go to: Environment -> Status overview and expand data for item,
then expand data for purchase requisition as well:
Double click on the requisition number and you will be taken to the purchase requisition
document. The other way is to go to schedule line where you can find the purchase requisition
number.
If third-party item has more than one schedule line with confirmed quantity > 0, then purchase
requisition is created for each schedule line.
It is wise to have the vendor determined in source of supply at this stage of the process (i.e.
source list)
The purchase requisition needs to be converted into purchase order in MM (t-code me21n). The
purchase order document type is NB (standard order), item category S, that must be assigned to
account. Thus account assignment category needs to be given. In this example it is X
(automatically taken during conversion from purchase requisition, as it was defined in item
category CS).
Note: There is also a third-party account assignment category created in the system and its
definition looks as follows:
The mapping of item categories: IMG: MM->Purchasing->Define External Representation of
item categories:
As it was written before – the purchase requisition is created automatically when sales order is
saved. It is possible to automatize the next step, the creation of purchase order, as well. The ALE
function is used for that purpose. The indicator for the automatic creation of purchase order is
not set for TAS item category. However, there is a special item category – ALES which can be
used instead in third-party process. The indicator for the automatic creation of purchase order is
marked in ALES by default.
GOODS RECEIPT
Since during third-party processing goods are moved directly from the vendor to the customer,
inventory management is not affected by this event. However, if sales department would like to
document and enter delivery to the customer in the system it is possible depending on settings in
customization. If account assignment category 1 is used in item category definition, goods receipt
is not possible, as the goods receipt indicator is not set for this account assignment cat. If
account assignment category X is used, goods receipt is possible.
The goods receipt posting (t-code migo) would have the following effects:
The goods receipt posting should happen when the vendor reports that outbound delivery was
executed or customer confirms that delivery arrives.
Since no flow of goods occurs in the enterprise, the goods receipt posting results in updates on
value basis.
INVOICE RECEIPT
The invoice verification with reference to purchase order needs to be created when invoice from
vendor arrives to enterprise (t-code miro). The value and, if goods receipt was done earlier, the
quantity are proposed by the system. When the incoming invoice is posted following are updated:
Once invoice receipt has been entered, the customer can be billed as well (t-code vf01). Since
an outbound delivery doesn’t exist for the third-party the invoicing will be order based. In the item
category TAS definition, the billing relevance indicator is set to F by default. That means: relevant
for order-related billing document: status according to invoice receipt quantity. That is, the
system allows invoicing the order only when vendor’s invoice has been processed in invoice
verification.
The customer invoice is created for the quantity specified in the vendor invoice. The setting in the
copy control for the third-party item category from sales document to billing document specifies
that the quantity from the invoice receipt is transferred to the billing document instead of the
order quantity (billing quantity indicator in copy control is F)
2.STO
For example, in one of my trading client, we used to import materials from abroad in
big containers and then those containers were unloaded into one big branch (plant)
as it was cost efficient to import materials in bulk to one location. Next, other smaller
branches (plans) raised SAP stock transport order (STO) to purchase stock from big
branch for the quantity required. The big branch dispatched the quantity against the
STO on the mentioned delivery dates.
In the below screenshot, you can see a diagram illustrating the stock transfer
process. STO is raised by a receiving plant and sent to a supplying plant. The
supplying plant then delivers the material, which in the SAP system will be shown as
stock in transit. When the receiving plant receives the material, goods receipt takes
place at the receiving plant. There is no invoicing, as the stock is
transferred between plant that are part of the same company.
Stock Transfer with SAP Stock Transfer Order (Example)
Here you need to provide your supplying plant. As mentioned above, the supplying
plant in our example is the big branch which imported the stock and has stock
available. You also have to provide your purchase organization, purchase group and
company code as show on the screenshot below. Our tutorials about SAP MM
organizational structure should be helpful in learning more about purchasing
organization and other MM organizational units.
If you have any additional charges which needs to be added to the cost of the
material, you should provide the details in the conditions tab. For instance, it is
possible to add freight charges as shown below:
Now, your stock transport order is ready and to cross check for any errors in your
STO, click on button which will tell you if everything is correct in your document.
If not, then a red button will come up notifying you about error(s) in the document
that needs to be fixed before you can save the document. Once all issues are fixed,
you click the button, which will save the document. The SAP system will provide
you with SAP generated document number as shown below notifying that the
document has been created.
Here you need to enter the number of STO, set OK checkbox for the item and then
click on Post button which will post your goods issue and provide you a message
that a material document was created (see screenshots below).
Set OK Checkbox for the Item A Material Document for
Goods Issue against SAP Stock Transport Order was Created
Did you like this SAP MM tutorial? Have any questions or comments? We would love
to hear your feedback in the comments section below. It’d be a big help for us, and
hopefully it’s something we can address for you in improvement of our free SAP MM
tutorials.
3.
Inter Company Sales Process
In SAP sales & distribution module, an intercompany sales occurs when the selling
organization belongs to a different company code than the delivering plant. The
transaction path for accessing intercompany sales billing is:
IMG >> Sales and distribution >> Billing >> Intercompany billing
Let us take an example to understand intercompany sales better. Suppose there are
two company codes namely 1000 and 2000. A customer may place an order for
goods in sales organization belonging to company code 3000. However, the goods
may be manufactured by a delivering plant belonging the company code 1000. A
sales order is created indicating delivering plant of company code 1000. The sales
organization then invoices the customer for the materials purchased. SAP R/3
automatically creates an intercompany billing document at the same time as the
customer’s billing document is created. This intercompany invoice is sent from the
delivering plant to the selling sales organization.
As a rule of thumb, when dealing with different company codes, one may find a
need to transfer stock between two different company codes. However, if the stock
be transferred within the same company code, there is no need for an intercompany
transaction. But in case the stock is transferred between different company codes, a
transfer of value occurs and is an intercompany sale.
---
While creating sales order, if the end user knows there is no stock on their plant,
they request for their sister concern company to deliver these ordered goods to the
customer directly, after delivery they will receive intercompany invoice from the
delivering company code, that’s the reason you enter delivering plant while
creating sales order.
Check all your settings once again for creating inter-company billing:
- Assign this customer number to Plant -R's details & its selling sales area.
- Maintain the intercomapny billing type (IV) in ur sales doc type (OR).
- Create Billing VF01 (with ref to DEL again)--observe the bill type-IV.