2008年12月24日水曜日
2008年12月21日日曜日
2008年11月18日火曜日
Change Base Unit of Measure in MM
One raw material we assigned base unit of measure as OZ, later add alternate unit of measure as ML.
Now I wanted to change the base unit to ML and alternaet to OZ. For that I deleted component from the BOM. Related PO's, Prd ord and demand are closed. Deleted the alternate unit from purchasing and plant/stock (Area were we assign the alternate unit), then try to change it giving message as Unit of measure ML used as alternate unit. (In additinal data screen still the alternate unit and conversion available)
By: Vidhya
You can do the following procedure (after deleting the material in all concerened documents):
1. Delete the uom from Unit of issue field (General Plant Data / Storage 1) in MM if you have mentioned it there.
2. Go to additional data , use delete line tab and delete the conversion factor by keeping the cursor on that line.
3. Come to main data, now change the base unit of measure to the required one.
4. Then give the alternative unit of measure, system will ask for conversion factor.
5. Then save
You can only change the base units of measure under the following circumstances:-
- No stocks are available for the material.
- There are no existing purchase requisitions, purchase orders, or scheduling agreements for the material.
- At present, no purchase orders or purchase order items are being created or changed.
If requests for quotations, purchasing info records, or contracts are available for a material, the system gives a warning while changing base unit of measure. Still if you want to change unit of measure specify in a dialog box the factor for converting the base unit of measure into the new base unit of measure. The purchasing info records are then, if necessary, updated.
1) If there are stocks in the previous period, you can clear them as follows:
a) Post the stock in the previous period to the current period e.g. 010799 (for example, using movement type 561) so that the stock for the previous period is the same as the stock for the current period.
b) Clear the stock with the posting date in the previous period e.g. 300699 (for example, using movement type 562).
2) If there are Open purchase requisitions, purchase orders, or scheduling agreements for the material.
- Run MM02 (Change Material Master immediately).
- Overwrite the old base unit of measure with the new one in basic data screen.
- Save the change.
- System checks
If a change criterion (MM02) is meeting all necessary prerequisites (as mentioned in point 1).System allows changing base unit of measure. Otherwise it displays warning or error. You can display the reason for this, by choosing Display Errors (ctrl+F1)
* 購買発注伝票がステータスが完了になっていても(請求書照合まで完了した)、削除フラグを立つ必要がある。
* 発注伝票が存在するであれば(ステータスが完了していない伝票のみ?)、削除する必要がある。出荷伝票、Shipment伝票などを登録済みであれば、逆順で削除する
* 削除した購買発注伝票に関しては、品目基本数量単位の修正を終わったら、削除フラグを削除するほうが万全
http://help.sap.com/erp2005_ehp_03/helpdata/EN/c6/8b3759987e11d194f600a0c930e0da/frameset.htm
Now I wanted to change the base unit to ML and alternaet to OZ. For that I deleted component from the BOM. Related PO's, Prd ord and demand are closed. Deleted the alternate unit from purchasing and plant/stock (Area were we assign the alternate unit), then try to change it giving message as Unit of measure ML used as alternate unit. (In additinal data screen still the alternate unit and conversion available)
By: Vidhya
You can do the following procedure (after deleting the material in all concerened documents):
1. Delete the uom from Unit of issue field (General Plant Data / Storage 1) in MM if you have mentioned it there.
2. Go to additional data , use delete line tab and delete the conversion factor by keeping the cursor on that line.
3. Come to main data, now change the base unit of measure to the required one.
4. Then give the alternative unit of measure, system will ask for conversion factor.
5. Then save
You can only change the base units of measure under the following circumstances:-
- No stocks are available for the material.
- There are no existing purchase requisitions, purchase orders, or scheduling agreements for the material.
- At present, no purchase orders or purchase order items are being created or changed.
If requests for quotations, purchasing info records, or contracts are available for a material, the system gives a warning while changing base unit of measure. Still if you want to change unit of measure specify in a dialog box the factor for converting the base unit of measure into the new base unit of measure. The purchasing info records are then, if necessary, updated.
1) If there are stocks in the previous period, you can clear them as follows:
a) Post the stock in the previous period to the current period e.g. 010799 (for example, using movement type 561) so that the stock for the previous period is the same as the stock for the current period.
b) Clear the stock with the posting date in the previous period e.g. 300699 (for example, using movement type 562).
2) If there are Open purchase requisitions, purchase orders, or scheduling agreements for the material.
- Run MM02 (Change Material Master immediately).
- Overwrite the old base unit of measure with the new one in basic data screen.
- Save the change.
- System checks
If a change criterion (MM02) is meeting all necessary prerequisites (as mentioned in point 1).System allows changing base unit of measure. Otherwise it displays warning or error. You can display the reason for this, by choosing Display Errors (ctrl+F1)
* 購買発注伝票がステータスが完了になっていても(請求書照合まで完了した)、削除フラグを立つ必要がある。
* 発注伝票が存在するであれば(ステータスが完了していない伝票のみ?)、削除する必要がある。出荷伝票、Shipment伝票などを登録済みであれば、逆順で削除する
* 削除した購買発注伝票に関しては、品目基本数量単位の修正を終わったら、削除フラグを削除するほうが万全
http://help.sap.com/erp2005_ehp_03/helpdata/EN/c6/8b3759987e11d194f600a0c930e0da/frameset.htm
2008年11月14日金曜日
Message 関連
① エラー或いはWarning message の内容を確認
② IDを確認できない場合、テキスト内容をT001で検索
③ 該当メッセージをSE91で「テキスト(長)」の内容を確認 → 対処する方法があるかも
② IDを確認できない場合、テキスト内容をT001で検索
③ 該当メッセージをSE91で「テキスト(長)」の内容を確認 → 対処する方法があるかも
2008年10月26日日曜日
PO Message Handle
購買伝票を作る際、システムが内部チェックでWarning,Errorメッセージを出している。これらを利用するため、以下のものを定義する必要がある。
・MM_MESSAGES_MAC
・cl_message_handler_mm
・T160M(参考テーブル)
Example:
DATA: l_msg_handler TYPE REF TO cl_message_handler_mm,
l_event TYPE REF TO cl_event_mm,
l_msg_txt TYPE string,
lt_event_list TYPE mmpur_event_list WITH HEADER LINE.
CALL METHOD cl_message_handler_mm=>get_handler
IMPORTING
ex_handler = l_msg_handler.
CALL METHOD l_msg_handler->getlist
* EXPORTING
* IM_EVENT_TYPE =
* IM_OBJECT =
* IM_NULL_OBJECT_VALID = MMPUR_NO
* IM_INCLUDE_CHILD_OBJECTS = mmpur_no
* IM_SEQUENCE =
IMPORTING
ex_events = lt_event_list[]
* EX_EVNT =
.
※ CALL METHOD l_msg_handler->GET_LIST_FOR_BAPI
であれば、明細単位のメッセージを取得できる
REFRESH gt_messages .
LOOP AT lt_event_list .
l_event = lt_event_list-event_obj .
CALL METHOD l_event->to_string
IMPORTING
ex_string = l_msg_txt
* EX_SIGNATURE =
.
APPEND l_msg_txt TO gt_messages .
ENDLOOP.
・MM_MESSAGES_MAC
・cl_message_handler_mm
・T160M(参考テーブル)
Example:
DATA: l_msg_handler TYPE REF TO cl_message_handler_mm,
l_event TYPE REF TO cl_event_mm,
l_msg_txt TYPE string,
lt_event_list TYPE mmpur_event_list WITH HEADER LINE.
CALL METHOD cl_message_handler_mm=>get_handler
IMPORTING
ex_handler = l_msg_handler.
CALL METHOD l_msg_handler->getlist
* EXPORTING
* IM_EVENT_TYPE =
* IM_OBJECT =
* IM_NULL_OBJECT_VALID = MMPUR_NO
* IM_INCLUDE_CHILD_OBJECTS = mmpur_no
* IM_SEQUENCE =
IMPORTING
ex_events = lt_event_list[]
* EX_EVNT =
.
※ CALL METHOD l_msg_handler->GET_LIST_FOR_BAPI
であれば、明細単位のメッセージを取得できる
REFRESH gt_messages .
LOOP AT lt_event_list .
l_event = lt_event_list-event_obj .
CALL METHOD l_event->to_string
IMPORTING
ex_string = l_msg_txt
* EX_SIGNATURE =
.
APPEND l_msg_txt TO gt_messages .
ENDLOOP.
2008年10月2日木曜日
新規トランザクションの追加に伴うロール関係
・ロール変更の画面でトランザクションを追加
・どのメニューに存在するか調整できる
・PGの中に使っている権限オブジェクトを確認、それより権限オブジェクトを追加する必要かを確認
・各ロール毎に使えるトランザクションを定義しているので(権限オブジェクト:S_TCODE)、新規トランザクションを追加する
・集合ロールのメニューに手動でTRを追加、調整する必要がある
・どのメニューに存在するか調整できる
・PGの中に使っている権限オブジェクトを確認、それより権限オブジェクトを追加する必要かを確認
・各ロール毎に使えるトランザクションを定義しているので(権限オブジェクト:S_TCODE)、新規トランザクションを追加する
・集合ロールのメニューに手動でTRを追加、調整する必要がある
2008年10月1日水曜日
バリアント
開発機において、バリアントを登録する際、会社コードチェックなどの原因で登録できない場合がある。
⇒ ① SE38でPGを起動する
② 入力値を入れて、保存する(BreakPointを置き、チェックされるところを強制的に通せる)
⇒ ① SE38でPGを起動する
② 入力値を入れて、保存する(BreakPointを置き、チェックされるところを強制的に通せる)
登録:
投稿 (Atom)