Skip to Content
author's profile photo Former Member
Former Member

FM CONVERSION_EXIT_ALPHA_INPUT

HAI EXPERTS,

my requirement is to use this FM CONVERSION_EXIT_ALPHA_INPUT for conversion of input fields.

i have around 6 fields to convert each with different length , i want to use this FM only once to convert all the 6 fields.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = tablename-fieldname "this part alone i need to input all the fields dynamically

IMPORTING

output = tablename-fieldname. "this part alone i need to input all the fields dynamically

i have to change the input and output names in the fm dynamically.

i need to call this fm in a perform and then change....

can anyone help me on this......

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 06:29 AM

    Hi,

    Call this FM within a Subroutine.

    PERFORM subname changing fieldname.

    FORM subname CHANGING fieldname

    CALL FUNCTION.

    ENDFORM.

    using this u can just cal the MF multiple times just replacing the field name in the PERFORM statement.

    REWARDS IF HELPFUL!!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      u can use a fieldsymbol and try assigning it the required fiedl when needed.

      do 6 times.

      case sy-index.

      when 1.

      assign field1 to <fs>.

      when 2.

      assign field2 to <fs>.

      when 3.

      assign field3 to <fs>.

      when 4.

      assign field4 to <fs>.

      when 5.

      assign field5 to <fs>.

      when 6.

      assign field6 to <fs>.

      endcase.

      CALL FUNCTION

      IMPORTING

      input = <fs>.

      EXPORTING

      output = field.

      endo.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 06:43 AM

    HI,

    Perform input_change changing Input1 .

    perform input_change changing input2 .

    .

    .

    .

    The form statement will be

    form input_change changing val1.

    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

    EXPORTING

    input = VAl1

    IMPORTING

    output = VAl2.

    clear val1.

    move val2 to val1.

    endform.

    Thanks,CS Reddy.

    **Please Reward if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2007 at 06:46 AM

    Hi,

    declare the fileds as character fields and u can pass like this

    perform sub_conversion using field

    form sub_conversion field type c

    call function 'CONVERSION_EXIT_ALPHA_INPUT'.

    IMPORTING

    INPUT = field

    EXPORTING

    OUTPUT = field

    endform.

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.