POPUP_UNIT_CONVERSION SAP Function module in Transformation routine

Hi Experts,
I'm using above function module to convert the value of measuring document. I have the unit value in and unit value out, I need help on how to achieve this with function module in the routine... I wrote below code but it is giving me errors...
CALL FUNCTION POPUP_UNIT_CONVERSION
              EXPORTING
                    VALUE_IN = 'SOURCE_FIELDS-DESIR'
                    INDICATOR_VALUE = ' '
                    UNIT_IN = 'SOURCE_FIELDS-MSSIE'
                    UNIT_OUT = 'SOURCE_FIELDS-RECDU'
                    POSITION_COLUMN = '20 '
                    POSITION_ROW = '5'
               IMPORTING
                     VALUE_out.
RESULT = VALUE_out.
Can any of you guys used this before , can you please sugget the code. Thanks
-Ganesh

Hi Ganesh,
I suggest to use Function Module UNIT_CONVERSION_SIMPLE. The Function Module you mentioned seems to be applicable for dialog processing.
The coding could look as follows:
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
  EXPORTING
    INPUT    = SOURCE_FIELDS-DESIR
    UNIT_IN  = SOURCE_FIELDS-MSSIE
    UNIT_OUT = SOURCE_FIELDS-RECDU
  IMPORTING
    OUTPUT   = RESULT.
Best regards,
Sander

Similar Messages

  • Possibility to write Functional module in "end routines"

    Hello guys,
    Can you please tell me whether we can write functional module in end routines or not??? If yes,then what is the procedure?
    Thanks in advance,
    Regards,
    Bunty.

    End routines are a feature of BI 7.0, allowing you to take the end results of a transformation, and muck it about with ABAP.
    It is not possible to WRITE function modules in end routines. But it is possible to use them. Function modules exist inside function groups - not end routines.

  • Exception handling for a standard SAP Function Module - the OO way

    Hello,
    I was wondering what is the correct way to call a standard SAP function module inside a method of global class.
    I want to display the error via the:
    get_text( ) and get_longtext( ) methods.
    I don't want to use the sy-subrc check. Is this possible?
    My example doesn't seem to work...
    See example bellow:
    DATA: ex_object_cx_root TYPE REF TO cx_root,
          ex_text TYPE string,
          ex_text_long TYPE string.
    TRY.
          CALL FUNCTION 'L_TO_CONFIRM'
            EXPORTING
              i_lgnum                        = i_lgnum      " Warehouse number
              i_tanum                        = i_tanum      " Transfer order number
              i_quknz                        = '1'          " '1' - confirm withdrawal only (picking )
              i_commit_work                  = 'X'          " Indicator whether COMMIT WORK in function module
            TABLES
              t_ltap_conf                    = it_ltap_conf " Table of items to be confirmed
            EXCEPTIONS
              to_confirmed                   = 1    " Transfer order already confirmed
              to_doesnt_exist                = 2
              item_confirmed                 = 3
              item_subsystem                 = 4
              to_item_split_not_allowed      = 51
              input_wrong                    = 52
              OTHERS                         = 53.
        CATCH cx_root INTO ex_object_cx_root.
          ex_text = ex_object_cx_root->get_text( ).
          ex_text_long = ex_object_cx_root->get_longtext( ).
          " Error:
          RAISE EXCEPTION TYPE zcx_transfer_order
            EXPORTING textid = zcx_transfer_order=>zcx_transfer_order
                 err_class = 'ZCL_WM_TRANSFER_ORDER'
                 err_method = 'CONFIRM_TO_2STEP_PICKING'
                 err_message_text = ex_text
                 err_message_text_long = ex_text_long.
      ENDTRY.
    Thank you very much in advance

    Hello Marko,
    If i understand correctly you've enclosed the call to the FM 'L_TO_CONFIRM' inside the TRY ... CATCH ... ENDTRY block.
    CATCH cx_root INTO ex_object_cx_root.
          ex_text = ex_object_cx_root->get_text( ).
          ex_text_long = ex_object_cx_root->get_longtext( ).
    You can't do this because the FM 'L_TO_CONFIRM' doesn't propagate OO exceptions!
    Your approach is almost correct, what you've to do is goes like this:
    CALL FUNCTION 'L_TO_CONFIRM'
      EXPORTING
        i_lgnum                        = i_lgnum      " Warehouse number
        i_tanum                        = i_tanum      " Transfer order number
        i_quknz                        = '1'          " '1' - confirm withdrawal only (picking )
        i_commit_work                  = 'X'          " Indicator whether COMMIT WORK in function module
      TABLES
        t_ltap_conf                    = it_ltap_conf " Table of items to be confirmed
      EXCEPTIONS
        to_confirmed                   = 1    " Transfer order already confirmed
        to_doesnt_exist                = 2
        item_confirmed                 = 3
        item_subsystem                 = 4
        to_item_split_not_allowed      = 51
        input_wrong                    = 52
        OTHERS                         = 53.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
              INTO ex_text. "Get the ex_text by this technique & not by CX_ROOT->GET_TEXT()
    ENDIF.
    I'll have to check how to fetch the long text of the message
    BR,
    Suhas

  • Reading SAP function modules using FromSAPIdentity pass

    Hi,
    We have SAP NW IDM 7.2 SP7 environment
    And I have been using FromSAPIdentity pass to read SAP function modules.
    A typical configuration will looks like below
    Above works like a charm and everything is as expected :-)
    Now i am trying to fetch data from another function module.
    Here the challenge is import parameter entry need to be provided with selection criteria say something like below for PARAMETER1
    SIGN=E
    OPTION=EQ
    LOW=<Value>
    HIGH=<Value>
    Does FromSAPIdentity pass accepts selection criteria input for "PARAMETERS" ?
    If yes, which format should i follow to provide those values ?
    Thanks
    Karthik

    Use DD03L table .
    Also use this FM.
    F4_DD_TABLE_FIELDS
    DD_GET_DD03P

  • Crystal Reports Charting Issue with SAP Function Module

    I created a custom SAP Function module that returns 2 tables. The first table (summary table) contains two columns, column "a"  contains a grouping and column "b" is a quantity.  The second table is the detail and is linked to the first table by the grouping, column "a" , in both tables.  I can bring the function module into Crystal Reports, but cannot create a drill down using a pie chart off the summary table.  When I go into the Chart Expert - Data Tab only the Advance button is active and the Group, Cross-Tab, and OLAP buttons are deactivated.  First of all, is it possible to do this using a SAP Function Module, if yes, what am I doing wrong.

    hello Jhess,
    i am not sure if you found an answer for your question yet. if you have a Group and a Summary on your report (i.e. the Sum of your Quantity field) then group charts should be enabled.
    cheers,
    jamie

  • Documentation for SAP function modules??

    Hello,
    is there any documentation for the SAP function modules available?
    I need documentation for SJ01 (SAP Objects). If I try to view the documentation in SE80, I get the error message: "Document OJ_XXX(whatever I selected) is not available in language DE"
    Where can I get this documentation?
    Is there an overview+documentation available somewhere of all SAP functions which may be used for own programs? Or how do I know what's already available and how to use it?
    Thanks
    Steffi

    Hi,
    Go thru this links
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=449&h2=322&h1=303&h3=449
    http://www.erpgenie.com/abap/functions.htm
    Thanks
    Sunil

  • SAP Functional Module for authorization tables

    I would like to know are there any standard SAP Functional Modules which could update the Authorization Tables, like AGR_1251.
    Thank you

    Hi Prabhu,
    Other than function modules with role, I had also tried to look for function modules with AuthObject*.
    Because, I would like to update remove one of the authorization object from the system. For example, remove all data which AUTHORIZATION OBJECT = S_SCD0 and ACTIVITY = 06 in the system.
    I got the list of functions from the search, but all of them are without proper documentations. So is very hard for me to understand their functionalities and purposes.
    Kindly advice.
    Thank you.

  • Can a SQL Server stored procedure call an SAP function module?

    Can a SQL Server stored procedure call an SAP function module.? The stored procedure will be called via a trigger when data records are added to a Z table.

    You have two options:
    - the other software can use the RFC SDK and call directly in the system
    - the other software can use a database connect
    Markus

  • How to pass multi value selection parameter to SAP Function Module?

    Hi ,
    Anyone know how to pass CR multi value parameter - array to SAP Function module ?
    eg  multi selection of customer in CR
    and then pass to Function module
    in SAP FM,  the SQL select these customer only
    How should the import parameter / table of SAP Function module designed?
    and how should CR pass the data to SAP FM
    thx
    John

    Moved to Integration Kit forum

  • Replacement for fuction CONVERSION_EXIT_ALPHA_INPUT SAP Function module

    hi folks..
    do we have any replacement in terms of codes for the fuction CONVERSION_EXIT_ALPHA_INPUT SAP Function module.. i know the use of this fuction module as it converts data in numeric format to character format which is only accpetable in SAP.. cant we do it manualy using the abap codes.. or else it is the only option to do so????

    Hi Ram,
    I guess Isaac got a little confused, anyways try the below code, forgot to add...just curious to know the reason behind your post...any specific reason why you want to avoid the FMs.
    DATA: l_vbeln TYPE vbeln VALUE '12345',
          l_overlay TYPE vbeln VALUE '0000000000'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = l_vbeln
    IMPORTING
       OUTPUT        = l_vbeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        input         = l_vbeln
    IMPORTING
       OUTPUT        = l_vbeln.
    * Code to replace Conversion exit alpha input
    SHIFT l_vbeln RIGHT DELETING TRAILING space.
    OVERLAY l_vbeln WITH l_overlay.
    * Code to replace Conversion exit alpha output
    SHIFT l_vbeln LEFT DELETING LEADING '0'.
    IF sy-subrc EQ 0.
    ENDIF.
    Regards,
    Chen
    Edited by: Chen K V on Jun 2, 2011 2:17 PM
    Edited by: Chen K V on Jun 2, 2011 2:18 PM

  • SAP Function Module Converting Stock UoM to the Billing UoM of the material

    Hi Guys,
    I'm looking for an SAP Function Module that can handle the automatic conversion of a material's Stock Unit of Measure into its Billing Unit of Measure.
    Any idea? 
    Thank you in advance.
    -allex

    Hi,
         Check this Function module
    OIU_QCI_CALC_BILLING_QUANTTIES
    Regards
    Bala Krishna

  • Crystal reports from SAP function module

    Hi,
    How to create report based on SAP function module...
    I tried it and succeeded for one function module... but i need single report for 3 function modules.
    Please let me know i can get them,,, please....!!
    When i select all 3, it showing links, what about Links??
    Thank You!

    No one answered it so far...!!

  • Where can i find clear information about sap function modules?

    where can i find clear information about sap function modules?
    for example,
    if i want to know whats the use of function module  "SAPGUI_PROGRESS_INDICATOR" .
    where i can find all the detail info..
    is there any sap transaction code for knowing about all function modules and there use?
    Regards
    Smitha

    Hi:
    For documentation, you have to find it out in se37 but it is not neccessary every Fm would have.
    Now question is about its used (if you know th e function module)-> go in se37-> put function module -> select where used list -> select used in like - program, class, BSP application etc -> click on ok; it would give the list of its used and just go in that find  how it is being used.
    if you have to find the function module for table - > go in se11 -> select table name -> click on where used list -> select function module  interface and click on ok, it would give the list of  its used.
    Otherwise go in g o o g l e dot  c o  m.
    Regards
    Shashi

  • Sap Function module

    Hello
    May I know is there any existing SAP function module that can be used to read description of status for table VBUK-KOSTA,FKSTA,WBSTA etc .. (picking status, billing status).
    Points will be rewarded if answer is helpful. TQ
    Message was edited by:
            Hui Leng Yeoh

    hi,
    Refer to this related thread
    Purpose of STATUS_READ function module
    Regards,
    Santosh

  • Calling function module in transformation

    Hello
    I want to call a function module in my transformation. What I am doing is tht i am calculating the date difference between the created date and system date. Now can someone explain me how will i import the values to the routine. Like do i have to link the start date to the transformation adn then call the FM.
    Please can someone explain.
    Thanks

    Hi,
    If you do so you will get the difference between the Created Date And the System Date on which day you will Load the data to the target.
    Is that you require
    I think you need this in reporting :
    the difference of Created Date & System date
    For this you need to Create Calculated Key Figures in Query Designer
    Hope you are all set
    Thanks
    Hari
    Edited by: Hari Gonuguntla on Aug 7, 2008 4:52 PM

Maybe you are looking for