Report Stock/Requirement
Hi ABAP Guru's
I want to create a report which lists the stock and requirement for each material of a plant. Like MD04 in ABAP report style.
Can any one suggest or tell me how can i create this report.? I'll be very thankful for every suggestion.
Thanks and Regards,
Kittisak.
Hi
Check this FM, it is related to display MD04 details:
MD_STOCK_REQUIREMENTS_LIST_API
LOOP AT g_t_bomexp INTO g_r_bomexp.
CLEAR:g_t_mdezx[].
Attaching just a piece of code..
CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
EXPORTING
plscn = l_f_plscn
matnr = g_r_bomexp-matcom
werks = g_r_bomexp-werks
ergbz = l_f_ergbz
afibz = l_f_afibz
inper = l_f_inper
TABLES
mdezx = g_t_mdezx.
Also look for FM related to BOM Explosion:
eg
CS_BOM_EXPLOSION
Hope it helps.
Praveen
Similar Messages
-
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 -
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. -
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 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 -
Safety stock requirement generation
Hi,
We are using report /SAPAPO/RRP_SR_ATP_GENERATE to generate safety stock requirement.
This report calls up the SAP standard heuristic SAP_PP_018 which has the BADI /SAPAPO/RRP_SFTY_STK (BAdI for Safety Stock Heuristic)
The scenario and requirement is -
1. The safety stock element should be a custom category (SR is standard). No issue here. This is configured and the requirement element gets generated with custom category after running the report.
2. This element is included in relevant GATP scope of checks.
3. The issue is - if some one runs the report with standard ATP category SR in selection this demand element replaces the element with custom category which can be seen in product view. So as I understand at any given point in time there will be only one ATP category which will exist as far as safety stock is concerned.
4. What we want is the Safety Stock requirement element with custom ATP category should be separated out so when someone run the report with SR it will create an additional element.
What is the behavior/use of SR requirement element in other modules like SNP/PPDS.
Thanks in advance,
YogeshHi Yogesh,
When Method UPDATE_IO_NODES from BAdI /SAPAPO/RRP_SFTY_STK is called, you can see the already existing safety stock requirements in internal table CT_OLD_REQ.
Additionally, you can see the new or changed safety stock requirements in CT_ORDER_METHOD.
Those entries in CT_OLD_REQ which do not contain a corresponding entry in CT_ORDER_METHOD are always deleted in standard are the Safety Stock Requirements that will be deleted.
In order to prevent this, a possibility is to delete the requested entries from CT_OLD_REQ.
Regards,
Tiago -
Need Help with Function Module or BAPI for Stock Requirements & PIRs
Hello,
I am working on making changes to a Report which should be displaying the PIR (Planned Independant Requirements) Quantities as well as Stock Requirements for SOs & STOs for below Type of Materials for the Given Date.
1. Planning Materials
2. Planned SKUs (that is Materials which do not have a Planning Material attached to them).
In the Current Logic, we are using an FM REQUIREMENTS_ALLOCATION which fetches the Requirements only for the Planning Materials. It does not work for Planned SKUs.
So, is there any Function Module / BAPI which serves this Purpose for both types of Materisls?
Also, I've managed to Find out two Function Modules which I thought might be useful but still need confirmation regarding the same.
MD_STOCK_REQUIREMENTS_LIST_API and
BAPI_MATERIAL_MRP_LIST
Please suggest any other FM if available for this Requirement.
Thanks and Regards,
Venkat Phani Prasad KonduriBasically, here is what my scenario is. I have two Types of Materials which have a Planning Material attached to it. and the Other Category is that it doesn't have a Planning Material attached to it. So, we call it a Planned SKU. That is a Material planned at the SKU level.
Now, the Issue is , the Function Module REQUIREMENTS_ALLOCATION doesn't work for the Plannd SKUs but it only works for the Planning Material. Now, based on this Function Module, we are populating the Data for the Planning Materials of Material Type ZPLN. Similarly, is there any we can make this FM work for a Material which is planning at its own Level.
Please help me in this Regard.
Thanks and Regards,
Venkat Phani Prasad Konduri -
MD04 - Download to excel (Stock/Requirements)
Hi All,
Is there a way to download Stock/Requirements of multiple materials in to an excel spreadsheet (in MD04)? I am able to download it individually for each material. But, this does NOT work for multiple materials. Is there a comparable report to MD04? or tables that I can use to query -- Stock/Requirements so Sales Orders, PO item, P-Reqs can be downloaded for MULTIPLE materials.
Thank you for your help,Hi Tej,
Thanks again, However, we are trying to capture the detailed stock requirements from MD04....
1. Execute MD04
2. Click on a single material & select "Selected stock/requirement lists"
3. For the selected material it shows the details of Date, MRP element, MRP element data, Reschueling, error, recipt/req etc.
4. ???
We are drilling down to another level from Step-2.
We would like a download of STEP-3 for multiple materials.... not, a single material at a time. Currently, MD04 allows list download at Step-2 level or a single download from Step-3. We want a download of STEP-3 for Multiple materials.
Many thanks for your patience,
Bhumika
Edited by: B D on Feb 24, 2012 6:38 PM
Edited by: B D on Feb 24, 2012 6:39 PM -
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 -
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 -
(Invoice aging report = Cash Requirement Report)
hi,
The total balance for cash requirement report for specific supplier not match with the balance for Invoice aging Report also for specific supplier
The expected behavior:
It must to match the balance between the two reports
(Invoice aging report = Cash Requirement Report)
But this not happen when I compare the balances between the report’s
Kindly , Advise .
ThanksHello.
The Invoice Aging Report shows unpaid invoices, which may be not due yet. Use the Cash Requirement Report to forecast your immediate cash needs for invoice payments.
Octavio -
Report in required currency - positions that are reported in TPM12
Hi,
User is looking for a report that will convert balances in original currency to a currency specified by the user based on the u201CMu201D rate for the u201Cas ofu201D (key date) date of the report. Basically they are referring to TPM12/TMR1 and would like to see the positions converted to whichever currency they would like to. I am looking to execute some of the standard transactions that report positions, like, TIS1 (Overview positions), S_ALN_01001154 - Simulated Valuation, etc., but couldn't find the output converted in the currency given in Display currency / Evaluation Currency in the input screen.
Experts, can you through some light on this and tell if there is any such report?
Let me know if you need any further info.
KumarHi Prasad,
Thanks for your prompt reply. First of all, we are looking at if there is any standard transaction that will give the report as required. The client is not interested to use SAP query as there are some authorization problems to transactions SQ01, SQ02, etc. None of the user have access to these transactions.
If standard report is not meeting the requirement we may need to for customer development. But before doing that I am trying to find out if it is possible in any of the existing standard reports.
thanks,
Kumar
Maybe you are looking for
-
Don't want to import all photos from my camera or anywhere else. I only want to work on one image then put it back into Elements. Please tell me how to do this and I would appreciate a detailed answer. Please do not be vague.
-
How can change database one to another in OEM 10g
hello i have oracle 10g db 10.1.0.2.0 R2. and 2 db 1. oracle(db_name) approx 5GB 2. oracle1(db_name) approx 2GB now i am using OEM 10g or db managing.and manage oracle db through OEM. but i want manage oracle1 db through OEM so what should i do.. plz
-
How to delete a free podcast video from the Videos Ap on iPad2
I downloaded a free podcast called Stella Culinary Cooking Techniques CT005l Steak Pan Roasting Episode. It downloaded into the standard VIDEOS Ap and when you open this it opens as a Podcast - playing time 4:26. I now want to delete it and I have tr
-
Customizing colour in Pie chart
Hi Experts, In my scenario there is a Pie chart which shows the completion and pending of work in percentage. I have done this by creating a category and a series and the pie chart is getting displayed for completion and pending work in default colou
-
Error Message from DWCS4: Error in line 27 of form.js.php
Hi I did a seach of the forum for this and came up blank, so here goes although I am sure I am not alone with this one... This week I installed CS4 and get an error reported whenever I open up an ADDT Dynamic Form: "There is a syntax error on line 27