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

not getting output when iam using where conditiCONVERSION_EXIT_ATINN_INPUT

hi all,

iam not getting output when iam going to execute my code using CONVERSION_EXIT_ATINN_INPUT if iam using where condition.

my syn is.

data v1 type atinn.

iam using 3 fields in table structure which i specified in select query

call function ' CONVERSION_EXIT_ATINN_INPUT'

importing

input = v1

exporting

output = v1.

select ATWRT ATWTB ATINN from wrf_apc_v_cawnt(view) into it where atinn = v1.

loop

write.

enloop.

what may the problem just reply i want to convert u2018PP_AT_INDEPENDENTu2019 of atinn.

thanku

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 12:28 PM

    Hi

    Try to check if there's a record in table CABN where the field ATNAM = 'PP_AT_INDEPENDENTu2019

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Yes Maen is right

      You can't use V1 (like ATINN) as EXPORTING and IMPORTING parameter, because ATINN is a numeric field, but the name has to be char value:

      DATA: V1 TYPE ATNAM,
            V2 TYPE ATINN.
      DATA IT TYPE STANDARD TABLE OF WRF_APC_V_CAWNT WITH HEADER LINE.
      
      V1 = 'Z_TIPO_DOC_RDA'.
      
      CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
        EXPORTING
          INPUT  = V1
        IMPORTING
          OUTPUT = V2.
      
      SELECT *
        FROM WRF_APC_V_CAWNT
         INTO TABLE IT WHERE ATINN = V2.
      
      LOOP AT IT.
        WRITE: / IT-ATINN, IT-ATWRT, IT-ATWTB.
      ENDLOOP.

      Max

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 12:40 PM

    and maybe use another field to store the return value.

    data: v2 type cabn-atnam.

    On second thought: use the OUTPUIT version of the function. You're looking for ATIINN based on ATNAM and not the other way around.

    Ok.. seems i'm getting dead tired and start to misread stuff.

    Make sure your input field is type ATNAM and the output field is type ATINN. Now you pass a field type ATIINN both as input and output. That might be your prooblem.

    Edited by: Maen Anachronos on Sep 22, 2011 2:41 PM

    Edited by: Maen Anachronos on Sep 22, 2011 2:43 PM

    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.