Create formula in the transaction VOFM

Hello
I am new to ABAP programming and I'm starting to make a formula in the transaction do two queries VOFM
SELECT
    SINGLE KZWI5
    INTO  WA_KZWI5-KZWI5
    FROM VBRP
    WHERE
    VBELN = KOMP-VGBEL AND
    POSNR = KOMP-VGPOS.
    SELECT
    SINGLE NETWR
    INTO WA_NETWR-NETWR
    FROM VBRP
    WHERE
    VBELN = KOMP-VGBEL AND
    POSNR = KOMP-VGPOS.
The result of these of these consultations I have them I do a split and assigned to the field
KOMV-KBETR = WA_KZWI5-KZWI5 / WA_NETWR-NETWR.
My problem is that the result is of type float and I can not assign to the field KOMV-KBETR  which is CURR
How I can do to make this field takes the value
I hope I can help
Rafael Soto

VBRP-KZWI5 and VBRP-NETWR are both type CURR fields. How do you get a floating point type result? Did you define your target field as float?

Similar Messages

  • Using exit/BADI  to create settlement for the Transaction COR1

    Hi Experts,
    My Requirement is when we are creating Process Order in the Transaction COR1, Settlement Rule will be automatically created by using some User Exit or BADI to assign the cost centre, account assignment category, and settlement percentage for the setup to the Settlement Rule.
    I have tried with the User Exit: EXIT_SAPLKOBS_001 Enhancement COOM0003 and also tried with EXIT_SAPLCOI1_027 enh. IWO10027.
    The Problem is above mentioned User Exit are not triggering though I have activated project.
    What is wrong with my exit or please let us know correct User Exit or BADI?
    I appreciate every help.
    Thank you.
    Nimai

    Try with below Exits related to COR1 transaction.
    Exit Name      Description
    CCOWB001     Customer exit for modifying menu entries
    COIB0001     Customer Exit for As-Built Assignment Tool
    COZF0001     Change purchase req. for externally processed operation
    COZF0002     Change purchase req. for externally procured component
    PPCO0001     Application development: PP orders
    PPCO0002     Check exit for setting delete mark / deletion indicator
    PPCO0003     Check exit for order changes from sales order
    PPCO0004     Sort and processing exit: Mass processing orders
    PPCO0005     Storage location/backflushing when order is created
    PPCO0006     Enhancement to specify defaults for fields in order header
    PPCO0007     Exit when saving production order
    PPCO0008     Enhancement in the adding and changing of components
    PPCO0009     Enhancement in goods movements for prod. process order
    PPCO0010     Enhancement in make-to-order production - Unit of measure
    PPCO0012     Production Order: Display/Change Order Header Data
    PPCO0013     Change priorities of selection crit. for batch determination
    PPCO0015     Additional check for document links from BOMs
    PPCO0016     Additional check for document links from master data
    PPCO0017     Additional check for online processing of document links
    PPCO0018     Check for changes to production order header
    PPCO0019     Checks for changes to order operations
    PPCO0021     Release Control for Automatic Batch Determination
    PPCO0022     Determination of Production Memo
    PPCO0023     Checks Changes to Order Components
    STATTEXT     Modification exit for formatting status text lines
    Regards,
    Saurabh

  • How to create Formulas in the hierarchy structure

    Hi,
    Is it possible to create formula with in the hierarchy structure, so that the both hierarchy drill down and the created formulas can be displayed at the query output. Please give the valued suggestions.
    Thanks
    VEERU.

    Hello
    You have in this case to create a structure and select the node concerned in your hierarchy.
    Then create a new formula based on your previous selection for example.
    Rgds

  • Creating formula in the Query Designer

    Hi,
    I have a KF which I have to convert in to different unit in the query ( x/data)
    The problem is some of my data in the cube is zero (0) and when I use division, it shows me error (red X) in the query output.( Divide by zero)
    Is there any way to skip this division if the data is zero? How can I set my formula in the Query designer?
    Thanks
    M Kumar.

    Hi,
    Please use the NDIV() or NOERR() function outside of your expression and it will take care of the division by zero.
    See here for details:
    http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/content.htm
    Hope this helps...

  • How the Queue will be created to process the  Multiple IDOC's into  1 Queue

    Hi Sap All.
    when i went into the Transaction code we14 and when the press F4 for search help in the field  Queue Name it displays me the several queues with the Port referring to B0018(refers to PI Box) ,which means that the IDOC's will be sending to PI.
    here my Question is how the Queues get created ,what is the Transaction code for creating the Queues in SAP-R/3 and how we we setup the SAP-R/3 Box in order to send multiple IDOC's into one queue.overall my question is how we wrok on Queues ?
    could any body help me in driving me to the best way.
    regards.
    Seetharam.

    If you have the drivers CD or the LV 6 installation CD, then you could try installing just the traditional DAQ drivers.  I will do a search if I can find them...Good news, I found the drivers that you may need.  Here is the link to download.
    After you install it, look in the vi.lib folder for the DAQ folder and see if you have a dozen
    .llb files. That is where you will find your missing vi's. You may also check into the LV2009 folder to check to
    see if the driver got installed there. I think the driver only gets
    installed for a single version and it might default to the latest at that time (I did not check which one it was).
    In any case, look for the missing VIs in the \National Instruments\LabVIEW 2009\vi.lib\Daq\ folder.  The VIs are contained in the .llb files so you
    can't just search for them through Windows.  Look in the AI.llb file using LabVIEW.
    Here are issues that you may encounter.  The link is to the DAQmx driver (I thought it was for traditional DAQ )
    http://forums.ni.com/t5/LabVIEW/Error-10461-10008-​DIO-Port-Config-Legacy-lvdaq-dll/m-p/947104
    Someone with a similar problem.  It won't help you, but kinda explains what you are going through..
    http://forums.ni.com/t5/LabVIEW/Since-upgrading-la​bview-many-sub-vi-s-such-as-DIO-Port-Config-vi/m-p​...
    Although the recommendation in this thread is to use the same LV version and driver as the previous machine, we know it is not your case.  Newer LV version... and maybe the latest Traditional DAQ drivers...  May be worth reading:
    http://forums.ni.com/t5/LabVIEW/An-error-occurred-​loading-VI-AI-Group-Config-vi/m-p/734547
    Traditional DAQ 7.4.4
    http://digital.ni.com/softlib.nsf/websearch/E42B7A​3564AB2F1A862572A7006D1564?OpenDocument

  • How do I create a new Work Center for the transaction launcher and links

    Hi
    The requirement here is for me to find out if I can create a new Work Center that will contain up to 6 assignment blocks and each block having either links to websites and BW reports, or triggers to R/3 applications via the transaction launcher.
    Can I do this purely through customising or do I need to create a new view using BSPs? If I can do it through customising please could I have a few pointers to what component I would need to use/copy?
    Regards
    Declan

    Hi Robert,
    Thanks again for taking the time to reply.
    Just so I understand, if I want to show a work center I need to link it to a component / view? I think this was the original query - do I need a developer to create the view that contains the 6 blocks with their links to reports, transactions and websites? I think when I talk about blocks I mean 1 viewset containing 6 views. There is no SAP standard view that would suit my requirements is there? Even if the work center had 8 views, I can always hide the two views in configuration.
    After the developer has created the view, I then reference that component in the target Id in the define logical links section of my work center.
    If my understanding is right, then it follows that it is not possible to create a user specific work center without some development.
    Is this correct?
    Cheers
    Declan

  • How to create F4 for the standard transaction

    Hi all ,
    How to create F4 for the standard transaction for a particular field .
    Bye

    Santosh,
        You can create F4 values for a field in a standard Transaction .
    1. First search for a standard search help meeting your requirement .
    2. If you don't find one, create your own custom (z) serach help .
    ( 1 is preferable )
    After that, include that serch help to the standard field in the transaction .
    For this u need to go to the screen
    ( F1->F9-> screen-> Field )
    Click on the property of the field and include the search help .
    You ll require the access key from the basisi guys as u r changing standard .
    Hope it helps,
    ~ laxmi
    Reward for helpful answers

  • Exit/Badi in the transaction of production order create or change (CO02)

    hi all,
    I need an exit/Badi in the transaction of production order create or change (preferably during SAVE).
    I want to change structure AFVGD-usr02,AFVGD-usr03 .
    <b>PPCO0007 Exit when saving production order</b>
    the exit is not applicable EXIT_SAPLCOZV_001 .

    Hi
    we around 200 exit for this tcode i found only three badi for this tcode.
    AFABD_CHANGE          Change Relationship
    CAUFVD_CHANGE        BAdI: Overall Network Scheduling with Selection Option
    SIDAT_UPDATE            Change date of price simulation.
    check with this goto se18 and F4 thn give the Package as CO.enter u get this three.
    reward pointd if use full

  • When am creating the material using the transaction MM01 getting the error

    Hi all,
      Could you please help me to solve this issue, When I am creating the material using the transaction MM01, am receiving the error message "Express document "Update was terminated" received from author "XXXXXXXX", I checked the in SM13 found error message showing in Z_LGPLA_BIN_POSTING.
    Regards,
    Muralikrsihna.

    ST22 Error is : SAPSQL_ARRAY_INSERT_DUPREC, below is full error message
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "Z_LGPLA_BIN_POSTING" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    Regards,
    Muralikrishna

  • Where the Transaction ID is created in RFC

    HI,
    Where the Transaction ID is created in RFC?
    Kindly help me out.
    Thanks.

    Which session ID are your taking about?
    Are you doing J2EE development?
    -Alexis

  • Use of a new layout create by the transaction KP75

    I Created a new layout with the transaction KP75 but it doesu2019t appear when I use the transaction KP26.
    I think a link is missing between the new layout and something.
    Could you help me, please.
    Thank you.
    Jean-Marc

    You need to assign to the Planning Area in the Planning Profile under SPRO-Controllig-Cost center Accounting-Planning-Manual Planning
    Once you assign it, it would appear as one of the layouts in KP26

  • Default the transaction variant created in SHD0 for MIRO

    Hi,
    We have a requirement where the subsequent Dr/Cr field in MIRO must be invisible.
    Used SHD0 and created transaction variant and activated the same in standard variant.
    1. The variant is showing up in MIRO but it is not defaulting.
    2. How can we transport the same to different clients as transport request is not populated on saving.(Saved as local object).
    Appreciate if you can please guide me.
    Thank you

    Hi:
              In SHD0 , have you activated the z screen variant to the transaction variant you created for MIRO....
              Regards

  • HT2731 why i the itunes account i created, cant be set up? it says i must contact itunes support, but i cant find what support is it, no email add or what? i need itunes support to complete the transaction, pls. help.

    Hi,the new account i created cant go through, it says i need to contact itunes support to complete the transaction. What is this? i choose none as payment options, this could be problem? but i will use itunes card to but apps later.

    Click Support at the top of this page, then click the link under Contact Apple Support

  • Formule used in the transaction MP30 for calcolate the value ROP.

    Dear gurus,
    in the transaction MP30 we insert the value in the field "Corrected value" and  the system calcolate a value of the parameter Reorder Point . What formule use for calcolated this value? How this value is calcolated.?
    Thansk a lot
    Daniele Pistilli
    PP TEAM

    Hi,
    Check the OSS Note 415950 - Calculation of the safety stock in the forecast.
    The caliculation is explained in details.
    And also the below link:
    [Calculating the Safety Stock and the Reorder Level|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7d/c27408454011d182b40000e829fbfe/content.htm]
    [Reorder Level Calculation|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7d/c27a3b454011d182b40000e829fbfe/content.htm]
    Hope this helps.
    Regards,
    Siva

  • What is the Procedure to Create "Condition Value" Routine Using VOFM

    Dear Guru,
    I want to know Step-By-Step Procedure to Create "Condition Value" Routine Using VOFM.
    Give me guideline how it will link to program RV64ANNN.
    and if it doesnot link to RV64ANNN
    what might be the possible reason and how to make it link with RV64ANNN.

    Dear Guru.
    I have encountered a technical issue related to Creation of User Routine for pricing procedure
    (Routine :: RV64A978).
    Before coming to issue I want to give you slight glance on my requirement.
    I have got two requirements to write two routines for a new condition type -->> packing type .
    >>Routine Number  One First  I Have wrote  Requirement Routine         RV61A943
    Routine Number two  Other I Have wrote  calculate condition value  RV64A978
    So as usual normal procedure of writing a routine I followed VOFM for writing routine for pricing procedure and routine for calculation (condition value).
    I performed above respective process for both routines in VOFM.
    And I have activated both routine from going VOFMMenu bar edit  Activate.
    After activation automatic include is generated in both case .
    INCLUDE RV61A943 .  "FAMD PAckage Wt        
    Is generated in RV61ANNN
    INCLUDE RV64A978 .  "FAMD Package-Rate     
    Is generated in RV64ANNN
    In case of Routine  RV61A943
    I can able to find the main include routine RV61ANNN from where used function in SE38 and able to trace it.        
    And I am able to find it in the lists of Includes of RV61ANNN.
    But In case of Routine  RV64A978
    I can not able to find the main include routine RV64ANNN from where used function and able to trace it. Pls refer below picture.
    But in RV64ANNN it is showing that routine RV64A978 is there 
    So Guru I want to know following things >
    1.     What might be the main reason in case of RV64A978 ??
    2.     How I should approach to solve this issue??
    Because what I understood unless routine RV64A978 is traceable  from u201Cwhere usedu201D to find out its main routine RV64ANNN , the routine RV64A978 wont work in pricing procedure (I believe).

Maybe you are looking for

  • Lync front end connectivity test fails (SSL certificate / URL problem)

    We have a weird problem in our installation where Lync keeps complaining about connectivity issues to external reach proxy on our front end server. The event log error codes are 41024 and 41026. Here's the error from the snooper utility:  TL_ERROR(TF

  • Airplay from Mac: Picture but no sound

    I have had Airplay working successfully with my MacBook Air and Apple TV for some weeks. Suddenly, I have lost the sound. The picture is being sent to the TV but the sound is stuck on the MacBook Air's tiny speakers. I have checked around but can see

  • Warehouse wise Detailed query Report

    Please share detailed report on Warehouse wise, it consists of Purchase,Goods Receipt, Inventory Transfer,Invoices, sales return

  • Error loading xml file with sqlldr

    Hi there, I am having trouble loading an xml file via sqlldr into oracle. The version i am running is Oracle Database 10g Release 10.2.0.1.0 - 64bit Production and the file size is 464 MB. It ran for about 10 hours trying to load the file and then th

  • Why won't menu display?

    package test; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem;