Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Quantity mask

Former Member
0 Likes
1,178

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?

1 ACCEPTED SOLUTION
Read only

thiago_losilla
Explorer
0 Likes
881

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

5 REPLIES 5
Read only

Former Member
0 Likes
881

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

Read only

0 Likes
881

Sorry,

I don't understand your point.

Follows the fieldcat catalog declaration (only the important fields)


[...]
mgconf    type ekpo-menge,
[...]

Read only

0 Likes
881

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

Read only

0 Likes
881

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.

Read only

thiago_losilla
Explorer
0 Likes
882

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