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

internal table

Former Member
0 Likes
359

hi,

how declare currency and quantity in internal table ?

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
339

If you have different currencies in your data set, then include the currency in your internal table. If you have different units of measure, then include uom in your internal table.

Currency key you can declare LIKE any currency key in the data dictionary. ( It will be an ABAP type C length 3 ). Amount will be LIKE any amount field in the data dictionary. Usually an ABAP type P with 2 decimals.

Unit of measure you can declare LIKE any unit of measure in the data dictionary. ( It will be an ABAP type C length 3 ). Quantity will be LIKE any quantity field in the data dictionary. Usually an ABAP type P with 3 decimals.

matt

2 REPLIES 2
Read only

matt
Active Contributor
0 Likes
340

If you have different currencies in your data set, then include the currency in your internal table. If you have different units of measure, then include uom in your internal table.

Currency key you can declare LIKE any currency key in the data dictionary. ( It will be an ABAP type C length 3 ). Amount will be LIKE any amount field in the data dictionary. Usually an ABAP type P with 2 decimals.

Unit of measure you can declare LIKE any unit of measure in the data dictionary. ( It will be an ABAP type C length 3 ). Quantity will be LIKE any quantity field in the data dictionary. Usually an ABAP type P with 3 decimals.

matt

Read only

Former Member
0 Likes
339

Hi

Declare it as Data: Var type curr.

quantity as char(100)