FM to convert Delivery quantity value from Sales unit to Base Unit

Hello,
Is there any Function Module to Convert the Delivery quanitityt(LFIMG) value form Sale unit of Measere to Base Unit of  Measure?
Regards
Irfan

HI
Use this FM
call function 'CF_UT_UNIT_CONVERSION'
      exporting
       matnr_imp           = wa_z3iexdoc-matnr
*   MEINS_IMP           = ' '
       unit_new_imp        = 'EA'
       unit_old_imp        = wa_z3iexdoc-vrkme
       value_old_imp       = value_old_imp                  "1.000
     importing
       value_new_exp       = value_new_exp
     exceptions
       overflow            = 1
       others              = 2       .
Here
wa_z3iexdoc-matnr  is material No
unit_new_imp          is new Price Unit
wa_z3iexdoc-vrkme is Old Unit
value_old_imp         is Old Value
value_new_exp       is converted value

Similar Messages

  • Create Outbound delivery with QCI from Sale order

    Dear experts!
    Now, I'm getting some issues about searching function to create outbound delivery with QCI from Sale order.
    Note: My sale order have two item (10, 20) and when i create outbound delivery I also want to create QCI for them.
    Help me, Please
    Best regards, Huy.

    What is QCI?

  • Change (convert) delivery quantity

    Dear all,
    Does anyone know how I can change the delivery quantity ?
    What we ant to achieve is the following:
    - an order has been created with a quantity in sales units for example 10 BAG
    - at creation of delivery, we would like to convert the sales order quantity to the unit of issue (MARC-AUSME) if this one is different from the sales order sales unit (for example PAL iso BAG) ...
    I tried a few things yet to change the quantity (and unit) to the converted one, but it all didn't work ...
    Any idea how this can be done ?
    Thanks in advance !
    Greetz,
    Kurt.

      select single kwmeng vrkme into (lv_kwmeng,lv_vrkme)
                                 from vbap
                                 where vbeln = lips-vgbel
                                   and posnr = lips-vgpos.
      select single ausme into lv_ausme from marc
                                        where matnr = lips-matnr
                                          and werks = lips-werks.
      if sy-subrc eq 0 and lv_ausme is not initial.
        call function 'ZCF_UT_UNIT_CONVERSION'
          exporting
            matnr_imp      = lips-matnr
            unit_new_imp   = lv_ausme
            unit_old_imp   = lv_vrkme
            value_old_imp  = lv_kwmeng
          importing
            value_new_exp  = lv_lfimg
          exceptions
            invalid_input  = 1
            invalid_output = 2
            overflow       = 3
            others         = 4.
        if sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
        lips-lfimg = lv_lfimg.
        lips-vrkme = lv_ausme.
      endif.

  • Material Variant of a Config Material to take Charac. Values from Sales Ord

    Hello Guys,
    Is there any way to have a Material Variant for a Configurable Material to take the Characteristic values from a Sales Order instead of Material Master ?
    I understand by default Material Variant has fixed characteristic values and is taken from material master......
    however here is the situation am in.......
    I have a completely MTO scenario where we will making the product from scratch only after we know the characteristic values.......however our Costing Guys want to do standard cost estimate for the Configurable Material somehow......they were able to do Cost Rollup by making the Configurable Material itself as the Material variant of itself (assigning the same Configurable Material # in MRP3 view)............however this broke my design of taking characteristics from the Sales Order...because the Configurable Material is now behaving as Material Variant and taking the default characteristic values from the Material Master....
    Note: Our Costing guys donot want to cost settlement at Sales Order level.
    Regards,
    BRN.

    I had exactly the same problem. (configuration "blocked" in SO because the use of material variants for PC purposes...)
    SAP help says : To allow you to change the configuration of material variants in the sales order, the Configuration allowed or required indicator must be set in Customizing for Sales and Distribution. The requirements class is determined using the strategy group and requirements type defined in the material master.
    The req. class parameter, mentioned not very clearly by the SAP help, that allows changing the characteristic values of a material variant during the SO configuration is V_T459K-KONFI and value must be either * or +
    Hint: A quick check can be done In the SO entry: go to the procurement tab and replace your requirement type by KEL, you'll see that configuration is "open" 
    Hope this helps
    Iñaki
    Edited by: InakiGonzalez on May 11, 2009 8:08 PM
    Edited by: InakiGonzalez on May 11, 2009 8:15 PM

  • System doesnt let me change the delivery quantity greater than sales order

    Hi,
    In delivery document , when I change delivery quantity greater than related sales order quantity , system just show the Message no. VL363 but let me change the quantity.
    Is it any way that system do not let me to change delivery quantity greater than its related sales order?
    thanks.
    Lida.

    Is it any way that system do not let me to change delivery
             quantity greater than its related sales order?
    Go to zeroVLP,  select the item category and maintain "B"  for the field  Check overdelivery

  • Delivery quantity differ from picking quantity?

    If we want delivery quantity and picking quantity different what are the settings we have to do?

    Hi Gopala,
    This is not possible (at least in the standard system). The reason is that if there is a difference between the two quantities, there will be an inconsistency in the system.
    Let me explain with an example: Suppose sales order quantity and delivery quantity are 10, and picking quantity is 9. Now it seems you want to do PGI with these figures. Supposing this is possible, then the sales order will be updated with delivery, which means technically, the sales order will get closed since all the quantity ordered has been delivered. However, what reaches the customer is only 9. How would you handle this situation?
    If there is sach a difference, the best way would be to make both the quantities equal by going to "Edit -> Copy Picked Quantity as Delivery Quantity".
    I hope I have understood and explained your scenario correctly...

  • Read Valued from sales order configurator

    Hello Gurus,
    I have a requirement wherein i want to read the values entered in the sales order configuration.
    I tried to search the forums but couldn't know from exactly where I could read it.
    I need to read these values from some temporary tables, and within the exit MV45AFZZ or MV45AFZB,
    or wherever suited.
    Please help me on this.
    Expecting a quick reply,
    Sumit.

    Hi, Alessandro!
    I think the trouble is that you are trying to assign a FS to the header of the document. You are getting the information of the current row, so you have to bind a formatted search to some column of the "table - part" of the document.
    And also you can try:
    SELECT $[$38.1]
    38 - the value of "Item" (when you point a mouse to the cell, information you want from)
    1 - the value of "Column" (the same...)
    It will get an info of this cell in a current row.
    HTH!

  • How to take Purchase order Pending quantity value from Table. ?

    Hai SAP Gurus,
                             Now Using ME2N, I am taking Pending Purchase Order Value against Plant wise & Material Type wise. Its takes lomg time to see this report.. Kindly guide me  how to takes those value from table..?
    ex:  Material Type     Plant 1
           RM                     1716294228
           HIBE                         63586533
           ERSA         27143712
           VERP      7551982745
           Components      7375781142
           Total                    Rs. 16734788360

    Hi
    It is possible through ME2N plantwise pend PO report.
    Put plant and WE101 in selection parameters

  • Transfer of under delivery/overdelivery tolerance from sales order to prord

    Hi,
    My client works on SAP+MES environment. Here when a SO is created for a FERT material, the PO is generated automatically. A program is run to transfer this produciton order to their MES system. During this process, the initial values for underdelivery/overdelivery tolerance are picked up from the material master work scheduling view. But due to some reason, if the SO is changed, the underdelivery/overdelivery tolerance gets updated in the production order with the values that are in the SO.
    In the meantime, due to the initial transfer of material master data value, their PPC department plans the material based on the same. Subsequently, due to automatic updation of the values from the SO, there is a problem of excess/lower production happening on the shop floor.
    I want to know how to find out the user exit that is transfering the data from the SO to PO and the logic written for the same. Request you to help me find out the same.
    Regards,
    Sridharan M

    Sridharan,
    I am a bit puzzled what you mean by 'working parallely".  Just about any ABAPer with whom I have worked would have answered these  questions, had I asked them.
    Functional userexits are found in Programs, and Programs may (or may not be) executed by a user.  Executable programs may or may not be accessed via transactions.
    So, let us assume you have discovered a userexit that your company has implemented, using Mangalraj's expert instructions.
    CMOD enter the project. Select components; Select Display.
    I will assume that it is a function exit.  Select the component that contains the implemented modification.  Select Display.
    Place your cursor on the FM name. Select the 'Where Used' icon.  Select programs, OK.
    All programs that use that FM will be displayed.  Select one of the programs, select display.
    Continue this process iteratively (many times there are 'includes' within 'includes'.)  Eventually the 'where used' selection criteria will probably (but not always) have a checkbox that allows you to search for Transactions.  Select this and execute.  This will indicate transactions that call the userexit.
    From the above, you can deduce the following:
    An implemented userexit may be used in one or many programs/includes.
    The userexit may be used in zero or one or many transactions.
    Again, I recommend that you consult with your ABAPer.  He should quickly be able to answer your questions.  The search becomes very simple if your company has documents that describe your installed userexits in a library.  If such a library exists, your ABAPer should know about it.  Otherwise, he will have to do a bit of digging.
    There is a nice WIKI here about userexits
    http://wiki.sdn.sap.com/wiki/display/ABAP/Waystofindauserexit
    If this info is inadequate for your needs, you could consider posting such questions on one of the ABAP forums.
    Best Regards,
    DB49

  • Unit conversion from Sales unit to Base unit

    HI,
          I am working on 2lis_11_vaitm and 2lis_11_v_ssl sources.
    Both these sources have quantities in Sales unit.
    In BW how do i convert these quantities to Base unit.
    Both sales unit and base units are available in the sources. But value avialable only in Sales unit.
    I am using delivery quantity from 2lis_11_v_ssl and Cumulative order quantity in 2lis_11_vaitm.
    Kindly suggest a way.
    Regards,
    Adarsh
    Edited by: adarsha a on Sep 6, 2008 3:27 PM

    Hi...
    You can use the function module CF_UT_UNIT_CONVERSION to convert from one
    unit to the another.
    Hope this helps you...
    Regards,
    Debjani...

  • R3 to CRM - pass value from Handling unit in R3 to CRM One Order

    Hi all,
    Scenario is that CRM (v7.0) One Order gets replicated in R3. Delivery and Handling unit documents are created in R3.
    From handling unit, I need to pass Customer packaging material (VEKPVB-VHILM_KU - can be seen at the item level, additional data tab) back to CRM One Order. Is there any way to do this?
    Thanks
    Vinoth

    <-I guess maybe the root of my question is how to reference a text box in a report through Javascript or basic HTML?->
    Reference the item in JavaScript with like this
    var parentWindow = window.opener;
    parentWindow.document.getElementById(itemId).value = someValue;
    You can set the id of the item in your report by utilizing the sixth parameter of the apex_item.text function, which is defined in the documentation as:
    APEX_ITEM.TEXT(
    p_idx IN NUMBER,
    p_value IN VARCHAR2 DEFAULT NULL,
    p_size IN NUMBER DEFAULT NULL,
    p_maxlength IN NUMBER DEFAULT NULL,
    p_attributes IN VARCHAR2 DEFAULT NULL,
    p_item_id IN VARCHAR2 DEFAULT NULL,
    p_item_label IN VARCHAR2 DEFAULT NULL)

  • Quantity conversion from one unit to another

    Hello Experts,
    I need to convert quantity from one unit to another For eg: 1000kg to Grams.
    Is there any standard Function Module which can do so.
    Thanks.

    Hi,
    Try any of these.
    PRC_CNV_UNIT_CONV_ALT_TO_BASE - Convert Alternative to Base Product Unit
    PRC_CNV_UNIT_CONV_BASE_TO_ALT - Convert Base to Alternative Product Unit
    PRC_CNV_UNIT_CONV_ISO     -     Convert ISO Quantity Unit
    PRC_CNV_UNIT_CONV_SIMPLE  -     Convert Simple Unit (Without Product)

  • Display all quantity values, buy sales want highest value in same report

    Hi
    I have slares do num , and item and qty and sales cal month
    if i execute based on month i need get top sales value ( i mean higherst values for that report) and quantity need show all values?
    if i apply condition top 1 for sales its effecting qty also?
    ple let me know what is solution for this, ?

    Hi Suneel,
                     Try with this.....
    Keyfigure  -
    > properties----->calculate single value as---> maximum.
    check here....
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1f/25883ce5bd7b1de10000000a114084/content.htm
    Hope this will help you.
    Thanks,
    Vijay.

  • Copying Production priority value from sales orde

    Hello friends,
    For some reasons we are not using delivery priority field to copy production priority.
    We have created one custom filed at sales order item level, and we are planning to copy the value of this filed into priority filed in the production order( ATO scenario and MTO Scenario).
    Is there any customer exit or user exit or enhancement spot to copy custom values into production order.
    As of now i have implemented one enhancement point but it is triggering only when there is a change in Schedule lines, it is not quite useful. I need a enhancement point which will trigger production order for each and every change in sales order.
    Thanks and Regards,
    Muralidhar.

    I need a enhancement point which will trigger PRODUCTION ORDER ?? for each and every change in sales order.
    Pls Check with requirement...Can be More Clear
    Cheers

  • How to configure visa to adquire dat from serial port and then converted to numeric value from a home embedded device

    I already stablish communication with my serial port using VISA, selecting COM1 as the resoure name.
    After that, I tried to read the data from the port (as we know the data was in string format )but I need to convert the data to numeric value to hadle it (no arrays).
    Another main thing is that I'm develoing a new based Embedded design and tthe info that will trhow out from the device to the PC is binary.
    How can I solved the problem, and if I want to make bidirectional communication with my system how can I do it? The VISA intructions as *IDN? and so forthetc can be recognize by the external system if the COM1 port is recognized by NI Max as ADSRL1::I
    NSTR1?

    Hello,
    For an example of bidirectional serial communication in LabVIEW, please see the shipping example LabVIEW <-> Serial.vi. This can be found from LabVIEW by going to Help >> Find Examples. From the example finder, select Hardware Input and Output >> Serial >> LabVIEW <-> Serial.vi.
    Once you are able to read the string data in, you can use the VIs in the String/Number Conversion palette to convert the data to numeric format. To access these, right-click on the block diagram >> All Functions >> String >> String/Number Conversion.
    Let me know if this does not help.
    Regards,
    Sean C.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Ordering a phone at retail price from the site, not eligible for upgrade

    I am planning to pay retail for the iPhone once it becomes available for pre-order (judge me as you wish) but I have never ordered a phone from the website before, upgrade or not. I am not the account holder, that is under my mom's account on the web

  • My laptop has died, how can I transfer all my data from my ipod touch to my new laptop???

    My laptop is no more! Is it possible to transfer my music from my ipod touch onto my new laptop??????

  • I Can't Get I-tunes to Open Anymore

    I reinstalled a fresh copy of I-tunes, because when I tried to open I-tunes, the hour-glass came on for a few seconds and then nothing. This had gone on for days. Now when I try to open it, the user agreement flashes for a fraction of a second and th

  • Workflow- Adding Terminating event into a Decision Step

    Hi I have a requirement like, in the decision step for example 'Approve' or 'Reject' has to be executed from the web application by triggering a terminating event for this decision step. I have copied the decision BO DECISION to ZDECISION and created

  • Cost price in TTPO flow

    hello, in our TPPO flow (sales order - purchase requistion - purchase order - invoice on purchase order - SD invoice to customer), we seem to have a problem with the cost price. in the sales order, a cost price is correctly determined price in the pu