Está en la página 1de 7

Note 925384

Page 1 of 6

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


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

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 Key date Posting date DATUM Type Short Medium Long Heading 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. 10 15 20 10 Length Field Label Key date Key date Key date Key date

Short Text Domain

Data element MB5TD_CALC_DMBTR Calculated value of stock in transit on key date Wert8 Type Short 10 Length Field Label Calc Val LC

Short Text Domain

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

Note 925384

Page 2 of 6

Medium Long Heading 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.

15 20 20

Calc Val LC Calc Val LC Calc Val LC

Data element MB5TD_CALC_TRAME Short Text Domain Type Short Medium Long Heading Documentation section "Definition". Specifies the calculated stock in transit at plant level and the special stock indicator on the key date. 10 15 20 20 Calculated stock in transit on key date MENG15_3 Length Field label Calc SiT Calc SiT Calc SiT Calc stck in transit

Data element MB5TD_CCOMP Short description Cross-company-code purchase order Domain CHAR01 Type Short Medium Long Heading Length 3 15 20 20 Field label CC CC Cross-Company PO Cross-Company PO

Data element MB5TD_FLT_VARI Short description Domain Documentation section "Definition": This layout controls the formatting of the nonhierarchical list. Layout for nonhierarchical list SLIS_VARI

Data element MB5TD_HSQ_VARI Short description Domain Documentation section "Definition": This layout controls the formatting of the hierarchical list. Layout for multilevel list SLIS_VARI

Data element MB5TD_SUM Create totals list XFELD

Short description Domain

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

Note 925384

Page 3 of 6

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.

Data element MB5TD_SUM_VARI Short description Domain Documentation "Definition": This layout controls the formatting of the totals list. Layout for totals list SLIS_VARI

Data field MB5TD_TRAME Short description Domain Type Short Medium Long Heading 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. Stock in transit MENG15_3 Length 10 15 20 20 Field label SiT Stck in transit Stock in transit Stock in transit

Structures

Structure MB5TD Create the new structure MB5TD : Short description Development class Enhancement category 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. Internal structure report RM07MTRB_DATE MB Cannot be enhanced (if entry is necessary)

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

Note 925384

Page 4 of 6

Component MB5TD_TRAME MB5TD_CALC_TRAME MB5TD_CALC_DMBTR

Reference table MARA MARA T001

Reference field MEINS MEINS WAERS

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: Symbol Text 003 Scope of list 895 Error in INSERT in table MMIM_REP_PRINT

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

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

Note 925384

Page 5 of 6

- 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: 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

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: Transaction code Short text Start object Program Selection Screen Transaction classification MB5TD Stock in transit for key date Program and selection screen (report transaction) RM07MTRB_DATE 1000 Professional User Transaction

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

Note 925384

Page 6 of 6

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

Header Data
Release Status: Released on: Priority: Category: Released for Customer 01.03.2006 15:42:01 Recommendations/additional info Legal change

Primary Component: MM-IM-GF-REP IM Reporting (no LIS)

Releases
Software Component SAP_APPL SAP_APPL SAP_APPL SAP_APPL Release 46C 470 500 600 From Release 46C 470 500 600 To Release 46C 470 500 600 And subsequent

Corrections Instructions
Correction Instruction 790085 Valid from 46C Valid to 46C Software Component SAP_APPL Ref. Correction H9CK916881 Last Modifcation 28.02.2006 13:32:30

Attachments
Filetype ZIP ZIP Filename RM07MTRB_DATE_46C.zip RM07MTRB_DATE_470_600.zip Language English English Filesize 16 KB 16 KB

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

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.

También podría gustarte