on 12-05-2006 3:26 AM
Hi abapers,
i am developing a smartform in which i have to find no. of pallets for a quantity.How can u do this. wat is no. of pallets mean and how can u exactly find the value.please send me the reply as soon as possible.any helpful answer is also welcome.
Ajith.
i solved the problem using a function module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data: package_counter type i.
data: package_total_count type i.
data: pallet_counter type i.
data: pallet_total_count type i.
CLEAR: PALLET_COUNTER, PACKAGE_COUNTER.
CLEAR: PALLET_COUNTER, PACKAGE_COUNTER.
SELECT * FROM ZSDPO INTO TABLE IZSDPO
WHERE KUNNR = VBDKL-KUNAG AND
VBEGDAT <= SY-DATUM AND
VBEGDAT >= SY-DATUM.
VENDDAT >= SY-DATUM.
get pallet/package total count
CLEAR: PALLET_TOTAL_COUNT, PACKAGE_TOTAL_COUNT.
LOOP AT XVBPLK.
CASE XVBPLK-VHART.
WHEN 'PALT'.
PALLET_TOTAL_COUNT = PALLET_TOTAL_COUNT + 1.
WHEN 'CTN'.
PACKAGE_TOTAL_COUNT = PACKAGE_TOTAL_COUNT + 1.
ENDCASE.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
i looking the above said using alternate units of measure
Message was edited by:
ajith saxena
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ajith,
i did the same scenario using MARM table entries .
u get it by using UMREZ/UMREN .but i am not getting the right value .but this will give u the right way.this values come from MARM table using alternate units of measure
alternate units of measure come from material views additional data.
Hope u follow this
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.