Stock/Requirement
Hi gurus,
Need immediate attention!
I created one infoset query using PBIM, PBED, MARA, & MARC tables for getting forecast qty & withdrawal qty from the individual plants and various materials. This query is succesfully working, now my requirement is to add other fields like "requirement qty & receipts qty (MRP element data - VSF) in order to find out how much qty we require to meet the customer order.
Can any one of you please pay attention on this thread ?
Thanks,
Irfan.
Required quentities are coming from which tables?
are you not able to map them directly in infoset?
Regards
Sudeep
Similar Messages
-
Table for temporarily stock /requirement for tocde /afs/mdo4
Dear expart,
I developed a zreport for display STO number, Production order number, operation etc.
mainly I use here AFPO,AFRU, MSEG, MCHB & J_3ABDSI Table.
My problem is, when I compare with Tcode /afs/md04 tab-temporarily stock /requirement .
for some MATNR
data show properly.
and some MATNR are blank with message Last MRP run on 04.04.2011 or such date.
Hhow i can filter the in Z-report which MATNR are not in Tcode /afs/md04 tab-temporarily stock /requirement .
my code is.
SELECT j_3abdsiaufnr j_3abdsimatnr j_3abdsij_4krcat j_3abdsimbdat j_3abdsi~menge INTO TABLE it_eket FROM j_3abdsi
FOR ALL ENTRIES IN it_final1
WHERE
j_3abdsi~j_4krcat = it_final1-j_4ksca AND
j_3abdsi~matnr = it_final1-matnr AND
j_3abdsi~werks = it_final1-werks AND
j_3abdsi~bdart = 'TB' AND
j_3abdsi~plart = 'B' AND
j_3abdsi~bsart = 'UB'.
Pls help .
Rayhan
Edited by: Abu Rayhan on Apr 5, 2011 10:24 AMCLEAR i_data1.
REFRESH i_data1.
LOOP AT i_mara.
READ TABLE i_marc WITH KEY matnr = i_mara-matnr BINARY SEARCH .
IF sy-subrc = 0 .
CALL FUNCTION 'J_3AM_DISPOSITION_DISPL'
EXPORTING
i_matnr = i_mara-matnr
i_werks = p_werks
I_DIALOG = ' '
I_SPERR = ' '
I_AUFRUF = ' '
I_BANER = ' '
i_todate = todate
I_HEADER_ONLY = ' '
IMPORTING
ex_dbba = i_data3
E_MDKP =
EX_PBBD =
EX_MELD =
E_CM61M =
EXCEPTIONS
material_gesperrt = 1
wbz_fehler = 2
material_prgr = 3
dispo_gesperrt = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF i_data3[] IS NOT INITIAL.
LOOP AT i_data3 INTO i_data4 .
IF ( i_data4-j_3astat ='A' OR i_data4-j_3astat ='T') AND i_data4-j_3abskz ='C' .
READ TABLE i_t001l WITH KEY lgort = i_data4-lgonr BINARY SEARCH .
IF sy-subrc = 0 .
CLEAR i_data1str.
i_data1str-matnr = i_data4-matnr.
i_data1str-j_3asize = i_data4-j_3asize .
i_data1str-lgort = i_data4-lgonr.
i_data1str-menge = i_data4-menge .
COLLECT i_data1str INTO i_data1.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDLOOP.
Questions
i_mara recordset 500 material
It take more than 3 house to finished this report.
do changed ?
do you help me ?
Think. -
Stock Requirement List - MD04 - adding columns in this list
Dear All,
I am working on the Stock Requirement list ( transactioncode MD04) and the customer wants to add columns with the fields STPO-DATUV ,date of change of a drawing, and the drawing number with revision level STPO-YY_DZEINR.
There is a badi MD_ADD_COL_EZPS which provides in adding columns, but according the structures MDPSX , MDEZX and MDSUX there are no fields in thoser structures, which directly match with the required fields; somebody has a clue to help me out and get it working.
For instance: Vendor- and Customer data can be added by using the pushbuttons and those fields are available from above mentioned structures.
Thanks in advance and kindest regards,
Rene.Hi Utpal Mishra
You guessed correctly. I missed to inform our Strategy. We are using Strategy group 11 Make-to-stock prod./gross reqmts plnning.
User is not able to do PGI or create delivery. He says I have enough stock in MMBE but why system is not allowing.
Here there are some pending document like -
1. Pending sales order
2. Pending deliveries (picking not done)
2. Delivery created & Picking Done but PGI not done. These things will have a commitment against the stock. But we are interested in getting these document numbers, so that we can take come action against them.
MD04 simply shows the mrp element as order / delivery but the document number is not available. How to find these documents.
Please help. Is there any table or a standard transaction ??
Thanks -
Stock/requirment list report
Require a report to display the month stock requirment for the next two years based on the plant and mrp.
Hi Raju,
Please check this FM MD_STOCK_REQUIREMENTS_LIST_API.
Hope this will help.
Regards,
Ferry Lianto -
Table for Stock Requirement List related information
Dear Sir,
We have make-to-order scenario , on receiving the Order from Customer we first create a Sale-Order for the Ordered Item . Subsequently in MD04 , we find a requirement getting reflected for the Customer Order .
For example say the Sale-Order number is S-101 and the Line Item is 10 for the FERT material say FERT-101 having the Order quantity as 1 number . In MD04 , we find a requirement getting reflected with the following information :
MRP Element --> CustOrd
MRP element data --> S-101 / 00010 / 0001
Recd/Reqd Qty --> 1-
Available Qty --> 1-
We need to write a Z program for getting the list of the requirements against the Customer Order (as shown in MD04) .
Kindly guide us as which Tables we need to refer for getting the above information pl .
We assure to award full points for the suggested solution .
Rgds
B MittalHi,
Pls use below function module, same as you will get Stock Requirement List related information
MD_STOCK_REQUIREMENTS_LIST_API
For test, goto SE37 and test it
Regards,
Sankaran -
Friends,
When we are using the t-code MD04 to generate the stock requirements list for a material, it is throwing an error "Please maintain version in table T009". Table T009 is the table for fiscal year variants. There are no versions to be maintained there. Also, the fiscal year variant that is assigned to our company code is maintained there. Further, the stock requirement list is being generated for other materials (even those marked for deletion).
Please advise on how to solve this issue.
Thanks & Regards,
Sameer S. Gupte
Cell: +91 9323274801
Office: +91 66452730Friends,
The problem was with the material master wherein a different fiscal year variant was maintained in the MRP view (different from the one attached to the company code). Changing the material master has solved this problem.
Thanks & Regards,
Sameer S. Gupte
Cell: +91 9323274801 -
Question on Stock requirement report
Hi,
Appreciate your response on the below question.
This issue is regarding the AFS Stock/requirement list.
When we run for for a material / plant combination and include a date in the 'Date to' field - stock that are in B status (MRP blocked) appears in the report.
But when we don't specify the date, the stock in B tab does not appear.
Can you please advise?
Thanks in advance.Hello Kase
I don't have access to AFS system, but let me try and answer you.
AFS stock/requirements list is dynamic as it provides the latest situation for MRP elements including changes after planning date.
If the MRP was not yet started and new requirements are in the system, status 'B' is set for those requirements to which no stocks could be assigned in the current display in the AFS Stock/Requirement List.
So the 'date to' has a significance in evaluating when the MRP was run last and what changes have taken place since.
Please take a look at the following OSS notes:
690576 - Description of MRP statuses in AFS planning
Hope this helps. -
Stock/requirement list at a particular date
MD04 gives current stock/requirement list and MD05 gives planning result of last MRP run.
Hoe to see stock/requirement of a particular dateDear Harshad,
As explained there is no standard report to meet this requirement,but stock on a posting date is possible through MB5B.
If my understanding is correct then this stock/requirements list is a dynamic one(even on a particular date) this list gets updated
for each fixed/planned- receipts/issues.So on the same day there may be number of updated list.So there cant be only one
stock/requirements list on a given particular date.
Correct me if I'm wrong.
Regards
Mangalraj.S -
"SubReq" is still available in the stock/requirements list.
Hi SAP guru's,
In the subcontracting scenario for our client, the required quantity of child component will be provided to the subcontracting vendor.
For one particular purchase order,
Subcontracting PO for parent material "A" - qty 4284
Child component "B" - qty 24,996 provided to the vendor
"SubReq" is still available in the stock/requirements list of child component referring to the closed purchase order (delivery and invoice posting completed for full quantity, no open item quantity).
What could be the reason for this issue and what is the best solution.
Thanks in advance for your valuable reply.
Reddy.Hi Csaba,
Thanks for your immediate response to my query.SubReq should not appear in MD04 w/o existing requirement (e.g. PO) as a standard but it is observed for this PO.
The OSS note "115899- Correction report for subcotractor requirements" is not giving the direct solution, but the content in this note may be useful to analyse and resolve the issue which we are trying.
Thanks & Regards,
Reddy GY. -
Printing the Collective Stock/Requirements List
Hey All,
I'm trying to print out the collective stock/requirements list via the menu path "System -> List -> Save -> Local File" but it is shaded out and i cannot do this, just like SD variants are needed to be maintained in own data for the report VA05 so that layouts can be saved, do we also need some such varient maintained in own data to access this option ?
Best Regards.Dear Danish,
After executing the Stock/Requirements List in MD04,in the top menu List -
> variable print --->From
here you can download into a spread sheet or as a local file or as a word processing.
Or else you can print from here.
Now come back with your further queries.
Dear Vivek, MDLD is to print out the MRP list (which is a static one and stock/requirements list is a
dynamic one).
Regards
Mangalraj.S -
MD04 Stock requirement changed date is not updated.
Hi Experts,
Please can any one give me solution for the date in Md04.
Co02 if I change the PR date that date is not showing up in MD04, the previous date is showing up that to 1 day extra.
Reward poins will be givenHi Jay,
My requirement is : In CO01 we create production order with BASIC FINISH and START DATE. exp FINISH DASTE 12/01/2007
START DATE 11/30/2007
In MD04 : i can see this start date as 11/30/2007 for all the stock requirements
If I change the date in CO02 as FINISH DASTE 12/20/2007
START DATE 12/01/2007
in MD04 should show 12/01/2007 for all stock requirements, but it is showing 11/30/2007.
Please help me in this issue, Good reward will be given -
Different Exception messages in MRP list & Stock Requirement List
Hello Experts,
When I run MRP and then look at the stock Requirement List & MRP list for the same material, I see different exception messages in these list.
I noticed that any of the exception messages in Exception group "7 - Exception during rescheduling" (ie, 10-reschedule in; 15-Reschedule Out; 20-cancel process; 30-plan process according to schedule) is not appearing in the stock requirement list even though they appear in the MRP list.
Does any configuration affect what message group can appear in Stock Requirement List & MRP list?
Please advice.
Regards
TomHi Tom,
For exception message - 62, just do the below checks -
Some of the reasons as to why you may find this exception message is because the backward scheduling can drive the start date in the past so far that:
- there is no valid BOM as of that date
- one or more of the work centers are not valid on that date
- there is no valid factory calendar on that date
Check the scheduling formulas in your work centers that are set up, and/or to specify for the material master a fixed lot or a max lot size so that planned orders result with realistic lot sizes.
Also you can set up MRP to only run on basic dates for your overall run, and to follow up with an MRP run which generates capacity planning only within the planning horizon, such as NETPL. You would need to configure the planning horizon so that it specifies a time frame over which capacity planning is to be done.
Also check the note : 88505 - Planned order upload generates exception message 62
In short, do a thorough check of the parameters maintained to ensure there is no inconsistency in the master data.
Check & revert.
Regards,
Vivek -
Removing access to Stock Requirements - MD04
Hello, we are changing our business process at some of our locations and we would like to remove access to the Stock Requirements screen (MD04). This transaction is in almost all of our roles, and I am trying to avoid going role-by-role to remove this access. Is there a way that I can restrict access to MD04 without going role by role?
I thought I could use RSCSAUTH to assign an authorization group to the transaction, but the SAPMM61R program does not come up in that transaction. Can I use RSCSAUTH for this?
Thanks,
DanHi,
As a temporary solution you can lock transaction u201CMD04u201D via SM01 which will lock the transaction for use and you can then do the role by role modifications.
Also you can take help of ABAP to develop a BDC to modify the menu and u201CS_Tcodeu201D auth. Object of each role you want to modify which is not a very standard solution.
Regards
Suhas -
Hi all,
Pl go through the following issue:
There is a material B. It is a component of Material A in BOM. This material A is to be supplied by a vendor by subcontracting.
There is a subcontracting requiment for some 70,000 pieces for this material B for the past one month .But there is no pegged requirement corresponding to this requirement . So , this stray requirement , which is available in stock requirements list of Material B is to be eliminated.
Can you pl suggest some solution?
Those who can give a probable solution shall be awarded points immediately.
Edited by: venkateswara rao on Aug 21, 2008 7:52 AM
Edited by: venkateswara rao on Aug 21, 2008 7:53 AMI have gone through the OSS notes and understood that it is a programme error . Hence the inconsistency.
-
Stock requirements list for special stock E
Hello Experts,
Is it possible to view sales order stock along with the sales order and the linked PO in Stock requirements list? If so, would it need configuration changes?
Any input would be rewarded with points.
Thanks,
RajRaj,
Of course. That is the standard display in MD04 for Make To Order (special stock E). You can't make it display any other way.
Regards,
DB49 -
Question about consignment pick-up and stock requirement list
Hello,
why consignment pick-up order is not taking into account as a supply in the stock requirement list?
Thank you,
Gunadihi
if you check the the item category KAN for consign pick up at VOV7, you can find out it is a return from the consignment process.
so when the materials are coming in to ur plant, it is not a supply. it is your own material coming back to your stock.
once you do the sales order and PGR( post goods receipt) you can see in MMBE your stock level increases.
hope it is uuseful to u.
suresh
Maybe you are looking for
-
Hey everyone! I am new to this. I have had my BB since January but just loaded the software last night. My husband has a BB also and I wanted to sync his. How do you do this with multiple devices and the desktop manager so that we don't lose inform
-
Full System Recovery with Time Machine - Applications missing
Hi, My Macbook recently met a nasty end by a glass of wine and ended up completely dead. Not to fear, I thought, it's all backed up on my Time Machine. So I got hold of a Mac Mini and started to attempt to restore my system using Time Machine. Whe
-
Can I use mac mini as a second hard drive
I want to use a second hard drive to run Logic Pro and nothing else. Will a mac mini do this? Can I hook it up to my imac?
-
Pdf files display not correctly in Safari and Preview but in Adobe Reader and Chrome correctly
Chrome: Safari:
-
Change Apple ID country,then change back, all the data of apps store is gone
Use iPhone 5s change Apple ID country,then change back, all the data of apps store is gone,the apps I uninstall but buy before if I want to buy before,I need to buy again!Is there any way that I can fix it? Thank you!