YTD AMOUNT VALUES
HI ,
I need ytd amount values in a column,when user enters posting period (selection) .for this i have created 2 variables
1) user input posting period zz_post
2) customer exit variable zz_exit.
can any one help me abap code to populate data according to full fill my requirement.
Thanks,
EDK...
Hi,
/thread/576498 [original link is broken]
Customer Exit Code for text in BI
Is there a way to achieve YTD with out customer exit.
Hope this helps...
Rgs,
Ravikanth.
Similar Messages
-
Hi
I have a scenario where i have to check the amount value sholuld be greater than Zero or not, if it is not greater than zero i have to raise an exception and skip that record ..
i wanna do that using UDF..How we do that
venkatHi paul
I need to Import Any Java packages .
It s giving Error :
Source code has syntax error: /usr/sap/D06/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map08e7dc10452d11dcb4a1e210bc394725/source/com/sap/xi/tf/_MM_ACEAwardInformation_to_TaxBalances_.java:113: operator > cannot be applied to java.lang.String,int if(Amount>0)
My code
public String AmountValue(String Amount,Container container){
int AmountValue =Integer.parseInt( Amount);
try{
if(Amount>0)
create record;
else throw new Throwable("Records not greater than 0...");
}catch(Throwable t){}
venkat -
What is the best way to format and hold amount value?
dollarformat or numberformat...which is best to format amount
value or currency value?.Adomacro,
dollarformat is a quick numberformat specifically for
formatting dollar and cent values. You can use numberFormat, but
why? numberFormat is more versitile for ALL number formatting (not
just dollar and cents).
Hope that helps. -
W_ACCT_BUDGET YTD Amount
Hi all,
I am using BI Apps version 7.9.6.3 - Financial Analytics and I was wondering why the fact table W_ACCT_BUDGET which carries only budget GL Balances doens't have a column carrying the As of Date (YTD) amount of the GLs?Is this column exists with t different name than BALANCE_LOC_AMT same as W_GL_BALANCE_F or its not there ate all...If not, do you have any idea about how can I create Actual vs Budget report for balance sheet items???
Please help.
Mohamed AdelThat is a table in the Universal Adapter.
It is a target for the SIL_BudgetFact mapping
It is loaded primarily from data in W_ACCT_BUDGET_FS which is populated by the following mapping: SDE_Universal_BudgetFact which gets its data from FILE_ACCT_BUDGET.csv.
Are you sure you imported the Universal Adapter Metadata into the DAC Repository? -
Re: Display comma in a amount value.
Hi experts,
My requirement is i want to to display the comma in amount fields in script.
i was declared one internal table with 5 fields , in that 3 fields are amount fields , these 3 fields also i was declared as type char, because i have to do some calculations and add some text after the amount.
Here my problem is i want to display the amount value with commas and with out decimal places (12,34,500) like this.
i was removed the decimal places using 'MOVE_CHAR_TO_NUM' functin module , but i am not able to add the commas for the amount field , can any body let me know how to do this.
Thanks in advance.Hi..
You can give these amount fields type as some standard amount fields instead of char.
For Example. for netprice you can give..
data: begin of it_itab,
netpr type ekpo-netpr,
end of it/-itab.
Regards,
Vishwa. -
Junk Amount Values in Table Maintenance Generator
Hello All,
I have created an event (01) in table maintenance generator. In this i am triggering a workflow.
The problem here is, in my table there is a fields of type CURR and CUKY. I am inserting new values by using SM30. I am entering some 100 dollars against CURR filed. In the bebugging, i have observed there is Junk values against CURR field in TOTAL & EXTRACT tables. Becuase of that i am getting short dump. I just want to pass the amount value to my workflow not a Junk amount value.
Is there any way to avoid the junk values for CURR fields in Table Maintenance Generator.
Regards,
PatiHi Pati! Do you've solve this? Any help? I see junk amont value too, and I cannot understand this.
Thanks on advance.
Regards,
Emanuel -
Hi,
I'm displaying the units in columns as LTD YTD UNITS values. LTD & YTD is calculated as restricted keyfigures.
I have the Calender Year/Month in free characteristics. When an user drills down by month only the UNITS column should expand by month as expanding LTD & YTD by month doesn't makes sense as he sees the same value for all the months. So LTD & YTD values shouldn't expand by calender year/month.
Any suggestion is greatly appreciated.
Thanks,
VishVish,
try putting the Key figures in the rows and the CHaracteristics in the columns that way you would be able to accomplish what you want
Arun -
SAP Scripts : Conditions on amount values
Dear All,
I have to compare a Netvalue and Print a somthing if value is less than 20,000.
So I wrote ..
/: if &VAR(CT)& LT '20000.00'.
Z2 xxxxxxx
/: ELSE.
Z2 yyyyyy
/: ENDIF.
But this is not working properly.
I wonder how can I compare a amount value.
I am using &VAR(CT)&, just to remove commas, and blank.
Regards
Venkat.Hi,
Always prefer to take net value in currency format and companre with amount.
I feel you might have store currency in character format.
in &VAR&.
store it in a variable type wrbtr.
and compane ....
if &v_wrbtr& LE 20000
leave comma or decimals.
Check this wasy. Hope this will resolve your query.
*Please mark all helpful answers. -
Converting Comma into Dot for Amount value
Hi All,
I need to convert the amount value in comma to dot say 1000,00 to 1000.00.Any function module is there to convert it.After converting it i need to pass this value as exporting parameter to a function module having data type as character(lenght 13).
Thnks
DebHello Deb,
Try the code below:
DATA:
V_AMT TYPE WRBTR VALUE '5000,00',
V_INT1 TYPE NUMC10,
V_DEC1 TYPE NUMC2,
V_DATA TYPE CHAR13.
V_INT1 = TRUNC( V_AMT ).
V_DEC1 = FRAC( V_AMT ).
CONCATENATE V_INT1 '.' V_DEC1 INTO V_DATA.
WRITE: V_DATA.
Hope this helps.
BR,
Suhas -
Replace a string in a character field with a amount value
Hi,
I have a text field in which I want to replace a string with an amount value. while am trying to replace it , it gives me some empty space.
For example:
amount = '1200 '
message = 'The STIP amount is &1'
in my code :
replace &1 with message into message.
the result is
'The STIP amount is 1200 '
I dont want the space after 1200.
I tried for condense no-gaps also but it is not working ..
What may be the problem?
Can you suggest some solution for this?
Regards,
VimalaHi,
replace &1 with message into message.
I guess its replace &1 with amount into message.
Convert the amount to a character type (example move amount to amount_c ), then condense it and and then replace it using the 'REPLACE' statement.
regards,
Advait. -
Download amount value without decimal place but element with decimal place
Hi all,
to display the amount without decimal places in classic report, i can use this way which is wa_wrshb NO-ZERO CURRENCY wa__waers.
may i know,
1) how to display amount in ALV where amount value (which using dmshb/wrshb) has no decimal place like JPY?
2) what should i do if i want to download the amount value which field using dmshb or wrshb that the value has no decimal place like JPY?
ThanksHello,
You can display the ALV output according to the decimal point in the currency.
When creating the field catlog for the amount field add the currency parameter also.
wa_fieldcat-fieldname = <amount_field>.
wa_fieldcat-tabname = <output_table>.
wa_fieldcat-seltext_l = <column_heading>.
wa_fieldcat-outputlen = p_olen.
wa_fieldcat-currency = wa_waers. " This will work same as CORRENCY wa_waers
Regards
DKS -
PO can not be created due of amount value approved in related PR
Hello Gurus,
My client would like to set an error message while creating a PO related to a PR when the net price item differs in more than 10% from the value released in the PR related. All the PR are subject to release strategies with total amount as a chareacterisitc. Is this possible to set? Could please kindly provide me the path or any clue on how to do this?
Currently when a PO is created in relation to a PR system allows to change the net price without restrictions.
Please advice.
ThanksI assume you do not work with PO approvals?
Normally when you create PR, system picks Price frm the material master you can try to control PO price maintain Tolerate Key "PE" for Cocode here.
SPRO -> MM -> Purchasing -> Purchase order -> Set Tolerance Limits for Price Variance
This will check the PO price VS the Material Master valuation Price (this will not be useful if the PR price has been manually changed )
But if a check against PR Value specifically is reqd. , In suchcase, there is no standard setting/config with which you can have system issue an error when the PO value exceeds the PR amount by a certain %.
The ME_PROCESS_PO_CUST BADI could be used, where you enter this validation Logic. -
Total Amount value not displaying while executing print progrm for PO form.
Hi All,
I created the PO form, for this i written a print program.After executing this print program everything s displaying & populating, but only the Total Amount not displaying r not populating.
But, if i run the PO n tcode ME23N the Total Amount is displaying, after assigning the form n NACE.
So help me to get the Total Amount to be displayed n main window, while executing the print program.
Like this i declared n smartform, Total net value excl. tax &is_ekko-waers& &is_pekko-netwr&......
The print program as follows,
report zpo.
tables: ekko,pekko,ekpo,ekpa,eket,ekkn,ekek,komk,nast.
data: fm_name type rs38l_fnam.
data: is_ekko type standard table of ekko with header line.
data: is_pekko type pekko occurs 0 with header line.
data: it_ekpa like standard table of ekpa,
it_ekpo like standard table of ekpo,
it_pekpo like standard table of pekpo,
it_eket like standard table of eket,
it_tkomv like standard table of komv,
it_ekkn like standard table of ekkn,
it_ekek like standard table of ekek,
it_komk like standard table of komk.
selection-screen: begin of block b1 with frame title text-001.
parameters: pr_ebeln like ekpo-ebeln obligatory.
selection-screen: end of block b1.
select * from ekpo into table it_ekpo where ebeln = pr_ebeln.
select * from ekko into is_ekko where ebeln = pr_ebeln.
endselect.code as follows,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZPURCHASE'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
CALL FUNCTION fm_name "'/1BCDWB/SF00000060'
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
IS_EKKO = is_ekko
IS_PEKKO = is_pekko
* IS_NAST =
* IV_FROM_MEM =
* IV_DRUVO =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
it_ekpo = it_ekpo
it_pekpo = it_pekpo
it_ekkn = it_ekkn
it_ekpa = it_ekpa
it_ekek = it_ekek
it_komk = it_komk
it_eket = it_eket
it_tkomv = it_tkomv.
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Get the two rows of customer with same amount value within consecutive year
Hi,
Below are sample data, what I would like to do is pull the customer along with their two finance details that have the same amount within the two consecutive year. Please note that there are many customers and not all customers are have these criteria, so the query should not include those customers.
Like in my sample data the result should be:
(first row)
165321 John King Magazine 01/03/2007 30/03/2011 10/02/2009 180.00
(second row)
165321 John King Magazine 01/03/2007 30/03/2011 06/12/2008 180.00
Customer Table:
ID Name Product Start Delivery End Delivery
165321 John King Magazine 01/03/2007 30/03/2011
165322 Bryan Lee Magazine 15/04/2002 30/04/2011
Finance Table:
ID Invoice Date USD Amount
165321 10/02/2009 180.00
165321 10/02/2009 120.00
165321 06/12/2008 180.00
165321 20/05/2007 99.00
165321 12/03/2007 150.00
165321 07/03/2007 180.00
165322 01/01/2003 124.00
165322 30/05/2002 160.00
165322 20/04/2002 99.00
Thank you..Hi,
Depending on your exact requirements, you can do something like this:
WITH got_this_yr AS
SELECT id
, MIN (invoice_date) AS invoice_date
, usd_amount
, EXTRACT (YEAR FROM invoice_date) AS this_yr
FROM finance
-- WHERE ... -- any filtering goes here
GROUP BY id
, usd_amount
, EXTRACT (YEAR FROM invoice_date)
, got_neighbor_values AS
SELECT id
, invoice_date
, usd_amount
, this_yr
, LAG (this_year) OVER ( PARTITION BY id
, usd_amount
ORDER BY this_year
) AS prev_year
, LEAD(this_year) OVER ( PARTITION BY id
, usd_amount
ORDER BY this_year
) AS next_year
FROM got_this_yr
SELECT n.id
, c.name
, c.product
, c.start_delivery
, c.end_delivery
, n.invoice_date
, n.usd_amount
FROM got_neighbor_values n
JOIN customer c ON c.id = n.id
WHERE n.this_year IN ( n.prev_year + 1
, n.next_year - 1
ORDER BY n.id
, n.usd_amount
, n.invoice_date
;If you'd care to post CREATE TABLE and INSERT statements for the sample data, then I could test this.
This used the analytic LAG and LEAD functions to find the previous and next years when the same amount occurred with the same id. Since we want to use this value in a WHERE clause, it has to be computed in a sub-query (got_neighbor_vlues) first; analytic functions are always computed after the WHERRE clause is applied.
In the case of the very first year, LAG will return NULL, and in the case of the very last year, LEAD will return NULL. That's okay for our purposes; we just need something such that the WHERE clause of the main query will be TRUE if and only if one of the adjacent rows was a consecutive year.
Why don't you want a row for 2007 in the results? It looks like the same customer had the exact same amount in 2007, 2008 and 2009.
What happens if the same customer has the exact same amount 2 (or more) times in the same calendar year? The query above uses the earliest one in each year, and ignores the others. If that's not what you want, then post the results you do want
Edited by: Frank Kulash on Nov 15, 2010 10:36 AM
Included cutomer table -
Reg: Correction of Wrong With holding tax amount Values Posted via BAPI
Hello Experts,
I have posted some invoices using BAPI_ACC_DOCUMENT_POST with With holding tax code and amount now the thing is that ..the document is posted successfully with Wrong With hoding tax amount data in TABLE WITH_ITEM due to this while executing t-code F-53 ( Outgoing payments ) its not calculating the with holding tax amount for the invoice .
Now i wan't to correct ( Negate some values) the values in WITH_ITEM table.....
How am i going to do it..!
Plz..experts help.
Plz waiting for your inputDear All,
this is not an error but the Standard System Design. Please read the note 611844. Only if You insert manually the WT amounts during the posting You will see them into the WT TAB after the posting. If You make the System to calculate the WT Aamounts automatically, no WT amounts will be reported into MIRO/MIR4. You can see them into the follow on document.
I hope this helps.
Mauri
Maybe you are looking for
-
I am playing card games at Yahoo in my iMac OS X version 10.6.8. Just recently it won't let me play anymore as it won't upload. Kinda frustrating. How can I fix it. The only thing that I know I have done is did an update on my computer.
-
Unable to load Site Control File
Hello, The background : I am in the process of learning how to create a Management Pack for a distributed application in SCOM 2012 R2.</p><p>For this, I picked our SCCM Site server to use as an example. So, in short, am writing a management pack for
-
Good, thank you in advance for help. My Iphone 5 agency was left red battery and asked me a software update from settings, the update could not begin, I think, because there was no connection. I turned off the device to get to recharge my house and a
-
Photoshop Elements 8 Error Not Responding
I am trying to get assistance in getting my photoshop back up and running. I have called Adobe and there is no sympathy all they want is money to fix it. They have sent me here to speak to an Adobe Tech. I am finding that this is a very common iss
-
Dear ALl Here is my Query. Irs gives following Error. Plz help me. Both table Structures are same 1 declare 2 type bill_rec_tab is table of BILL_PRINT_FORMAT%rowtype; 3 bill_rec bill_rec_tab; 4 begin 5 select * bulk collect into bill_rec from BILL_PR