Regarding MB5B(stock details) transaction
Hi all,
there is a standard report in SAP for Stock details on posting date in MB5B transaction. If you go in to this, there is a field 'layout'. what is meant by that layout and how can we add to any report?? after executing we will get a list. but i need to dispaly all field in ALV grid. i am copying standard prog to our prog and doing modifications. Is there anybody developed the same functionality, please send me that code. becuase this is some what urgent..
Thanks in advance
chandu
Hello Chandu,
For a moment forget about this <i>Layout</i> field on the initial screen of the transaction MB5B. Just give the other input parameters on the selection screen and execute.
You will see the results in a list format. There's a Menu Option here called <i>Settings-->Layout.</i> Just try that option out and you'll discover that the layout of the list can be changed and also saved. When you have saved at least one such Layout, you would be able to enter the name of the layout in the initial screen of the transaction the next time you execute it.
Unfortunately, there's no option here to see the list in an ALV Grid. There has been a similar post sometime back: MB5B IN ALV FORMAT
And the Layout option in the case of this transaction has been impe=lemented manually, using the function modules from the Function Group SKBS.
Hope that helps. If this solves your doubt, then please reward the points accordingly and mark the thread as answered. Else get back with further doubts.
Regards,
Anand Mandalika.
Similar Messages
-
How to get stock details as on date
Dear All
How to get opening stock and closing stock details as on date .
Tell me any function module is there to get as on date.
Moderator Message: FAQ. Please search in the forums before posting your question.
Edited by: Suhas Saha on Nov 4, 2011 3:13 PMHi
By using transaction MB5B-Stock on posting date,you can arrive stock statement as on given date for Itemwise,plant,receipts,issues and balance availabel with value.
Regards
M P D Kamath -
GL A/C with Detailed Transactions
I have prepare a report which showing the GL A/C with Detailed Transactions.
I need the link about GL tables with PO, AP and AR tables
can anybody help me in this regard
thanks in advance
sadiqPlease Refer to table
gl_import_references
link this table with gl_je_headers and gl_je_lines using je_header_id and line_id
gl_import_references can be linked with subledger tables using gl_sl_link_id
the Link table in Subledger can be identified from gl_sl_link_table
Ex: gl_import_references shall be linked to ap_ae_lines table using gl_sl_link_id
I hope it is helpful
Regards,
Sridhar -
MB5B - Stock on posting date show in other Unit of measure
Dearl All,
Pls support me this case: I would like to see this report (MB5B - Stock on posting date) in other Unit of measure.
This report shows stock in Basic Unit only.
E.g
Material A, base unit = M, other unit = ROL
Report needs show stock in ROL.
How can I do that?
Thank you vry much!
Cao Huy.Hi,
In your case, order unit as ROL and material basic unit of measure is M.
PO created only for the order unit ROL, and goods have received from the vendor based on the PO order unit.
So,this MB5B stock on posting date is displayed only the total stock received based on the received GR order unit qty .
stock also managed only ROL unit of measues. it is not possible to list based on the M stock unit.
Regards,
thiru -
MB5B - Stock on posting date doesn't show Storage Location field
Hi All,
I run report MB5B - Stock on posting date with Stock Types = Storage Loc/Batch Stock, but the report doesn't show
Storage Location field in result.
How can I see it in this report?
Thank you very much for your kind support!
Cao Huy.hi
what i think i sthis report is only for the OPENINGand CLOSING stock for the period or day
now whenu give SL field then system will only concider stock from that SL
the filed of SL will not be viewable in report as it is just opening and closing balance
regards
kunal -
Error in Mapping (Details: transaction SMW01)
Hi,
I am tring to replicate materials to SRM.
I ran the transaction R3AS and given the load object as MATERIAL.
When i checked in SMQ2 i found an error.
The error is as follows.
"Error in Mapping (Details: transaction SMW01)"
Kindly help me in resolving this issue.
Feel free to contact me on +919886157678
Thanks and Regards,
SatishAs Jorge said check transaction SMW01.
Probably you'll see that some material group is missing, so you'll have to adapt your filters for that and replicate the material group (DNL_CUST_PROD1) using R3AS.
Regards,
Robin -
Stock Details based on Batch-Chracteristics
Hii experts,
I have a requirement to get Stock details, Batch, material , Plant etc on the basis of given Characteristics Value . i have searched but didnot find any thread. Some are there in which by passing batch/ material/plant we can get Characteristics. but i want in backward direction. by passing characteristics i need Batch and all details.
Kindly reply.
Regards
priyanshuHi,
try this too,
Pass characteristic name to AUSP-ATINN.
Pass AUSP-OBJEK & AUSP-KLART to INOB-CUOBJ & INOB-KLART with INOB-OBTAB = 'MCH1'.
The first 18 characters of INOB-OBJEK is your material number.
Now pass this material no to MCH1-MATNR , INOB-CUOBJ to MCH1-CUOBJ_BM and retrieve the batches
You can get the batch stock from MCHB. -
Hi experts . how can we know the stock details for a perticular plant?
hi experts . how can we know the stock details for a perticular plant
check this code
REPORT YSG_MATSTK_REP LINE-SIZE 220
LINE-COUNT 50(5).
*& DATA DECLARATION *
TABLES: MARA, "GENERAL MASTER DATA
MARC, "PLANT DATA FOR MATERIAL
MARD, "STORAGE LOCATION DATA FOR MATERIAL
MBEW, "MATERIAL VALUATION
MVKE, "SALES DATA FOR MATERIAL
MAKT. "MATERIAL DESCRIPTION
DATA: BEGIN OF I_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,"MATERIAL NUMBER
MBRSH LIKE MARA-MBRSH,"INDUSTRY SECTOR
MEINS LIKE MARA-MEINS,"BASE UNIT OF MEASURE
END OF I_MARA.
DATA: BEGIN OF I_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,"MATERIAL NUMBER
WERKS LIKE MARC-WERKS,"PLANT
LVORM LIKE MARC-LVORM,"FLAG MATERIAL FOR DELETION AT PLANT
"LEVEL
PSTAT LIKE MARC-PSTAT,"MAINTENANCE STATUS
DISPO LIKE MARC-DISPO,"MRP CONTROLLER
END OF I_MARC.
DATA: BEGIN OF I_MAKT OCCURS 0,
MATNR LIKE MAKT-MATNR,"MATERIAL NUMBER
MAKTX LIKE MAKT-MAKTX,"MATERIAL DESCRIPTION
END OF I_MAKT.
DATA: BEGIN OF I_MVKE OCCURS 0,
MATNR LIKE MVKE-MATNR,"MATERIAL NUMBER
VKORG LIKE MVKE-VKORG,"SALES ORGANIZATION
VTWEG LIKE MVKE-VTWEG,"DISTRIBUTION CHANNEL
END OF I_MVKE.
DATA: BEGIN OF I_MARD OCCURS 0,
MATNR LIKE MARD-MATNR,"MATERIAL NUMBER
LGORT LIKE MARD-LGORT,"STORAGE LOCATION
LABST LIKE MARD-LABST,"VALUATED STOCK WITH UNRESTRICTED USE
END OF I_MARD.
DATA: BEGIN OF I_OUT OCCURS 0,
MATNR LIKE MARC-MATNR,
WERKS LIKE MARC-WERKS,
LVORM LIKE MARC-LVORM,
PSTAT LIKE MARC-PSTAT,
DISPO LIKE MARC-DISPO,
MBRSH LIKE MARA-MBRSH,
MEINS LIKE MARA-MEINS,
MAKTX LIKE MAKT-MAKTX,
VKORG LIKE MVKE-VKORG,
VTWEG LIKE MVKE-VTWEG,
LGORT LIKE MARD-LGORT,
LABST LIKE MARD-LABST,
END OF I_OUT.
DATA : TOT TYPE I. " TOT - TOTAL TO PRINT STOCK
*& S E L E C T I O N - S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY.
PARAMETERS: P_WERKS LIKE MARC-WERKS OBLIGATORY.
SELECT-OPTIONS: S_LGORT FOR MARD-LGORT,
S_DISPO FOR MARC-DISPO.
SELECTION-SCREEN END OF BLOCK B1.
*& I N I T I A L I Z A T I O N *
INITIALIZATION.
S_MATNR-SIGN = 'I'.
S_MATNR-OPTION = 'EQ'.
S_MATNR-LOW = 'M-14'.
S_MATNR-HIGH = 'M-18'.
P_WERKS = '3000'.
S_LGORT-SIGN = 'I'.
S_LGORT-OPTION = 'EQ'.
S_LGORT-LOW = '0001'.
S_LGORT-HIGH = '0004'.
S_DISPO-SIGN = 'I'.
S_DISPO-OPTION = 'EQ'.
S_DISPO-LOW = '001'.
S_DISPO-HIGH = '002'.
APPEND S_DISPO.
APPEND S_LGORT.
APPEND S_MATNR.
CLEAR S_DISPO.
CLEAR S_LGORT.
CLEAR S_MATNR.
*& S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
SELECT MATNR WERKS LVORM DISPO FROM MARC
INTO CORRESPONDING FIELDS OF TABLE I_MARC
WHERE WERKS EQ P_WERKS
AND MATNR IN S_MATNR
AND DISPO IN S_DISPO
AND WERKS = P_WERKS.
IF I_MARC[] IS INITIAL.
WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARC'.
EXIT.
ENDIF.
SELECT MATNR LGORT LABST FROM MARD INTO TABLE I_MARD
FOR ALL ENTRIES IN I_MARC
WHERE MATNR = I_MARC-MATNR
AND WERKS EQ P_WERKS
AND LGORT IN S_LGORT.
IF I_MARD[] IS INITIAL.
WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARD'.
EXIT.
ENDIF.
SELECT MATNR VKORG VTWEG FROM MVKE INTO TABLE I_MVKE
FOR ALL ENTRIES IN I_MARC
WHERE MATNR = I_MARC-MATNR.
IF I_MVKE[] IS INITIAL.
WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MVKE'.
EXIT.
ENDIF.
LOOP AT I_MARC.
MOVE-CORRESPONDING I_MARC TO I_OUT.
CLEAR MARC.
SELECT SINGLE MATNR MBRSH MEINS FROM MARA
INTO CORRESPONDING FIELDS OF MARA
WHERE MATNR = I_OUT-MATNR.
IF SY-SUBRC = 0.
MOVE: MARA-MBRSH TO I_OUT-MBRSH,
MARA-MEINS TO I_OUT-MEINS.
ELSE.
CONTINUE.
ENDIF.
SELECT SINGLE MATNR MAKTX FROM MAKT
INTO CORRESPONDING FIELDS OF MAKT
WHERE MATNR = I_OUT-MATNR.
IF SY-SUBRC = 0.
MOVE: MAKT-MAKTX TO I_OUT-MAKTX.
ELSE.
CONTINUE.
ENDIF.
LOOP AT I_MARD WHERE MATNR = I_MARC-MATNR.
MOVE: I_MARD-LABST TO I_OUT-LABST,
I_MARD-LGORT TO I_OUT-LGORT.
APPEND I_OUT.
ENDLOOP.
LOOP AT I_MVKE WHERE MATNR = I_MARC-MATNR.
MOVE: I_MVKE-VKORG TO I_OUT-VKORG,
I_MVKE-VTWEG TO I_OUT-VTWEG.
APPEND I_OUT.
ENDLOOP.
CLEAR I_OUT.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:\matstk.TXT'
FILETYPE = 'ASC'
TABLES
DATA_TAB = I_OUT.
*& T O P - O F - P A G E *
TOP-OF-PAGE.
WRITE:/ 'DATE:' ,SY-DATUM.
*& E N D - O F - P A G E *
END-OF-PAGE.
WRITE: / SY-ULINE,
/100 'PAGNO: ',SY-PAGNO,
SY-ULINE.
*& E N D -- O F -- S E L E C T I O N *
END-OF-SELECTION.
LOOP AT I_OUT.
AT FIRST.
WRITE :/ 'MATERIAL EXTRACTION REPORT',
SY-ULINE.
ENDAT.
WRITE:/ SY-VLINE,
I_OUT-MATNR,SY-VLINE,
I_OUT-MEINS,SY-VLINE,
I_OUT-WERKS,SY-VLINE,
I_OUT-LVORM,SY-VLINE,
I_OUT-PSTAT,SY-VLINE,
I_OUT-DISPO,SY-VLINE,
I_OUT-MBRSH,SY-VLINE,
I_OUT-MAKTX,SY-VLINE,
I_OUT-VKORG,SY-VLINE,
I_OUT-VTWEG,SY-VLINE,
I_OUT-LGORT,SY-VLINE,
I_OUT-LABST,SY-VLINE.
TOT = TOT + I_OUT-LABST.
AT NEW MATNR.
WRITE : 'NEW RECORD',
SY-VLINE.
ENDAT.
AT END OF LABST.
WRITE : 'STOCK = ',
TOT,
SY-VLINE,
SY-ULINE.
ENDAT.
AT LAST.
FORMAT COLOR 7 INTENSIFIED OFF.
WRITE : /159 'TOTAL STOCK = ',
TOT.
ENDAT.
ENDLOOP.
WRITE : /159 'TOTAL STOCK = ',
TOT.
regards,
srinivas
<b>*reward for useful answers*</b> -
Stock details with old date.??
Hi experts,
How to know the stock details with old date (not period)
date 2 months back or 4 months back.
with material,wih material group or plant..?
how to know the total stock details
MB5L is for just last one period stock only we can get..??
how can i get with any old date?'
Regards,
Anthyodaya.
Edited by: anthyodaya Reddy Nagaram on Apr 5, 2010 12:52 PMCheck the report
S_P00_07000139
Change layout as per your requirement -
Hi experts,
For a material XX which was zero stock on 15/11/2008.Goods receipt(MIGO 101) done on 15/11/2008 of qty 100kg. So stock was 100kg. I have issued material XX of qty 75 kg to cost center and entered posting date 3/11/2008. My system allowing me to issue that material on 3/11/2008 without any warning or error msg. But at that there was no stock. So that if i check the report MB5B stock on posting date my closing stock showing in negative for 3/11/2008. Our requirement is how to stop this back dated posting? System should not allow me if i am posting on back date?
Thank you
SAPhi Rehan,
I have checked all settings also enhancement but there is no as such control to restrict backposting within current period
I think its self disipline action not to post backdated GI when GR is done on later date
Vishal... -
Plant Stock details for a given date
At present we are using MB52 for latest stock position of a plant. Is there any code for getting stock details for earlier date.
As we are facing lot of problems while audits....Hi
Please check the following link
Re: No stock showing in Inventory on date stock report
Cheers
Chandra -
Function module for getting stock details for a given period or date range
Hi experts,
Any function module available for getting stock details batch, plant, storage location, and period wise. <<removed_by_moderator>>
Thanks in advance
M Prasanna
Edited by: Vijay Babu Dudla on Apr 28, 2009 7:23 AMHi,
Try with this FM:
BAPI_MATERIAL_AVAILABILITY .
Go through this link for more details:
ABAP Development
by
Prasad gvk. -
How to export customer/vendor aging detailed transactions to excel ?
hi all,
How to export customer/vendor aging detailed transactions
to MS-Excel ?
After entering all selection creterias,report
opens up with consolidated aging details
for each customer,we need to double click a
customer to get detailed break up of all transactions,
Is it possible to export to ms excel for detailed transations break up of all customers/vendors ?
In standard it is only possible to export detailed
transactions break up for a customer/vendor ?
JeyakanthanThanks,
Eventhogh we don't need detailed aging report in print,
we converted print preview into text file
and then converted to excel format.
Jeyakanthan -
Stock details of a material with batch details
Hi.
I am developing a PP report for which i require the available material (un restricted stock) details and their batch details which are being displayed in MMBE (tcode). Is there any function module or BAPI or else what is the table name for finding this. Please help me for this for which i ll be very gr8 ful.
Thanks.
AshokHi Ashok,
Check these tables MARDMSEGMKPF.
Try this FM's also,
MB_READ_MATERIAL_STOCKS
MD_STOCK_REQUIREMENTS_LIST_API
Check this link.
https://forums.sdn.sap.com/click.jspa?searchID=3418879&messageID=291518
Thanks,
reward If Helpful. -
Query regarding the fields details in particular form for all the users in
Dear All,
I have one query regarding the fields details in particular form for all the users in company.
Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce 4.Total 5. Location.
While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including above 4 fieds .
Now my question is how to set the User choice fiels for the particular form that are common to all users.
Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
This is a manual job and you have do do it with every user login.
Alternately, you can try out this link that explains
[How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]
Maybe you are looking for
-
IN MIR4 one qty is showing in GR/IR and one qty in Price differnce
Dear Sir, We have made a PO for 10 QTy. frist 8 qty deliverd . we have made miro transaction.GR qty is equal to IR Qty.In Next sRest two quantity recived. AFter good receipt (MIGO) when we will do MIR4 & simulate it. One qty is showing
-
Windows 8.1 ERROR MESSAGE: (Device missing)
I am not able to change anything from administrator account.I am receiving error messages... RUnDLL There is a problem starting C:\WINDOWS\System32\inetcpl.cpl C:\WINDOWS\system32\inetcpl is not a valid Win32 application. (NOTE: My system is a 64-bi
-
How to clear data string on cRead multi
Hi i was wondering if anyone knows how to clear the data from ncRead multi? I'm using PCI-CAN Frame API and when I use the ncRead multi VI it reads thru all of my received data frames and I'm getting overlapping data until it is cleared from my indic
-
Downloaded Lion and updated iphoto now I cant find my phto or itunes libraries?
I downloaded the new Lion OS. I then updated Iphoto. Now I cant sem to locate my photo or itunes library. Any ideas?
-
Jsp for student information system(SIS)
I am a student and studying jsp Recently for my Graduation thesis named SIS. who can give me some advice . thank you so much.