displaying stock in transit for key date (2).pdf

7
Summary Symptom Transaction MB5TD and the RM07MTRB_DATE report have been created for displaying the stocks in transit (SiT) for a key date. Other terms RM07MTRB_DATE, MB5TD Reason and Prerequisites In the existing Transaction MB5T, you could display the stocks in transit only as totals without reference to a key date. Solution This new Transaction MB5TD and the corresponding RM07MTBR_DATE report have been implemented in the standard system in Release 7.0. You can also use this function in a lower release. To implement the function, carry out the following steps manually: New data elements Create the following data elements with the "MB" development class: Data element MB5TD_BUDAT Data element MB5TD_CALC_DMBTR Note 925384 - MB5TD: Displaying stock in transit for key date Note Language: English Version: 1 Validity: valid since 20.02.2006 Short Text Key date Posting date Domain DATUM Type Length Field Label Short 10 Key date Medium 15 Key date Long 20 Key date Heading 10 Key date Documentation section "Definition": The entries of the purchase order history with a posting date that is smaller or the same as this key date are selected and processed. The current date is proposed as the default value. Short Text Calculated value of stock in transit on key date Domain Wert8 Type Length Field Label Short 10 Calc Val LC Page 1 of 6 Note 925384 9/15/2006 https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Upload: ajitabh-singh

Post on 24-Oct-2015

215 views

Category:

Documents


12 download

DESCRIPTION

sap

TRANSCRIPT

Page 1: Displaying stock in transit for key date (2).pdf

Summary

Symptom

Transaction MB5TD and the RM07MTRB_DATE report have been created for displaying the stocks in transit (SiT) for a key date.

Other terms

RM07MTRB_DATE, MB5TD

Reason and Prerequisites

In the existing Transaction MB5T, you could display the stocks in transit only as totals without reference to a key date.

Solution

This new Transaction MB5TD and the corresponding RM07MTBR_DATE report have been implemented in the standard system in Release 7.0. You can also use this function in a lower release. To implement the function, carry out the following steps manually:

New data elements Create the following data elements with the "MB" development class:

Data element MB5TD_BUDAT

Data element MB5TD_CALC_DMBTR

  Note 925384 - MB5TD: Displaying stock in transit for key date

Note Language:   English Version:   1 Validity:   valid since 20.02.2006

 

Short TextKey date Posting date

Domain DATUM

Type Length Field Label

Short 10 Key date

Medium 15 Key date

Long 20 Key date

Heading 10 Key date

Documentation section "Definition":

The entries of the purchase order history with a posting date that is smaller or the same as this key date are selected and processed. The current date is proposed as the default value.

Short TextCalculated value of stock in transit on key date

Domain Wert8

Type Length Field Label

Short 10 Calc Val LC

Page 1 of 6Note 925384

9/15/2006https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Page 2: Displaying stock in transit for key date (2).pdf

Data element MB5TD_CALC_TRAME

Data element MB5TD_CCOMP

Data element MB5TD_FLT_VARI

Data element MB5TD_HSQ_VARI

Data element MB5TD_SUM

Medium 15 Calc Val LC

Long 20 Calc Val LC

Heading 20 Calc Val LC

Documentation section "Definition":

Specifies the value in the local currency (LC) of the calculated stock in transit at plant level and the special stock indicator on the key date.

Short Text Calculated stock in transit on key date

Domain MENG15_3

Type Length Field label

Short 10 Calc SiT

Medium 15 Calc SiT

Long 20 Calc SiT

Heading 20 Calc stck in transit

Documentation section "Definition".

Specifies the calculated stock in transit at plant level and the special stock indicator on the key date.

Short description Cross-company-code purchase order

Domain CHAR01

Type Length Field label

Short 3 CC

Medium 15 CC

Long 20 Cross-Company PO

Heading 20 Cross-Company PO

Short description Layout for non-hierarchical list

Domain SLIS_VARI

Documentation section "Definition":

This layout controls the formatting of the non-hierarchical list.

Short description Layout for multilevel list

Domain SLIS_VARI

Documentation section "Definition":

This layout controls the formatting of the hierarchical list.

Short descriptionCreate totals list

Domain XFELD

Page 2 of 6Note 925384

9/15/2006https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Page 3: Displaying stock in transit for key date (2).pdf

Data element MB5TD_SUM_VARI

Data field MB5TD_TRAME

Structures

Structure MB5TD

Create the new structure MB5TD :

Documentation section "Definition":

Specifies that only the totals of the stocks in transit for the selected key date at plant level and the special stock indicator are displayed for all materials. The SAP LIST VIEWER displays the result in a non-hierarchical list.

Short description Layout for totals list

Domain SLIS_VARI

Documentation "Definition":

This layout controls the formatting of the totals list.

Short description Stock in transit

Domain MENG15_3

Type Length Field label

Short 10 SiT

Medium 15 Stck in transit

Long 20 Stock in transit

Heading 20 Stock in transit

Documentation section "Definition":

Specifies the quantity of a material that, in a stock transfer, has already been removed from the stock of the issuing plant using a stock transport order but that has not yet arrived in the receiving plant.

For special stocks, this field contains the totals of the stocks in transit for the special stock type at plant level.

Documentation section "Use": The stock in transit is managed in the valuated stock of the receiving plant but is not usable without restriction.

Short description Internal structure report RM07MTRB_DATE

Development class MB

Enhancement categoryCannot be enhanced (if entry is necessary)

Add the following components to this structure. Enter these field names in the "Component" and "Component type" columns: MB5TD_BUDAT MB5TD_TRAME MB5TD_CALC_TRAME MB5TD_CALC_DMBTR MB5TD_CCOMP

Complete the data of the numeric components on the tab page for the currency and quantity fields.

Page 3 of 6Note 925384

9/15/2006https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Page 4: Displaying stock in transit for key date (2).pdf

Structure AM07M

Extend the existing AM07M structure to include the following components. Enter these field names in the "Component" and "Component type" columns: MB5TD_SUM MB5TD_SUM_VARI MB5TD_HSQ_VARI MB5TD_FLT_VARI

Report RM07MTRB_DATE

Create the RM07MTRB_DATE report

Copy the RM07MTRB source program the RM07MTRB_DATE target program. Select the objects "Documentation", "Interface" and "Screens". Save the new report with the MB development class.

Change the report title

Overwrite the existing title of the RM07MTRB_DATE report with the following text: Display stock in transit on key date

New text elements

Enter these text symbols with the length 60 for the RM07MTRB_DATE report again:

Documentation

Extend the existing documentation of the RM07MTRB_DATE report. Enter the following texts in the corresponding sections.

Section "Use": The calculated stocks in transit are the totals of the quantities from the purchase order history records, with a posting date that is smaller or the same as the key date.

The values are calculated using the net value of the purchase order items. Since there can also be stock transport orders without net value, the system may not display any values.

Section "Prerequisites": In addition, you must be authorized to display the purchase order data of the purchasing organization (authorization object M_BEST_EKO, action 03).

Section "Features": The report provides three different types of list output. You can select one of them in the section "Output option". You can use and manage layouts for each list output.

1. Totals list This list contains the compressed data at level material, plant and special stock indicator.

In this list output, you can do the following: - Select a line and double-click: The detail data of the selected material master is displayed in the hierarchical list

Component Reference table Reference field

MB5TD_TRAME MARA MEINS

MB5TD_CALC_TRAME MARA MEINS

MB5TD_CALC_DMBTR T001 WAERS

Symbol Text

003 Scope of list

895 Error in INSERT in table MMIM_REP_PRINT

Page 4 of 6Note 925384

9/15/2006https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Page 5: Displaying stock in transit for key date (2).pdf

- Select a line and choose the "Stock overview" symbol: Transaction MMBE is called for the selected material.

2. Hierarchical list This list contains the detailed data. The header lines contain the data of the material masters, and the item data contains the data of the assigned transport orders.

In the list output, you can carry out the actions "Display Purchase Order", "Display Purchase Order History", "Stock overview" and "Detail list".

3. Non-hierarchical list This list contains the detailed data of the material master and the transport order in one line. You can use it to download the list output.

In the list output, you can carry out the actions "Display Purchase Order", "Display Purchase Order History" and "Stock overview".

The report memorizes the parameters set by the user with each run. The system then proposes the same parameters during the next run.

In Customizing for Inventory Management -> Reporting -> Set Up Print Functions for Reporting (Customizing view V_MMIM_REP_PRINT), you can define the following settings for the RM07MTRB_DATE report:

- You can display the non-hierarchical lists as 'ALV Classic' (default) or as 'ALV Grid' - You can color the stocks and values depending on their +/- signs (default = colored )

Interface

Use Transaction SE41 to enter the following title bars for the RM07MTRB_DATE program:

Source code

Release 4.6C

Adjust the source code of the new RM07MTRB_DATE report as described in the correction instructions.

If this does not work, replace the source code of the RM07MTRB_DATE report with the source code from the packed "RM07MTRB_DATE_46C.zip" text file. You find this text file when you display this note on the "Attachments" tab page on SAP Service Marketplace.

Releases 4.70 to 6.0

The source code of the new RM07MTRB_DATE report for higher releases differs from the source code for Release 4.6 C. New functions for the cross-company code stock transport orders have been added.

For these releases, the source code is contained in the packed "RM07MTRB_DATE_470_600.zip" text file in the attachment of this note. Replace the source code of the RM07MTRB_DATE report with the source code from this text file.

Transaction MB5TD

Use Transaction SE93 to create the new Transaction MB5TD:

Title number Title

SUM Display of stock in transit for key date &1 totals list

LIST Display of stock in transit for key date &1

Transaction code MB5TD

Short text Stock in transit for key date

Start object Program and selection screen (report transaction)

Program RM07MTRB_DATE

Selection Screen 1000

Transaction classification Professional User Transaction

Page 5 of 6Note 925384

9/15/2006https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Page 6: Displaying stock in transit for key date (2).pdf

Header Data

Releases

Corrections Instructions

Attachments

Activate the three GUI support parameters and save this new transaction with the "MB" package.

Release Status: Released for Customer

Released on: 01.03.2006  15:42:01

Priority: Recommendations/additional info

Category: Legal change

Primary Component:

MM-IM-GF-REP IM Reporting (no LIS)

Software Component Release From

Release To Release

And subsequent

SAP_APPL

46C

46C

46C

 

SAP_APPL

470

470

470

 

SAP_APPL

500

500

500

 

SAP_APPL

600

600

600

 

Correction Instruction

Valid from

Valid to

Software Component

Ref. Correction

Last Modifcation

790085

46C

46C

SAP_APPL

H9CK916881

28.02.2006  13:32:30

Filetype Filename Language Filesize

ZIP

RM07MTRB_DATE_46C.zip

English

16 KB

ZIP

RM07MTRB_DATE_470_600.zip

English

16 KB

Page 6 of 6Note 925384

9/15/2006https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_pri...

Page 7: Displaying stock in transit for key date (2).pdf

This document was created with Win2PDF available at http://www.daneprairie.com.The unregistered version of Win2PDF is for evaluation or non-commercial use only.