Problem on menge field i.e. quantity field
hi folks,
In CS01 i.e BOM creation if you put the quantity field at item level it gets stored with commas i.e. if you put 1000 then it gets save as 1,000 .
When i am fetching these from database in program and doing some calculation the program is giving me dump on that value .
Can any body suggest me what i should do .
Hi Sandipan
1st answer - replace ',' commas with space.
2nd answer - Go to System -> userprofile -> own data then go to defaults over there and change the settings .
Reward points pls.
Regards
Deepanker
Similar Messages
-
Change quantity (MENGE) field in G/L posting
Hi gurus. I need to be able to change the quantity (BSEG/MENGE) field in a G/L document that has already been posted. I found the area in config to add the field to be able to change. So I made the change in config. Then I pulled up a document that already existed, but the field is still grayed out. I also created a new entry, then went back in to change mode, and the field is grayed out. Any ideas?
Thank you
JanetNot sure about my answer, but I know that you are not allowed to modify any value related fields after a FI document is posted (example, value). So, my guess is by changing the quantity amount will be effected and hence FB02 will not allow you to modify quantity.
-
BADI me_process_po_cust, no obtain decimals of menge field
Hi all !,
I can´t obtein decimals in menge field when i use get_data method in badi me_process_item.
it´s my code in process_item method.
ref TYPE REF TO if_purchase_order_mm ,
re_items TYPE purchase_order_items ,
line_item TYPE purchase_order_item ,
po_item TYPE mepoitem .
ref = im_item->get_header( ).
re_items = ref->get_items( ).
LOOP AT re_items INTO line_item.
po_item = line_item-item->get_data( ).
po_item-menge without decimals.
ENDLOOP.
Can you help me?.
Thanks all,
regards!!I resolved it. In PO, I got a Warning Message "Order quantity violates rounding rules (See long text)".
This post was very helpful : Quantity Copied in Purchase Order is not same as Purchase Requisition
regards. -
Display MENGE field with no decimals in smartfroms
Hi Experts,
I want to print MSEG-MENGE field with no decimals in smartforms , how do i declare this field,
I have also declared this field in global defination in quantity/currency field...
But i am unable to get the output..
I tried using &mseg-menge(13.0)& but i get an error in my program stating formating is wrong.
Thanks In Advance.
Ashwin.write a code to display menge value.
data: l_menge type i,
l_menge2 type string.
move: w_bseg-menge to l_menge.
move: l_menge to l_menge2.
condense l_menge2. -
Updation of the MENGE field in the BSEG table
SAP 4.6C
The material is moved from one plant to another. The excise on the same is also moved from one plant to another via STO. The value in the GL accounts is calculated using the quantity in the STO. However when the FI posting is triggered, the quantity does not flow to the BSEG table (MENGE field), but the value is populated. The posting is triggered via conditions and via OBYC setting
How can we populate the quantity in the FI document.Hello,
There is a note to help you on to achieve this requirement. CAn you please check the note 608340??
This note has a detailed description about what should be done to update the field MENGE.
Regards,
Renan -
Problem Related to Fields of MIGO?
Hi,
I want tht the fields in quantity field to be in change mode as they are now coming in display mode. plz tell me how can i do tht.Hi All,
As one of you gave the solution of my problem as to go in SHD0. will u plz tell me the complete process of tht so tht I can achive my target. or if there is any another way of solving it thn, do tell me.
I again tell u what my problem is : As while doing GR, if u see on the item details below there is a Quantity tab. On clicking it u will find various fields related to Quantity. Now In My case some fields are not in change mode these are Qty in SKU, Quantity Ordered And Quantity Received. So I want These fields in display mode. and also there is one more problem tht if I receive more Quantity thn ordered thn it will not allow me to add extra. for Example if I have ordered 10 No of goods and I got 15 thn I can Only enter upto 10 or less but not 15. so plz tell me how can I Overcome Both These Problems -
Problem with currency field in smart form
hi
friends ..
i had problem with currency field in smartform iam printing 5 currecny
fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
each fields for ex.
33,260.00
120.00
0.00
0.00
0.00
i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i get the value in char variable i get 2260.20 which i dont want .
so pls help me how to condense or shift left and print the currency field on right place.
regards
answers will be rewarded points.hi,
this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
eve if not solve the problem use the TEMPLATE node..
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K -
Problem with a field set to refresh after insert at Row level
hello all,
i have a problem with a field (a serial) which is set by a db trigger at insertion. The field "refresh after insert" is properly set in the Entity and everything is refreshed correctly when i insert data via an adf form in a jspx but when i want to insert programmatically nothing is refreshed. I insert data this way :
ViewObject insertVO = findViewObject("myView");
Row newRow = insertVO.createRow();
newRow.setAttribute("mandatoryAttribute1",value1);
newRow.setAttribute("mandatoryAttribute2",value2);
<more init here but not the serial since it will be set by the DB trigger>
insertVO.insertRow(newRow);
but when i want to get back the value with "newRow().getAttribute("TheSerial");" i always get a null back and not the value set by the db trigger.
One way to get the serial is to commit after each insert but i don't want to commit between inserts.
i've tried to unset the refresh after insert and override the createDef() method to setUseReturningClause(false) as it's is advised in chapter 26.5 of the ADF 4GL dev. guide but in this case i have an exception JBO-29000: JBO-26041.
How can i get the value back properly ?
thanks
-regardsThe data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
ViewObject insertVO = findViewObject("myView");
Row newRow = insertVO.createRow();
SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
Long next = (Long)seq.getData();
newRow.setAttribute("primaryAttribute", new Number(next));
...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want. -
I have a problem in text field
Hi All
I have a problem in text field.
First time Text field is displaying correctly and looking good. When i will go to otherscreen and coming back to same screen text field is displaying as a normal text field and it is not appling and jquery mobile theme.
Here is the code
Please help me to solve this issue ASAP.
Thanks and Regards,
Siva.
Edited by: sivamurthy on Sep 26, 2011 2:23 PM
Edited by: sivamurthy on Sep 26, 2011 2:43 PMYou'll have to supply some more information for us to help you. Among other things:
- What version of SUP are you using?
- What devices/emulators are you seeing this problem on?
- Have you added any custom code? If so, what is it? -
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. -
Problem in updating MSEG-MENGE field using MB_CF001
Hi,
Does anyone have any idea if the user exit MB_CF001 , EXIT_SAPLMBMB_001 can be used to update MSEG table.
I tried updating it many many times... but all in vein..
I am using ML81N(SES Entry Sheets) transaction to update MSEG table.
All alternate ideas are welcome.
Thanks,
Harmeet.no one answered, but I figured out.. this exit cannot be used to update any field..
-
Hi,
I have a problem with a date-field. Maybe I must describe the problem more detailled, but first I just want to ask you, if you know the following error-message: "21.10.2010 kommt nicht in der Menge der erlaubten Werte vor". I don't know the correct translation but it must be something like this: "21.10.2010 does not occur in the quantity of the permitted values". I don't find the position in the sourcecode of this message. And I know, that this message isn't thrown by a functionblock from SAP. So what is the describtion of this message?Yes I have a date field in my form. Ok I must describe it more detailled. I have an employee searchfield. After select an employee you see a form. After filling the form you click on "Send". It creates a ticket and sends the data to the Backend and jumps back to the employee search field. Untill this point everything works fine. There is no problem with the datefield. Now I want to create the form. I choose an employee and fill the form. But now it comes this message. But not after clicking the "send" button. The message comes after changing some data (e.g. change a radio button). So it looks like a validationproblem, but only at the second creationprocess. Maybe the first date is in some cache? I don't know...
-
Alv + menge field + decimals
Hi,
in my ALV (4.6C)i´ve got a field "quanti" with the following characteristics:
data element...menge_d
domain...........meng13
data type........quan
length.............13
and when i define the field catalog i add:
w_fcat-decimals_o = '0'.
The problem is that i´m
not able to supress the decimals when i display the data.Why is this happening?, what can i do to solve this problem?
Best regards.With your field catalog defined like that, I'm not sure why your program is working at all. Type your field catalog like this.
type-pools: slis.
data: ifieldcat type slis_t_fieldcat_alv.
data: wfieldcat type slis_fieldcat_alv.
The fields of these structures is not the same as the other field catalog types. You will have to adjust accordinglly.
Here is a sample program.
report zrich_0003 .
* Tables.
tables: mara.
* Global ALV Data Declarations
type-pools: slis.
* Internal Tables
data: begin of itab occurs 0,
matnr type mara-matnr,
maktx type makt-maktx,
menge type mseg-menge,
end of itab.
data: ifieldcat type slis_t_fieldcat_alv.
data: wfieldcat type slis_fieldcat_alv.
start-of-selection.
perform get_data.
perform call_alv.
* Form GET_DATA
form get_data.
select mara~matnr makt~maktx up to 100 rows
into corresponding fields of table itab
from mara
inner join makt
on mara~matnr = makt~matnr
where makt~spras = sy-langu.
loop at itab.
itab-menge = 1.
modify itab.
endloop.
endform.
* CALL_ALV
form call_alv.
data: variant type disvariant.
variant-report = sy-repid.
variant-username = sy-uname.
perform build_field_catalog.
* Call ABAP List Viewer (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = ifieldcat
is_variant = variant
i_save = 'U'
tables
t_outtab = itab.
endform.
* BUILD_FIELD_CATALOG
form build_field_catalog.
clear: ifieldcat. refresh: ifieldcat.
perform update_catalog using 'Material Number'
'ITAB'
'MATNR'
'18'
space
space
'L'.
perform update_catalog using 'Material Description'
'ITAB'
'MAKTX'
'40'
space
space
'L'.
perform update_catalog using 'Quantity'
'ITAB'
'MENGE'
'13'
space
space
'R'.
endform.
* UPDATE_CATALOG
form update_catalog using col_head
table
field
outputlen
do_sum
no_out
just.
wfieldcat-REPTEXT_DDIC = COL_HEAD.
wfieldcat-FIELDNAME = FIELD.
wfieldcat-TABNAME = TABLE.
wfieldcat-OUTPUTLEN = OUTPUTLEN.
wfieldcat-JUST = JUST.
wfieldcat-DECIMALS_OUT = '0'.
wfieldcat-DO_SUM = DO_SUM.
wfieldcat-NO_OUT = NO_OUT.
APPEND wfieldcat TO ifieldcat.
endform.
Regards,
Rich Heilman -
Sender FCC , problem with Repeating Field under a Sub-structure
Hi,
I have an Input File as
D,TH_ ,10/31/2008,ABC,pieces
PF, 10/31/2008,11/2/2008,11/3/2008,11/4/2008
P,mat,CS,100,120,130,125,150,170,120
P,mat,CS,100,120,100,110,140,120,110
I need to Implement an FCC to convert this to
a Structure like this
Recorset
Header 1....1
Unique Id
date Time
CustomerCode
Code
Unit
Dates 1
date 1....n
Products 1....n
product 1
unit 1
quantity 1.....n
This this is a Variable recordset type ( i.e each ROW has a Different Structure) the following keys D,PF,P are defined, for the header, dates, and Product Information.
The Following FCC parameters are applied
Document Name : MT_FILE_INPUt
Document NameSpace = http://xyz.com
Recordset Name = "Recordset"
Recordset structure = Header,1,Dates,1,Products,*
keyname = Key
Keytype = String
Header.FieldSeprator = ,
Header.FieldName = Unique Id,date Time,CustomerCode,Code,unit
Header.keyValue = 'H'
Dates.FieldSeprator = ,
Dates.Fieldname = 'date'
Date.keyValue = 'PF'
Products.FieldSeprator = ,
Product.FieldName = product,unit,quantity
Product.KeyValue = 'P'
Now the Problem is as Follows:
1) I have a Repeating Field Quantity under the Product and Date under the Dates Sub-structure, This is not getting Repeated at all.
Is there a Way to achieve the same
2) Another Point is That, i do not want to take the key Value in the XML structure after converion, is there a way to avoid it
Please let me know if any blogs are available
Any help would be appreciated.
Thanks,
Best Regards
Abhishekcan u try.. i haven't tired this.
quantity is occuring multiple times, but if that is fixed no# of occurance,, you can can try with this?
P,mat,CS,100,120,130,125,150,170,120
Product.FieldName = product,unit,quantity,quantity,quantity,quantity,quantity,quantity
let me try ..
As long as the quanitfy defined under Product.FieldName are more than the input msg quantity values (100,120..), you will be safe...
Edited by: Anand on Oct 31, 2008 3:54 PM -
Smartform: Formatting Problem with QUAN-Field
I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
Does anybody know a solution?I solve this kind of problem in my SmartForm.
Try this:
Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
Field Name: WA_OUTTAB-MENGE
Reference Field: WA_OUTTAB-MEINS
Data Type: QUAN
Best Regards,
Eduardo Ribeiro.
Maybe you are looking for
-
I need to know who to change the resolution of the screen in the program, to run in every computer?? Can Anyone Help? Carlos Lima
-
Oracle 11g Express Edition.
I successfully downloaded Oracle 11g Express Edition, but I got stuck on login to the database. I used my Oracle Username: [email protected] and password: Malka@123 that I had created. This is the message I am getting when I try to login: "Invalid Lo
-
there are no other details!
-
I am trying to process each entry in NAST individualy by using RSNAST00 in a select-loop and giving a different Suffix to each one (In order to have a better connection between NAST and TSP01). When I run RSNAST00 through se38 with the parameters tha
-
Question for Joyce Peng regarding no homefolder
In your Sept. 02 posting, you said "when users are created, it is possible to create them without a home folder. If the default value you list is set to false, then by default newly created users will not have home folders. Our clients and protocols