BEX 3.5 To display amount and currency field side by side in report
Hello Gurus,
I have requirement where in i have a HR report and as per the requirement the users want to see in the BEx 3.5 report to show the currency and amount field side by side
example: I need to show 6 key figure(Amount) and their original currency side by side in the report as below
2009 Bonus Currency 2009 incentive Curr 2009 Salary curr
1,000 GBP 1,000 USD 1,000 INR
We have created a formula for the mentioned 3 key figures with NODIM to replace the currency. But we could not able to achieve by bringing the currency side by side
Thanks in advance
Venka
Hi,
Normally ther should be a another field should be there along with amount some currency either dco currency ,loc currency those fileds are assigend to the info object like 0currency
we can go with structure at columns level u bring one as amount bouns(RKF may be) besides that u keep currency then another RKF and currency like that u can keep an d try to see the data at report level.
Thanks & regards,
sathisj
Similar Messages
-
Amount and Quantity field during MIR7
Hello Experts,
My client wants to keep Amount and Quantity field in display mode for particular user during parking of Invoice(MIR7)
Is there any way to achieve this.
Thanks and Regards
Gyaneshgo for varients
in SHD0 transaction
here you can try to make fields display mode -
Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..
Dear friends,
I am attempting write a dymanic Select Statement (with joins).
And the sleect query looks like this..
SELECT (LT_SEL_LIST)
INTO CORRESPONDING FIELDS OF
TABLE <DYN_TABLE>
FROM (LT_FROM_LIST)
WHERE (LT_WHERE3).
Here the into table is a dynamically created internal table..
which is created by ...this
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IT_OUTPUT2[]
IMPORTING
EP_TABLE = DY_TABLE.
the it_output2 contains the the fieldcatlog information of dynamically given fields :-
like:-
TABNAME
FIELDNAME
DATATYPE
LENG
INTTYPE
ROLLNAME
DECIMALS
REFTABLE
REFFIELD
i mean the internal table is constructed with reference to all the bove metadata.
Problem:- This query run fine with all the fields Except AMOUNT AND QUANTITY fields....
When the selection list contain VBAK-NETWR or MSEG-MENGE..It throws a runtime error.
"The data read during a SLECT access couldnt be inserted into the target field,either conversion is not supported for
the target field's type or the target field is too short."
after this I even tried to construct the dynamic table with CFILEDNAME and QFIELDNAME in the Fieldcatalog.
so now my fieldcatlog looks like this:---
LOOP AT IT_DD03L..
IF IT_DD03L-DATATYPE = 'CURR'.
TABLEFIELD-CFIELDNAME = IT_DD03L-FIELDNAME .
ENDIF.
IF IT_FIELDCAT3-DATATYPE = 'QUAN'.
TABLEFIELD-QFIELDNAME = IT_DD03L-FIELDNAME .
ENDIF.
TABLEFIELD-TABNAME = IT_DD03L-TABNAME.
TABLEFIELD-FIELDNAME = IT_DD03L-FIELDNAME.
TABLEFIELD-DATATYPE = IT_DD03L-DATATYPE.
TABLEFIELD-INTLEN = IT_DD03L-LENG.
TABLEFIELD-INTTYPE = IT_DD03L-INTTYPE .
TABLEFIELD-ROLLNAME = IT_DD03L-ROLLNAME.
TABLEFIELD-DECIMALS = IT_DD03L-DECIMALS.
TABLEFIELD-REF_TABLE = IT_DD03L-REFTABLE.
TABLEFIELD-REF_FIELD = IT_DD03L-REFFIELD.
APPEND TABLEFIELD.
CLEAR TABLEFIELD.
ENDLOOP.
Note:- this is a test code so ignore performance issues...
Please help me with some code ...to avoid the Runtime erorr.
Thanks,
jeevan.Hi Jeevan,
Why are moving only few fields from DD03L table to your field catalog? Why don't you use move-corresponding? The following code works for me in ECC6.0.
data: it_dd03l type table of dd03l initial size 0,
ls_dd03l type dd03l,
lt_fldcat TYPE lvc_t_fcat,
ls_fldcat TYPE lvc_s_fcat,
ls_where(72) TYPE c,
lt_where LIKE TABLE OF ls_where,
lt_fld LIKE TABLE OF ls_where,
lt_data_dy TYPE REF TO data.
field-symbols: <ft_data> TYPE STANDARD TABLE.
select * into table it_dd03l from dd03l
where tabname = 'VBAK'
and ( fieldname = 'VBELN' or fieldname = 'NETWR' ).
check sy-subrc eq 0.
loop at it_dd03l into ls_dd03l.
move-corresponding ls_dd03l to ls_fldcat.
append ls_fldcat to lt_fldcat.
move ls_dd03l-fieldname to ls_where.
append ls_where to lt_fld.
if ls_dd03l-fieldname = 'VBELN'.
clear ls_where.
concatenate ls_dd03l-fieldname ' <> ''''' into ls_where.
append ls_where to lt_where.
endif.
endloop.
check not lt_fldcat is initial.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_fldcat
IMPORTING
ep_table = lt_data_dy
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
IF sy-subrc <> 0.
RAISE no_configuration_data.
ENDIF.
ASSIGN lt_data_dy->* TO <ft_data>.
check sy-subrc eq 0.
select (lt_fld) from VBAK into corresponding fields of table
<ft_data>
where (lt_where).
Thanks
Bala -
MS Word Web Service Interface: bad format of date and currency fields
Hi,
I am using MS Word Web Service interface to create contract documents. However, my date and currency fields show in a strange format. Date is in"YYYY-MM-DD" format, while currencies always have "." as decimal separator (probably technical values). My user settings are "DD.MM.YYYY" for dates and "n.nnn,dd" for decimal numbers.
My workaround is to create a Z structure for WS interface with char fields and then do conversion through CRM_WST_RT_BADI->OUTBOUND_PROCESSING method. This works, but requires a lot of custom development.
Is there a way to "tell" the interface to use correct formats in MS Word without doing it all manually through custom fields?
Thanks!
KR,
IgorOh, indeed!
We might be closer than you think - I live close to Croatian-Slovenian border so we might pop out for a drink! But we can discuss this out of forum...
Now work again:
Is there any documentation on possible formatting keywords? I suppose it's possible to set up decimal places, custom date formats etc.
Cheers,
Igor -
How to delete zeros in layout for quantity and currency fields
Hi All
Iam getting zeros in place of quantity and currency field records, which i doesnt require in layout SAP-Script.
Please let me know if any one has an idea.
Regards
BhaskarHi,
Add NO-ZEROES statement to it.
or
U can use CONDENSE statement.
Cheers,
SImha. -
Urgent : Problem with Editable ALV Grid for Quantity and Currency Fields
Hi All,
I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
When user changes these values these values are not changing properly .
For the quantity field the domain is MENG13 with 3 deciamal places and here if we enter 500 it takes it as 0.500 .
The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
Here also it takes last 2 digits after decimal places by default.
Please advice how to get proper values in this case from ALV editable fields.
Thanks and Regards
Harshad
Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AMfor all the currency field , it will display like that only.
u have to manipulate uin program before displaying.
if they are giving 500, in program multiply with 100 and move it to table.
when u are getting from table, divinde and display.
this is what I am doing.
Reward if helpfull. -
Enhancing datasource for qty and currency fields gives error
Hi Everyone
i need some advice on the following
i am enhancing a datasource which contains some currency and quantity fields
when i check my datasource i get the following error
specify reference table AND reference field
below is more detail on it but i am not sure i know what is means
Diagnosis
You must specify reference tables and reference fields for fields containing currency amounts or quantity data. You have specified either only the reference field or the reference table and have not maintained either entry.
Procedure
Add the missing entry. You can do this with the single field maintenance function of the table.
i have tried ua=sing data element instaed of field name but still no luck
can anyone help?
Thankyou
PGHi,
When you enhace datasource for currency/quantity fields, you have to give reference fields and tables for that.
Please specify the reference field and reference table for the currency/quantity field.
Are you enhancing generic DS?
Thanks,
Praveen Tati -
Hi,
We have a custom Work Item we use to track RMA's. I've created a string property called RMA Number which is also used as a key.
RMAs do not have titles or any other identifying properties other than the unique RMA number (think incident number).
I was wondering what the best approach would be to set these other fields ("Title", "Display Name" and "Name") to the RMA Number value (RMAXXX), as I'm currently investigating using a powershell script via a workflow.
Thanks,
PietroHi Marcel,
I've come up with the following:
# Load the SMlets module
Import-Module SMlets
# Get the RMA Class
$RMAClass = Get-SCSMObject -Class (Get-SCSMClass -Name MyWorkItem$)
foreach ($RMA in $RMAClass)
$RMANumber = $RMA.RMANumber
$RMA | Set-SCSMObject -PropertyHashtable @{"DisplayName" = $RMANumber; “Title” = $RMANumber; ”Description” = $RMANumber; }
Is it possible to make it aware of which RMA work item executed it, and only update that one? Updating all the records each time a new one is created will cause some problems in the future.
Thanks,
Pietro -
Function module RFC_READ_RABLE and currency fields
I am using RFC_READ_TABLE to access table BSEG on a remote system. My problem is retrieving field PSWBT which is a currency field. The value is returned as 20202020203.43 and overwrites part of the next field too. The value should be 4,083.33
Does anyone have any experence with currency fields in this situation and can offer any advice?
Thanks & regards.Hi everyone,
Thank you for your help. I have now resolved the issue.
Yes I was using table FIELDS. Wim was correct that I also needed to use field PSWSL but this alone did not solve the problem. I had to define the currency field PSWBT as char 13. When the field was retrieved using RFC_READ_TABLE, I condensed the field and then moved it back to a currency field. As follows:
TYPES : BEGIN OF ty_accdoc,
pswbt(13),
pswsl type pswsl,
END OF ty_accdoc.
DATA : wa_accdoc TYPE ty_accdoc,
i_accdoc TYPE TABLE OF ty_accdoc.
DATA : wa-pswbt TYPE pswbt.
wa_fields-fieldname = 'PSWBT'. APPEND wa_fields TO i_fields.
wa_fields-fieldname = 'PSWSL'. APPEND wa_fields TO i_fields.
u2026u2026u2026 Call function u2018RFC_READ_TABLEu2019u2026u2026u2026u2026
CONDENSE wa_accdoc-pswbt NO-GAPS.
wa-pswbt = wa_accdoc2-pswbt.
Kind regards,
Alison -
How to Display Heirarchy and Character at a time in the report...
Hi
I have a req ...where I need to design a query to display a character and its heirarchy colum by colum...I mean, I have document type master data info object it has texts and Heirarchy data source...and we loaded this data...Also we have document type directly coming from ECC Transactional DS...Now When I take this document type and do not select heirarchy its displaying the document types (KN,KA ,KR etc...)..If I select the heirachy in my query..its displaying in heirarchy structure and the document types (KN,KA,KR ) are displaying as the last nodes. But I want to display the heirarchy and also the document type in 2 diff colums... how it would be possible..is there any thing needs to be done at query level / do i need to take a RKF / CKF and write any code to bring heir and info object value?
Iam bit confused here..pelase advice ASAP.
regardsyou cannot have the same character in the query twice. You can either have it in the hier format or just the char.
I am wondering why you need to display the same characters twice in each column.
The best way is to have them in the hier. format and in the char. properties expand the node level as you want so you will see them in the detail level.
assign points if helpful -
How to display CPU and memory utilization from ST06 in a report
Hi,
I want to display CPU Utilization and Memory utilization and File sys details from ST06 transaction in a report.
Is there any function module or any other method to do that.
Please advice.
Thanks,
Sandeep.Hi Ranganath,
Thanks for your time.
And thank you very much for the reply.
Both the function modules are helpful.
But can u also help me in getting the data of FileSys from ST06.
Thankyou,
Sandeep. -
MIRO issue (urgent!), amount and quantity fields are not captured from PO
Hi,
When we try to post thought MIRO using PO as reference, quantity and amount fields are not captured. We do MIGO first and then MIRO.
GR based invoice verification in the vendor master is selected and the check mark GR-based in the PO is selected too.
We're getting this MIRO issue for "all" PO and Service Entry Sheet.
We'll appreciate your recommendation in order to fix this critical issue as soon as possible.
Thanks in advance.I was looking for copy controls and other functions. Glad this is now resolved. You need to award yourself points!
Cheers. -
Sales order doc and item fields in customer line item report(FBL5N)
Hi All,
We have some billing documents and the accounting docs are created as well. However, in the FBL5N report, we are not able to display the sales order doc and item info even though the columns are avaliable in the layout.
Anyone can help?
Thanks,
TeoHiya,
You said you had the Order/Sales Doc field on the layout already.
Have you ever been able to view the Order? All I can view is the Billing Doc, and I would think that is logical, since the Order is not the immediately prceeding document for the Accounting Doc. The Accounting Doc is created off the Billing Doc and that is what is updated in BSEG. The Sales Order is not updated in BSEG (I haven't seen that happen).
In the event of a GR into stock posting, the Product Cost Collector or PO is the immediately preceeding document and hence updated in BSEG.
Cheers. -
Using SELECT_OPTIONS in Web Dynpro with currency fields
I have an application where I use SELECT_OPTIONS to gather search parameter values for a query which has amount and currency fields. In my WDDOINIT, I am calling add_selection_field to add the fields that I wish to use to search. One of the fields is a currency key and another is the amount. The query returns the found data in an ALV and each record has its amount formatted correctly based on the currency key field in each record. This all works as it should.
However, the search parameter for the amount field is always formatted based on its data type and not on the other search parameter with the currency key. The currency key field does not allow multiples so it is either present or not (using the default would be fine if the currency key is not specified). If it is specified, I would like it to format the amount.low and amount.high input fields correctly.
For example, if I enter 'USD' in the currency key search field and '10' and '20' in the amount from/to fields, respectively, when I press the search button or hit enter, both the amount to/from fields' display changes to '10,00000' and '20,00000', respectively which is the data type definition of CURR19,5.
I found no documentation on how to handle formatting of currency or quantities in the search fields when using SELECT_OPTIONS. Has anyone solved this problem? I looked at all the parameters to the add_selection_field method and cold not find a way to associate the currency key to the amount. Any help would be greatly appreciated.Hi Mark,
I don't think, it is possible to get the currency key reference for the amount fields in selection screen by using IF_WD_SELECT_OPTIONS.
I would suggest you the below work around option
If you do not have the requirement of passing multiple values in either currency key field or amount field, you can go for normal input fields to design your input screen.
Create a structure with 3 fields , CURR, AMT_LOW, AMT_HIGH
Use currency reference field in structure with self structure name and CURR field, so that amount fields refer to the same structure's currency key
Create a node by using this structure and design the input fields from this context node
Now, the amount fields have the reference of currency key from the structure and it should work fine
Hope this helps you.
Regards,
Rama -
Error in smart form with currency fields
while i am using with currency fields in samrt forms error is comming in while i am giving print-preview in se38 "<b>Reference field WA_EKPO-NETPR unknown in form."</b>
In smart forms if we want to display quantity and currency fields. We cannott directly display currency field and quantity fields.
To display the mdo like this
Ex: GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
Close the thread once your question is answered.
Regards,
SaiRam
Maybe you are looking for
-
Error when using DBMS_SQL.parse
Has anyone ever ran into this error "ORA-00932: inconsistent datatypes: expected NUMBER got DATE" when using DBMS_SQL.parse? I'm trying to pass in a sql statement that includes date columns but it keeps failing during the parse step. If I put a "to_c
-
The 'x' to close each tab has disappeared. How can I get it back?
The 'x' in the left hand corner of each tab has suddenly disappeared. When I hover over it, it does not appear either. How can I get the 'x' back? I am using Mountain Lion OSX 10.8.4 and Safari Version 6.0.5 Thank you
-
Ok, so my iTunes was not working properly, so I decided to uninstall everything. I uninstalled iTunes just fine, but am having a really hard time uninstalling Quicktime. Everytime I try to uninstall the program, it will tell me that an error occured
-
CFImage Functions and DPI / Image Quality.
I am doing some work that involves taking images supplied from a product called Fotoweb and putting them into PDF files using cfdocument. We are noticing a degradation in image quality that seems to be coldfusion related. In the code below I am readi
-
Can I turn off mail threads?
When I get Pictures in a email I get duplicates because it is titled 33 (example) pictures for you and it pulls up every grouping of 33 (example) pictures from previous emails. It loads every grouping and is not necessary. can I turn this feature off