Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
I did the following: Report ZACTEST. Data: OPER1F Type F, OPER1P Type P Decimals 3, OPER2 Type VBAP-KWMENG, TOTAL Type VBAP-KWMENG. OPER1F = 224. OPER2 = 50. Move: OPER1F To OPER1P. TOTAL = OPER1P * OPER2. Write: / TOTAL. The result written is 11,200.000 Regards, Alain.
| | | ---------------Original Message--------------- From: Jotako Sent: Tuesday, May 24, 2011 4:40 AM Subject: Formula for calculating total lenght of wires for query using characteristics (AUSP) Hi, I premess that I'm not an abapist, and I would need same help for a formula for calculating the length of a cable. To calculate the Length of couples (AUSP-ATFLV - feature 506 - number of wires inside the cable) of a cable you must multiply it by the quantity ordered (VBAP-KWMENG), I did the following: data: float type f, quan type p. clear kmp. Select single * into AUSP from AUSP where OBJEK = VBAP-MATNR and ATINN = 0000000506. float = AUSP-ATFLV. quan = float. KMP = quan * VBAP-KWMENG. The result is giving me always zero, in debug i see for example passing values 224 (quan) and 50 (KWMENG). The problem in my opinion are the types of fields, I have defined KMP as KWMENG (length), but atflv is a floating number, so I converted it to numeric. Do I have to define KMP as another kind of field for making it work? or quan? What am I doing wrong in your opinion? Thank you very much, I've searched for answers but can't solve my problem. Regards from Italy, Giuseppe | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Popular White Papers In the Spotlight _.____.__ |