SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Дополнительные поля в MIRO


Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Tue Aug 26, 2008 11:19 am    Post subject: Дополнительные поля в MIRO Reply with quote

Здраствуйте.
Ситуация следующая: В RBKP добавил новые поля, с помощью LFDCB001 создал пользовательский экран, с новыми полями. Не могу понять как сделать сохранение этих полей в RBKP, или необходимо расширить еще какие нибудь структуры?


Last edited by DofD on Tue Aug 26, 2008 1:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Tue Aug 26, 2008 12:04 pm    Post subject: Reply with quote

Это Z поля или они в MKPF уже присутствуют?
Если Z, то расширяйте append структурой.
Back to top
View user's profile Send private message Blog Visit poster's website
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Tue Aug 26, 2008 1:06 pm    Post subject: Reply with quote

vga wrote:
Это Z поля или они в MKPF уже присутствуют?
Если Z, то расширяйте append структурой.


Сори имелась ввиду табличка RBKP (подправил). Я расширил RBKP нажав кнопочку "доп структура" добавил в неё поля. Вопрос в том как значения этих полей с нарисованого мной экрана, перетащить в табличку.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Tue Aug 26, 2008 11:44 pm    Post subject: Reply with quote

Через динамический assign из EXIT_SAPLFDCB_001, по другому не добраться.

Code:
FIELD-SYMBOLS: <fs>.
ASSIGN ('(SAPLMR1M)RBKPV') TO <fs>.
Back to top
View user's profile Send private message Blog Visit poster's website
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Wed Aug 27, 2008 8:17 am    Post subject: Reply with quote

Спасибо сейчас попробую.

Чтото не получилось, чтото не могу найти структуру RBKPV может имелось ввиду RBKP?


Last edited by DofD on Wed Aug 27, 2008 9:49 am; edited 1 time in total
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 27, 2008 9:18 am    Post subject: Reply with quote

Какая у Вас версия системы ?
Back to top
View user's profile Send private message Blog Visit poster's website
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Wed Aug 27, 2008 9:49 am    Post subject: Reply with quote

ECC 6.0
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 27, 2008 9:58 am    Post subject: Reply with quote

Я в 4.6c смотрел.
Back to top
View user's profile Send private message Blog Visit poster's website
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 27, 2008 10:45 am    Post subject: Reply with quote

Как понимаю, Вы струкруру INVFO уже расширили своими полями. Если нужно изменить значение в этой структуре из exit:

Code:
FIELD-SYMBOLS: <fs_INVFO> TYPE INVFO.

ASSIGN ('(SAPLFDCB)INVFO') TO <fs_INVFO>.
IF <fs_INVFO> IS ASSIGNED.
  <fs_INVFO>-XBLNR = 'REF'.
ENDIF.
Back to top
View user's profile Send private message Blog Visit poster's website
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Wed Aug 27, 2008 11:23 am    Post subject: Reply with quote

Попробывал как вы посоветовали не получилось, точнее в RBKP значение не попало, может я не правильно структуру расширял?

1. в RBKP добавил доп структуру назвал её ZMM_TEST там одно поле ZTEST
2. расширяя INVFO попробывал так же назвать ZMM_TEST но влезло сообщение что такое уже существует, поэтому пришлось назвать ZMM_TEST2 так же с одним полем ZTEST тогоже типа что и в п.1
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 27, 2008 11:50 am    Post subject: Reply with quote

Вечером посмотрю, пока завал с работой.
Back to top
View user's profile Send private message Blog Visit poster's website
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Wed Aug 27, 2008 2:00 pm    Post subject: Reply with quote

вот что у нас на сапфорруме получилось т.е уперся в эту же проблему но только с другого конца Sad http://sapboard.ru/forums/viewtopic.php?t=40603
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 27, 2008 2:25 pm    Post subject: Reply with quote

LMR1M001 User exits in Logistics Invoice Verification

В любом из расширений
EXIT_SAPLMRMP_010
EXIT_SAPLMRMP_004

получаете значение поля и сохраняете в ABAP памяти.

Code:
DATA: l_zztest TYPE rbkp-zztest.

ASSIGN ('(SAPLFDCB)INVFO') TO <fs_INVFO>.
IF <fs_INVFO> IS ASSIGNED.
  l_zztest = <fs_INVFO>-ZZTEST.
ENDIF.
EXPORT l_zztest l_zztest TO MEMORY ID MEMID_LMR1M001.


Активируете BADI INVOICE_UPDATE
и в методе change_before_update
достаете значение поля из памяти и присваиваете rbkp-zztest

Code:
DATA: l_zztest TYPE rbkp-zztest.
IMPORT l_zztest l_zztest FROM MEMORY ID MEMID_LMR1M001.
Back to top
View user's profile Send private message Blog Visit poster's website
DofD
Участник
Участник



Joined: 11 Jan 2008
Posts: 44

PostPosted: Wed Aug 27, 2008 2:53 pm    Post subject: Reply with quote

подождите в CHANGE_BEFORE_UPDATE RBKP в явном виде не пресутствует, есть только S_RBKP_NEW и S_RBKP_OLD причем закрытые от изменения. Или я чтото не то смотрю?
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 155
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 27, 2008 3:29 pm    Post subject: Reply with quote

Вот засада. Ну безвыходных ситуаций не бывает. Номер документа известен, можно запустить апдейтный процесс в IN UPDATE TASK (вероятно только типа V2).

Смотрю по тексту, в miro так тексты записываются
Code:
SAPLMRMP
LMRMPU01

*  Notiz aus rbkpv
  ELSE.
    IF rbkpv-xnotiz = c_note_ins OR
       rbkpv-xnotiz = c_note_upd OR
       rbkpv-xnotiz = c_note_del.
      CALL FUNCTION 'MRM_INVOICE_NOTE_SAVE'
           EXPORTING
                i_rbkpv  = rbkpv
                i_xnotiz = rbkpv-xnotiz.
      PERFORM text_commit ON COMMIT.
    ENDIF.
  ENDIF.
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.