Skip to Content
0
Former Member
May 06, 2008 at 04:24 AM

Forex Valuation Error

99 Views

Hi Friends,

While executing the Foreign Currency Valuation i got Runtime Error with the following message.

Could somebody shed valuable time and guide how to resolve it.

Runtime Errors OBJECT_NOT_STRUCTURED

Date and Time 06.05.2008 09:48:40

What happened?

Error in the ABAP Application Program

The current ABAP program "FAGL_FC_VALUATION" had to be terminated because it

has

come across a statement that unfortunately cannot be executed.

Error analysis

The MOVE-CORRESPONDING statement can only be used on operands with a

structured type.

In the case at hand, this condition is not fulfilled: Operand "<GH_BUCHUNG>"

has

the type "C".

Trigger Location of Runtime Error

Program FAGL_FC_VALUATION

Include FAGL_FC_I1

Row 581

Module type (FORM)

Module Name LISTE

Source Code Extract

551 endif.

552 else.

553 ld_txt = ld_no+2.

554 endif.

555 else.

556 ld_txt = ld_no+1.

557 endif.

558 else.

559 ld_txt = ld_no.

560 endif.

561

562 if ld_stats-MSG_CNT_A > 0.

563 gs_message-icon = lc_critical.

564 elseif ld_stats-MSG_CNT_E > 0.

565 gs_message-icon = lc_error.

566 elseif ld_stats-MSG_CNT_W > 0.

567 gs_message-icon = lc_warning.

568 elseif ld_stats-MSG_CNT_I > 0.

569 if gs_message-icon ne lc_info.

570 gs_message-icon = lc_info.

571 endif.

572 endif.

573

574 concatenate ld_txt text-044

575 into gs_message-text separated by space.

576

*577 * get number of postings for display*

578 describe table <gt_buchung> lines ld_no.

579 read table <gt_buchung> index ld_no

580 ASSIGNING <gh_buchung>. "into buchung.

>>>>> MOVE-CORRESPONDING <gh_buchung> TO buchung.

582

583

584 ld_no = buchung-post.

*585 * remove leading zeros without a place holder!*

586 if ld_no(1) = 0.

587 if ld_no(2) = 0.

588 if ld_no(3) = 0.

589 if ld_no(4) = 0.

590 if ld_no(5) = 0.

591 if ld_no(6) = 0.

592 clear ld_txt.

593 else.

594 ld_txt = ld_no+5.

595 endif.

596 else.

597 ld_txt = ld_no+4.

598 endif.

599 else.

600 ld_txt = ld_no+3.

Thanks in Advance