09-30-2011 2:56 PM
Hello...
In a editable field on ALV I can insert a quantity of PO item... The filed mas is X,XXX (in ALV).
I use the method ref_grid->check_changed_data to come back the informations of ALV report. But, when the quantity back the SAP change the number...
Follows a example:
In the ALV report: 1,000 (default mask)
In ABAP after method: 0,001
How Can I change this configuration?
10-17-2011 6:38 PM
Hi folks!,
The problem is in the construct the fieldcat table .
Try this way:
it_fieldcat-datatype = '!EKPO-MENGE'
it_fieldcat-fieldname = 'MGCONF'
There are conversion functions that are linked to the type of data element. For example, the calendar view in a date field.
When using the '!' before the name of the table, these functions are carried to the field of alv.
Regards,
Thiago Losilla.
Edited by: Losilla on Oct 17, 2011 7:38 PM
10-07-2011 3:20 AM
Hi Molina ,
i think your ALV doesnt have UoM (Unit of Measure ) field , you Need to have a UoM field and attach this field to Qty field field catalog.
FCAT-QFIELDNAME = 'MEINS' -->your itab should have this field and values
FCAT-QTABNAME = 'ITAB'.
regards
Prabhu
10-11-2011 1:20 PM
Sorry,
I don't understand your point.
Follows the fieldcat catalog declaration (only the important fields)
[...]
mgconf type ekpo-menge,
[...]
10-11-2011 1:25 PM
Hi
ekpo-menge is quantity field, so it has to be controlled by a field with the unit of measure (in this case ekpo-meins), a routine for input/output convertion can be triggered.
Which is your Unit of Measure?
Max
10-11-2011 1:54 PM
My Unit of Measure change according the Unit of Measure of PO.
Only for ilustration...
This program do a massive confirmation in PO. The field I want treat is the amount confirmed.
10-17-2011 6:38 PM
Hi folks!,
The problem is in the construct the fieldcat table .
Try this way:
it_fieldcat-datatype = '!EKPO-MENGE'
it_fieldcat-fieldname = 'MGCONF'
There are conversion functions that are linked to the type of data element. For example, the calendar view in a date field.
When using the '!' before the name of the table, these functions are carried to the field of alv.
Regards,
Thiago Losilla.
Edited by: Losilla on Oct 17, 2011 7:38 PM