COPA report quantity field with decimal notations
Hi Gurus,
Is it possible that ALV reports in COPA can have a decimal notations particularly in quantity field?
Regards,
Go to transaction KEA6 and check the data element of the value field you are interested if it foreseen decimal place.
If not, chose a different data element.
paolo
Similar Messages
-
Sum quantity field with 5 key fields
How to sum quantity field with 5 key fields
try this out.
loop at <itab>.
at new <field>.
sum.
endat.
endloop. -
The report in FI which contains Quantity field with every line item
Hi Gurus,
What are the reports in Finance which contains Qty field with every Line Item reports & reports that contains user name & System Id in it along with other informations e.g. G/L, Ar, AP
Thanks & Regds,
Santosh RotheHi
Using the line item display report you can get the required details by changing layout in the output:
FBL1N: Vendor line item
FBL3N: G/L line item
FBL5N: Customer line item
VVR -
How to avoid zeros in output for a field with Decimal type
Hi Friends
In a Report one output field is declared with decimal type.
Whenver that field is not filled with any values zeros will be displayed in the output.
I tried to change the data type to char but i am facing some issues in calculations and shwoing only 2 decimal places.
So is there any way to hide the zeros in the output if we the field is not filled with any value.Hi Sandeep,
If required field type is declared as type p decimals 2 , if for that field in internal table there is no value - then automatically output will get display in ALV as 0.00.
To remove 0.00 in the output screen and to be displayed in blank then in the field catalogue add wa_fieldcat-no_zero = 'X'. in that particular field. then if no value for that field then it will display space in the output.
wa_fieldcat-fieldname = 'ZQUAN'.
wa_fieldcat-seltext_l = 'Quantity'.
wa_fieldcat-outputlen = '13'.
wa_fieldcat-no_out = ' '.
wa_fieldcat-no_zero = 'X'. wa_fieldcat-hotspot = ' '.
wa_fieldcat-key = ' '.
wa_fieldcat-do_sum = 'X'.
wa_fieldcat-qfieldname = ' '.
wa_fieldcat-ref_tabname = ' '.
wa_fieldcat-just = ' '.
Regards,
Priya -
COPA reports - Quantity in alternative Unit of Measure
Hi all
My clients requirement is to dispaly quantities in both base UoM and alternative UoM in COPA reports. Alternative unit of measure and the conversion factor is maintained in the additional data of material master. After reading through several forums and documentation, i understand that this can be achieved using COPA enhancement COPA0005.
I am thinking of creating new value field to store the quantity in alternative UoM and to calculate the required quantity using the conversion factors in MARM table.
But I have a few questions regading the same.
1. There are 2 function modules EXIT_SAPLKEII_001 and EXIT_SAPLKEII_002. Which one should i be using for my purpose?
2. Should enchanement COPA0003 be actived first to make COPA0005 active?
3. Is any other configuration required apart from created in new value field for quantity in alternative UoM.
Thanks
Vamsi
Edited by: VamsiM on Mar 17, 2011 7:21 PMThanks Ajay for ur reply.
When I created the quantity value field (say VVXXX), added it to Op. Concern and regenerated the structure; the system itself created the quantity unit field VVXXX_ME for alt UoM. This field is also added to field catalougue and is also readily avialable for used in KE30. So I didn't have to create a new Characteristic.
In my case, the alternative UoM is not the same and depends on the material. -
Interactive report search field with autocomplete , is it possible ?
Hi all,
As you know the APEX provides an in-built search for interactive reports . I would like to know if its possible to add autocomplete feature to this ?
Thanks & regards
UmerIts nor working for me .
1) I created an textfiled item- P2_REPORT_SEARCH
2) added an interadctive report with the source as
SELECT * FROM (
select "WSR"."ID" as "ID",
"WSR"."USER_ID" as "USER_ID",
"WSR"."FROM_DATE" as "FROM_DATE",
"WSR"."TO_DATE" as "TO_DATE",
"WSR"."ACTIVITIES" as "ACTIVITIES",
"WSR"."PROJECT" as "PROJECT",
'delete' from
"WSR" "WSR"
where
("WSR"."USER_ID" = NVL(v('APP_USER'),USER) OR NVL(v('APP_USER'),USER) = 'ADMIN' ) AND (
"WSR"."FROM_DATE"=to_char(sysdate+ (2-to_char(sysdate,'D')))
where (
instr(upper("USER_ID"),upper(nvl(:P2_REPORT_SEARCH,"USER_ID"))) > 0 or
instr(upper("ACTIVITIES"),upper(nvl(:P2_REPORT_SEARCH,"ACTIVITIES"))) > 0
instr(upper("PROJECT"),upper(nvl(:P2_REPORT_SEARCH,"PROJECT"))) > 0
)3) added the folowing query to html header ,
<script>
apex.jQuery('#report_' + pId + '_catch').trigger('apexbeforerefresh', pId);
var l_URL =
'p='+$v('pFlowId')+':'+$v('pFlowStepId')+':'+$v('pInstance')+':FLOW_PPR_OUTPUT_R'+pId+'_';
if (pRefreshMode) {
if (pRefreshMode === 'current'){
// do nothing to url here
} else if (pRefreshMode === 'reset') {
l_URL += 'reset_R_' + pId;
} else {
if (!!pSort) {
l_URL += pSort+'::RP&fsp_region_id='+pId;
} else {
l_URL +=
'pg_R_'+pId+':NO&pg_max_rows='+pMax+'&pg_min_row='+pMin+'&pg_rows_fetched='+pFetched;
l_URL += ':NO::P2_REPORT_SEARCH:' + $('#P2_REPORT_SEARCH').val();
var lRequest = new apex.ajax.url(l_URL,
function(pResponse){
var l_s = pResponse.readyState;
var l_Id = lRequest.report_id;
if(l_s == 1){
}else if(l_s == 2||l_s == 3){
}else if(l_s == 4){
var lTemp = $u_js_temp_drop();
apex.jQuery('#report_'+l_Id+'_catch').attr('id', 'report_'+l_Id+'_catch_old');
apex.jQuery(lTemp).html(pResponse.responseText);
apex.jQuery('#report_'+l_Id+'_catch_old').replaceWith(apex.jQuery('#report_'+l_Id+'_catch'));
apex.jQuery(lTemp).empty();
apex.jQuery('#report_' + pId + '_catch').trigger('apexafterrefresh', pId);
}else{return false;}
lRequest.report_id = pId;
lRequest._get();
return;
</script>
4) a dynamic action:
>
Name: Instant Search
Event: Key Release
Items: P2_REPORT_SEARCH
Condition: No Condition
Action: Refresh
Fire when event result is: True
Selection type: Region
Region: WSR(Interactive reoprt region)5) When I enter the query in P2_REPORT_SEARCH , no change happens in the result set of IR
Edited by: Nice1 on May 16, 2012 1:12 AM -
Download file with fields with decimal values.
Hi,
I need to download infotype records to a file.
I need a comma deleimited file.
I have got all the details from Infotype to my internal table 'IT_OUTPUT_OPR'
my code is as follows:
LOOP AT IT_OUTPUT_OPR.
CLEAR IT_FILE_OPR.
NUM = 0.
DO.
Get name of next structure field into <f>
ASSIGN COMPONENT SY-INDEX OF STRUCTURE IT_OUTPUT_OPR TO <F>.
IF SY-SUBRC <> 0. EXIT. ENDIF. " No more fields in structure
LEN = STRLEN( <F> ).
IT_FILE_OPR+NUM = <F>. " Write field to output table
NUM = NUM + LEN.
WRITE: ',' TO IT_FILE_OPR+NUM(DELIMIT_LEN).
NUM = NUM + DELIMIT_LEN.
ENDDO.
APPEND IT_FILE_OPR.
ENDLOOP.
my internal table contains 'decimal' fields too.
so I am getting the following runtim error: 'OBJECTS_NOT_CHARLIKE'
at the position:
LEN = STRLEN( <F> ).
Please could anyone tell me how could this issue be resolved?
any pointers in this regard would be helpful.
Thanks,
SaherTry something like following
LOOP AT IT_OUTPUT_OPR.
CLEAR IT_FILE_OPR.
NUM = 0.
DO.
* Get name of next structure field into <f>
ASSIGN COMPONENT SY-INDEX OF STRUCTURE IT_OUTPUT_OPR TO <F>.
IF SY-SUBRC <> 0. EXIT. ENDIF. " No more fields in structure
* LEN = STRLEN( <F> ). "DELETE
DESCRIBE FIELD <F> OUTPUT-LENGTH LEN. "INSERT
IT_FILE_OPR+NUM = <F>. " Write field to output table
NUM = NUM + LEN.
WRITE: ',' TO IT_FILE_OPR+NUM(DELIMIT_LEN).
NUM = NUM + DELIMIT_LEN.
ENDDO.
APPEND IT_FILE_OPR.
ENDLOOP. -
Displaying the quantity field in decimal values
hi
I have created a web dynpro application,and I am calling BAPI functional module from that webdynpro application.
Now the output is being displayed in the second view by giving the input from the first view.
Now my problem is that the quantity value is being displayed as "5" and whereas It should be "5.00".
Is there any setting to be done from the properties end of that particular table.
Please suggest me in this issue.
thanks and regards
krisHi Gopi,
The property in question is "calculated". This is a property of a context value attribute. So select the value attribute in the context to which your field is bound and view the properties. Set "calculated=true". It will generate the accessors.
In the setter method, add the following piece of code:
public void set<your attribute name>(IPrivate<your component>View.IContextElement element, java.lang.String value)
DecimalFormat df = new DecimalFormat("#.00");
value = df.format(value).toString();
Regards,
Satyajit
Message was edited by: Satyajit Chakraborty
Message was edited by: Satyajit Chakraborty -
Calculated field with decimal place
Hello,
if I create calculated field in a table using formula e.g., ColumnName/ 60, where format of ColumnName is INT (total ammount of minutes) in order to get hours, I get only integer part, not decimal. E.g., 80 (minutes)/60 =1.3333 but, in calculated field
I see only 1 hrs without possibility to change format of the field.
Can calculated field be used on this way? (My wish is to get 1.3 in that field)
How?
ThanksOf course the calculated field/column can not be an INT, if it is then change that.
Does something like this work?CAST(ColumnName/60 AS Decimal(10,2)) -
Issue with Decimal Notation in BEX.
HI BW Experts !!
Can any one help on this please.
Thanks a million in advance.
InfoCube: Equipment Barometer InfoCube (Technical Name: ZRLC_BAR)
Key Figure: Month to Date Income (Technical Name: ZRL_MTDIN)
If I execute the query with the Month/Year = 10.2004 and I compare it with the data in the infocube in the same period I'll see the following data:
Query= 611303.49 (correct amount)
InfoCube=6113034.92 (Wrong amount, is divided by 10)
Always the amounts in the query(BEX) is divided by 10.
If someone can help me i will appreciate.Hi Marcos,
In Query edit mode, goto properties of key figure (right-click on the ZRL_MTDIN), and select 'Nothing Defined' for the scaling factor.
This should work.
Regards,
Vikrant. -
Hi all,
How to define a field to hold the data of decimals.?
I would like to define a field in such a way that it shoudl hold values like 123456789.55
Regards
Pavandata : amount type p(11) decimals 2.
regards,
Advait
Edited by: Advait Gode on Oct 1, 2008 2:41 PM -
Rounding a quantity field to one decimal place. PLEASE URGENT
I have a quantity field with three decimal places. I have to print this field with only one decimal place. This is in a smartform.
suppose: qty = 45.678
I want it to be printed as 45.7
Thanks in advance.Hi Riki,
I think you can use Function Module ROUND to round off the value...
REPORT ZTEST_SHAIL4 .
data: out type p decimals 1,
inp type f.
inp = '45.678'.
CALL FUNCTION 'ROUND'
EXPORTING
DECIMALS =
input = inp
SIGN = ' '
IMPORTING
OUTPUT = out
EXCEPTIONS
INPUT_INVALID = 1
OVERFLOW = 2
TYPE_INVALID = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Now use the variable 'out' to display the rounded off value...
Regards,
SP. -
Quantity field to one decimal place. PLEASE URGENT
I have a quantity field with three decimal places. I have to print this field with only one decimal place. This is in a smartform.
suppose: qty = 45.678
I want it to be printed as 45.7
Thanks in advance.Create one more variable in Global definitions with only 1 decimal place.
Assign value of qty to this new variable.
SAP automatically takes care of the rounding.
And then print this new variable rather than qty.
You can write all these in a code block. -
Regional Settings Decimal Notation
Hi - Quick question here
I want to default a specific Decimal Notation for our field sales team and do not want them to have to go to the Personalize menu to change. How do I do this? I have reviewed the Admin Guide but could not find any details on how to do this.
Thanks,
JeffHi Jeff,
The decimal notation depends on the personalized settings of each user.
In the current release of the system these changes are user specific i.e. all your users will have to change it with their respective logins to be able to use the required decimal notation.
I’ve heard there is a plan to deliver a report which enables changing decimal notation for mass employees, but there is no commitment for this.
Best Regards,
Cristiano Rosa -
Default decimal notation in user profile
Dear All,
Is there any way by which we can ignore decimal notation saved in user profile.
I need to set the decimal notation 1,234,567.89 irrelevant of user profile setting. If user has saved any other optios for decimal notation in user profile then also i need to set the decimal notation as 1,234,567.89.
Thanks a adv.Hello
So, for this I have created in OY01 three countries:
Z1 with decimal notation 1.234.567,89
Z2 with decimal notation 1,234,567.89
Z3 with decimal notation 1 234 567,89
When I need to use in report some decimal notation I set particular country:
set country 'Z1'. " output will be in format 1.234.567,89
" or
set country 'Z2'. " output will be in format 1,234,567.89
" or
set country 'Z3'. " output will be in format 1 234 567,89
Maybe you are looking for
-
How to run a java program in command prompt
hi i want to run a java program from in command prompt from another directory i want to run a file named First in C:\Program Files\Java\jdk1.6.0_07\bin so when i give the command java "C:\Program Files\Java\jdk1.6.0_07\bin\First" it doesnt works it s
-
Hard Drive was replaced, but now can't get Apple Backup to restore data
My iMac had a damaged hard drive, so I replaced it and reinstalled Mac OS 10.4, along with iLife 06. My iMac is now up and running again (prior to hard drive replacement it froze and was then unable to get up and running again without repeated attemp
-
Export Final Cut XML - All clips missing in timeline
Dear All I'm trying to export a sequence from Premiere to import in Final Cut Pro. When importing in Final Cut, no clips are present in the Audio tracks and the timeline is only 12 minutes long - it's supposed to be 50 minutes long. I've checked that
-
How can I disable administration port?
Hello By a mistake I enabled the domain-wide administration port, and now I can't log into the console. Which file can I edit to disable the domain-wide administration port, without using the console? Thanks!
-
I am currently running 10.7.5 on my macbook. I tried downloading Mountain Lion application...but it says 'error'',,,is there another way to upgrade my OS?