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

Замещение основного счета



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Wed Jan 30, 2008 2:59 pm    Post subject: Замещение основного счета Reply with quote

Опишите пожалуйста алгоритм замещения Основного счета на примере таблицы MSEG. MSEG-SAKTO должно замениться ZPRCTR02-SAKTO.
Back to top
View user's profile Send private message
Lord
Профессионал
Профессионал



Joined: 10 Sep 2007
Posts: 168

PostPosted: Wed Jan 30, 2008 9:23 pm    Post subject: Reply with quote

Уточните, какую транзакцию используете?
Back to top
View user's profile Send private message
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Thu Jan 31, 2008 7:36 am    Post subject: Reply with quote

Транзакция VL02N, поставлена задача на замещение основного счета из таблицы MSEG на основной счет из ZPRCTR02 (где ZPRCTR02 имеет поля bwart matnr1 matnr2 sakto) Нужен USEREXIT помогите please.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Thu Jan 31, 2008 12:20 pm    Post subject: Reply with quote

Для vl02n user-exit описаны в ноте
User exits in delivery processing - Note 415716
Back to top
View user's profile Send private message Blog Visit poster's website
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Thu Jan 31, 2008 12:26 pm    Post subject: Reply with quote

Спасибо, а можно по подробнее о замещении, если у вас есть пример как это делается пришлите на [email protected]
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Thu Jan 31, 2008 12:46 pm    Post subject: Reply with quote

В вашем случае речь все же идет не о "замещении", а изменении номера счете в user-exit. В сапе понятие "замещении" означает другой механизм, а не user-exit.

Универсального метода использования user-exit нет. Нужно смотреть, какой user-exit сработает и как добраться до номера счета в mseg-sakto. Возможно нужно искать расширение, которое срабатывает при проводке материального документа.
Back to top
View user's profile Send private message Blog Visit poster's website
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Thu Jan 31, 2008 12:52 pm    Post subject: Reply with quote

Извените за наглость, но как это сделать?Если можно на каком нибудь примере , я просто еще новичок в этом деле.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Thu Jan 31, 2008 1:39 pm    Post subject: Reply with quote

Если бы было готовое решение, сразу бы написал. А так искать нужно, так же как и вам. Sad
Back to top
View user's profile Send private message Blog Visit poster's website
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Thu Jan 31, 2008 1:46 pm    Post subject: Reply with quote

Спасибо, будем искать. Если вдруг найдете сообщите пожалуйста Rolling Eyes
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Thu Jan 31, 2008 2:13 pm    Post subject: Reply with quote

Примерный план такой:
1) Ищете user-exit (customer-function exit, BADI) срабатываемый при записи vb02n
2) В этом usexit по номеру delivery находите запись в mseg
связка LIPS~VBELN = MKPF~XBLNR -> MKPF~mblnr = mseg-mblnr (+ год)
http://www.sapfans.com/forums/viewtopic.php?p=66377

3) меняете запись в mseg-sakto IN UPDATE TASK.
Back to top
View user's profile Send private message Blog Visit poster's website
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Fri Feb 01, 2008 7:31 am    Post subject: Reply with quote

Спасибо, я попробую
Back to top
View user's profile Send private message
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Fri Feb 01, 2008 9:38 am    Post subject: Reply with quote

VGA у меня ничего не вышло, если не трудно можешь описать по подробнее. Embarassed
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Fri Feb 01, 2008 9:55 am    Post subject: Reply with quote

На каком этапе не вышло и что Вы делали/ сделали? Как пробовали?
Back to top
View user's profile Send private message Blog Visit poster's website
Akim
Участник
Участник



Joined: 30 Jan 2008
Posts: 15

PostPosted: Fri Feb 01, 2008 10:01 am    Post subject: Reply with quote

На самом начальном. Я вообще не смог найти подходящий userexit.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Fri Feb 01, 2008 11:09 am    Post subject: Reply with quote

После нажатия Save вызываются два BADI
CFOP_DET_PREP
DELIVERY_PUBLISH (метод PUBLISH_AFTER_SAVE)

Про реализация BADI очень подробно написано в документах по ссылке http://www.sapnet.ru/viewtopic.php?t=14
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
Page 1 of 1

 
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.