Conversion exit alpha

HI all i have to covert into nternal format as below.
Fields     Internal format     AUFK-WAERS
USER4     8.00                            INR
Fields     External format     AUFK-WAERS
ZUSER4     800.00                              INR
how can i do it?
i used conversion_exit_alpha_input but program is dumping.
Regards,
Oorvi

Try BAPI_CURRENCY_CONV_TO_INTERNAL.
  MOVE AUFK-ZZUSER4 TO I_AMOUNT_EXT.
  MOVE AUFK-WAERS TO I_SAP_CODE_EXT.
  CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL'
       EXPORTING
            CURRENCY             = I_SAP_CODE_EXT
            AMOUNT_EXTERNAL      = I_AMOUNT_EXT
            MAX_NUMBER_OF_DIGITS = 15
       IMPORTING
            AMOUNT_INTERNAL      = E_AMOUNT_SAP
            RETURN               = L_BAPIRETURN.
  * check RETURN
  MOVE E_AMOUNT_SAP TO AUFK-USER4.
If that don't work, what is the exact definition of ZZUSER4 field.
Regards,
Raymond

Similar Messages

  • Conversion exit ALPHA, external- internal

    What does the below Alpha Conversion do :
    <b>Conversion exit ALPHA, external->internal</b>
    An example wud help me understand better!!

    Hi,
    A conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the conversion from internal format to display format.
    E.g. If you specify ALPHA conversion for Material number then when user enters the value for MATNR as 123; internally it is converted to 0000123 and is stored in that format in the database. In this case, conversion is done from external format to internal format and the other way if you are reading value from database; it is converted from internal to external format and value is shown as 123, instead of 0000123.
    Hope this helps.
    PB

  • Conversion exits before value mapping in AIF

    Hi All
    I'm trying to use conversion exits before mapping in define value mapping, where I want to truncate leading zeroes in the source field before the value mapping is executed.
    I'm using the conversion exit 'ALPHA' (internal->external) to achieve this, but the leading zeroes do not get truncated. Below is an example-
    Conversion Exit: ALPHA
    Data Element for conversion:
    Direction: Internal->External
    Source Value: 0000012345
    Expected Value after conversion: 12345
    Actual Value after conversion: 0000012345
    A similar issue Error in reading a value from database table is noted here, however note 1892571 that is suggested does not seem to resolve the issue I'm facing.
    Am I missing something here?
    Regards
    Chandra

    Hi Glenn Bumanlag,
            I think the values that you have given for source values (Agency and scheme)
    and Target values (Agency and scheme) may be mismatching so kindly chek that...even i got the same error in the past..........
    If you the this problem kindly change it accordingly and also refresh the cache once you that with this.........
    Kindly follow the below mentioned link and check if you have followed these steps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    Thanks
    Sai     
    PS: kindly reward points if helpful

  • Conversion exit  - - settings

    I want to know about the following setting...
    SE16 -->settings --> User Parameters --> check conversion exit (check box)
    what is this? how it is useful?

    hi
    We use a conversion exit to define a jump to a conversion routine for a column of your output table. As the exit we specify the <conv> part of a function module called CONVERSION_EXIT_ <conv> _OUTPUT .
    For example, you can use conversion exit ALPHA (see function module CONVERSION_EXIT_ALPHA_OUTPUT ) to suppress leading zeros of account numbers.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = '00000123'
    IMPORTING
    OUTPUT = data
    Dta will contain 123 as output .
    hope this helps
    regards
    Aakash Banga

  • ALPHA Conversion Exit Problem

    Hi,
    I have an InfoObject ZPRODUCT1 with ALPHA Conversion Exit in RSD1 definition.In the Infosource and in the DataSource/Trans. Structure TAB when i check for the corresponding field it has some other Conversion exit called 'PRID1' and i couldn't change it.
    When i load the data i get the error at the PSA level itself and the message is,
    InfoObject /BIC/ZPRODUCT1 does not contain alpa-conforming value 80001909.
    How to fix this problem?
    Thank you
    arun

    Thanks,
      I already did that and it worked properly.
      Can you explain how come the conversion exit in Data source transfer structure and the InfoObject can be different?How did this worked?
      Will i be able to modify the Conversion exit assignment in the infoobject or Data Source/Trans. Structure TAB? How do i do this, it looks display only in RSD1?
    Thank you
    arun

  • BPS - No alpha conversion exit or similar provision?

    Dear BPS Experts,
    In the Flat File that we are loading to BPS Cube (using the HOW-TO Paper in SDN), if User is having a value 100000006 for Customer and value 10200058 for Material then the flat file upload exit fails. It works only when user changes the value for Customer to 000000000100000006 and value for Material to 0010200058.
    I believe, you must have understood my point.
    PROBLEM 1
    In BW, we have Conversion Exits like ALPHA that take care of internal to external format conversion and vice-versa. Unfortunately, in BPS, it seems system expects users to enter values as they exist in the master data tables like P Tables for Characteristics.
    QUE 1: Is my above understanding correct?
    We have many characteristics (25-30) in our file and I do not want to write a separate Exit to do any conversion like ALPHA, that would really slow down the performance.
    PROBLEM 2
    We have a field in the file called 'Manager Name'. Now this field can really have any value. It is not possible for us to load master data in BW for this field. If BPS is suffering from this basic limitation then I am afraid, we can not use it for loading flat file. We have to use only BW
    QUE 2: Is there any way, by which I can make BPS accept and load transaction data in BPS Cube even if some master data in that file does not exist. If so, then what is the way to go about it?
    I am aware of BW means to load Flat File data to BW/BPS Cubes. But we have many compelling reasons to use Planning Folder to load Flat File. Hence, if some expert can advice about overcoming these limitations with BPS then it would be highly appreciated.
    PS: I understand, functionally it does not make sense to plan for something which does not exist in master data. Having said so, there can be some exceptional situations and BPS being the sibling of BW, I expected it to have that capacity.
    Regards,
    Adi
    Edited by: Adi Kulkarni on Aug 13, 2009 3:13 PM

    Hi Deepti,
    I appreciate your link. That document is very good although it does not solve my problem.
    Please note that I am talking about loading a flat file to BPS Cube here and there may be hundreds of values which still do not exist in master data. Your suggested HOW-TO document will be helpful when someone tries to enter data in a planning layout as we do not expect users to enter so many records in planning layout.
    I am also aware that we can simply create a Z-Transaction Code (similar to RSD1) to update master data values for a particular InfoObject and Users can be given access to this code. But that is not what I intend to do.
    I am looking for a broader and generic solution.
    When we load a flat file to BW, we have an option in InfoPackage "Load Transaction Data even if no Master Data exists".. that kind of option or setting really along with something similar to ALPHA Conversion Exits.
    Hope my requirement is clearer.
    Regards,
    Adi
    Edited by: Adi Kulkarni on Aug 13, 2009 3:32 PM

  • Assigning Conversion Exit to a Select-Option on Selection Screen.

    Hi,
    Is it possible to assign Conversion Exit (Like ALPHA) to a Select-Option on a Selection Screen. If so can anyone please tell me how is this achieved.
    Thanks & Regards,
    Goutham.
    P.S.: Points will be definitely awarded.

    Hi Anjaneyulu,
    Thanks for the Reply.
    But the problem comes here, when he enters both the ranges as well as single values, using the extension button provided for the select-option.
    One option i found was in the layout of selection screen, to the select-option i assigned the ALPHA as conversion exit. But it says that this will be over-written once program/screen is generated.
    Kindly let me know if any one has a solution for this.
    Thanks & Regards,
    Goutham.

  • When is a conversion exit triggered?

    Hi,
    are conversion exits only triggered via GUI:s ?

    Hi
    Conversion Exits will triggered when u r input/output to a perticular data element which is associated with domain which is attached with conv routine.
    take an example
    suppose
    kunnr a domain whih is attached with ALPHA
    if i am giving 80 to store it in database it will store 0000000080 as its length is 10 char
    and while ouput it will show me 0000000080.
    i think now u got
    if helpful
    Reward me points
    Regs
    Manas Ranjan Panda

  • I would like to know about conversion exits.

    i would like to know about conversion exits.

    Hi,
    Under Domain of a data element of a field, Output Characterestics field 'Convers. routine' is used to create conversion routines, system will do the data changes with in these routines while storing the data into table and retriving the data from table.
    Ex: if coversion routine is defined as 'ALPHA' for a standard domain , with this value system will create two function modules.
    CONVERSION_EXIT_ALPHA_INPUT
    CONVERSION_EXIT_ALPHA_OUTPUT
    you can also create your own conversion routines by defining the value in this field. i have defined conversion routine to convert NUMC type data to DEC type data with 'ZCNV'.system will generate two FM's. you need to write the code in those FM's according to your logic.
    see the code for this :
    CONVERSION_EXIT_ZCNV_INPUT
    FUNCTION CONVERSION_EXIT_ZCNV_INPUT.
    ""Local interface:
    *" IMPORTING
    *" VALUE(INPUT)
    *" EXPORTING
    *" VALUE(OUTPUT)
    DATA : ws_output type numc10.
    ws_output = input.
    output = ws_output.
    ENDFUNCTION.
    CONVERSION_EXIT_ZCNV_OUTPUT
    FUNCTION CONVERSION_EXIT_ZCNV_OUTPUT.
    ""Local interface:
    *" IMPORTING
    *" REFERENCE(INPUT)
    *" EXPORTING
    *" REFERENCE(OUTPUT)
    data : ws_value type dec12.
    ws_value = input.
    WRITE: ws_value TO output DECIMALS 0.
    ENDFUNCTION.
    Thanks & Regards,
       Sunil

  • Conversion exit error in BW

    Hai friends,
    I am pulling master data for an infoobject ZPRODCODE. The pull has failed with the following error:
    InfoObject /BIC/ZPRODCODE does not contain alpa-conforming value 210
         Message no. RSAR196
    Diagnosis
         The system checked whether the loaded InfoObject value conforms to the
         conversion exit.The check failed.
         For example:
         The value '1' was loaded into an InfoObject with alpha exit, even though
         the value '0000000001' was expected.
    System response
         The load process has failed or the erroneous records are displayed in
         the monitor. This does not depend on how error handling is set up.
    Procedure
    Find out why the data does not conform to the conversion exit, and, if
    possible, correct the cause. Possible causes are errors in Business
    Content or an error in a customer exit in the source system.
    If you cannot correct the problem, you have the option of removing the
    conversion exit on the InfoObject. However, since the system has already
    been converted, duplicates appear in the system again.
        What should i do?
    Regards,
    Neha Solanki

    Hai friends,
        Thanx a plenty!!! My problem is solved.
    Regards,
    Neha Solanki

  • Conversion exit list

    Hi,
    is there a table in SAP where you can see the ABAP dictionary types and (if there exists) the conversion exit that the dictonary type belongs to?
    regards
    Baran

    Hi
    DD01L table contains the conversion exit name along with domain name
    like goto SE16 and give DD01L as table name and give kunnr in DOMNAME filed and execute.u will see that this domain is using ALPHA conv exit.
    reward points if helpful
    Regs
    Manas Ranjan Panda
    Message was edited by: MANAS PANDA

  • No Conversion exit entered

    Hi,
    I am new to SAP BW ,while creating a Datasource i am experiencing this error as "No Conversion exit entered" .Please help me on this .
    Thanks & Regards
    Sameer Khan

    Hi Vibhuti,
    How you created customer name and address, I mean to say data element? You can not have data with space except for short, medium and long text.
    Check if you are excluding first row as header in info package, if you have header in Flat file. Check if Lower case is ticked in Customer name and customer address.
    Regards,
    Kams

  • Conversion exit error while activating the transfer rules

    Hello gurus,
    We are doing a function module extraction with 3.X data sources.
    On activating the transfer rules , i am getting a conversion exit error for "0fiscyear", but in the infoobject we don't have the conversion exit for it.
    Points will be awarded for any kind of response.
    Thanks and Regards,
    Anu.

    Hi,
    1. Please check in the transformation, its necessary to provide the fiscal variant mapping as well when ur mapping fiscal year object. as on the basis of that value fiscal period will be derived.
    2 I guess ur doing direct mapping (Time conversion) and there is no routine written for that.  if any u can check that as well for any error.
    Thanks
    dipika
    Edited by: Dipika Tyagi on Jun 25, 2008 7:39 AM

  • How to find out the conversion exit format for VBRP-VRKME

    Hi Gurus,
               I am writing a report to fetch delivery details based on storage location'123'. My requirement is tat i shud convert the Billed Quantity unit TO Base unit of measure. In my VBRP table the field value/contents of VBRP-VRKME have values PAK for PAC( packets) and KAR for CAR(carton). When i click on User-specific Settings - - Check the filed CHEECK CONVERSION EXITS , i am able to get see the PAC and CAR respectively.
          But unfortunately when i selecting te fields form vbrp in my internal table i am getting the values 'PAK' for PAC and 'KAR' for CAR'. AS i am writing a report can any one suggest me how to convert this , as i wud b making use of FM MD_CONVERT_MATERIAL_UNIT  to convert to base unit of measure, n this FM is not accepting the values like PAK and CAK.
          Your Sugesstions are of utmost importance for me.
    Thanking you,
    ZIa

    Hi,
    Conversion routines are maintained at Domain Level(Definition Tab), Meins is the domain for VRKME data element.
    You have to use the following routines,
    CONVERSION_EXIT_CUNIT_INPUT
    CONVERSION_EXIT_CUNIT_OUTPUT
    Regards
    Srini

  • Web Dynpro ABAP: Assigning of Conversion Exits in ALV

    Hi,
    We are currently developing a generic data display application using ALV technology in Web Dynpro ABAP. "Generic" means that the structure of the data is created dynamically during runtime (using RTTS) and that even the contained data elements are created dynamically without any relation to DDIC. The generation is based on metadata like field name, data type, length, decimals, conversion exit.
    Our problem is that we were not able to find a way to assign the conversion exit of a data element ("column") in Web Dynpro ALV. Without this feature, no output conversions will take place since the data elements have no relation to DDIC. In the "classical" ALV, this could be easily done using method SET_EDIT_MASK of class CL_SALV_COLUMN.
    Is there a similar method in WebDynpro ALV or at least an alternative approach to assign a conversion exit to a column or cell?
    Thanks for your help in advance.
    Best Regards,
    Sven

    Hello Sven Hader,
    As you said you are generatiing the metadata like field name, data type, length, decimals, conversion exit dynamically.
    Can you please let me know how you are diong this?
    Meanwhile, you can try this approach to assign a Conversion exit to ALV Table column attribute dynamically.
    DATA:     lv_data                         TYPE  dd04v,
                  lv_mode_ext2int          type   ESEBOOLE. "Conversion mode that you are in
      read the data from the database
        CALL FUNCTION 'DDIF_DTEL_GET'
          EXPORTING
            name                = lv_ddobjname
            state               =   iv_object_state
            langu               =   iv_langu
          IMPORTING
            dd04v_wa         =   lv_data
          EXCEPTIONS
            illegal_input       = 1
            OTHERS           = 2.
        CHECK NOT lv_data-convexit IS INITIAL.
        CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_INPUT'
          INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_input.
        CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_OUTPUT'
          INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_output.
      IF lv_mode_ext2int = 'X'.
        ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_input
            TO <lv_funcname>.
      ELSE.
        ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_output
            TO <lv_funcname>.
      ENDIF.
    (3) call the conversion exit
      CHECK <lv_funcname> IS ASSIGNED.
      TRY.
          CALL FUNCTION <lv_funcname>
            EXPORTING
              input  = iv_value
            IMPORTING
              output = ev_value.
          IF sy-subrc <> 0.
          ENDIF.
        CATCH cx_sy_dyn_call_illegal_func
              cx_sy_dyn_call_illegal_type
              cx_sy_dyn_call_param_missing
              cx_sy_dyn_call_param_not_found.               "#EC NO_HANDLER
      ENDTRY.
    Endif.
    I hope it should work.
    Thanks,
    Bharath.K
    Edited by: Bharath Komarapalem on Dec 16, 2008 2:47 PM

Maybe you are looking for

  • Opening Stock and Closing Stock

    Hi,   I have one requirement to get a opening stock and closing stock of all materials,  based on the plant date and mat type. Could u tell me the flow of tables one by one Its is possible to get the opening stock and closing stock of all materials.

  • Is there any standard variable to calculate previous and current month

    hi, Is there any standar variable to calculate previous month and current month which will calcualte from system date (sy-date). I found standard SAP Delivered variable - 0CMONTH to calculate current month. But i want both current month and previous

  • What is the syntax for a CASE statement in Crystal XI

    I'm having difficulty locating documentation for the use of CASE statements in Crystal syntax. My database administrator does not allow me to write SQL expressions so I need to covert the SQL below to Crystal Syntax. Can anyone help me? Thank you ver

  • Real time labels on x-axis

    Hi all I thought I had cracked the business of putting realtime labels on the x-axis of Labview charts but today I found that the way I had done it was failing at any times between midnight and 01:00. In the past I have used a property node for my ch

  • Safari update need to disable feature

    Ever since I got the latest safari update, when I start typing a domain to visit safari brings up suggestive sites to visit as I type and I keep getting directed to different places unless I type the entire domain name. How can I turn this feature OF