We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Formula for calculating total lenght of wires for query using characteristics (AUSP)

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by LCC352 (Sr. Mgr, ERP/Financial Systems)
on May 24 at 2:33 PM
I'm not sure a loop will help you. Please tell me the tables in the infoset, first to last. Also, please tell me where the "additional fields" fall in the infoset. - Lou

---------------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
Mark as helpful
View this online
  
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language