Block obsolete materials in VB11
Hi,
My client wants to know the blocked materials while creating material determination .They need a warning message while creating in VB11.Could you please advice me how to block obsolete material while going for material determination or please advice me is there any user exit to do that. Your valuable input would appreciable if provided ASAP.
Regards,
Deva
Hi
In the Material Master Data on Basic Data 1 Tab X-Plant Matl Status field, you can select the relevant Option and mark the Material as either Blocked or Obsolete.
When you try to create Material determination with VB11 and try to use the material, the system wouldnt allow you to use the blocked material and will throw an error message stating "material is Blocked".
Best Regards
Similar Messages
-
Handling Obsolete Materials in a Retail Scenario
Hi,
We have in our Retail Scenario ECC 6 where some Trading Materials have become obsolete and our requirement is to block further procurement and at the same time materials need to be sold.
a) For material blocking we can use field X_Site status 01 in Basic View in Material master for this purpose. If we use this indicator it is not allowing
to sell the goods.
b) A report required to indicate availability of these obsolete materials in various sites/plants
Require your valuable inputs.It sounds like you want something like
SQL> create table test(
2 value number,
3 mod_user varchar2(100)
4 );
Table created.
SQL> create or replace trigger t_mod_test
2 before update on test
3 for each row
4 begin
5 if( updating( 'MOD_USER' ) )
6 then
7 null;
8 else
9 :new.mod_user := NVL( sys_context('USERENV', 'OS_USER')
10 ,user );
11 end if;
12 end;
13 /
Trigger created.
SQL> ed
Wrote file afiedt.buf
1 create or replace trigger t_mod_test
2 before update on test
3 for each row
4 begin
5 if( not updating( 'MOD_USER' ) )
6 then
7 :new.mod_user := NVL( sys_context('USERENV', 'OS_USER')
8 ,user );
9 end if;
10* end;
SQL> /
Trigger created.
SQL> insert into test values( 4, 'xyz' );
1 row created.
SQL> update test
2 set value = 1
3 ,mod_user = 'abc'
4 where value = 4;
1 row updated.
SQL> select * from test;
VALUE MOD_USER
1 abc
SQL> update test
2 set value = 2
3 where value = 1;
1 row updated.
SQL> select * from test;
VALUE
MOD_USER
2
JCAVEDDBC64\jcave
SQL>Justin -
Block posting for Obsolete Materials in COPA
Hey All
We ahve a ascenario in which we post some expenses to the materials via FI transactions FB50. Nothing hits the stock accounts in these transactions. Only thing is while posting we assign the Materials to the PA segment so that we can run reports in COPA for the materials
Now some materials have been discontinued and the material plant status have been set to NOT to perform any transaction related to supply chain. BUT when posting through above FB50 trasnaction the system does stop it from posting and derivation for the obsolete material. I have even tried setting the deletion flag in MM06 for the material. Is there any solution to this so that we can stop material from posting
Thanks
AnkurHi
In my opinion, you need to use exit COPA0002 and put a check.. I dont think its possible in standard system
Another way is to change the description of these materials and add Text " DO NOT USE" so that users are aware while using it
br, Ajay M -
MRP controllers for Obsolete materials
We have a requirement to check MRP controller for certain values that will identify an obsolete material.
Has anyone done this?
Is there an easy way to do this? Custom? Config?Hi,
use the transaction MMD7 to display the materials for a particular MRP controller..
Thanks,
Naren -
Hello
When ECC to APO transfer Material Master.
there can transfer "X-plant matl status" in Basic data1 or "Plant-sp.matl status" in MRP1 View?
and if it's feasible, which i can find?
ThanksHi Songhua Kim,
This field is useful in many ways in APO.
1) Used to block obsolete materials not to get planned in APO. For eg, if you block obsolete materials in ECC with blocked status, during next CIF run, it communicates this master data change to APO and then avoid planning in APO SNP.
2) Used in sales blocking purposes, means to avoid sales order punching process and as a result, netting of forecast will not happen in APO
3) Used in blocking procurement and as a result, procurement orders will not get generated in APO SNP
4) Used in blocked for Task list/BOM, and as a result, the PPMs already generated will not get activated in APO and as a result, planned orders will not get genrated during SNP run
5) Used in blocking purchase and as a result, Purchase requisitons will not get generated in APO SNP run
Hope this will solve your query. Please confirm
Regards
R. Senthil Mareeswaran. -
Vendor Returns for SLED materials which are blocked
Hi All,
We have certain materials for which Shelf Life has been expired. Using QA07, we have blocked these materials. Now we need to return those materials to vendor. We tried creating return PO. While doing MIGO (using 161 mov type ), it is showing the error "SLED 09.06.2011 of batch A has been exceeded".
Please let us know how to return those material to vendor from blocked stock.
Regards,
RoshHi,
It depends if vendor is ready to accept the expired materials then we return it to vendor.
If this is not the same then we have to keep it blocked (Transfer from unrestricted to blocked stock, MvT - 344) for that time till we destroy (scrap) it. And once we have decided to scrap it then we do Goods Issue using MvT 551. -
Blocking of deleted materials in SO creation
Hi everyone. Please teach me how to block deleted materials in SO creation. Currently, when a deleted material is encoded an information message is displayed "Material # is marked for deletion". SO is still created. How can I make it an error message?
Thanks,
RidgyGo to OVSU, select "01" and click on blue lens on top so that you will see some list of tabs. In that maintain "B" for "Block for order" field and assign this 01 in material master for the field "X-distr.chain status" under Sales: Sales Org.Data 1 tab.
Now for that particular material, sale order cannot be created.
thanks
G. Lakshmipathi -
Material block for order process
How to block an order to process a specific material. We are no more using that material, ths SAP should be configured so that it should stop processing for this specific material.
Plz advice.Dear Raghav,
Try with this option,
Go to MM02 transaction enter your material then select the Basic data1 view then go in to the detail here you can find the field X-plant matl status under General Data tab you can maintain option OB -Obsolete Materials to block that material.
Other blocking options also available
01 Blocked for Procmnt/Whse
02 Blocked for task list/BOM
BP Blocked for Purchasing
KA Blocked for Costing
PI Free for Pilot Phase
Z1 Blocked for Procmnt/Inven
I hope this will help you,
Regards,
Murali. -
How to restrict a vendor to be used only for purchasing selected materials?
A source list and purchasing info records allow us to restrict the source of supply (vendors) for the selected material masters / material groups. However, my task is the opposite: I need to restrict the material masters / material groups that can be procured from a particular vendor. E.g. Vendor 12345 can only be used for raising purchase orders for Material A and Material B. No other materials should be allowed in POs for that vendor. Is there a way in standard SAP to do this?
Sorry for not properly understanding your requirement. Now one option comes to mind which you may explore. Create an Outline Agreement for a material group with Item category W and here enter the materials group from some materials which you do not want to be purchased from this vendor .But these materials must belong to the material group for which the contract is created .Than creat Source list on these items of the contract through the Item Overview screen of the contract & check the exclusion Indicator . This will block these materials from being procured refering this contract . Also go through the documentation on "Maintaining a Source List for an Outline Agreement Item with a Material Group" .
Dhruba
Edited by: Dhruba Charan Behera on Jul 13, 2011 3:07 PM -
Blocking material for a customer
Hi friends,
Is there any way in SAP to block the materials for a specific customer????
SanajyHi Sanjay...
Use the material exclusion function:
FUNCTIONALITY: SD> Master data > Products > Listing/Exclusion> Create (Tcodes VBO1, VB02, VB03)
Enter the list/exclusion type B001: For the required customer:
Enter Maintain materials > Save > Exit
Create the order and enter material excluded to test exclusion.
CONFIGURATION: IMG SETTINGS
For IMG settings; Go to IMG > SD > Basic Functions>Listing/Exclusion
ENsure that the listing/exclusion procedure is activated for your order type. You can also create your own condition types access sequences and procedures or use the SAP provided ones.
Thanks,
Safeer Rahman -
HT1338 what is a blocked plug-in?
what is a blocked plug-in?
Apple now blocks obsolete versions of Flash Player.
Download the latest version here: http://get.adobe.com/flashplayer/ -
Hi
In stanadr SAP,
When we post goods to GR blocked stock (103 mvmt) there will be no accounting docs generated
Accounting docs will get generated when GR blocked stock was released (105 mvmt)
Here my client has his requirement like below
When he releases through 105 mvmt the goods should go to quality stock and no accounting document has to generate.
The accounting documents should generate after the stock comes to unrestricted stock only.
How is it possible to do so.. please suggest.
Regards
Jupudihi
The purpose of quality stock is to block the materials from being used till they are certified. Now you ahve alraedy taken the materials in by 103. Now From there you are taking it to quality, even though accounting documents will eb generated, you will not be paying until unless the good part of the materials are sent to un-restricted stock. The rejetced part you return it to vendor back in quality itself during Usage decission. Your accoutning entres are clean as you are accepting onyl the good part of the materials. The accounting entries for total material duirng 105 gets adjusted during the rejected materials when they are returned back to the vendor. I believe this is a normal practice followed everywhere. Additionally if you want you can set more controls in Invoice verification.
Regards -
Performance issue in Report (getting time out error)
Hi experts,
I am doing Performance for a Report (getting time out error)
Please see the code below and .
while looping internal table IVBAP after 25 minutes its showing time out error at this poit ->
SELECT MAX( ERDAT ) .
please send alternate code for this .
Advance thanks
from
Nagendra
Get Sales Order Details
CLEAR IVBAP.
REFRESH IVBAP.
SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
INTO CORRESPONDING FIELDS OF TABLE IVBAP
FOR ALL ENTRIES IN IVBAK
WHERE VBELN = IVBAK-VBELN
AND MATNR IN Z_MATNR
AND WERKS IN Z_WERKS
AND ABGRU = ' '.
Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
SORT IVBAP BY MATNR WERKS.
CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
WK_BLOCK, WK_MMSTA, WK_MSTAE.
LOOP AT IVBAP.
CLEAR WK_INVDATE. "I6677.sn
SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
AUBEL EQ IVBAP-VBELN AND
AUPOS EQ IVBAP-POSNR.
IF SY-SUBRC = 0.
MOVE WK_INVDATE TO IVBAP-INVDT.
MODIFY IVBAP.
ENDIF. "I6677.e n
SELECT SINGLE * FROM MBEW WHERE "I6759.sn
MATNR EQ IVBAP-MATNR AND
BWKEY EQ IVBAP-WERKS AND
BWTAR EQ SPACE.
IF SY-SUBRC = 0.
MOVE MBEW-STPRS TO IVBAP-STPRS.
IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
MODIFY IVBAP.
ENDIF. "I6759.en
IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
MOVE IVBAP-MATNR TO WK_MATNR.
MOVE IVBAP-WERKS TO WK_WERKS.
SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
WHERE MATNR = WK_MATNR
AND WERKS = WK_WERKS.
IF NOT MARC-MMSTA IS INITIAL.
MOVE '*' TO WK_MMSTA.
ENDIF.
SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
WHERE MATNR = WK_MATNR.
IF ( NOT MARA-MSTAE IS INITIAL ) OR
( NOT MARA-MSTAV IS INITIAL ) OR
( NOT MARA-LVORM IS INITIAL ).
MOVE '*' TO WK_MSTAE.
ENDIF.
MOVE MARA-PRDHA TO WK_PRDHA.
SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
WHERE MATNR = WK_MATNR
AND SPRAS = SY-LANGU.
ENDIF.
IF Z_BLOCK EQ 'B'.
IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSEIF Z_BLOCK EQ 'U'.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSE.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
MOVE '*' TO WK_BLOCK.
ENDIF.
ENDIF.
IF WK_PRDHA IN Z_PRDHA. "I4792
MOVE WK_BLOCK TO IVBAP-BLOCK.
MOVE WK_PRDHA TO IVBAP-PRDHA.
MOVE WK_MAKTX TO IVBAP-MAKTX.
MODIFY IVBAP.
ELSE. "I4792
DELETE IVBAP. "I4792
ENDIF. "I4792
IF NOT Z_ALNUM[] IS INITIAL. "I9076
SELECT SINGLE * FROM MAEX "I9076
WHERE MATNR = IVBAP-MATNR "I9076
AND ALNUM IN Z_ALNUM. "I9076
IF SY-SUBRC <> 0. "I9076
DELETE IVBAP. "I9076
ENDIF. "I9076
ENDIF. "I9076
ENDLOOP.Hi Nagendra!
Get Sales Order Details
CLEAR IVBAP.
REFRESH IVBAP.
check ivbak is not initial
SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
INTO CORRESPONDING FIELDS OF TABLE IVBAP
FOR ALL ENTRIES IN IVBAK
WHERE VBELN = IVBAK-VBELN
AND MATNR IN Z_MATNR
AND WERKS IN Z_WERKS
AND ABGRU = ' '.
Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
SORT IVBAP BY MATNR WERKS.
CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
WK_BLOCK, WK_MMSTA, WK_MSTAE.
avoid select widin loop. instead do selection outside loop.u can use read statement......and then loop if required.
LOOP AT IVBAP.
CLEAR WK_INVDATE. "I6677.sn
SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
AUBEL EQ IVBAP-VBELN AND
AUPOS EQ IVBAP-POSNR.
IF SY-SUBRC = 0.
MOVE WK_INVDATE TO IVBAP-INVDT.
MODIFY IVBAP.
ENDIF. "I6677.e n
SELECT SINGLE * FROM MBEW WHERE "I6759.sn
MATNR EQ IVBAP-MATNR AND
BWKEY EQ IVBAP-WERKS AND
BWTAR EQ SPACE.
IF SY-SUBRC = 0.
MOVE MBEW-STPRS TO IVBAP-STPRS.
IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
MODIFY IVBAP.
ENDIF. "I6759.en
IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
MOVE IVBAP-MATNR TO WK_MATNR.
MOVE IVBAP-WERKS TO WK_WERKS.
SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
WHERE MATNR = WK_MATNR
AND WERKS = WK_WERKS.
IF NOT MARC-MMSTA IS INITIAL.
MOVE '*' TO WK_MMSTA.
ENDIF.
SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
WHERE MATNR = WK_MATNR.
IF ( NOT MARA-MSTAE IS INITIAL ) OR
( NOT MARA-MSTAV IS INITIAL ) OR
( NOT MARA-LVORM IS INITIAL ).
MOVE '*' TO WK_MSTAE.
ENDIF.
MOVE MARA-PRDHA TO WK_PRDHA.
SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
WHERE MATNR = WK_MATNR
AND SPRAS = SY-LANGU.
ENDIF.
IF Z_BLOCK EQ 'B'.
IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSEIF Z_BLOCK EQ 'U'.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
DELETE IVBAP.
CONTINUE.
ENDIF.
ELSE.
IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
MOVE '*' TO WK_BLOCK.
ENDIF.
ENDIF.
IF WK_PRDHA IN Z_PRDHA. "I4792
MOVE WK_BLOCK TO IVBAP-BLOCK.
MOVE WK_PRDHA TO IVBAP-PRDHA.
MOVE WK_MAKTX TO IVBAP-MAKTX.
MODIFY IVBAP.
ELSE. "I4792
DELETE IVBAP. "I4792
ENDIF. "I4792
IF NOT Z_ALNUM[] IS INITIAL. "I9076
SELECT SINGLE * FROM MAEX "I9076
WHERE MATNR = IVBAP-MATNR "I9076
AND ALNUM IN Z_ALNUM. "I9076
IF SY-SUBRC 0. "I9076
DELETE IVBAP. "I9076
ENDIF. "I9076
ENDIF. "I9076
endloop.
U have used many select queries widin loop-endloop which is a big hindrance as far as performance is concerned.Avoid such practice.
Thanks
Deepika -
Report Layout in report Painter
I created a Report in reportPainter. In the report layout, lead column section..I select Group Name to display the group name (set's id) in the report's lead column but not all the set's keys appear. It only appears children's ids but not the father's ids.
I also need the father's ids....why do I do to have the father's ids too?
Thanks...
Example
father set:
A Inventories
chidren sets:
A1 Raw Materials
A2 Obsolete Materials
In the report I only see the A1 and A2 ids and its descriptions. I also see the Inventories word. But I dont see the A key next to the Inventories description....why?Hi,
Check whether the field in the internal table used for displaying ID is getting pouplated or not -
Dangerous Goods checks in transfer order (based on purchase order)
Dear,
We have defined a process to transfer products from one plant of our company to another plant of our company based on a purchase order (Transfer order), a delivery and a shipment.
Problem: the delivery and shipment could be checked in a Dangerous Goods standpoint but nothing seems to be available in standard to check the process at the first step : at purchase order step.
My question is : do you know if a standard feature exist on purchase order to ensure a "non frustating process" as soon as possible ?
Many thanks for your help
Best regards, JérômeDear Jerome
DG Set up is only related to SAP SD process (e.g. check SAP EHS online help), Therefore DG checks are not available in the purchase part. And your scenario it quite standard; Normally the DG check part starts in Sales process, then in delivery and then in shipment. If you use SAP TM again you can use DG checks there.
C.B.
PS: e.g. SAP GTS and SAP EHS SVT are integrated in purchase process by standard. But is is not a good idea to "misuse" these modules for DG perspectives in MM process.
PPS. may be check: Blocking Hazardous Materials for Purchasing with HSM,
System-Internal Stock Transfer Using Stock Transport Orders - Integration of Transaction Data - SAP Library
Maybe you are looking for
-
Combo box is not activating in the detail for second item
hi i have a detail block in which am using listitem with list style poplist. for second item its not getting activated by clicking directly. But if we are navigating through the first item its getting activated. Is there any way to activate it direct
-
I want to reinstall my mac mini.
How?
-
Does boot camp delete clearly?
I used boot camp, and now I delete it. Not by the boot camp assistant, but in disk unity. Is it clearly deleted? I mean, is it EXACTLY the same like before I used boot camp? Thanks
-
Do you know an app to read books on my mac
hello I need an app where I can read the books I've bought ibook store. I read them in my IPAT and on my iphone but I need some app to read them on my macbook pro
-
Hello, Maybe someone has a solution to such a task. I have a group of phones, which are 7912 and above, and I want to deploy them into one group, which will be available under a single ephone-dn(ex. 333). And if 333 is called I want all of ephones lo