Field MEGBTR of R/3 Table COEP
I would appreciate if anybody could let me know of the extractor for the Field MEGBTR of R/3 Table COEP.
Thanks
Mani
Hi,
Robertos answer is (as always ) correct. However the extractor 0CO_OM_CCA_9 will only extract the rows from COEP where OBJNR starts with KS or KL. The coep table also contain other objecs than cost centers for example postings for internal orders. The complete list of extractors that retrieves data from COEP (based on OBJNR prefix. Would be 0CO_OM_CCA_9, 0CO_OM_WBS_6, 0CO_OM_OPA_6,0CO_OM_ABC_7, 0CO_OM_NWA_2, 0CO_OM_NAE_2,
0CO_OM_NTW_2) - See SAP note 523742 for more info on mapping between CO extractors and R/3 tables. Although even all these extractors won't give you all data from COEP. In particular CO postings for Sales Orders (OBJNR starting with VB in COEP table) will not be extracted by any of these.
So if you wan't to extract any data from COEP I think that you have to build a generic extractor (e.g if you wan't CO postings for Sales orders - objects starting with VB). See this post for details
CO Extraction for Sales Orders
Regards,
Christian
Similar Messages
-
Update Profit Center Field in CO Line item tables
Hi,
We are working on ECC6.0 NewGL with Real-time CO-FI integration for Cross Company Code and Cross Pofit Center.
For those CO internal documents (like activity confirmation at production order) where there is no cross company code or cross profit center postings, no FI document is generated and hence table FAGLFLEXA is not updated. So, we wanted to take data from CO table COEP / COVP for these internal CO documents. However, there is no Profit Center field in CO line item tables COEP / COVP. We don't want to refer to Object Number (OBJNR) of COEP / COVP tables and take profit center from master table of cost centers, IOs etc..,as Profit center in the cost center, IO masters may get changed latter.
I tried to generate a new report through report painter from structure CCSS, but Profit center is not defined as Charactericts there. Hence of no use.
Can we append Profit Center field in CO line item tables COEP / COVP and update tatabase at the time of posting? Is there any risk?
Please suggest any other alternative...
Thanks,
BijayHi,
As per the standard process we can't derive PC from CO-internal Object...as per my knowledge.
Better you can derive from IO-CC master PC ....if your question that it will change frequently then -no control can make.
Regd,
Kha -
BADI or User exit for FB50 to update custom field in table COEP
Hi all,
i have added one custom field in table COEP through include CI_COBL .
when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
and through BADI AC_DOCUMENT i m updating that custom field in COEP.
but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
because in this case BADI AC_DOCUMENT is not get triggered.
is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEPHi Sandy,
Thanks for u r reply,
RFAVIS01 is not getting triggered through FB50
and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
import - F180A_DOC_HEAD_TAB
F180A_DOC_ITEM_TAB
changing - RELATION_TAB -
Hi,
I would like to retrive the data from the table COEP ,based on KOKRS,BELNR fields.
I need the output for Cost centre, cost element, wbs element,net work ,activity.
These values are storing OBJNR ,OBJNAR_1,OBJNR_2,OBJNR_N3.
But here always these field are not giving the correct values.
for example : for one record COST CENTRE vlaue is storing in OBJNR_1 field,
for one record COST CENTRE vlaue is storing in OBJNR_2 field,
for one record COST CENTRE vlaue is storing in OBJNR_3 field.
Here SAP has used a generic approach for this.
How can I dispaly the values in this case ?
Thanks and Regards
Srinivas.NHi,
I am asking, how can we say OBJNR_1 value alwyas belongs to cost center ?
USPOB is not filling always. -
Controlling Business transaction field in COSS and COSP table
Hi all,
I am trying to understand the idea of the field business transaction in tables COSS and COSP (where as much as I understood are the line items in CO - please corect me if I am wrong). It seems logically that this field is connected somehow to the SAP transactions. Do you know where is this connection and how can I see it?
I need to know which SAP transactions will get business transaction COIN for example. If you have some documentaion or explanation of how this works, it will be very useful to me.
Thank you,
MariaHi Maria,
When you run settlement for internal orders using KO88, the records are saved into COSS table with the Business transaction KOAO.
Just for your understanding the meaning of the main CO tables:
- COEP: this is the CO document line items table (the one that is searched when you run, for example, KSB1 or KOB1 report transactions);
- COSS: this is the CO cost totals table for internal postings, that is, the postings done into CO module that is going to reflect on the same CO module;
- COSP: this is the CO cost totals table for external postings, that is, the postings done into any module that is going to reflect on CO module.
To complete what it had been explained: COIN means the postings done from any module to CO.
I hope it helps you.
Best Regards,
Daniel -
i have select-option : scr_pernr.
i'm making select from table coep, one of the condition is <b>pernr in scr_pernr</b>.
<b>problem</b>
if i have pernr-low = 5555
i get data
if i have pernr-low = 5555 and pernr-high = 5555
i get diffrent data.
<b>i[</b>b]nformation</b>:
i make new index(z) for this selection.
thanks.Hi let me clear abt ur idea in Index.
We create index to make data selection faster.
Two types of index,
1.Primary index(by default will be created)
2.secondary index(we will create)
suppose u want to fetch 4 fields frm a table,so u will make one index with that 4 fields.
When u write select 4 fields name,then SAP will autometically use this index.
when we write select stmts,SAP will search for suitable index.
NB: Indexs will not store any data like views only used for searching.
Regs
Manas -
How do I restore field description in "View Responses" table
I inadvertendtly deleted the row of text at the top of the View Responses table that is linked to the form field. So now in the View Responses table, I can see the answers but not the questions. Is there a way to restore the link back to the form field without going into the table and typing in all the questions?
Figured it out. Discovered that by editing one character in the field on thje form, the text reappears in the table.So do you not have a question any longer then? Sounds like you figured out a way to get them back. Actually a good trick, I'll add it to the related FAQ - thanks.
Thanks,
Josh -
Add a new field to an existing Condition table
How can I add a new field to an existing condition table?
I have table 971 and I want to add INCOTERMS (INCO1) to this existing table but do not see how to add it.
ThanksHi Vicky,
I dont think you can add new fields to the condition table once you have activated the condition table.
SAP says you can only make limited changes to the condition table, like changing the description, fast entry screen, header and footer fields, but not able to add new fields to the table, and I think that is the correct approch or else for the same table you will have two sets of condition records.
Please refer to the below link:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
What you can do is create a new condition table with additional field and assign this table before the currently used table in the access sequence.
Hope this helps.
Regards
Raj -
How to update field values in a database table using module pool prg?
hi
how to update field values in a database table using module pool prg?
we created a customized table, and we put 2 push buttons in screen painter update and display.
but update is not working?
data is enter into screen fields and to internal table, but it is not updated in database table.
thanks in adv
vidyaHI,
we already used the update statement. but its not working.
plz check this.
*& Module Pool ZCUST_CALL_REC
PROGRAM ZCUST_CALL_REC.
TABLES: ZCUST_CALL_REC,ZREMARKS.
data: v_kun_low like ZCUST_CALL_REC-kunnr ,
v_kun_high like ZCUST_CALL_REC-kunnr,
v_bud_low like ZCUST_CALL_REC-budat,
v_bud_high like ZCUST_CALL_REC-budat.
ranges r_kunnr for ZCUST_CALL_REC-kunnr .
ranges r_budat for zcust_call_rec-budat.
DATA: ITAB TYPE STANDARD TABLE OF ZCUST_CALL_REC WITH HEADER LINE,
JTAB TYPE STANDARD TABLE OF ZREMARKS WITH HEADER LINE.
*data:begin of itab occurs 0,
MANDT LIKE ZCUST_CALL_REC-MANDT,
kunnr like ZCUST_CALL_REC-kunnr,
budat like ZCUST_CALL_REC-budat,
code like ZCUST_CALL_REC-code,
remarks like ZCUST_CALL_REC-remarks,
end of itab.
*data:begin of Jtab occurs 0,
MANDT LIKE ZCUST_CALL_REC-MANDT,
kunnr like ZCUST_CALL_REC-kunnr,
budat like ZCUST_CALL_REC-budat,
code like ZCUST_CALL_REC-code,
remarks like ZCUST_CALL_REC-remarks,
end of Jtab.
CONTROLS:vcontrol TYPE TABLEVIEW USING SCREEN '9001'.
CONTROLS:vcontrol1 TYPE TABLEVIEW USING SCREEN '9002'.
*start-of-selection.
*& Module USER_COMMAND_9000 INPUT
text
MODULE USER_COMMAND_9000 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
WHEN 'ENQUIRY'.
perform multiple_selection.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9001'.
WHEN 'UPDATE'.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9002'.
perform update on commit.
WHEN 'DELETE'.
perform append_CUSTOMER_code.
PERFORM SELECT_DATA.
call screen '9002'.
ENDCASE.
ENDMODULE. " USER_COMMAND_9000 INPUT
*& Module STATUS_9000 OUTPUT
text
MODULE STATUS_9000 OUTPUT.
SET PF-STATUS 'ZCUSTOMER'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_9000 OUTPUT
*& Module USER_COMMAND_9001 INPUT
text
MODULE USER_COMMAND_9001 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
endcase.
ENDMODULE. " USER_COMMAND_9001 INPUT
*& Module STATUS_9001 OUTPUT
text
MODULE STATUS_9001 OUTPUT.
SET PF-STATUS 'ZCUSTOMER'.
SET TITLEBAR 'xxx'.
move itab-MANDT to zcust_call_rec-MANDT.
move itab-kunnr to zcust_call_rec-kunnr.
move itab-budat to zcust_call_rec-budat.
move itab-code to zcust_call_rec-code.
move itab-remarks to zcust_call_rec-remarks.
vcontrol-lines = sy-dbcnt.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module USER_COMMAND_9002 INPUT
text
module USER_COMMAND_9002 input.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
CLEAR sy-ucomm.
WHEN 'UPDATE'.
perform move_data.
UPDATE ZCUST_CALL_REC FROM TABLE ITAB.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORDS ARE UPDATED'.
ELSE.
MESSAGE E001(0) WITH 'RECORDS ARE NOT UPDATED'.
ENDIF.
WHEN 'DELETE'.
perform move_data.
DELETE ZCUST_CALL_REC FROM TABLE ITAB.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORDS ARE DELETED'.
ELSE.
MESSAGE E001(0) WITH 'RECORDS ARE NOT DELETED'.
ENDIF.
endcase.
endmodule. " USER_COMMAND_9002 INPUT
*& Module STATUS_9002 OUTPUT
text
module STATUS_9002 output.
SET PF-STATUS 'ZCUSTOMER1'.
SET TITLEBAR 'xxx'.
endmodule. " STATUS_9002 OUTPUT
*& Module update_table OUTPUT
text
module update_table output.
move itab-MANDT to zcust_call_rec-MANDT.
move itab-kunnr to zcust_call_rec-kunnr.
move itab-budat to zcust_call_rec-budat.
move itab-code to zcust_call_rec-code.
move itab-remarks to zcust_call_rec-remarks.
vcontrol-lines = sy-dbcnt.
endmodule. " update_table OUTPUT
***Selection Data
FORM SELECT_DATA.
SELECT mandt kunnr budat code remarks FROM zcust_call_rec INTO
table itab
WHERE kunnr IN r_kunnr AND BUDAT IN R_BUDAT.
ENDFORM.
****append vendor code
FORM APPEND_CUSTOMER_CODE.
clear r_kunnr.
clear itab.
clear r_budat.
refresh r_kunnr.
refresh itab.
refresh r_kunnr.
IF r_kunnr IS INITIAL
AND NOT v_kun_low IS INITIAL
AND NOT v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_high
IMPORTING
OUTPUT = r_kunnr-high.
r_kunnr-option = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND NOT v_kun_low IS INITIAL
AND v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
r_kunnr-SIGN = 'I'.
r_kunnr-OPTION = 'EQ'.
APPEND r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND v_kun_low IS INITIAL
AND NOT v_kun_high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kun_low
IMPORTING
OUTPUT = r_kunnr-low.
r_kunnr-SIGN = 'I'.
r_kunnr-OPTION = 'EQ'.
APPEND r_kunnr.
PERFORM V_BUDAT.
ELSEIF r_kunnr IS INITIAL
AND v_kun_low IS INITIAL
AND v_kun_high IS INITIAL.
IF SY-SUBRC = 0.
MESSAGE I003(0) WITH 'ENTER CUSTOMER NUMBER'.
CALL SCREEN '9000'.
ENDIF.
PERFORM V_BUDAT.
ENDIF.
ENDFORM.
FORM V_BUDAT.
IF R_BUDAT IS INITIAL
AND NOT v_BUD_low IS INITIAL
AND NOT v_BUD_high IS INITIAL.
r_budat-low = v_bud_low.
r_budat-high = v_bud_high.
r_budat-option = 'BT'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND NOT v_BUD_low IS INITIAL
AND v_BUD_high IS INITIAL.
r_budat-low = v_bud_low.
r_budat-high = v_bud_high.
r_budat-option = 'EQ'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND v_BUD_low IS INITIAL
AND NOT v_BUD_high IS INITIAL.
r_budat-HIGH = v_bud_HIGH.
r_budat-option = 'EQ'.
r_budat-sign = 'I'.
append r_budat.
ELSEIF R_BUDAT IS INITIAL
AND v_BUD_low IS INITIAL
AND v_BUD_high IS INITIAL.
IF SY-SUBRC = 0.
MESSAGE I002(0) WITH 'ENTER POSTING DATE'.
CALL SCREEN '9000'.
r_budat-low = ''.
r_budat-option = ''.
r_budat-sign = ''.
ENDIF.
ENDIF.
ENDFORM.
*& Form update
text
--> p1 text
<-- p2 text
form update .
commit work.
endform. " update
*& Form move_data
text
--> p1 text
<-- p2 text
form move_data .
clear itab.
refresh itab.
move-corresponding zcust_call_rec to itab.
MOVE ZCUST_CALL_REC-MANDT TO ITAB-MANDT.
MOVE ZCUST_CALL_REC-KUNNR TO ITAB-KUNNR.
MOVE ZCUST_CALL_REC-BUDAT TO ITAB-BUDAT.
MOVE ZCUST_CALL_REC-CODE TO ITAB-CODE.
MOVE ZCUST_CALL_REC-REMARKS TO ITAB-REMARKS.
APPEND ITAB.
delete itab where kunnr is initial.
endform. " move_data
thanks in adv
vidya -
Adding field in Maintenance view of table
Hi,
I am trying to create a custom maintanable table. Now the requirement is I need to add one more extra field in the maintenace view of the table which should not be in the table fields and is for display only in the maintencae view.
I tried adding a cloumn by editing the screen program generated by the table maintenance generator. I get the the display in the maintenance view of that extra field. But I dont get the values populated.
Can you please let me know in which PBO or PAI i should write the module programe ..
Help will be rewarded with points.Hello Bluesh
Normally the extra field should be from a table that has a foreign-key relationship to your main table. Thus, add this additional table to the list of tables for the view. If it does not have a suitable relationship you cannot add it to the list of tables.
Afterwards add the required field to the list of view fields and set its property to 'R' = read-only.
If correctly defined there is no need at all to modify the screen(s) or the coding of the PBO/PAI modules.
Example: your z-table contains field KUNNR (value table KNA1) and you want to add the NAME1 field to your maintenance view
add table KNA1 to the list of tables
add field NAME1 to view fields
set its property to 'R'
regenerate function modules and screens
Regards
Uwe -
How to get the field name of an internal table during runtime?
How to get the field name of an internal table during runtime?
Hi Sudhir,
Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
Example Code:
<b> DATA: v_field(60). " Insert this code.
GET CURSOR FIELD v_field. " Insert this code.</b>
<b>CHECK v_field = 'ITAB-KUNNR'. " Insert this code. (or)
Write: v_field.</b>
Regards,
Ramganesan K. -
How to find Payer field is coming from which table
when i am pressing F1 in va02 trasaction on payr field it is showing kugrv table kunnr field and data element is kunrg .
May i know which table payr is coming as per above requirement.vbak-kunnr, CUSTOMER
vbrk-kunrg. "PAYER
vrkpa-kunde. "PAYER index on VBPA
Regards
Edited by: Raymond Giuseppi on Feb 10, 2008 11:01 AM -
How to add one more field to an exist internal table
hi abapers
i am a very new abap programmer and just started learning it.
i want to know How to add one more field to an exist internal table.
lemme me put my question in a very simple way.
i have a internal table having fields f1,f2,f3 and which also that internal also contains some data.
now i want to add two more fields (mm & nn) to that internal table now.
how can i do that.
and i wanna know the websites names where i can find some brain teasing questions in abap programming.
eagerly waiting for ur reply
regards,
Maqsood A KhanHi, MAQSOOD.
You can insert more fields in your internal table like this.
refer this code snippet.
DATA : BEGIN OF tbl_itab OCCURS 0.
INCLUDE STRUCTURE zsdtc009.
DATA : vkorg LIKE vbak-vkorg, "inserted one
vtweg LIKE vbak-vtweg, "inserted one
vkbur LIKE vbak-vkbur, "inserted one
vkgrp LIKE vbak-vkgrp, "inserted one
END OF tbl_itab.
you can also read the book "Teach yourself abap in 21 days"
at http://cma.zdnet.com/book/abap/
but that book is just about basic concept of abap and report program.
it doesn't give a lecture for on-line program.
you can get pdf version books(about abap, sap...things) from sap.
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
I wish I could help you.
Regards
Kyung Woo. -
Problem with Fetching Million Records from Table COEP into an Internal Tabl
Hi Everyone ! Hope things are going well.
Table : COEP has 6 million records.
I am trying to get records based on certain criteria, that is, there are atleast 5 conditions in the WHERE clause.
I've noticed it takes about 15 minutes to populate the internal table. How can i improve the performance to less than a minute for a fetch of 500 records from a database set of 6 million?
Regards,
Owais...The first obvious sugession would be to use the proper indexes. I had a similar Issue with COVP which is a join of COEP and COBK. I got substanstial performance improvement by adding "where LEDNR EQ '00'" in the where clause.
Here is my select:
SELECT kokrs
belnr
buzei
ebeln
ebelp
wkgbtr
refbn
bukrs
gjahr
FROM covp CLIENT SPECIFIED
INTO TABLE i_coep
FOR ALL ENTRIES IN i_objnr
WHERE mandt EQ sy-mandt
AND lednr EQ '00'
AND objnr = i_objnr-objnr
AND kokrs = c_conarea. -
How to use FIELD-SYMBOLS to declare a table
How to use FIELD-SYMBOLS to declare a table?
hi yong,
this will be very general:
FIELD-SYMBOLS : <gf_table> TYPE ANY TABLE.
or
to do like a specific table from your program
FIELD-SYMBOLS : <gf_table> TYPE itab.
itab is of course your internal table from your program.
ec
Maybe you are looking for
-
Change Ctrl+Alt+Backspace to something else
Hi Is there any way to change the Ctrl+Alt+Backspace key combination in X to something else, e.g. Ctrl+Alt+Windows+Backspace? Note that I don't want to disable the "zapping" behavior by changing DontZap, but simply change the combination.
-
HP Pavilion All-in-One MS225 Desktop PC
I have a MS225 pavilion, which have a 320GB seagate product and i replace the hard disk 500gb seagate product, it has being working fine but now the hard drive is always fail, i have to keep on booting before it will display the windows7, but when i
-
Tracking movement/placement of game pieces
I would like to write a board game like backgammon (for the purpose of analyzing played games). I want to be able to read in a "game" (i.e. match rolls/movements/doubles). Then I want to be able to step through the game move by move, showing the move
-
MIDI setup bug..
Hi Anybody knows how to get rid of this message that keeps coming up when starting LPX. I got a knew mac - and with my old mac I used the Edirol and P-60 piano. I dont use the P-60 anymore and the Edirol is only connected when I need to do recordings
-
Error when attempting to preinstall a game using DISM
My company has developed a metro game which should be preinstalled by our customer on the OEM PC's. The game was submitted to Windows Store and is successfully certified. The customer has downloaded the game from the Partner Dashboard (according to: