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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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...!!

  • 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

  • Not allow to save the billing document in the back date if FI period closed

    Hi ,
    We have a requirment in which end user should not be able to create the billing document if the billing date lies in FI posting period which has been closed.
    As of now the users are being able to create the billing documents even if the Billing date lies in the closed posting period but the sccounting document does not gets generated.
    Now we want to block the billing document creation as well.
    Please provide some pointers to the above scenaio. Thanks..

    hello,
    Has your query been solved.
    if not , here is the solution.
    go to the program RV60AFZZ. This is the exit for billing.
    In that there is a form called
    FORM userexit_number_range USING us_range_intern.
    in the form you have to write the code.
    variables to pass for the function module.
    DATA: lv_buper  LIKE  t009b-poper,
            lv_gjahr  LIKE  t009b-bdatj.
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date               = syst-datum
            i_periv              = 'V3'
         IMPORTING
           e_buper              = lv_buper
           e_gjahr              = lv_gjahr
    in lv_buper you will get the last posting period which is open ie the posting period month.
    based on lv_buper you get , you can write your validations.
    You have to remember that the posting period which u get is based on the fiscal year.
    hope that helps.
    reward if useful.
    cheers,
    Ravi Kiran.

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • Not to allow to save the billing document in the back date if FI period clo

    Can anybody help me please. My FI period for october is closed. But there are still some open delivery documents in billing due list for October. So now let say on 7th december if i will make the billing documents by giving the date 30.11.2007 logically as FI period is closed it will allow to save the billing document but will not pass to accounting.
    So this normaly happening in my industry endusers are creating the billing documents in the back date even after the period close so all the documents come into VFX3.
    So can any body help me? Can we have any check if the FI period is closed for a perticular months if we will try to make the billing documents in the closed period it will not allow to generate the billing document rather saving the documents and blocking for accounting.
    Reggards.
    Laxmikanta Das.
    09958119889.

    Dear laxmikanta
    I also not come across the situation what you said and hence dont have much idea about authorization group.
    However, on going through the F1 help, it says
    <b>Procedure</b>
        If only a limited set of users is to be able to post in a particular
        posting period, proceed as follows:
                 o   Add the posting period authorization (authorization object
            F_BKPF_BUP) to the authorizations of the selected users. Assign an
            authorization group (e.g. '0001').
                  o   Enter the account type '+' for the posting period variant to which
            the restriction is to apply. Enter the period(s) whose use is to be
            restricted in the first period, those which are available to all
            users in the second period, and the authorization group (e.g.
            '0001') in the last column.
    <b>Examples</b>
        A posting period can be successively restricted. If, e.g. 10 users have
        the posting period authorization with authorization group '0001', and 3
        of these 10 users also with authorization group '0002'.
        If the period is only to be accessible to the 10 selected users the
        authorization group '0001' is entered in the posting period variant.
        Access can later be restricted to the remaining 3 users by entering
        '0002'.
    From the above, I feel your requirement can be met.
    Thanks
    G. Lakshmipathi

Maybe you are looking for