Stock consideration
Dear Gurus
Suppose A isa fert matl, for producing say 1kg of A , 1kg B is required as component
Suppose I made a production order say 20kg of material A .Suppose 20 kg B is present in store .So while doing the availability check system will release the production order as sufficient amount of component is available.Now if I do another production order of suppose say 10kg of A during availability check the system will again consider that 20 kg B as available stock and will release the second production order also.But actually I
require 30kg of B for the 2 production order.How to control this problem.?
Regards
Sandip Sarkar
Hi
Following Settings helpful to restrict the System from checking the qty
T-code : OPJJ for the Combination of Availability check & Checking rule
Remove selection for include reservations and Select value A for Incl.depen.reservat.
The Idea is when u create and Release a Order for u r FERT then reservations will be created for Component.
Then when u r creating a second order system is not supposed to consider the component stock which is covered by reservation
Regards
Brahmaji
Similar Messages
-
Unrestricted stock consideration for components in pure MT
Dear Experts,
I have a scenario where i want to run MD50 against sale order but i want the system to consider the unrestricted stock of components (and not the sale order stocks) when raising purchase requisitions or planned orders for components (SFG/RM/PM). Can you please tell the configuration/master data settings that i need?
Regards,
SunitDear Sunit,
I have maintained strategy *20 in the FG and SFG*
Is SFG is going to be sold separately apart from FG ??
So I have 2 related questions- first, should the system not create planned order for the SFG and second, how do I know whether for the RM system is considering the unrestricted MTS stock or is it also considering the unrestricted sale order stock of RM ?
Are you creating sales order for SFG as strategy 20 is maintained
If indi/coll indicator is maintained then then you cannot find as sales order stock ( E ) for this materials
this materials will be consumed by un=restricted use stock
Suggestion - As per your initial query solution has been provided so please close this thread & raise new thread
Regards
Madhu -
Sub contractor stock consideration
Dear SAP Friends,
While taking MRP run,the requirement were generated without considering the stock at Sub-contractor.
As we send the same material for machining operation at 2-3 sub contracors.
We take MRP run through the MD01(as scope of planning setting are here)
All 3 plants were take under the planning scope( X ).
No MRP area defined separetly.
Make to stock scenario here.
What customisation setting we will required to consider the subjected matter.
Please guide,& reply soon.
Regards,
Chandra.Hi,
You can have a separate dummy plant as subcontractor where the stocks will be stored ( that will be as Subcontractor stock).
U can include that plant in ur MRP RUN.
Regards,
Prakash -
Hello Everybody good morning,
I've got a scenario which i would appreciate your support.
The company which i work for we've got a sort of Sales Rep mobil. The stock usually is transfer accordingly their sales need by a transfer stock method into SAP and located into their specific storage location. Usually, this stock is often sold or it will be sold within the month. However, into APO demand forecast, this considerable stock "sold" is not yet included as the material was not effective sold, invoiced....
What i would like to know is, if there's any possibility to include stock transfer into Demand figuers onto APO?
Ie: Sales Rep. X / storage location 001
Stock transfer from Central Warhouse of 1 pc.
This one pc, despite be stil located into this Sales rep mobil, basically its sold, and i would like to know the possibility which this 1 pc be considered "sold" into APO. Is that possible? How could i configurated that this would happen? I guess that this is linked into Material Master set for this specific storage location up, am i right?
Well i would appreciate if anybody could adviced me into that scenario.
Cheers
CCHi Caio,
In demand forecast, usually this stock consideration is not needed to be taken care into account as it will be net off during supply planning run (SNP).
In case you want to net the stock off at demand planning side, i.e. SNP is not considering this particular stock at all, then the stock data for specific storage location can be pulled into BW (or any other system you are using for transferring data between ECC and SCM). Extract the data to a KF in demand planning and while releasing the demand to SNP, use (Demand - sold stock) KF.
regards,
biplab -
Consideration of stock of discontinued FG or trading material during MRP Run
There is an functionality of follow up material for component. I would like to know if there is any similar option available for finished goods or trading materials.
I am doing procurement planning for externally procured Trading materials. Now my previous material A is being replaced by material B. Therefore all the planned independent requirement is available in system only for B. But still there is some stock available for material A. How can it be considered during MRP run for material B.
Example,
Material A:
On Hand Stock = 100
Planned Independent Req. = 0
Material B:
On Hand Stock = 300
Planned Independent Req. = 1000
In this case if we run MRP for material B, how we ask system to plan Purchase Requisitions for 600 instead of 700 for material B, considering stock of material A.Hello
Please refer to the following SAP note:
43636 - Discontinued parts
This note provides a detailed explanation of the system standard design of the usage of discontinued parts with material requiremenst planning and the most common questions about this issue.
The following information is provided on this note regarding the PIRs:
2. Planned independent requirements and forecast requirements are not redirected.
Explanation: Planned independent requirements after the effective-out date are not redirected but are provided with an exception message in the MRP list stating that they cannot be included in the availability check. Planned independent requirements and forecast requirements are therefore displayed in the MRP list and in the stock/requirements list. However, they do not influence planning
BR
Caetano -
HOW TO DEFINE THE LOT SIZE THAT CONSIDERS MAX STOCK AND IN FIXED LOT
Hi Gurus,
I have a requirement where the client wants to procure the material in fixed lots of 125. they are using manual reorder point VB with reorder point of 100. The maximum allowed stock is 400.
When the MRP runs they want to generate a PR that is close to 400 and also a multiple of 125. I tried to use FX and it is only generating procurement proposal for 125. When I use HB it is considering the max stock but not generating the proposal in multiples of 125. Can anyone help me out with this.
RegardsHi,
I think your problem could be solved by using rounding profile but not using
fixed lotsize.
In rounding profile you have to give threshold value and rounding value
For the threshold value 1------- Rounding value 125
threshold value 126------Rounding value 250
threshold value 251-------Rounding value 375
threshold value 376 -
Rounding value 400
Regards,
nandha -
Sales order stock not taken into consideration when GR is posted.
Hello All,
I had a scenario in which, I have created a MTO sales order. I have created a PO from the PR. I did the GR for the PO quantity.
The plant and storage location are warehouse managed.(The storage location is HU managed)
I created an inbound delivery and then TO finally posted the GR for the same quantity as in the sales order and PO. After this I posted the sales order stock into scrapping through t.code VLMOVE.
Now I want the stock back. So I did a 552 with transaction code MB1A to the same plant and storage location against the sales order and the line item. This created an inbound delivery as the storage locaion is HU managed.
I created a TO from inbound delivery. Now the HU and the TO both have the sales order reference and spcial stock type "E".
But when I did PGR(Goods receipt) the system posts the stock in unrestircted use stock in IM side. Now there is a discrepancy in the stock in IM & WM.
In WM side the stock is in sales order stock but in IM side the stock is in unrestricted use.
I am wondering why during goods receipt the system is changing stock category from "E" to unrestricted.
Can any one help?
Regards,
Sushantayou should have used movement type 552 E rather then using 552
and even if you have used 552 then you transfer the stock to sales order stock from own stock
follow the steps
1. use tcode MB1B
2. movement type 412 E -
Consideration of GR Blocked Stock (mvt 103) for MRP.
Dear Expert,
My requirement is to consider GR blocked stock (mvt 103 non valuated stock) in MRP run. My Business process is goods received in plant through movement 103 and then regular GR ( mvt 105)
I do carry MRP run twice in the month.
Requesting you to provide me solution which will help me to consider GR blocked stock in MRP.Hi,
In OVZ9, for the combination of avaibility check please select Check blocked stock Indicator determines whether blocked stock is included in the availability check.
Please try and come back.
Regards,
R.Brahmankar -
Material Stock Report for tcode MB5B
Hello Expert
I have a SAP report for stock posting date with T-Code as MB5B and
the report name is RM07MLBD.
When I enter Material no, plant code , Movement type (101) and selection
dates for a month, The report is displaying but not break by Movement type instead it is showing all the movement type....?
Can anyone have idea about this
REPORT RM07MLBD NO STANDARD PAGE HEADING MESSAGE-ID M7 LINE-SIZE 95.
REPORT RM07MLBD (Transaktionscode MB5B) *
correction June 2004 MM "n747306
wrong the assignment of the MM and FI documents for data "n747306
constellation : n MM doc items --> 1 FI doc item "n747306
ABAP-Preprocessor removed "n599218 A
- this version is for release 4.6C and higher "n599218 A
- process database table OBEW always "n599218 A
- IS-OIL specific functions : "n599218 A
- define IS-OIL workings fields "n599218 A
- transport and process these fields only when "n599218 A
structure MSEG comprise these fields "n599218 A
Improvements : Dec. 2003 MM "n599218
- print the page numbers "n599218
"n599218
- send warnings and error messages only when report is "n599218
launched / advoid warnings when user changes entries on "n599218
the selection screen "n599218
- send warning M7 689 when user does not restrict the "n599218
database in dialog or print mode "n599218
- send warning M7 393 when user deletes the initial "n599218
display variant "n599218
"n599218
- allow to process the fields MAT_KDAUF, MAT_KDPOS, and "n599218
MAT_PSPNR from release 4.5B and higher "n599218
"n599218
- show the current activity and the progress "n599218
"n599218
- error message 'programmfehler' improved "n599218
"n599218
- new categories for scope of list "n599218
"n599218
- use function module for database commit for the update "n599218
of the parameters in table ESDUS. This allows to record "n599218
this transaction for a batch input session using "n599218
transaction SHDB "n599218
"n599218
- reset the entries for plant when valuation level is "n599218
is company code and mode is valuated stock "n599218
"n599218
- enable this report to run in the webreporting mode "n599218
Dec. 2002 MM "n571473
the definition of the selection screen moved from include "n571473
RM07MLBP into this report "n571473
Sept 2002 MM "n555246
log function tax auditor "n555246
note 547170 : August 2002 MM "n547170
- representation of tied empties improved "n547170
active this function automatically in retail systems "n547170
- FORM routines without preprocessor commands and without "n547170
text elements moved to the new include reports "n547170
RM07MLBD_FORM_01and RM07MLBD_FORM_02 "n547170
- the function module FI_CHECK_DATE of note 486477 will "n547170
be processed when it exists "n547170
- function and documentation of parameter XONUL improved "n547170
- display MM documents with MIGO or MB03 depending from "n547170
the release "n547170
- get and save the parameters per user in dialog mode "n547170
only in release >= 4.6 "n547170
the following items were improved with note 497992 "n497992
- wrong results when remaining BSIM entries contain "n497992
an other quantity unit as material master MEINS "n497992
- improve check FI summarization "n497992
- the messages M7 390, M7 391, and M7 392 "n497992
- definition of field g_f_repid for all releases "n497992
- incomplete key for access of internal table IT134M "n497992
causes wrong plant selection "n497992
- the function "no reversal movement" did not surpress "n497992
the original movements; fields "SJAHR" was moved from "n497992
from report RM07MLBD_CUST_FIELDS to RM07MLBD "n497992
- process valuated subcontractor stock from database "n497992
table OBEW if it exists "n497992
- if FI summarization is active process warning M7 390 "n497992
for stock type = valuated stock "n497992
- the user wants to restrict the movement type : process "n497992
warning M7 391 "n497992
- the user wants to surpress the reversal movements : "n497992
process warning M7 392 "n497992
- consider special gain/loss-handling of IS-OIL "n497992
- automatic insert of field WAERS currency key into the "n497992
field catalogue : "n497992
- at least one ref. field is active -> WAERS active "n497992
- all reference fields are hidden -> WAERS hidden "n497992
- the length of sum fields for values was increased "n497992
- customizing for the selection of remaining BSIM entries "n497992
- customizing for the processing of tied empties "n497992
separate time depending authorization for tax auditor "n486477
additional fields are displayed in wrong format "n480130
report RM07MLBD and its includes improved Nov 2001 "n451923
- merging FI doc number into table G_T_MSEG_LEAN improved "n451923
- handling of the short texts improved "n451923
- some types and data definitions -> include RM07MLDD "n451923
error for split valuation and valuated special stock "n450764
process 'goods receipt/issue slip' as hidden field "n450596
error at start date : material without stock has value "n443935
wrong results for docs with customer consignment "W" "n435403
error during data selection for plants "n433765
report RM07MLBD and its includes improved May 10th, 2001 "n400992
!!! IMPORTANT : DO NOT CHANGE OR DELETE THE COMMENT LINES !!! *
- consider the material number during looking for FI documents
- field "g_cust_color" in include report "RM07MLBD_CUST_FIELDS"
allows the customer to activate or inactivate the colors in the
lines with the documents.
- error during calcuation of start stock for special stock "M"
- valuted stocks required : no documents found ? continue and
process empty document table
- the length of sum fields for quantities has been increased
to advoid decimal overflow
- table ORGAN is replaced by G_T_ORGAN
- it is filled by the following ways :
- at process time at selection screen if the
user wants the selection via cc or plant
- otherwise after the database selection of the stock
tables
- it contains less data fields
- it contains all entries twice, for binary search
with plant or valuation area
- selection of databases MKPF and MSEG in one SELECT
command with an inner JOIN
- authority checks after the database selections
- result of database selection from the both database tables
MSEG and MKPF in working table G_F_MSEG_LEAN instead of
the tables IMSEG and IMKPF
- the number of processed data fields was reduced
- the user has the possibility to increase the number of
the processed fields deleting the '*' in the types-command
in include report RM07MLBD_CUST_FIELDS
- the creation of the field catalog for the ALV considers
only the fields of structure G_S_MSEG_LEAN
- the new table G_T_BELEG contains the results for the ALV.
the number of fields of table G_T_BELEG corresponds with
the number of fields of table G_T_MSEG_LEAN.
- the functions "define breakdown" and "choose" are inactivated
in the menue, because they are are not carried out correctly
in all blocks of the list
Anzeige der Materialbestände in einem Zeitintervall *
Der Report gliedert sich im wesentlichen in folgende Verarbeitungs- *
blöcke: *
1) Definition des Einstiegsbildes und Vorbelegung einzelner *
Selektionsfelder, sowie Prüfung der eingegebenen Selektions- *
parameter und Berechtigungsprüfung *
2) Lesen der aktuellen Bestandswerte *
3) Lesen und Verarbeiten der Materialbelege *
4) Berechnung der Bestandswerte zu den vorgegebenen Datümern *
5) Ausgabe der Bestände und Materialbelege *
*eject
*# APP_CALL_DECLARE TEST
this definitions depend on the release
TYPE-POOLS: IMREP, " Typen Bestandsführungsreporting
SLIS. " Typen Listviewer
for the selection of the reversal movements only in release >=45B
DATA: BEGIN OF STORNO OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
MJAHR LIKE MSEG-MJAHR,
ZEILE LIKE MSEG-ZEILE,
SMBLN LIKE MSEG-SMBLN,
SJAHR LIKE MSEG-SJAHR,
SMBLP LIKE MSEG-SMBLP,
END OF STORNO.
include: rm07mldd, " reportspezifische Datendefinitionen
rm07grid. " Gitternetz, Formatierung, Farbgebung
INCLUDE RM07APP1. "ABAP-PREPROCESSOR "TEST
"n571473
define the selection screen here "n571473
"n571473
SELECTION-SCREEN BEGIN OF BLOCK Database-selection
WITH FRAME TITLE TEXT-001.
Text-001: Datenbankabgrenzungen
SELECT-OPTIONS: MATNR FOR MARD-MATNR MEMORY ID MAT
MATCHCODE OBJECT MAT1,
BUKRS FOR T001-BUKRS MEMORY ID BUK,
WERKS FOR T001W-WERKS MEMORY ID WRK,
LGORT FOR T001L-LGORT,
CHARG FOR MCHB-CHARG,
BWTAR FOR MBEW-BWTAR,
BWART FOR MSEG-BWART.
PARAMETERS SOBKZ LIKE MSEG-SOBKZ.
SELECTION-SCREEN SKIP.
SELECT-OPTIONS: DATUM FOR MKPF-BUDAT NO-EXTENSION.
Datumsintervall für Selektion
SELECTION-SCREEN END OF BLOCK Database-selection.
SELECTION-SCREEN BEGIN OF BLOCK BESTANDSART
WITH FRAME TITLE TEXT-002.
Text-002: Bestandsart
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS LGBST LIKE AM07M-LGBST RADIOBUTTON GROUP BART DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(50) TEXT-010 FOR FIELD LGBST.
Text-010: Lagerort-/Chargenbestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS BWBST LIKE AM07M-BWBST RADIOBUTTON GROUP BART.
SELECTION-SCREEN COMMENT 4(50) TEXT-011 FOR FIELD BWBST.
Text-011: bewerteter Bestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS SBBST LIKE AM07M-SBBST RADIOBUTTON GROUP BART.
SELECTION-SCREEN COMMENT 4(50) TEXT-012 FOR FIELD SBBST.
Text-012: Sonderbestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK BESTANDSART.
improved definition of parameters for scope of list "n599218
SELECTION-SCREEN BEGIN OF BLOCK listumfang
with frame title text-003. "Listumfang
the following 3 parameters became obsolete do not use "n599218
anymor. They are still here to inform the user about "n599218
that he is using old variants or SUBMIT commands "n599218
PARAMETERS : "n599218
XONUL LIKE AM07M-XONUL no-display, "n599218
XVBST LIKE AM07M-XVBST no-display, "n599218
XNVBST LIKE AM07M-XNVBS no-display. "n599218
7 new categories for the scope of list "n599218
"n599218
cat. I docs I stock on I I stock on I Parameter "n599218
I I start date I I end date I "n599218
---+--+--------++------+-------- "n599218
1 I yes I = zero I = I = zero I pa_wdzer "n599218
2 I yes I = zero I <> I <> zero I pa_wdzew "n599218
3 I yes I <> zero I <> I = zero I pa_wdwiz "n599218
4 I yes I <> zero I <> I <> zero I pa_wdwuw "n599218
5 I yes I <> zero I = I <> zero I pa_wdwew "n599218
I I I I I "n599218
6 I no I = zero I = I = zero I pa_ndzer "n599218
7 I no I <> zero I = I <> zero I pa_ndsto "n599218
"n599218
definition of the pushbutton : show or hide the following "n599218
parameters for the scope of list "n599218
SELECTION-SCREEN PUSHBUTTON /1(20) PB_LIU "n599218
USER-COMMAND LIU. "n599218
"n599218
text line : materials with movements "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN COMMENT 1(55) TEXT-072 "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / start = zero = end = zero "n599218
1 I yes I = zero I = I = zero I pa_wdzer "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdzer LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-083 : no opening stock ; no closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-083 "n599218
FOR FIELD pa_wdzer "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / start = zero = end <> zero "n599218
2 I yes I = zero I <> I <> zero I pa_wdzew "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdzew LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-084 : no opening stock ; with closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-084 "n599218
FOR FIELD pa_wdzew "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / start stock <> 0 / end stock = 0 "n599218
3 I yes I <> zero I <> I = zero I pa_wdwiz "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdwiz LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-085 : with opening stock ; no closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-085 "n599218
FOR FIELD pa_wdwiz "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / with start and end stocks / different "n599218
4 I yes I <> zero I <> I <> zero I pa_wdwuw "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdwuw LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
with opening stock ; with closing stock ; changed "n599218
SELECTION-SCREEN COMMENT 5(70) text-086 "n599218
FOR FIELD pa_wdwuw "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / with start and end stock / equal "n599218
5 I yes I <> zero I = I <> zero I pa_wdwew "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdwew LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
with opening stock ; with closing stock ; non-changed "n599218
SELECTION-SCREEN COMMENT 5(70) text-087 "n599218
FOR FIELD pa_wdwew "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
text line : materials without movements "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN COMMENT 1(55) TEXT-073 "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
materials without movements / stocks = zero "n599218
6 I no I = zero I = I = zero I pa_ndzer "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_ndzer LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-083 : no opening stock ; no closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-083 "n599218
FOR FIELD pa_ndzer "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
materials without movements / with start or end stock "n599218
7 I no I <> zero I = I <> zero I pa_ndsto "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_ndsto LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
with opening stock ; with closing stock ; non-changed "n599218
SELECTION-SCREEN COMMENT 5(70) text-087 "n599218
FOR FIELD pa_ndsto "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
SELECTION-SCREEN END OF BLOCK listumfang.
SELECTION-SCREEN BEGIN OF BLOCK EINSTELLUNGEN
WITH FRAME TITLE TEXT-068. "Settings
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
PARAMETERS XSUM LIKE AM07M-XSUM.
SELECTION-SCREEN COMMENT 4(50) TEXT-019 FOR FIELD XSUM.
Text-019: nur Summen
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
PARAMETERS XCHAR LIKE AM07M-XCHRG.
SELECTION-SCREEN COMMENT 4(50) TEXT-015 FOR FIELD XCHAR.
Text-015: nur chargenpflichtige Materialien
Das Kennzeichen 'xchar' bestimmt die Art der Listausgabe entweder
auf Material- oder Chargenebene.
SELECTION-SCREEN END OF LINE.
the function "No reversal movements" is only "n571473
available from relaese 4.5B and higher "n571473
( TEXT-026 : No reversal movements ) "n571473
SELECTION-SCREEN BEGIN OF LINE. "n571473
SELECTION-SCREEN POSITION 1. "n571473
PARAMETERS NOSTO LIKE AM07M-NOSTO. "n571473
SELECTION-SCREEN COMMENT 4(50) TEXT-026 "n571473
FOR FIELD NOSTO. "n571473
SELECTION-SCREEN END OF LINE. "n571473
SELECTION-SCREEN END OF BLOCK EINSTELLUNGEN.
SELECTION-SCREEN BEGIN OF BLOCK LISTE WITH FRAME TITLE TEXT-040.
PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT.
SELECTION-SCREEN END OF BLOCK LISTE.
*eject
new data definitions
working fields for reading structures from DDIC "n599218 A
and check whether IS-OIL is active "n599218 A
types : stab_x031l type standard table of x031l "n599218 A
with default key. "n599218 A
"n599218 A
data : g_s_x031l type x031l, "n599218 A
g_t_x031l type stab_x031l. "n599218 A
"n599218 A
data : g_f_dcobjdef-name like dcobjdef-name, "n599218 A
g_flag_is_oil_active(01) type c, "n599218 A
g_cnt_is_oil type i. "n599218 A
contains the a structure with the max. number of fields of
the database table MSEG, but those lines are comment lines
with a '*'. The customer can achtivate those lines.
The activated fields will be selected from the database table
and are hidden in the list. With the settings in the display
variant the can be shown.
INCLUDE RM07MLBD_CUST_FIELDS.
common types structure for working tables
a) g_t_mseg_lean results form database selection
b) g_t_beleg data table for ALV
TYPES : BEGIN OF STYPE_MSEG_LEAN,
MBLNR LIKE MKPF-MBLNR,
MJAHR LIKE MKPF-MJAHR,
VGART LIKE MKPF-VGART,
BLART LIKE MKPF-BLART,
BUDAT LIKE MKPF-BUDAT,
CPUDT LIKE MKPF-CPUDT,
CPUTM LIKE MKPF-CPUTM,
USNAM LIKE MKPF-USNAM,
process 'goods receipt/issue slip' as hidden field "n450596
XABLN LIKE MKPF-XABLN, "n450596
LBBSA LIKE T156M-LBBSA,
BWAGR LIKE T156S-BWAGR,
BUKRS LIKE T001-BUKRS,
BELNR LIKE BKPF-BELNR,
GJAHR LIKE BKPF-GJAHR,
WAERS LIKE MSEG-WAERS,
ZEILE LIKE MSEG-ZEILE,
BWART LIKE MSEG-BWART,
MATNR LIKE MSEG-MATNR,
WERKS LIKE MSEG-WERKS,
LGORT LIKE MSEG-LGORT,
CHARG LIKE MSEG-CHARG,
BWTAR LIKE MSEG-BWTAR,
KZVBR LIKE MSEG-KZVBR,
KZBEW LIKE MSEG-KZBEW,
SOBKZ LIKE MSEG-SOBKZ,
KZZUG LIKE MSEG-KZZUG,
BUSTM LIKE MSEG-BUSTM,
BUSTW LIKE MSEG-BUSTW,
MENGU LIKE MSEG-MENGU,
WERTU LIKE MSEG-WERTU,
SHKZG LIKE MSEG-SHKZG,
MENGE LIKE MSEG-MENGE,
MEINS LIKE MSEG-MEINS,
DMBTR LIKE MSEG-DMBTR,
DMBUM LIKE MSEG-DMBUM,
XAUTO LIKE MSEG-XAUTO,
KZBWS LIKE MSEG-KZBWS,
special flag for retail "n497992
retail(01) type c, "n497992
define the fields for the IO-OIL specific functions "n599218 A
mseg-oiglcalc CHAR 1 "n599218 A
mseg-oiglsku QUAN 13 "n599218 A
oiglcalc(01) type c, "n599218 A
oiglsku(07) type p decimals 3, "n599218 A
insmk like mseg-insmk, "n599218 A
the following fields are used for the selection of
the reversal movements
SMBLN LIKE MSEG-SMBLN, " No. doc
SJAHR LIKE MSEG-SJAHR, " Year "n497992
SMBLP LIKE MSEG-SMBLP. " Item in doc
additional fields : the user has the possibility to activate
these fields in the following include report
INCLUDE TYPE STYPE_MB5B_ADD.
TYPES : END OF STYPE_MSEG_LEAN.
TYPES: STAB_MSEG_LEAN TYPE STANDARD TABLE OF STYPE_MSEG_LEAN
WITH KEY MBLNR MJAHR.
data tables with the results for the ALV
TYPES : BEGIN OF STYPE_BELEGE.
INCLUDE TYPE STYPE_MSEG_LEAN.
TYPES : FARBE TYPE SLIS_T_SPECIALCOL_ALV.
TYPES : END OF STYPE_BELEGE.
TYPES : STAB_BELEGE TYPE STANDARD TABLE OF STYPE_BELEGE
WITH KEY BUDAT MBLNR ZEILE.
DATA : G_T_BELEGE TYPE STAB_BELEGE WITH HEADER LINE,
G_T_BELEGE1 TYPE STAB_BELEGE WITH HEADER LINE.
global working areas data from MSEG and MKPF
FIELD-SYMBOLS : TYPE STYPE_MSEG_LEAN.
DATA : G_S_MSEG_LEAN TYPE STYPE_MSEG_LEAN,
G_S_MSEG_UPDATE TYPE STYPE_MSEG_LEAN, "n443935
G_T_MSEG_LEAN TYPE STAB_MSEG_LEAN.
working table for the control break "n451923
types : begin of stype_mseg_work. "n451923
include type stype_mseg_lean. "n451923
types : tabix like sy-tabix, "n451923
end of stype_mseg_work, "n451923
"n451923
stab_mseg_work type standard table of "n451923
stype_mseg_work "n451923
with default key. "n451923
"n451923
data : g_t_mseg_work type stab_mseg_work, "n443935
g_s_mseg_work type stype_mseg_work. "n443935
working table for the requested field name from MSEG and MKPF
TYPES: BEGIN OF STYPE_FIELDS,
FIELDNAME TYPE NAME_FELD,
END OF STYPE_FIELDS.
TYPES: STAB_FIELDS TYPE STANDARD TABLE OF STYPE_FIELDS
WITH KEY FIELDNAME.
DATA: G_T_MSEG_FIELDS TYPE STAB_FIELDS,
G_S_MSEG_FIELDS TYPE STYPE_FIELDS.
working table for the requested numeric fields of MSEG
types : begin of stype_color_fields,
FIELDNAME TYPE NAME_FELD,
type(01) type c,
end of stype_color_fields,
stab_color_fields type standard table of
stype_color_fields
with default key.
data: g_t_color_fields type stab_color_fields
with header line.
DATA: BEGIN OF IMSWEG OCCURS 1000,
MBLNR LIKE MSEG-MBLNR,
MJAHR LIKE MSEG-MJAHR,
ZEILE LIKE MSEG-ZEILE,
MATNR LIKE MSEG-MATNR,
CHARG LIKE MSEG-CHARG,
BWTAR LIKE MSEG-BWTAR,
WERKS LIKE MSEG-WERKS,
LGORT LIKE MSEG-LGORT,
SOBKZ LIKE MSEG-SOBKZ,
BWART LIKE MSEG-BWART,
SHKZG LIKE MSEG-SHKZG,
XAUTO LIKE MSEG-XAUTO,
MENGE LIKE MSEG-MENGE,
MEINS LIKE MSEG-MEINS,
DMBTR LIKE MSEG-DMBTR,
DMBUM LIKE MSEG-DMBUM,
BUSTM LIKE MSEG-BUSTM,
BUSTW LIKE MSEG-BUSTW, "147374
define the fields for the IO-OIL specific functions "n599218 A
mseg-oiglcalc CHAR 1 "n599218 A
mseg-oiglsku QUAN 13 "n599218 A
oiglcalc(01) type c, "n599218 A
oiglsku(07) type p decimals 3, "n599218 A
insmk like mseg-insmk, "n599218 A
END OF IMSWEG.
User settings for the checkboxes "n547170
DATA: oref_settings TYPE REF TO cl_mmim_userdefaults. "n547170
*eject
HAUPTPROGRAMM *********************************
F4-Hilfe für Reportvariante -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
PERFORM f4_for_variant.
"n599218
INITIALIZATION "n599218
"n599218
"n599218
pay attentions : this process time will not be processed "n599218
in the webreporting mode "n599218
INITIALIZATION.
PERFORM APP_PROCESS USING 'ME'. "TEST
PERFORM initialisierung.
get the parameters from the last run "n547170
perform esdus_get_parameters. "n547170
set flag when INITILIZATION is processed
move 'X' to g_flag_initialization.
"n599218
AT SELECTION-SCREEN "n599218
"n599218
Prüfung der eingegebenen Selektionsparameter, -
Berechtigungsprüfung -
AT SELECTION-SCREEN.
the following 3 parameters XONUL, XVBST, and XNVBST "n599218
became obsolete; send error when they should be filled. "n599218
This could be possible if the user works with old "n599218
selection variants or this report is launched by a "n599218
SUBMIT command "n599218
if XONUL is initial and "n599218
XVBST is initial and "n599218
XNVBST is initial. "n599218
ok, the old parameters are empty "n599218
else. "n599218
text-088 : note 599218 : obsolete parameter used "n599218
MESSAGE E895 with text-088. "n599218
endif.
did the user hit the pushbutton "Category" ? "n599218
case SSCRFIELDS-UCOMM. "n599218
when 'LIU '. "n599218
yes, the pushbutton "Category" was hit "n599218
IF g_flag_status_liu = C_HIDE. "n599218
show the 7 parameters on the selection srceen "n599218
MOVE C_SHOW TO g_flag_status_liu. "n599218
ELSE. "n599218
hide the 7 paramaters "n599218
MOVE C_HIDE TO g_flag_status_liu. "n599218
ENDIF. "n599218
ENDcase. "n599218
"n599218
go on only if the user wants to launch this report "n599218
check : sy-ucomm = 'ONLI' or "n599218
sy-ucomm = 'PRIN' or "n599218
sy-ucomm = 'SJOB'. "n599218
PERFORM eingaben_pruefen.
check whether FI summarization is active and other "n547170
restrictions could deliver wrong results "n547170
perform f0800_check_restrictions. "n547170
- the user wants to surpress the reversal movements : "n497992
process warning M7 392 "n497992
IF NOT NOSTO IS INITIAL. "n497992
emerge warning ? "n497992
CALL FUNCTION 'ME_CHECK_T160M' "n497992
EXPORTING "n497992
I_ARBGB = 'M7' "n497992
I_MSGNR = '392' "n497992
EXCEPTIONSPlease read the KBA document 2012912 - Changeablility of the field "material group" in purchasing documents
It clearly says that material group can't be changed in case you will use material master in purchase order.
So, it is clear that you can't use different material group for material master in purchase order.
For stock report, system will only show you the material group which is assigned to the material master (MARA-MATKL). System will not look into the purchase order section (like EKPO). -
Need customised report for list of stock for partially processed materials.
Hi ,
The requirement with process im explaining plz share the report.
This customised report related to partiallly processed materials:
Suppose , after recieving material from vendor as raw material they will transfer the mat to vendor for processing agsinst 57f4 challan, after completing the process, they will recieve this material , this process will continues to till becoming finished product, once after the finished product come, they will transfer to finished storage location, from there it will be issued to production.
How to make the report, plz suggest me:
The report format is :
S.no material description pending stock challan pending stock actual stock
Pending stock: material to be issued to vendor for proceessing
Challan pending stock: to be recieved from vendor after processing.
Actual stock: pending stock+challan pending stock.You need these three informations
Pending stock: material to be issued to vendor for proceessing
You have to find all Subcon. POs from Table EKKO,EKPO. Po number need to be passed to EKET Table and need to fetch "Reservation Number". Take this number and goto RESB table to get all components. You can find issue documents from MSEG table by passing 541 and PO Number. You need not consider all 541 documents which have been converted to Challan as it will be already considered with point no. 2
2. Challan pending stock: to be recieved from vendor after processing.
From Table J_1IEXCDTL by selecting 57F4 take all the stock from all the Challans which are having "status" P -Inprocess. (Reconciliation and completion not done.)
3. Actual stock: pending stock+challan pending stock.
This is just calculation.
I think there are many validations and considerations to be made. I think you can build from here.
Regards
Binoy -
Problem of Stock Tranfer :
Branches not make any STO for transferring any faulty material to Mahape, Because some material which are physically hold to branches not show in SAP Stock
Some material are dispatch from one branch to other branch, branch to Franchisee engineer how to maintain track threw SAP?
While making entries for PR & PO Or Making Document No(Storage location to storege location transfer ), I want to check matterial avelability for required plant, is it possible viweing the qunitity at time of entering PR.
After making I & C Confirmation and Techo , Billing Department not showing this data or showing partially processHello Tahir,
System's behaviour on FIFO is slightly change in case of inventory transfer. System does'nt keep any connection in physical FIFO (Serialized items) and FIFO cost in this case, as if one item first has been taken at USD 100 and then at USD 120, when you will transfer the stock and you choose 2nd serialized item which was taken at USD 120, system will pick the cost of USD 100 as of 1st item's cost because system creates layers for cost price and open quantities and at the time of inventory transfer, system only considers the first open layer of cost of the issuing warehouse. But all of this happens if your G/L determination is based on warehouse or item level. In case G/L determination is based on Item Group, your FIFO will work as per your requirements.
Regards,
Siddiq -
Report on current stock and safety stock
Hi,
I want to have the report on current stock and safety stock.
In MC.9 it gives wrong safety stock. When I go to cross check the safety stock in material master & in MC.9 I see differences.
Thanks,
KiranYou can user tcode MC.9 or MC.5 to know valuated stock available at given plant. Stock lying in Returns (MB52) will not be a part of this report as it non-valuated stock.
The stock in the accounting view of the material master considers stock at plant level including stock in Transit (Intra & Inter plant stock trasnfers) & special stock like stock issued to vendor , consigment stock etc which is valuated at plant level.
whereas and stock in the plant stock view of the material master does not consider such special stocks hence there will always difference in both veiws.
For Physical stock as on particular date you can consider MB5B report with radio button "Storage location/Batch Stock" wherein you will get Quantity issued & Qunatity received in those SLOC along with Opening stock & Closing stock for the specified period.
use tcode
MBLB to know stock at vendor.
MB54 - Consignment Stock. -
Hello there,
Could anyone tell me the possibility of populating stock at storage location. I am using 2lis_03_BF and 2lis_03_UM for populating the Material Movements cube in BW 3.5. When we checked the data all the values for materials are populated against Plant level and the quantities at Plant - Storage location level.
I have implemented the SAP How to Document for populating the values at storage location level but I have two issues on this.
1. The actual values of materials are not accurate when displayed at Plant-Storage location level. Because they are calculated using Average value formula as per the note. How to realize the actual values at storage location level also taking into consideration the respective revaluation done at plant level?
2. If I run the report for all Plants - storage locations it is either timing out or taking a lot of time to display. We are maintaining 45 plants and 10 storage locations.
Could anyone tell me how to realize these values at storage location in an efficient way if possible.
Thanks in advance,
RajHi Anil,
Thanks for the reply. Yes I did implement that note to get the values at storage location level. The values I am getting are not accurate after following this note. Example It is displaying the value of the material equally for all storage location which are valuated at different prices. ( Taking average values).
Also If the material was revaluated the price correction is created at plant level and it is not taking the correction into consideration for displaying the individual values i.e against respective storage location. But I am getting the total result at storage location accurately.
Is it possible in BW to display the values at storage location accurately as in R/3.
Thanks,
Raj -
Hi Experts
I am looking for a report which should display the unrestricted stock of a material in a Particular Plant / storage location.
They have an existing Z report for the ATP Quantity for a material taking into consideration of all Open Sales Orders & Scheduled for Delivery.
But the business want the Unrestricted stock picked from the above z report.
My Question is: Is it possible to extract the data from a Z report with specific conditions to be populated in another Z report being developed.?
If so, how coul d be achieved ?
ThanksGeetha,
The answer to your question is yes. Just spec it out and hand it to your developers. They will find it easy to modify the existing report, and then create a new one which reads the newly available data.
Of course, one wonders, 'why don't you just use standard SAP reports'?
I assume when you say 'unrestricted', you are following the standard SAP definition. If so, then Transaction MB52 is a standard list which includes a column for 'unrestricted'.
I suggest you review all SAP reports before commissioning a new one. Try SAP1 at the command line (this is not really a transaction, so don't preface with /N). Select Materials Management>Inventory management. Lotsa stuff there.
Regards,
DB49 -
Safety stock not covered by schedule lines in planning run
Hi !
In our organization we are trying to implement scheduling agreements and automatic creation of delivery schedule lines through MRP. We have MRP type PD and it considers the reservations created by PM orders and Production orders as requirement elements. When I do the planning run, it creates schedule lines for the PM order reservations and purchase requisition for safety stock. I need it to create schedule lines for all scenarios. Kindly help and suggest a solution.
Regards,
SatyaHi,
Please refer the below links.
Schedule Lines not getting created in MRP
Re: No Scheduling line is generated when RUN MRP
Hope it helps you.
Thanks.
Maybe you are looking for
-
Table for List of Active Data Sources
Hello All, I have a requirement like, to collect List of Active Data Sources from which extractions are happening for the past one year. Actually i have many Data sources which are in Active State but extractions are happening only on some of the Act
-
When I use Safari on my iPad 2, more than 1/4 of the left side of the screen is used for "shared links", "reading list", or "History". I would like to hide that. How do I do that?
-
HT201317 Missing photos from backup?
I lost my iphone and have just got a replacement. However, when I chose to restore the most recent back up, some of my photos did not download. where can i find the rest of my pictures? I am worried they were not saved!
-
Spining a model on a touchscreen
Hello I have another question related to 3D. I made a little modification to the behavior automatic model rotation, I added this block:(default rotation speed 0(pSpeed)) -- CONTROL ROTATION ----------------- <<<<<<<<<<<<< on mouseUp me if _mouse.mous
-
Does anyone know how to get a chat discussion off an iPhone.? Dont care how, I just need to get it either downloaded or emailed. Thank you,