URGENT - OFA Calls in Fixed Assets forms
Hi there,
I have a very urgent situation here, can any one help me by explaining that following piece of code:
USER_EXIT('OFA INS_ADJUST ' ||
'TRANSACTION_HEADER_ID=":fa_books_header.transaction_header_id" ' ||
'SOURCE_TYPE_CODE="DEPRECIATION" ' ||
'ADJUSTMENT_TYPE="EXPENSE" ' ||
'DEBIT_CREDIT_FLAG="' || h_debit_credit_flag || '" ' ||
'CODE_COMBINATION_ID=":upl.code_combination_id" ' ||
'BOOK_TYPE_CODE=":fa_books_header.book_type_code" ' ||
'PERIOD_COUNTER_CREATED="' || to_char(h_actual_period_counter) || '" ' ||
'ASSET_ID=":fa_books_header.asset_id" ' ||
'ADJUSTMENT_AMOUNT="' || to_char(h_adjustment_amount) || '" ' ||
'PERIOD_COUNTER_ADJUSTED="' || to_char(h_actual_period_counter) || '" ' ||
'DISTRIBUTION_ID="0" ' ||
'ANNUALIZED_ADJUSTMENT="0" ' ||
'LAST_UPDATE_DATE="' || h_last_update_date || '" ' ||
'ACCOUNT=":upl.expense_account" ' ||
'ACCOUNT_TYPE="EXPENSE" ' ||
'CURRENT_UNITS=":upl.current_units" ' ||
'SELECTION_MODE="ACTIVE" ' ||
'FLUSH_ADJ_FLAG="TRUE" ' ||
'GEN_CCID_FLAG="FALSE" ' ||
'LEVELING_FLAG="FALSE" ');
I have tried to find out about OFA related to this code, but had no success, it seems like that it is calling something outside forms but I could not find out where is that located. I need this solution to write my script for adding unplanned depreciation for large amount of assets in FA.
in addition to all above, I cannot even process the unplanned depreciation using form (FAXASSET) thru application, and it is raising the error ORA-01003 which is meaning that no statement parsed....
Please reply me at your earliest.. Thanks in advance.
SM
Plz find these links:
Template to upload fixed assets
Fixed Assets Import
fixed assets master data in sap business one 9.0
Similar Messages
-
Bind Additional User Defined Fields at Fixed Assets
Hi, i already created additional user defined fields at fixed assets table, but i don't know how to bind the fields into edit text. i try to do like below :
otext.DataBind.SetBound(True, "@BA_OAMD", FieldName)
And also when i add a few new edittext at the fixed assets form, the screen will keep blinking during added that object, can i did something to freeze the form ? I already try to freeze the form but doesn't workHi Benny,
1. you have to catch the changing of record and then make refresh of your datasource.
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If pVal.MenuUID = "1288" Or pVal.MenuUID = "1289" Or pVal.MenuUID = "1290" Or pVal.MenuUID = "1291" Then
-- refresh of datasource
end if
2. if you need to dont see update after changing value, set to the textbox .AffectsFormMode = false
If helps you reward points.
Petr -
Calling report from a form(Oracle team urgent)
Hi all,
I am using the following code to call a report from form
PROCEDURE Run_Report (cMode varchar2) IS
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('OPEN');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('OPEN');
add_parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'SCREEN');
add_parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
run_product(REPORTS, 'c:/chips/reports/module6', SYNCHRONOUS,RUNTIME,
FILESYSTEM, pl_id, NULL);
null;
END;
When I run the form it is giving me
an error message :
FRM-10214- No authorization to run any application
But i can run the report in report builder and works fine.
When I press the Ok button for the above message.
It prompiting me againg username and password
When i enter Username and password it's not doing anything.
I am using forms6i in oracle8i.
Thanks for your help.
ThanksHi Rohit,
If u see my above message.I can able to run the report in reports builder.The Only problemn is I can't able to call the report from Form.
I have a button which call the report.When i Press the button it is Prompting me to enter the username,password and database .When i enter it is not doing anything.
But mt reports server is opening.
Please let me know whats the problemn
Thanks fo ryour help
Thanks
Krishna -
URGENT: Calling Pro C from Forms
Hi All,
How to call a Pro C function from forms?
Can i call a function declared inside a DLL or i can only call a Pro C executable?
Where can i look for more information?
TIA
NaveenNaveen
If you are trying to call a user exit written in PRO*C ( I assume ur OS is Windows since u re talking about DLL) then yes you can make a dll then likn this dll and call it from ur forms using user_exit. Refer Forms help
But If you wanna call a pure Pro*c program then call the executable ( nothing but a compiled C program) using probably host command
Cheers
Vij -
Fixed Asset and Depreciation method in SAP B1 2005B
Hi All,
I want to know what is the method by which we can do depreciation for fixed asset in SAP Business One 2005B.
Looking for a postive response from all.
Regards,
KawishHi Kawish,
The system supports the following forms of depreciation:
u2022Ordinary Depreciation
u2022Unplanned Depreciation
u2022Special Depreciation
And for the depreciation methods:
Straight-line
Immediate writeoff
multilevel method
declining-balance method
special depreciation
You can get more helpful documentations through partner portal:
Solutions-> SAP Business One-> Solution Overview-> Documentation
Resource Center-> SAP Business ONe Add-ons 2005-> Fixed Assets
Regards,
Candice Ren
SAP Business One Forums Team -
Fixed Asset Sale through SD & AA Module
Dear All,
While selling the fixed asset, carried out the following procedure. Is it correct?
In India, we need to pay excise. Due to this, the asset which is required to be sold, needs to be created as a material.
Following steps are carried out -
a) Material code created under Material Type Finished Goods with Sales View. Value of the asset which is to be sold is put in as a Standard Price.
b) For sale, created inventory of the Finished Goods ( which is created for the asset) by way of Initial upload.
Accounting Entry - Finished Goods -
Dr 25000
To Initial Upload -
25000
c) Now, through SD , created PGI i.e.Post Goods Issue.
Accounting Entry -
FG COGoods Manufactured -
Dr 25000
(Exp Account)
To Finished goods 25000
d) Billing Document Created
Accounting Entry -
Customer Account -
Dr 17996.16
To Sales Offsetting A/c 15000
To Cenvat Suspense 2400
To Cenvat Suspense 48
To Cenvat Suspense 24
To CST Payable 524
Excise Document Created
Cenvat Suspense A/c -
Dr 2472
To BED Payable 2400
To E.Cess Payable 48
To Hr E.Cess payable 24
e) Now carried out Asset Accounting Transaction
ABAON - Asset Sale Without Customer
Accounting Document created
Sales Offsetting Account -
Dr 15000
Loss on Sale of Asset Dr 9996
Accumulated Depre Dr 4
To Asset Account (sold asset) 25000
I m not sure on the initial upload & FG COGM effects. Whether I carried out correct process? Whether the accounting effects are correct?
Pl help. this is very urgent
Thanks in advance,
Gov.Rakshith,
You are using Asset Sale Clearing Account for credit istead Non-valuated material. Your the Asset is your "stock material".
please also check:
Sale Of Fixed Assets from SD
Sales Order For Asset Sale
regards -
Error While Running Depreciation in Oracle Fixed Asset
We have uploaded assets in Oracle Fixed Asset from old system successfully.
Now we were to Run depreciation for the first time and
the first process Generate Accounts runs with error,
APP-OFA-48400: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of argum
Number of successes: 0
Number of failures: 0
Module Generate Accounts ended with error
and all the following processes completes with error.
Please help, what can be the problem?Hi
It seems that one of the patch has not been applied properly.
You get this error from the package FA_MASSADD_PKG, so you could put some debug to see where you get it exactly or check the patches where patch includes file FAMAPTB.pls.
Regards
Bilal SARIOZ -
Actual cost of Production Order settled to Fixed Assets
Dear all,
My client is doing in-house production of moulds (internal order suggestion is not accepted by the client) for which
they have the following
1. BOM
2. Machine hour
3. labour
4. overhead etc
5.plan value
6. actual value
Can i settle the actual cost of production order to Fixed Asset ?
If yes
what are process kindly give me if any process other then the below
1.production order created
2. settlement profile - FA is settlement optional
3. allocation structure
4. Asset created
5 define asset in settlement rule
Kindly give me your valuable input
regards
elangoHi,
Although i am not CO expert , please check with your FICO consultant who are expert before make the final call.
During settlement to a G/L account or a fixed asset, the system ignores additional account assignments that were manually specified in the distribution rule.
Based on what i know .
you can stipulate that settlement may be made to cost centers and orders, but not to fixed assets.
The Settlement profile is something that you need to create a settlement rule to settle the actual costs of a sender object.
About the Settlement rule is something that contains the distribution rules for the sender. It will define how the way to settle the cost.
Allocation Structure
In the settlement structure you combine the primary and secondary cost elements into groups, in which debits are then posted to the sender objects. For each group, you specify whether (for settlement to a given receiver type) settlement is performed
by cost element or using a settlement cost element.
For example, you might use settlement cost elements:
To document the purpose of an order (such as, repairs or maintenance)
To reduce data volumes (you can combine a number of debit cost elements
under one settlement cost element).
TQ -
Modify fixed asset master data thru migo
Hi experts,
I make PO with account assigment 'fixed asset'. This asset is created during the PO creation. When materials arrive more fields of that fixed asset master data are known (ie serial number). I'd like to have a way to save those data in asset during the GR without using 2 different transactions.
In MIGO t/c i see the fixed asset number and double clicking on it i access to display asset: master data (as i was on AS03 tc).
Do you think a way to call AS02 (change asset master data) thru MIGO exists?
Best regards,
RubenHi Ruben,
Did you find a solution to your problem? I have a similar requirement.
I was planning on using the user-exit MBCF0005 to call a pop-up screen where the user can input the serial number and from there calling the BAPI to update the asset.
Cheers
Wayne -
Calling reports from oracle forms 9i
Hi
I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
declare
pl_id2 ParamList;
pl_name2 VARCHAR2(30) := 'liste2';
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
begin
pl_id2 := get_parameter_list(pl_name2);
if (Id_Null(pl_id2) )THEN
pl_id2 := Create_Parameter_List(pl_name2);
IF NOT Id_Null(pl_id2) THEN
add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
END IF;
end if;
IF NOT Id_Null(pl_id2) THEN
if(:mois is not null) then
v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
message(v_rep);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
ELSE
message('Error when running report');
END IF;
end;
the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
Rq: the report my_report is running very well in report builder.
does someone see where is the problem so can help me??
thanx.Hi,
This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
and check the detailed error occured.
This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
Regards,
-Bulent -
Hello,
Module : Fixed Assets
We are trying to fetch the assets for a report depending on the periods['From Period' & 'To Period'] given to SQL query,but we are not getting count of assets as expected.
And so the count isn't matching with 'CIP Details Report' which is a seeded oracle report.Here is the query that we tried,
SELECT fadd.asset_id, fadd.asset_number,
fak.segment1 || '.' || fak.segment2 asset_key, fadd.tag_number,
fadd.description asset_description,
fadd.attribute_category_code asset_category,
fb.date_placed_in_service, gp.start_date, gp.end_date
FROM fa_additions fadd,
fa_asset_keywords fak,
fa_books_v fb,
gl_periods gp,
fa_deprn_periods fdp,
fa_asset_history fah,
fa_transaction_headers fth
WHERE fadd.asset_key_ccid = fak.code_combination_id
AND fadd.asset_id = fb.asset_id
AND fah.asset_id = fadd.asset_id
AND fth.asset_id = fah.asset_id
AND fth.transaction_header_id = fah.transaction_header_id_in
AND fah.asset_type = 'CIP'
AND fdp.book_type_code = fb.book_type_code
AND fdp.period_name = gp.period_name
AND fdp.book_type_code = :p_book_type_code --'KV US CORP BOOK'
AND fdp.period_counter =
(SELECT MAX (fdp.period_counter)
FROM fa_deprn_periods fdp
WHERE 1 = 1
AND fdp.calendar_period_open_date BETWEEN (SELECT start_date
FROM gl_periods
WHERE period_name =
:p_period_from) = -- 'JUL-12-F13'
AND (SELECT start_date
FROM gl_periods
WHERE period_name =
:p_period_to)) -- 'DEC-12-F13'
AND fth.transaction_date_entered
BETWEEN (SELECT calendar_period_open_date
FROM fa_deprn_periods --gl_periods
WHERE period_name = :p_period_from -- 'JUL-12-F13'
AND book_type_code = :p_book_type_code) --'KV US CORP BOOK'
AND (SELECT calendar_period_close_date
FROM fa_deprn_periods --gl_periods
WHERE period_name = :p_period_to -- 'DEC-12-F13'
AND book_type_code = :p_book_type_code)
GROUP BY fadd.asset_id,
fadd.asset_number,
fak.segment1 || '.' || fak.segment2,
fadd.tag_number,
fadd.description,
fadd.attribute_category_code,
fb.date_placed_in_service,
fb.deprn_method_code,
fb.life_in_months,
gp.start_date,
gp.end_date
ORDER BY 1
The query returns the assets which have the 'transaction date entered' between the periods submitted.
But what about the assets who's 'Beginning Year Balance' is not zero [in the periods submitted in the query], those assets should also get displayed in the report.[and seeded report 'CIP Detail Report' shows assets who's 'Beginning Year Balance' is not zero along with the assets which have the transaction date entered between the periods submitted]
Any inputs / help / suggestions on this ?
Thanks !This is a strange requirement, depending on the columns you have and what are optional in them, one way is to have separate operations and each opeartion will have different inputs and for each operation , a different DB Adapter is called. But this way, it results in more number of operations for the service as well as more number of references in the composite. Even if you pass the column inputs to the SQL procedure, it will result in a large number of if-else cases..
Thanks,
N -
SBO 2005 PL1 : Fixed Assets
We are deploying SBO in Lebanon - For the Fixed Assets, they have one legal requirement which oblige them to force the Residual Value to one when it's totaly amortize until the equipment or material is not scrap out. How could we force the vaue to one ?
Edited by: Marc Riar on Feb 21, 2008 2:06 PMHi
Start from 2005 SP1 PL75, there are some bahavior change for Salvage value feature.
1. Where are the new fields regarding salvage value?
o Field name: Salvage Value %
Location: Depreciation Types form => General Tab
Description: salvage value = APC * Salvage value %
o Field name: Include Salvage Value in Depreciation
Location: Depreciation Types form => General Tab
Description: Control whether to include Salvage Value in
depreciation calculation. Select this checkbox to exclude Salvage value in deprecication calculation.
o Field name: Salvage Value
Location: Fixed Asset Master Data form => General Tab
Description: salvage value of specific asset
2. How to configure salvage value for an asset?
salvage value = APC * Salvage Value Percentage of Depreciation Type
o Salvage value is always updated automatically according to above formula if transtions trigger the change of APC.
o Salvage value always takes effect for the whole fiscal year.
o You can also modify salvage value manually in Fixed Asset Master Data form => General Tab. Change of salvage value will trigger the recalculation of depreciation.
3. How to calculate planned depreciation value based on salvage value?
o Example I:
APC: 10,000 Useful Life: 10 years Salvage Value: 2,000
Depreciation type: Straight-line depreciation
Calclation Method: Acquisition Value / Total Useful Life
Include Salvage Value in Depreciation: Not checked
Yearly Depreciation Amount =
(APC - Salvage Value) / Useful Life = (10000 - 2000) / 10 = 800
o Example II:
APC: 10,000 Useful Life: 10 years Salvage Value: 2,000
Depreciation type: Straight-line depreciation
Calclation Method: Acquisition Value / Total Useful Life
Include Salvage Value in Depreciation: Checked
Yearly Depreciation Amount = APC / Useful Life
= 10000 / 10 = 1000
4. Relevant rules with regard to salvage value:
a) All depreciation areas of an asset use the same salvage value.
b) Salvage Value field in Fixed Asset Master Data form => General Tab is editable if and only if Salvage Value Percentage of depreciation type of main depreciation area is not zero.
c) In Depreciation Types form => General Tab, the setting of
Depreciation Value Limit only takes effect when the Salvage Value % is zero.
d) When you import a fixed asset master data, salvage value is retrieved automatically according to the depreciation type from the main depreciation area. Make sure that salvage value is not greater than NBV, otherwise an error message will come up in log file.
5. Depreciation Value Limit Vs. Salvage Value:
a) Both are the amount at which the asset depreciation stops.
b) Depreciation Value Limit only takes effect when Salvage Value % is zero.
c) Depreciation Value Limit is not considered in planned depreciation calclulation.
d) Salvage value is considered in planned depreciation calclulation if Include Salvage Value in Depreciation of depreciation type is not checked.
You can also refer to SAP Notehttps://service.sap.com/sap/support/notes/1100660.
Hope it is helpful!
Regards,
Ivy Zhang
SAP Business One Forums Team -
G/L Movement Types for Fixed Assets
Dear All,
for the key figures displayed in report "Schedule of Fixed Assets" I need the corresponding G/L Movement Types. I found it for the posting types in attached screenshot already, but for the following key figures I would it need urgently for my customer:
- HIST_COSTS_START_OF
- TRANSFERS
- WRITE_UPS
- ACCUMULATED_DEPR
- VALUE_ADJUSTMENTS
- NETBOOKVALUE_END_OF
- NETBOOKVALUE_START_OF
The customer needs it for consolidation preparation
Thanks a lot and best regards!
Katrin GruberHallo Katrin,
There is no easy way of matching the G/L movement types from your attachment to the key figures in the schedule of fixed assets.
The report Fixed Asset line items displays all fixed asset relevant postings for the selected criteria. I displayed in the report the G/L movement types (as displayed in the journal entry) and in addition the business transaction type.
In report "Schedule of Fixed Assets" you have a mixture of movement types
Total of Depreciation, which compares to G/L movement type 450
Acquisition Costs, which is is the sum of G/L movement type 400 (Business Transaction Type 647 + 643) and 400 (BTT: 641, but not 642)
In addition here balances are displayed, which do not relate to journal entries with movement types (e.g. Net Book Value at End of 004.2015).
Seeing this please understand, that mapping from key figures to movement types is not possible.
You have two options:
use data extraction for consolidation with movement types or
maybe extracting the data from the report with OData depending on your needs.
Best regards
Marlene
PS: I will provide a blog in the next days/weeks for the topic of consolidation. -
BAPI_PR_CREATE requires fix asset
Hello Gurus,
I wonder if someone can help me to solve this problema, I have this error from the BAPI
I am doing this:
wa_praccount-asset_no. = '006703934334'
This is how I call the bapi.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
prheader = wa_header
prheaderx = wa_headerx
IMPORTING
number = pw_pr_number
TABLES
return = t_return
pritem = t_item
pritemx = t_itemx
pritemsource = t_itemsource
praccount = t_praccount
praccountx = t_praccountx
pritemtext = t_itext
EXCEPTIONS
OTHERS = 1.
When this section finished, the field praccount is diferente because the field fix asset is empty again,in spite I have already fill it with a value lines before.
Thanks.Thanks Lalit Mohan, the asset already created and exist in the company. After long troubleshooting and debugging the code, my problem already fixed.
Solution:
Passing parameter for asset should be exactly similiar with SAP asset no (Char 12) stored in table.
here is my pieces code (JAVA) to fix the issue.
assetNo ="660000765"; //asset value returned from other function.
Plant="1000";
ASSETNO = "000"+assetNo; //Add "000" in front
SUBNumber= "0000"; // Previous code subNumber ="0";
Other BAPi that useful for displaying asset : BAPI_FIXEDASSET_GETDETAIL
My problem solved..
tq
-Masri -
Month end closing in fixed assets
i am doing first time Month End Closing in Fixed Assets. I need step by step documentation.Thanks
ShankerHi,
The steps are.
1. Post depreciation for the last period.
2. Open next Asset fiscal year by running AJRW. This is also called soft close of previous period. Without this no report of assets will work.
3. Reconclie the balances with GL account. Run Tcode ABST2.
4. Check your slef whether all the balances that are carried forward are fcorrect or not.
5. Once you have finally done the above steps, use T code AJAB to close the last fiscal year.
Please note that at any given point of time you can open only 2 asset fiscal years only.
These are th esteps that are needed for asset closing.
reward points if useful.
Sarma
Maybe you are looking for
-
How do you stop a movie from playing past the end?
I uploaded a video to Vimeo I made from various clips and there was about 40 seconds of black after the end. How do you add a marker so it knows where to stop and hopefull return to the beginning. I already put the 'stop' marker in but it plays past
-
Reviewing Slides On Wrong Answer?
When in questions is there a way of reviewing previous slides when a wrong answer is given; for example: A standard presentation of 50 slides is viewed and then candidates are taken to the question slides If question 1 is answered correctly it moves
-
I used sql * loader to load the data into a txt file in a table oracle. My file contains numbers with Italian Format es. 10,2 instead of 10.2, and loading fails. Parameter that should change? Thank you Silvia
-
hi , Can anybody explain me the sep-by-step process for getting the material master using BD11- PULL approach. I had already configured the Distribution model for sending the request MASFET in system B, from which we are requesting the material maste
-
Although i delete an imessage it keeps the time the imessage was sent
in ios 8 imessage when you delete an individual msg it the application keeps the time of the deleted message and does not sort the list accordingly