Текущее время: Вс, июл 27 2025, 21:56

Часовой пояс: UTC + 3 часа


Правила форума


Вопросы по ППМ (MRP) - сюда.
Вопросы по классификации - сюда.
Вопросы по входящим поставкам - сюда.



Начать новую тему Ответить на тему  [ Сообщений: 4 ] 
Автор Сообщение
 Заголовок сообщения: Массовое изменение поля MBEW-ZPLP1
СообщениеДобавлено: Пн, июн 18 2007, 16:52 
Специалист
Специалист
Аватара пользователя

Зарегистрирован:
Пн, июл 03 2006, 18:18
Сообщения: 241
Пол: Женский
Добрый день,

Подскажите пожалуйста как массово изменить поле Плановая цена 1 (ракурс ОЗМ Калькуляция 2) ?

В ММ17 такого поля как MBEW-ZPLP1 нет :(


Принять этот ответ
Вернуться к началу
 Профиль  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт, июн 19 2007, 07:37 
Гуру-эксперт
Гуру-эксперт

Зарегистрирован:
Вт, авг 24 2004, 07:19
Сообщения: 3952
Откуда: ECC 6.0, South Kazakhstan
по этому поводу есть нота: 323892

Цитата:
Symptom
You cannot select price fields in the mass maintenance if the price field and the respective currency unit are stored in different database tables.

Example:
The fields MBEW-ZPLP1, MBEW-ZPLP2 and MBEW-ZPLP3 are included in table MASSFLDLST (see Note 216596), nevertheless, the fields are not provided for selection in Transaction MM17.

Additional key words
MASS, MM17

Cause and prerequisites
The problem is due to the program design.
The Mass Maintenance (Transaction MASS) has been programmed generically.
Thus, if the price field and the currency field are stored in different tables, the corresponding path between the tables for determining the currency when accessing a price field is unknown when Transaction MASS is running.
The system cannot determine the currency in this case. This causes the following problem:
Not all currencies calculate to 2 decimal places. LIRA and YEN, for example, calculate to 3 decimal places. Consequently, price fields can only be changed with mass maintenance if the corresponding currency is known.

Price fields are filtered out when Transaction MASS is running if the price and currency fields are stored in different tables and the system thus cannot determine the corresponding currency.
This is also the case if the fields have been added to the mass maintenance (see Note 216596) and are supported by the updating application.


Solution
You have to manually maintain price fields which cannot be edited with mass maintenance, using the maintenance transaction of the updating application.


Принять этот ответ
Вернуться к началу
 Профиль Отправить email  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт, июн 19 2007, 08:15 
Гуру-эксперт
Гуру-эксперт

Зарегистрирован:
Вт, авг 24 2004, 07:19
Сообщения: 3952
Откуда: ECC 6.0, South Kazakhstan
Но отчаиваться не стоит - вот пример который легко может быть использован при массовой обработке материалов именно для этих целей:

Code:
REPORT  zpm_BAPI_MATERIAL_SAVEDATA.

tables: mara,
        mbew.

data: headdata       type BAPIMATHEAD,
      valuationdata  type BAPI_MBEW,
      valuationdatax type BAPI_MBEWX,
      plantdata      type BAPI_MARC,
      plantdatax     type BAPI_MARCX.

data: mtart type mtart,
      mbrsh type mbrsh.

data: return type BAPIRET2,
      RETURNMESSAGES type BAPI_MATRETURN2 occurs 0 with header line,
      error_occured.


parameters: matnr type matnr,   " Материал
            plant type WERKS_D, " Примем, что уровень оценки = Завод
            zplp1 type DZPLP1,  " Новая плановая цена
            zpld1 type DZPLD1.  " Действительно с даты

end-of-selection.

  select single mara~mtart mara~mbrsh into (mtart, mbrsh)
           from mbew inner join mara on mara~matnr = mbew~matnr
          where mbew~matnr eq matnr
            and mbew~bwkey eq plant.

  check sy-subrc = 0.

  move: matnr to headdata-material,
        mbrsh to headdata-ind_sector,
        mtart to headdata-matl_type,
        'X'   to headdata-cost_view.

  move: plant to plantdata-plant,
        plant to plantdatax-plant,
        plant to valuationdata-val_area,
        plant to valuationdatax-val_area.

  move: zplp1 to valuationdata-PLNDPRICE1,
        zpld1 to valuationdata-PLNDPRDATE1,
        'X'   to valuationdatax-PLNDPRICE1,
        'X'   to valuationdatax-PLNDPRDATE1.

  CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
    EXPORTING
      headdata       = headdata
      PLANTDATA      = PLANTDATA
      PLANTDATAX     = PLANTDATAX
      valuationdata  = valuationdata
      valuationdatax = valuationdatax
    IMPORTING
      return         = return
    TABLES
      RETURNMESSAGES = RETURNMESSAGES.


  loop at RETURNMESSAGES.
    check RETURNMESSAGES-type = 'E' or
          RETURNMESSAGES-type = 'A'.
    error_occured = 'X'.
    exit.
  endloop.

  if error_occured is initial.
    call function 'BAPI_TRANSACTION_COMMIT'  EXPORTING  wait = 'X'.
  else.
    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
  endif.


Принять этот ответ
Вернуться к началу
 Профиль Отправить email  
 
 Заголовок сообщения:
СообщениеДобавлено: Вт, июн 19 2007, 11:22 
Специалист
Специалист
Аватара пользователя

Зарегистрирован:
Пн, июл 03 2006, 18:18
Сообщения: 241
Пол: Женский
Спасибо за помощь :)
Очень ценю.
Сейчас буду пробовать!!!


Принять этот ответ
Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 4 ] 

Часовой пояс: UTC + 3 часа


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Русская поддержка phpBB