Import / Export Cost center Hier.
Dear Friends,
Please let me know what does mean import/export cost center hier. and what is functionality of it and what setting needs to be done for it.
Regards
Ravi
Hi,
There are no settings to be done: you can go to hierarchy (KSH3) and export/import it via Menu - Extras. You might need it if you want to pass the hierarchy to different client/system.
Regards,
Eli
Similar Messages
-
Upload cost center/element groups
Hi everybody,
Is there any possibility for excel upload of cost center/element GROUPS?
Thank you for your feedback in advance!
Greetings,
PamHi everybody,
I meant not to import/export cost center/element groups in/from one system to another but to create them totally new automatically (like it is possible for cost centers via LSMW and excel file).
The question is if there is one possibility not to create all the cost center/element groups manually (for the first time - if they are existing in one system, I know that it is possible to transfer it to other systems).
Thanks for your answers!
Greetings
Pam -
Price Difference Account and Role of Cost Center.
Hi Experts,
How we can treat the Price difference account with respect to Cost & Financial P & L account.and what is the importance of Cost center for this Price Differences. can we allocate the Price difference of Common Profit center to main Profit Center?
With Regards,
SKHi,
What price differences are you referring to here ? Could you explain with a small example ?
Normally customers post price differences to COPA via OKB9
regards
Waman -
Cost Center hierarchy extraction errors
Hi,
I'm trying to extract R3 Cost center hierarchies into BW and in doing so, I get following errors. Could some one shed some light on these errors.
Extraction (messages):Errors occured
Error occured in the data selection
But, I successfully extracted Cost center master data from R3 just before hierarchy extraction.
I also checked RSA3 for the hierachy that I'm trying and it pulled around 2000 records in R/3 datasource extractor.
Appreciate any help
Hari Immadi
http://immadi.com
SEM BW AnalystHi,
Thanks for your reply.
I replicated the datasource before starting the extraction & also I double cheked the hierarchy name between BW & R3.
I don't get any other useful messages in the log & here is the entire log.
Requests : Everything OK
Extraction : Errors occured --> Errors occured in the data selection
Trasnfer IDOCS & TRFC : Everything OK
Processing (data packet) : No data
Subseq processing : Missing messages
Soon after execution of extraction, I get ALE Inbox error as follows & I double cheked that hierarchy in R/3 is not being edited.
Express document "Check Load from InfoSource 0COSTCENTER" received from author " Warehouse background user"
Check Load from InfoSource 0COSTCENTER , Packet Cost Center hier test
for demo
Please execute the mail for additional information.
Error message from the source system
Diagnosis
An error occurred in the source system.
System response
An error occurred in Service API .
Check the error message.
Procedure
The procedure for removing errors takes place depending on
the error message:
Note
If the source system is a Client Workstation, then it is possible that
the file that was to be loaded was being edited at the time of the data
request. Make sure that the file is in the specified directory and is
not being edited, and restart the request.
Note: If you not wish to receive any mails, maintain transaction
RSMONMAIL.
Hari Immadi
http://immadi.com
SEM BW Analyst -
OWB is not showing some default options like contol center,import/export
Oracle (11.2.0.1.0) databse is installed on linux.
it is successfully installed on linx.
when i am trying to login to OWB GUI with owbowner/owbwoner.it is opend successfully.
1)when i right click on that 'MY_PROJECT' it is not showing any options like NEW,validate,import/export .
2)Under TOOL tab,control centre is not showing
3)Under TOOL tab,in preferences,it not showing OWB Environment properties
Like this way lot of default options are not showing.
Can anybody help on this issuue........?
Edited by: krishna on Dec 24, 2011 12:48 AMOracle (11.2.0.1.0) databse is installed on linux.
it is successfully installed on linx.
when i am trying to login to OWB GUI with owbowner/owbwoner.it is opend successfully.
1)when i right click on that 'MY_PROJECT' it is not showing any options like NEW,validate,import/export .
2)Under TOOL tab,control centre is not showing
3)Under TOOL tab,in preferences,it not showing OWB Environment properties
Like this way lot of default options are not showing.
Can anybody help on this issuue........?
Edited by: krishna on Dec 24, 2011 12:48 AM -
Not updating G/L account and cost center with BAPI BAPI_PO_CREATE1
Hello Friends,
The two fields G/L ACCOUNT and Cost Center is not updated using BAPI BAPI_PO_CREATE1. I am unable to understand why? This is what i am passing to account assignment structure( POACCOUNT). Filled POACCOUNTX structre as well. I have passed company code at the header level.
PO_ITEM = 00010
SERIAL_NO = 01
CREAT_DATE = sy-datum
GL_ACCOUNT = 621000
COSTCENTER = 1000
CO_AREA = 4000
Please let me know why it is not updating anything i missed while passing?
2>I need to update GR quantity but this field is not available in the BAPI ..Please let me know how to update this field.
Any help is highly appreciated.
Regards,
RajHi, I have a problem I use the bapi BAPI_PO_CREATE1, I pass the table pt_poaccount in the parameter poaccount but the bapi when register my purchase order doesn't register correctly the values KOSTL, AUFNR, PS_PSP_PNR, NPLNR of the tablepoaccount and register the default values of the contract. Please i need help with this.
CLEAR s_poaccount.
s_poaccount-po_item = <fs_datos>-ebelp.
s_poaccount-serial_no = w_serial.
s_poaccount-costcenter = <fs_datos>-kostl.
s_poaccount-orderid = <fs_datos>-aufnr.
s_poaccount-wbs_element = <fs_datos>-ps_psp_pnr.
s_poaccount-network = <fs_datos>-nplnr.
s_poaccount-activity = <fs_datos>-vornr.
s_poaccount-quantity = <fs_datos>-menge.
s_poaccount-net_value = <fs_datos>-brtwr.
s_poaccount-creat_date = sy-datum.
s_poaccount-itm_number = <fs_datos>-ebelp.
s_poaccount-co_area = '1001'.
APPEND s_poaccount TO pt_poaccount.
CLEAR s_poaccountx.
s_poaccountx-po_item = <fs_datos>-ebelp.
s_poaccountx-serial_no = w_serial.
s_poaccountx-po_itemx = 'X'.
s_poaccountx-serial_nox = 'X'.
s_poaccountx-creat_date = 'X'.
s_poaccountx-itm_number = 'X'.
s_poaccountx-co_area = 'X'.
s_poaccountx-costcenter = 'X'.
s_poaccountx-orderid = 'X'.
s_poaccountx-wbs_element = 'X'.
s_poaccountx-network = 'X'.
s_poaccountx-activity = 'X'.
s_poaccountx-quantity = 'X'.
s_poaccountx-net_value = 'X'.
APPEND s_poaccountx TO pt_poaccountx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = pe_poheader
poheaderx = pe_poheaderx
IMPORTING
exppurchaseorder = pi_exppurchaseorder
TABLES
return = pt_return
poitem = pt_poitem
poitemx = pt_poitemx
poschedule = pt_poschedule
poschedulex = pt_poschedulex
poaccount = pt_poaccount
poaccountx = pt_poaccountx
poservices = pt_poservices
posrvaccessvalues = pt_posrvaccessvalues.
The BAPI is register with these values as default however i pass other values in table
pt_poaccount -
Get Name for CO Cost Center Group and BGD Processing
Hi,
I use these function modules to get the cost center group nodes in the CO hierarchy.
If I pass it a value that is in two controlling areas
if prompts another screen to pick which controlling area we want to look in. My problem is when I try to run this report in the background it gets hung up on this screen waiting for input. any ideas on how to get around this.
here is the reference code.
thanks
Please note that the following logic is parts of SAP example report
RGSEX001.
Get the internal Set-ID from the external name of the set
Selection of sets can be restricted to a specific set class or
to sets matching a specific table field.
See documentation of function module G_SET_GET_ID_FROM_NAME
If the set class, subclass and setname is known, function module
G_SET_ENCRYPT_SETID should be used alternatively (see RGSEX020)
CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'
EXPORTING
shortname = w_set
old_setid = w_setid
IMPORTING
new_setid = w_setid.
Read the complete hierarchy (set and all subsets)
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
setid = w_setid "Set-ID, not the Setname!!!
no_table_buffering = ' '
TABLES
set_hierarchy = it_hierarchy
set_values = it_values.Hi!
For reading cost center hierarchy you can try K_HIERARCHY_TABLES_READ.
It returns near the same info as one you've mentioned, works well for single controlling area and I hope in case of ambiguity it will raise one of exceptions provided. Give it try.
Regards,
Maxim. -
Function module expression for dynamic value for Cost center in BRF
Hello Experts,
We are in SRM 7.0 and our business object is shopping cart using BRF.
Right now we have Cost Center Approver and its evaluation id ()zev_sc_**_*) has expression zc_sc_*_** that checks whether overallvalue >= 5000. It initiates cost center approver only if value is greater than or equal to 5000. But this is static expression. We want it in a dynamic way so that we don't have to modify this value frequently. Therefore we have set approach to use an expression of Function Module BAdI as expression. We have a new z table which contains value field zval. Now I want to know how or what should be the process so that this FM knows the corresponding value from a z table that user might select in the SC.How it should be linked to this. I am using /SAPSRM/WF_BRF_0EXP000 function module. Please advise where should the code be written ? Any method ? And what should be the exporting and importing parameters for this ?
Right now I can see EV_VALUE, EV_TYPE, EV_CURRENCY etc as exporting paramters. Looking for your suggestions experts.
Thank you.
Best regards.Dear abhijeet,
just follow the steps.
i) I believe you have created the event as Zev_*** with implememt Class 0EVENT.
ii) copy the std fm /SAPSRM/WF_BRF_0EXP000 to z custom fm
iii) since you want to have an expression as function module procurement type create expression with
expression type 0CF001
result type B ( boolean)
Buffering as event-controlled buffering
and very important procurement type as function module.
iv) immediatly you may find written as AccessFM where pass your custom z function module.
v) finally link this expression to your event.
In the custom function module the exporting parameter EV_VALUE is solely responsible for identifieng the approval based upon the approval criteria. If the field EV_VALUE = 'X' this notify that the approval is required for current process level, otherwise if it is initial then it will skip the current level and continue with the next level.
whatever your coding should be written in FM.
just look into below code
DATA LO_WF_BRF_EVENT TYPE REF TO /SAPSRM/CL_WF_BRF_EVENT.
DATA LO_CONTEXT_PROVIDER TYPE REF TO /SAPSRM/IF_WF_CONTEXT_PROVIDER.
DATA: LV_HEADER LIKE BBP_PDS_SC_HEADER_D.
DATA: LT_ITEM TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D.
LO_WF_BRF_EVENT ?= IO_EVENT.
LO_CONTEXT_PROVIDER = LO_WF_BRF_EVENT->GET_CONTEXT_PROVIDER( ).
CALL METHOD LO_CONTEXT_PROVIDER->GET_DOCUMENT
IMPORTING
EV_DOCUMENT_GUID = LV_DOCUMENT_GUID
EV_DOCUMENT_TYPE = LV_DOCUMENT_TYPE.
pass this guid in the below function module in order to get the SC details.
GET SC DETAILS
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
I_GUID = LV_DOCUMENT_GUID
IMPORTING
E_HEADER = LV_HEADER
TABLES
E_ITEM = LT_ITEM
After that loop the internal table LT__ITEM and you decide based upon your approval criteria for each line item level wheather the gross price of line item is exceed 5000k or not.
you should decide the value for field EV_VALUE within the loop so that each line item will be verified for approval.
Pls contribute if this helpfull.
regards
sahil purushan -
How to Override Cost Center in IT 1 based on certain conditions
Hi,
I have a pretty good understanding on how Cost Center gets defaulted based on Org Structure. The standard SAP solution for Cost Center will not work for my client and I need to determine the cost center based on certain conditions. I understand that I have to write custom code in some user exit or badi. I tried user exit EXIT_SAPFP50M_001, but it did not work.
Here is my code:
DATA: I0001 LIKE P0001.
CASE INNNN-INFTY.
WHEN '0001'.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING
PRELP = INNNN
IMPORTING
PNNNN = I0001.
This is just an example to test the concept
I0001-kostl = 'COST_CENTER'.
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
EXPORTING
pnnnn = i0001
IMPORTING
prelp = innnn.
endcase.
When I change IT 1 record and hit enter, I can see that my code is being executed. I can see cost center being updated on the screen, but when I save it, its not able to retain that new cost center value. This might be because cost center is not an open field.
How can I change my code so it retains its value after saving?.
Thanks!Contd to manoj
Cost Center will be a Open feild when the value of the switch PLOGI ORGA should be balnk if it is haveing 1 than it will not default the value kindly check -
Cost center in FB01 - User exit or BADI
Hi,
I would like to change the cost center field data in transaction FB01 with some other data based upon some conditions.
Please suggest with user exits or badi.
thanks.Thanks for reply.
In the user exits mentioned, checking for cost center value in the import parameter DOC_ITEM_TAB and based on some validations i have changed the it to other value. But this new value is not considered by the program still it is creating with the old value.
The changed value has to be exported from the user exit right? this is not happening as we know dont have cost center field in export or changing parameters
Please suggest -
Cost center wise report(KSB1)
Hi Exports,
For myco.code cost centers are mandatory while posting transactions but if i go for ksb1 it will not show any values why is there any thing i missed.
Thanks
AnjumBefore going to KSB1, go to OKKS and set your controlling area.
Go to KSB1
Give your cost centers or cost center group
Give your cost elements or cost element group.
Make sure that you are giving proper Posting Date.
Important
=========
Make sure that your layout is "1SAP"
Hope you should get the data.
Regards,
Ravi -
Cost center data fetch from COSS/COSP tables.
Hi Experts,
I need to fetch data from COSS/COSP tables for particular Cost centers fetched in CSKS select.
As there is no Costcenter field I cannot access the database tables directly.
Fetching entire dat and then deleting is causing performance issue with the report.
I need to reduse the time taken by COSS/COSP table select , as I have Cost center field on the selection screen.
Is there any other method or FM that I can use?
Thanks in advance!!!Hi
This is my code to get the data from a certain cost element group:
}call function 'G_SET_GET_ID_FROM_NAME'
exporting
shortname = p_kagru
tabname = 'CCSS'
fieldname = 'KSTAR'
kokrs = p_kokrs
ktopl = 'ENPC'
setclass = '0102'
check_set_empty = 'X'
importing
new_setid = setid
* SET_INFO =
exceptions
no_set_found = 1
no_set_picked_from_popup = 2
wrong_class = 3
wrong_subclass = 4
table_field_not_found = 5
fields_dont_match = 6
set_is_empty = 7
formula_in_set = 8
set_is_dynamic = 9
others = 10
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'G_SET_GET_ALL_VALUES'
exporting
* CLIENT = ' '
* FORMULA_RETRIEVAL = ' '
* LEVEL = 0
setnr = setid
* VARIABLES_REPLACEMENT = ' '
* TABLE = ' '
* CLASS = ' '
* NO_DESCRIPTIONS = 'X'
* NO_RW_INFO = 'X'
* DATE_FROM =
* DATE_TO =
* FIELDNAME = ' '
tables
set_values = t_set_values
exceptions
set_not_found = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
loop at t_set_values.
count = count + 1.
r_kstar(3) = 'IEQ'.
r_kstar-low = t_set_values-from.
append r_kstar.
if count = 500.
perform read_coep.
else.
at last.
perform read_coep.
endat.
endif.
endloop
U can use somthing like that to get data from cost center
Max -
How to display cost center decription
Hi
I'm working with EBP. I want to display in the template SAPLBBP_SC_UI_ITS_120 the cost center description. I found that this field is KTEXT in the table CSKT in R3 system. I also found in EBP a structure called CSKS_HR with the field SHORTNAME. Well, i don't know how i can get this descripion field..
Thank you for your help.i dont know about EBP. but i can help you with RFC and how to call R/3
for example the BAPI (in R/3)
BAPI_COSTCENTER_GETDETAIL
gives details about a cost center inclusing the text.
to call it from EBP you have to first define RFC destination in transaction sm59 (talk to your BASIS team they will do it for you).
now to call this BAPI from a abap program in EBP
dest = <RFC destination name>
CALL FUNCTION 'BAPI_COSTCENTER_GETDETAIL' DESTINATION dest
EXPORTING
CONTROLLINGAREA = <controlling area>
COSTCENTER = <cost center number>
date = sy-datum
IMPORTING
NAME = <NAME>
DESCRIPTION = <DESCRIPTION>
PERSON_IN_CHARGE = <PERSON INCHARGE>
ADDRESS = <ADDRESS>
COMMUNICATION = <CO,MMMU>
RETURN = <RETURN> .
Regards
Raja -
Interactive report for Cost center
Can any body tell me what are tables involved in creating a cost center reports for department wise data and cost center category wise data.
*& Report ZFI_ASSIGNED_FUNDS
REPORT ZFI_ASSIGNED_FUND.
TABLES: FMIT,FMCIT.
TYPE-POOLS: SLIS.
*ALV data declarations
DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
FIELDCATALOG1 TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
GD_TAB_GROUP TYPE SLIS_T_SP_GROUP_ALV,
GD_LAYOUT TYPE SLIS_LAYOUT_ALV,
GD_REPID LIKE SY-REPID.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: RFISTL FOR FMIT-RFISTL,
FIKRS FOR FMIT-FIKRS,
RYEAR FOR FMIT-RYEAR.
SELECTION-SCREEN END OF BLOCK B1.
DATA: BEGIN OF IT_FMIT OCCURS 0,
RYEAR LIKE FMIT-RYEAR,
FIKRS LIKE FMIT-FIKRS,
RFISTL LIKE ZREV_BUDGET-KOSTL,
RFIPEX LIKE ZREV_BUDGET-KSTAR,
TSL01 LIKE FMIT-TSL01,
TSL02 LIKE FMIT-TSL02,
TSL03 LIKE FMIT-TSL03,
TSL04 LIKE FMIT-TSL04,
TSL05 LIKE FMIT-TSL05,
TSL06 LIKE FMIT-TSL06,
TSL07 LIKE FMIT-TSL07,
TSL08 LIKE FMIT-TSL08,
TSL09 LIKE FMIT-TSL09,
TSL10 LIKE FMIT-TSL10,
TSL11 LIKE FMIT-TSL11,
TSL12 LIKE FMIT-TSL12,
TSL13 LIKE FMIT-TSL13,
TSL14 LIKE FMIT-TSL14,
TSL15 LIKE FMIT-TSL15,
TSL16 LIKE FMIT-TSL16,
END OF IT_FMIT.
DATA: BEGIN OF IT_FMIT1 OCCURS 0,
RYEAR LIKE FMIT-RYEAR,
FIKRS LIKE FMIT-FIKRS,
RFISTL LIKE ZREV_BUDGET-KOSTL,
RFIPEX LIKE ZREV_BUDGET-KSTAR,
TOTAL LIKE FMIT-TSL01,
END OF IT_FMIT1.
DATA : BEGIN OF IT_BUDGET OCCURS 0,
GJAHR LIKE ZREV_BUDGET-GJAHR,
KOSTL LIKE ZREV_BUDGET-KOSTL, " COST CENTER
KSTAR LIKE ZREV_BUDGET-KSTAR,
APR_B LIKE ZREV_BUDGET-APR_B,
MAY_B LIKE ZREV_BUDGET-MAY_B,
JUN_B LIKE ZREV_BUDGET-JUN_B,
JUL_B LIKE ZREV_BUDGET-JUL_B,
AUG_B LIKE ZREV_BUDGET-AUG_B,
SEP_B LIKE ZREV_BUDGET-SEP_B,
OCT_B LIKE ZREV_BUDGET-OCT_B,
NOV_B LIKE ZREV_BUDGET-NOV_B,
DEC_B LIKE ZREV_BUDGET-DEC_B,
JAN_B LIKE ZREV_BUDGET-JAN_B,
FEB_B LIKE ZREV_BUDGET-FEB_B,
MAR_B LIKE ZREV_BUDGET-MAR_B,
END OF IT_BUDGET.
DATA : BEGIN OF IT_BUDGET1 OCCURS 0,
GJAHR LIKE ZREV_BUDGET-GJAHR,
KOSTL LIKE ZREV_BUDGET-KOSTL, " COST CENTER
KSTAR LIKE ZREV_BUDGET-KSTAR,
TOTAL1 LIKE FMIT-TSL01,
END OF IT_BUDGET1.
DATA: BEGIN OF IT_FINAL OCCURS 0,
FIKRS LIKE FMIT-FIKRS,
RFISTL LIKE FMIT-RFISTL,
RFIPEX LIKE FMIT-RFIPEX,
TEXT LIKE FMCIT-TEXT1,
ALLOC LIKE FMIT-TSL16,
USED LIKE FMIT-TSL16,
REMAIN LIKE FMIT-TSL16,
END OF IT_FINAL.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM PROCESS_DATA.
PERFORM BUILD_FIELDCATALOG.
PERFORM BUILD_LAYOUT.
PERFORM DISPLAY_ALV_REPORT.
*& Form GET_DATA
* text
* --> p1 text
* <-- p2 text
FORM GET_DATA .
SELECT RYEAR
FIKRS
RFISTL
RFIPEX
TSL01
TSL02
TSL03
TSL04
TSL05
TSL06
TSL07
TSL08
TSL09
TSL10
TSL11
TSL12
TSL13
TSL14
TSL15
TSL16
INTO TABLE IT_FMIT FROM FMIT
WHERE RYEAR IN RYEAR
AND FIKRS IN FIKRS
AND RFISTL IN RFISTL.
LOOP AT IT_FMIT.
MOVE-CORRESPONDING IT_FMIT TO IT_FMIT1.
IT_FMIT1-TOTAL = IT_FMIT-TSL01 + IT_FMIT-TSL02 + IT_FMIT-TSL03 + IT_FMIT-TSL04 + IT_FMIT-TSL05 + IT_FMIT-TSL06 + IT_FMIT-TSL07
+ IT_FMIT-TSL08 + IT_FMIT-TSL09 + IT_FMIT-TSL10 + IT_FMIT-TSL11 + IT_FMIT-TSL12 + IT_FMIT-TSL13.
IT_FMIT1-TOTAL = IT_FMIT1-TOTAL * -1 .
COLLECT IT_FMIT1.
ENDLOOP.
LOOP AT IT_FMIT1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = IT_FMIT1-RFISTL
IMPORTING
OUTPUT = IT_FMIT1-RFISTL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = IT_FMIT1-RFIPEX
IMPORTING
OUTPUT = IT_FMIT1-RFIPEX.
MODIFY IT_FMIT1.
ENDLOOP.
SELECT GJAHR
KOSTL
KSTAR
APR_B
MAY_B
JUN_B
JUL_B
AUG_B
SEP_B
OCT_B
NOV_B
DEC_B
JAN_B
FEB_B
MAR_B
INTO TABLE IT_BUDGET FROM ZREV_BUDGET
FOR ALL ENTRIES IN IT_FMIT1
WHERE GJAHR IN RYEAR
AND KOSTL EQ IT_FMIT1-RFISTL
AND KSTAR EQ IT_FMIT1-RFIPEX.
LOOP AT IT_BUDGET.
MOVE-CORRESPONDING IT_BUDGET TO IT_BUDGET1.
IT_BUDGET1-TOTAL1 = IT_BUDGET-APR_B + IT_BUDGET-MAY_B + IT_BUDGET-JUN_B + IT_BUDGET-JUL_B + IT_BUDGET-AUG_B
+ IT_BUDGET-SEP_B + IT_BUDGET-OCT_B + IT_BUDGET-NOV_B + IT_BUDGET-DEC_B + IT_BUDGET-JAN_B +
IT_BUDGET-FEB_B + IT_BUDGET-MAR_B.
IT_BUDGET1-TOTAL1 = IT_BUDGET1-TOTAL1 * 100000.
COLLECT IT_BUDGET1.
ENDLOOP.
ENDFORM. " GET_DATA
*& Form PROCESS_DATA
* text
* --> p1 text
* <-- p2 text
FORM PROCESS_DATA .
LOOP AT IT_FMIT1.
IT_FINAL-FIKRS = IT_FMIT1-FIKRS.
IT_FINAL-RFISTL = IT_FMIT1-RFISTL.
IT_FINAL-RFIPEX = IT_FMIT1-RFIPEX.
IT_FINAL-USED = IT_FMIT1-TOTAL.
READ TABLE IT_BUDGET1 WITH KEY KOSTL = IT_FMIT1-RFISTL KSTAR = IT_FMIT1-RFIPEX.
IF SY-SUBRC EQ 0.
IT_FINAL-ALLOC = IT_BUDGET1-TOTAL1.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = IT_FMIT1-RFIPEX
IMPORTING
OUTPUT = IT_FMIT1-RFIPEX.
SELECT SINGLE TEXT1 INTO IT_FINAL-TEXT FROM FMCIT WHERE SPRAS EQ 'EN'
AND FIPEX EQ IT_FMIT1-RFIPEX.
IT_FINAL-REMAIN = IT_FINAL-ALLOC - IT_FINAL-USED.
APPEND IT_FINAL.
CLEAR IT_FINAL.
ENDLOOP.
ENDFORM. " PROCESS_DATA
*& Form BUILD_FIELDCATALOG
* text
* --> p1 text
* <-- p2 text
FORM BUILD_FIELDCATALOG .
FIELDCATALOG-FIELDNAME = 'FIKRS'.
FIELDCATALOG-SELTEXT_M = 'Functional Mng Area'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'RFISTL'.
FIELDCATALOG-SELTEXT_M = 'Fund Center'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'RFIPEX'.
FIELDCATALOG-SELTEXT_M = 'Commitment Item'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'TEXT'.
FIELDCATALOG-SELTEXT_M = 'Commitment Item Text'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'ALLOC'.
FIELDCATALOG-SELTEXT_M = 'Allocated Budget'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'USED'.
FIELDCATALOG-SELTEXT_M = 'Used Budget'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
FIELDCATALOG-FIELDNAME = 'REMAIN'.
FIELDCATALOG-SELTEXT_M = 'Remaining Budget'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
* text
* --> p1 text
* <-- p2 text
FORM BUILD_LAYOUT .
GD_LAYOUT-NO_INPUT = 'X'.
GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
* text
* --> p1 text
* <-- p2 text
FORM DISPLAY_ALV_REPORT .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GD_REPID
IS_LAYOUT = GD_LAYOUT
IT_FIELDCAT = FIELDCATALOG[]
I_SAVE = 'X'
TABLES
T_OUTTAB = IT_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_REPORT -
Exit to change cost center in MIRO?
Hello , i wish to modify my cost center when the document is being saved.what exit can i use?
Yes use,
- [EXPORT obj1 ... objn TO MEMORY ID key|http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/frameset.htm]
- [IMPORT obj1 ... objn FROM MEMORY ID key|http://help.sap.com/saphelp_45b/helpdata/en/34/8e73aa6df74873e10000009b38f9b8/frameset.htm]
Also perform a plausability check in the FI substitution to insure that this data will only be used once. (check EBELN or such field)
Regards,
Raymond
Maybe you are looking for
-
I am trying to format a date field so that it shows as 06/29/2005 instead of 06/29/2005 00:00:00. Im thinking that I need to use the Substr function to do this but cant get it to work. Here is what I have, @(Substr(REQUIRED_DATE,1,10)). Any help woul
-
Does Keynote have a "fit show to music" option?
Dear Apple Community, When creating slideshows in iPhoto, one can use the "fit show to music." Does Keynote have a similiar feature? Thanks, Leland Nunes
-
One schema for OWB Design repository, runtime repository
Can we use only one schema for the design and runtime repositories on the same database instance and leave the target schemas separate? What are the advantages and disadvantages of this approach? Thanks a lot for your time and reply.
-
ITunes freezes everytime when I sign in to the iTunes Store
I have removed preference files, reinstalled iTunes and it still freezes when ever I sign into the iTune store to download anything.
-
Transfer SAP Query Output directly to SharePoint
Hi, We are running the SAP Queries in the Background. I have a requirement to transfer the SAP Query output directly to SharePoint site. Could you please share your ideas on this? Regards, Siva.