Currency and quantity field allignment in smartforms
hi experts
i am facing problem in smartforms allignment for currency and quantity fields. these fields are not coming exactly on the same line of the other fields with char types. please help me resolving it.
Moved to Crrect Forum
Edited by: Vijay Babu Dudla on Apr 6, 2009 4:38 AM
&wa_vbap-kwmeng(C)&
adjust with left and right alignment.
it will definately work.
what happend? isn't ur problem solved?
Edited by: MONIKA DHUMAL on Apr 6, 2009 4:38 PM
Similar Messages
-
Handling currency and quantity fields in smartforms
Hi,
can i know how to handle currency and quantity fields in smartforms.
i have to display ZMENG field of VBAP table but it is not getting displayed.
i have given the details in CURRENCY AND QUANTITY tab in the GLOBAL DEFINITIONS.
Thanks,
BJR.Hi
Did u pass that value in the INPUT and OUTPUT parameters where u r calling that field...
if u have not included that in The Currency/Quant Tab will get an Error Message.....
and &VBAP-ZMENG& ..in the text
surya -
Currency and quantity fields in Smartforms
Hi Experts,
How to refer currency and quantity fields , in my form i am using FAKING and NETWR fields,
in global definitions one tab is there currency and quantity fields in that in filed name column what i have to give and reference filed , PLease can u you give some examples, so that i can understand easily...
Useful answers are awarded.
ThanksThe 'Currency/Quant. Fields' tab in the Global definitions allows you to link the field containing a value to the field containing its unit of measure.
For example, my purchase order has two line items, one is for 6 eggs (which have unit of measure PC) and 2.5 kilogramms of flour (UOM is KG). When these are written on the output the eggs have no decimal places, the flour has 2 (this is defined in configuration). So;
Eggs 6 PC
Flour 2.50 KG
This happens only if I specify in the 'Currency/Quant. Fields' tab the field that holds my quantity and the reference field that hold the UOM, and specify data type QUAN. Same concept applies for currency where they have different numbers of decimal places (for example Japanese Yen is always expressed as a whole number with no decimals).
Regards,
Nick -
Problem with currency and quantity field
Hi,
I have done a couple of BDC and watched that if some currency or quantity field is there and i want to run the BDC the particular currency/quantity field will not populate the value inspite of i have declared the same table field that it refers to in the screen in the internal table.
But, if i declare a character string in the internal field having same length as the screen field it will populate at run time. Why so?
Regards
SandeepHi,
Even i have experienced the same problem many a times and use a character string as a work around to solve it.
I guess one reason for it is for the currency and quantity fields, the actual defined length and the output length are different with output length being 3 or 4 bytes greater than that of actual lenght and also the fact that these fields are always right justified. hence some bytes of the field is getting truncated which the system does not allow and discards the whole value.
regards,
Mahesh -
Currency and Quantity fields in Nested Table
Hallo Experts,
I have created a Interface with import Sturcture SLS_PRT_COM. This Sturcture have many nested Sturctures. Now I created a Table type ZEBFO with line type VBDPA. VBDPA has many currency and quantity fields such like GEWEI.
Now I have created internal Table of ZEBFO.
Declare the nested Quantity field in the Currency/Quantity Fields section, using the autofiller (the buttons to the right of the field).
Create an adobe form for it and a program and execute it.
Dump
The following syntax error occurred in program "/1BCDWB/SAPLSM00000034 " in
include "/1BCDWB/LSM00000034F01 " in
line 1769:
"Field "VBDPA-GEWEI" unknown. "."
can somebody help me what shall I do.
Thanks
Best regards
Waseem Rana
Edited by: ranawaseem165 on Feb 17, 2012 9:14 AMHi,
When Creating a Structure ,include currency and quantity Fields in the same structure and Refere those as currency and
Quantity Fields.
In the Form when click on Currency/Quantity Fields,they automatically visible and you can add them .
Thanks.
uma -
About Currency and Quantity Fields
How does the Currency and Quantity fields are set to a field in a Table, created in SE11
can you please send examples of each
Thankyouhi,
its same like any other field.
but one difference :- <i>the reference field is requires.</i>
<i>why reference field?</i>
The reference field is used for the output, the output/input format of a currency field depends on the value of its reference field.
For example if you create a screen using the field KONV-KBETR :
the reference field is RV61A-AWEI1:
if you set RV61A-AWEI1 = 3
the value in KONV-KBETR is beeing shown with 3 decimals
So you could see 3,000 but this value is automatically stored as 30.00
if you set RV61A-AWEI1 = 2
the value in KONV-KBETR is beeing shown with 2 decimals
All this convertions are automatically made in according to the value setted in reference field.
You can see this using the statament WRITE with options CURRENCY, try this:
PARAMETERS P_KBETR LIKE KONV-KBETR.
WRITE: P_KBETR CURRENCY '3'.
WRITE: / P_KBETR CURRENCY '2'.
WRITE: / P_KBETR CURRENCY '1'.
Hope u gor the idea
Rgds
Anver -
Currency and Quantity fields problem in FM
Hi ALL
<b>Can anyone help me on this. Very Urgent</b>
I created a FM, in that i used NETPR,MENGE,WEMNG.(CURRENCY , QUANTITY ) fields.
When i am trying to activate, it is asking for reference fields.
I don't know how to resolve it...
Regards
Prabhakarhi,
pls refer to this thread for use...
how can create a function module for currency and quantity fields
Message was edited by: Ganesh Sundarakrishnan -
Can u pls tell what r the currency and quantity fields in detail.
hi to all can u pls teell
can u pls tell what r the currency and quantity fields in detail.
what is reference table .and reference fields .why we r giving theese reference table names while creating the currency fields .Hi,
Currency amount fields and quantity fields are numeric fields which each have a currency or unit field assigned to them. The correct interpretation of the values in these fields depends on its currency or unit of measure. Therefore, you can decide whether you want their corresponding currency/unit of measure to be displayed before or after the field, or not at all. Proceed as follows:
1. Select the field.
2. Choose one of the options from the window on the lower left (before, No currency field/unit, or after).
3. Choose Apply.
For more information check the following link:
http://help.sap.com/saphelp_nw04/helpdata/en/0b/5da4e42cf511d5b692006094192fe3/frameset.htm
Following are system variables of currency:
SY-CCURS
R/2 - exchange rate and result field for CURRENCY CONVERSION. Not filled in R/3.
SY-CCURT
R/2 - table exchange rate for CURRENCY CONVERSION. Not filled in R/3.
SY-CDATE
R/2 - exchange rate date for CURRENCY CONVERSION. Not filled in R/3.
SY-CTABL
R/2 - exchange rate table for CURRENCY CONVERSION. Not filled in R/3.
SY-CTYPE
R/2 - exchange rate type for CURRENCY CONVERSION. Not filled in R/3.
SY-DCSYS
Dialog system of the R/2 System. Not filled in R/3.
SY-WAERS
Formerly the company code currency after reading a posting segment. Not filled in R/3.
Regards,
Bhaskar -
Help for search help and currency and quantity fields
hi,
please help me for creating search help and when the currency and quantity fields are used please expalin this with steps as i am a learner..
regards
raj.Hi Rachu,
Welcome To SDN
Help On Search Help
Go to se11
Select radio button Search help
click on create
and select elementary seacrh help
selection method---->tablename or viewname
press f1 in search help exit we will get a FM named as
F4IF_SHLP_EXIT_EXAMPLE.copy that FM from se37 in to Zprogram.we have a record_tab for copying the view by using this tab we can restrict the values from the view or table.this values are populate into another table .Then ,
come to se11
and in our seacrh help we will pass components of the search help
Source: https://forums.sdn.sap.com/click.jspa?searchID=14985345&messageID=5618016
Help On Currency and Quantity Fields:
Whenever you have to maintain fields for currencies and quantites u need to refer them to currency key and quantity key which also have to be present in the table.
If suppose you are creating a table for Employee. And suppose that fields would be like :
EMPID -
employee id
EMPNAME
employee name
DEPARTMENT --- department
SALARY -- salary ( Data Type u2013 CURR )
WEIGHT -
weight of the employee ( Data Type -- QUAN )
Now the fields SALARY AND WEIGHT fields should refer to currency and quantity keys. So you need to have two more fields like
CURRKEY --- Data Type ( Cuky )
Quantity --- Data Type ( Unit )
Now we have to attach the field Currkey to the field Salary
And the field Quantity to the field Weight
So when u create a table you can see a tab Currency / Quantity fields.
Here You can give the reference table and the reference field against the salary and weight fields.
Source: https://forums.sdn.sap.com/click.jspa?searchID=14985456&messageID=5692074 -
Problem in currency and quantity field
Hi,
I have done a couple of BDC and watched that if some currency or quantity field is there and i want to run the BDC the particular currency/quantity field will not populate the value inspite of i have declared the same table field that it refers to in the screen in the internal table.
But, if i declare a character string in the internal field having same length as the screen field it will populate at run time. Why so?
Regards
SandeepHi Sandeep,
This is a common problem, when carrying out BDC.
For example, while recording you met with the 2 fields --> MSEG-DMBTR (Curr) and MSEG-MENGE(Quantity).
Go to SE11 --> MSEG --> Search for DMBTR --> Double click on the Data Element i.e. DMBTR --> Double Click on the domain WERTZ --> You can see under the block Output Characteristics : Output Length = 16.
While declaring the TYPES Structure, make it CHAR(16).
Similarly for MENGE --> Data Element : MENGE_D --> Domain : MENGE13 --> Output Length = 17.
Make it CHAR(17).
Consider this technique as the Rule-of-Thumb while doing BDC.
Regards,
Abir
Don't forget to award points * -
Using Currency and Quantity fields in View
Hi BW Experts,
I Created a Generic Data Source and tried to include a view in it for Extraction.since my view contains fields of type Currency and Quantity,it is not allowing.
What can be done for this.If I want to include them for my Extaction process how it can be done.
Please clarify.Hi sapient,
you must check in the table of your view in Tab Help Value what Currency/Unit field must correspond to your quantity/value fields in view, then you muast insert these fields in your view and DataSource with inserting directly the corresponding table in the view or inserting valu via CMOD.
Ciao.
Riccardo. -
Regarding currency and quantity fields
i hav to fill one field with the calculated value of currency and the field of type DEC as below
wa_final_unitprice = currency field/DEC field.
how to declare that field in data dictionary as i hav to create ztable.
and i hav to fill another field as
wa_final_val = (wa_final_unitprice * quantity field)
how to declare wa_final_val field?
plz help me in this.HI,
At table level you declare like currency only for that feild-c.
For Ex: feild-C = feild-A * feild-B.
But to get the value in the feild-c you need to create a table maintainece generator. In that you write Events. In Table control after save event (02) you need write the code like below.
feild-C = feild-A * feild-B.
to go the events, go to se11 maintain feilds and activate.
Then go to Utilities -
> Tabel Maintanence Generator
now go to Environment ---> Modification ---> Events
Many Thanks,
Raghu. -
Summing of currency and quantity fields individually
hi experts
From Table BSIS fields are BELNR, BUDAT, DMBTR, MENGE required output is quantity and
currencey fields should be sum at line item level.write a program ?
regds
Venkyselect belnr budat DMBTR MENGE FROM BSIS INTO table it_bsis.
loop at it_bsis.
AT NEW BUDAT.
SUM.
ENDAT.
ENDLOOP.
SUM----
IT WILL AUTOMATICALLY SUMS THE QUANTITY AND CURRENCY , INTEGER FIELDS -
How can create a function module for currency and quantity fields
hi,
i want to create a function module with some fields.when i activated it give some errors for
netpr,menge,wemng fields(currency, quantity fields).error is it asks for reference fields.
please send me solution for it.
sreenu.Hi Sreenu,
While creating CURRENCY/QUANTITY fields in the DataBase Table, you have to enter a REFERENCE TABLE and a REFERENCE FIELD to the field.
For that, after entering the field name and the data type in the correcponding columns, you have to place the cursor on the data type of the required field and click the CURRENCY/QUANTITY FIELDS tab. You will find two columns called REFERENCE TABLE and a REFERENCE FIELD.
you have to enter a reference table in which a currency/quantity field is used and a reference field which is a currency/quantity field in that table.
For Example, below is the table details.
FIELD DATATYPE LENGTH DEC.PLACES REF.TABLE REF.FIELD
1.SNO CHAR 5
2.AMOUNT CURR 10 2 T001 WAERS
3.NOS QUAN 5 KNA1 /VSO/R_PAL_UL
Here Field 2(AMOUNT) is a CURR field whose Ref. Table is T001 and Ref. Field is WAERS and Field 3(NOS) is a QUAN field whose Ref. Table is KNA1 and Ref. Field is /VSO/R_PAL_UL.
Hope this will help you.
Regards,
Vaitheeswaran -
Diff. between currency and unit fields
Hi All,
What is the diff. between 0DOC_CURRCY and 0CURRENCY, OUNIT and 0BASE_UOM? In which scenarios do we use each of them?
I have a flat file which contains some values for sales and quantity but does not have any units. So I have to upload them using constant currency and unit. now, I have to create my own keyfigures for the sales and quantity. What currency and unit fields should I use i.e 0CURRENCY or 0DOC_CURRCY and OUNIT or 0BASE_UOM?
Thanks a lot,
James.hi James,
0doc_currency, 0currency share the same master data->0currency, 0unit, 0base_uom share the same master data->0unit, the 'basic' infoobject is 0currency and 0unit, all currency and unit will have reference to these infoobjects.
currency is used for keyfigures amount, with currency e.g usd, gbp, etc.
unit for keyfigures quantity, with unit like KG, CM etc.
currency tables are TCUR* and unit table T006*
you can use any of these infoobject currency or unit in your keyfigure (RSD2) or fix value like USD etc, normaly 0doc_currcy used for document currency; 0loc_currcy for local currency, you can create your own infoobject currency/unit with RSD3.
hope this helps.
Maybe you are looking for
-
I was playing with my ipad settings and noted in he advanced settings of Safari there was a place to view "website databases". When I selected this I saw a multitude of websites. Can anyone tell me how these get there? Can a website be posted even
-
Microsoft Windows XP Professional Service Pack 3 (Build 2600) To Be Filled By O.E.M. To Be Filled By O.E.M. iTunes 11.0.0.163 QuickTime 7.1 FairPlay 2.2.32 Apple Application Support 2.3.2 iPod 更新程序库 10.0d2 CD Driver 2.2.3.0 CD Driver DLL 2.1.3.1 Appl
-
Calling webservice from Adobe interactive form
Hi, I have created RFC based webservice and Adobe form. I have imported the wsdl into my data connection and mapped my fields accordingly. I have created a pdf and i m trying to call the webservice , initially it pops up 'A webservice is being calle
-
Shared Itunes Files, Windows 7
I have installed iTunes on my Windows 7 PC (I will call it A). All the source music files are on a disk M: local to my PC The iTunes folders are on a disk I: local to my PC. Both disks are shared with everyone (r/w) and also in the music library (als
-
Problem using JSF + ajax4jsf:poll component
I have the following problem. I have JSF page and ajax4jsf:poll component on it for polling the server. There are also couple links and buttons on the page, At first, when polling is not enabled the links and buttons work fine. But after enabling pol