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

Название GL счета



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
z01
Специалист
Специалист



Joined: 18 Jan 2008
Posts: 59

PostPosted: Wed Sep 17, 2008 3:06 pm    Post subject: Название GL счета Reply with quote

Здравствуйте!
Получил такое задание.
Вывести в отчете для позиции заказа номер GL счета и его описание.

С номером счета разобрался, он хранится в таблице EKKN-SAKTO
таблицы связал по ключу:
EKPO-EBELN = EKKN-EBELN
EKPO-EBELP = EKKN-EBELP

А с получением названия счета проблема.
Названия хранятся в таблице SAKT с ключевыми полями SPRAS, KTOPL, SAKTO

Как по известному номеру Заказа и позиции найти значений KTOPL (Chart of Accounts)?

В интернете нашел информацию, что это поле присутствует в EKKN-KTOPL, но в моей системе его нет. Crying or Very sad
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Wed Sep 17, 2008 4:33 pm    Post subject: Reply with quote

Code:
TABLES: t001.
DATA: l_ktopl TYPE ska1-ktopl.

CALL FUNCTION 'T001_SINGLE_READ'
         EXPORTING
              bukrs = ekko-bukrs
         IMPORTING
              wt001      = t001
         EXCEPTIONS
              not_found   = 1
              OTHERS      = 2.
l_ktopl = t001-ktopl.
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.