Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pleae explain the output

Former Member
0 Likes
740

Hello all,

I've a test-code in this way..

REPORT  yh_sample.
data: 
  w_auart LIKE vbak-auart.
w_auart = 'TA'.
WRITE w_auart.

The output of the above code is 'OR'. How do I get the correct output?

P.S.: I've actually used a where condition in another program where I had to hard-code the value of AUART.

Thanks

Indu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
699

Hello Indu,

Since conversion routine is exiting in the Domain, While printing it will change the value.

To skip the conversion you have to write the code in the below mentioned way.

WRITE w_auart USING NO EDIT MASK.

Regards,

Raghu

5 REPLIES 5
Read only

former_member195383
Active Contributor
0 Likes
699

click on field vbak-auart on the program->u ll come in to the table->click on the field type--->it will take u to the dataelement..then go to the domain...there is a conversion routine..in the domain...based on that the values get changed ....

Reward if useful...

Edited by: Rudra Prasanna Mohapatra on Jun 30, 2008 9:12 AM

Read only

Former Member
0 Likes
699

Hello

Try this:


  data:
  w_auart LIKE vbak-auart,
  z_auart(4).
  w_auart = '  TA'.
  write w_auart to z_auart.
  shift z_auart left deleting leading space.
  write z_auart.

Read only

Former Member
0 Likes
700

Hello Indu,

Since conversion routine is exiting in the Domain, While printing it will change the value.

To skip the conversion you have to write the code in the below mentioned way.

WRITE w_auart USING NO EDIT MASK.

Regards,

Raghu

Read only

Former Member
0 Likes
699

hi Indu,

You have conversion exit for auart mentioned at domain level.

pass the parameter to the conversion exit

CONVERSION_EXIT_AUART_INPUT

You can pass the same variable or different variable to the importing parameter.

Your desired output is retrieved

hope this will solve your issue

regards

padma