Application Development 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: 

brake down duration field

Former Member
0 Kudos

i want the break down duration value in report.

actual value is 71.99 but in viqmel table it shows 2.8800000000000000E+04.

so how to convert that value into original.

or any other sollution for the same.

thank you.

4 REPLIES 4

faisal_altaf2
Active Contributor
0 Kudos

Hi, VARUN RAJULE

Test the following code it will solve out your problem, i have tested it is woking according to your requrements,

TABLES: viqmel.

TYPES: BEGIN OF t_viqmel,
  auszt LIKE viqmel-auszt,
  test TYPE p DECIMALS 2,
  END OF t_viqmel.

DATA: it_viqmel TYPE STANDARD TABLE OF t_viqmel WITH HEADER LINE.


SELECT * FROM viqmel
  INTO CORRESPONDING FIELDS OF TABLE it_viqmel.

LOOP AT it_viqmel.
  it_viqmel-test = it_viqmel-auszt.
  MODIFY it_viqmel FROM it_viqmel INDEX sy-tabix.
ENDLOOP.

Test the following Too it will display 10 Values on the Screen.

TABLES: viqmel.

TYPES: BEGIN OF t_viqmel,
  auszt LIKE viqmel-auszt,
  test TYPE p DECIMALS 2,
  END OF t_viqmel.

DATA: it_viqmel TYPE STANDARD TABLE OF t_viqmel WITH HEADER LINE.


SELECT auszt FROM viqmel UP TO 10 ROWS
  INTO CORRESPONDING FIELDS OF TABLE it_viqmel
  WHERE auszt ne '0'.

LOOP AT it_viqmel.
  it_viqmel-test = it_viqmel-auszt.
  MODIFY it_viqmel FROM it_viqmel INDEX sy-tabix.
ENDLOOP.

LOOP AT it_viqmel.
WRITE: / it_viqmel-auszt, it_viqmel-test.
ENDLOOP.

Please Reply if any Issue,

Kind Regards,

Faisal

Edited by: Faisal Altaf on Jan 31, 2009 7:44 PM

0 Kudos

Hi Faisal

Can you please send AMDP coding with above logic?

Is is possible to implement the conversion using AMDP code?

Kindly help!!!

Thanks in advance

former_member156446
Active Contributor
0 Kudos

check the FM: FLTP_CHAR_CONVERSION_FROM_SI

search in SE37 or forum with fltp

Former Member
0 Kudos

Hi,

refer to this link..