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

Dump while calling lt_xaend in a function module ME_READ_CHANGES_EINKBELEG report

Former Member
0 Likes
1,354

  Hi

i got Dump while calling lt_xaend in report having a function module ME_READ_CHANGES_EINKBELEG. I have to use this Function module for tax invoice z report with smartform .

TYPES: BEGIN OF ty_chg_texts,

ebeln TYPE ekpo-ebeln,        "Purchase Order number

ebelp TYPE ekpo-ebelp,        "Line item number

ctxnr TYPE t166t-ctxnr,       "Text number for change text

chtxt TYPE t166t-chtxt,       "Description of Changed Field in Printout

f_old TYPE cdshw-f_old,       "Old value

f_new TYPE cdshw-f_new,       "New/changed value

END OF ty_chg_texts.

TYPES: BEGIN OF ty_meein_xaend.

         INCLUDE STRUCTURE cdshw.

TYPES:

ebelp LIKE ekpo-ebelp,        "PO number

zekkn LIKE ekkn-zekkn,        "Sequential Number of Account Assignment

etenr LIKE eket-etenr,        "Delivery Schedule Line Counter

ctxnr LIKE t166c-ctxnr,       "Text number for change text

rounr LIKE t166c-rounr,       "Routing number

insert,

flag_adrnr,

END OF ty_meein_xaend.

TYPES: ty_meein_xaend_tab TYPE STANDARD TABLE OF ty_meein_xaend.

DATA: IT_PEKPO TYPE STANDARD TABLE OF PEKPO.

DATA:  is_ekko TYPE EKKO,

       GT_CHG_TEXTS type standard table of TY_CHG_TEXTS.

DATA: lt_xaend TYPE STANDARD TABLE OF ty_meein_xaend,

       ls_xaend TYPE ty_meein_xaend,

       ls_chg_texts TYPE TY_CHG_TEXTS.

     CALL FUNCTION 'ME_READ_CHANGES_EINKBELEG'

   EXPORTING

*   ADDRESS_NUMBER        =

     document              = is_ekko

*   DATE_OF_CHANGE        = '31-08-2012'

*   TIME_OF_CHANGE        =

     print_operation       = '2'

   TABLES

*   XCDHDR                =

*   XCDSHW                =

     xekpo                 = IT_PEKPO

     xaend                 = lt_xaend

           .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,284

  CALL FUNCTION 'ME_READ_CHANGES_EINKBELEG'

   EXPORTING

*   ADDRESS_NUMBER        =

     document              = is_ekko

*   DATE_OF_CHANGE        = '31-08-2012'

*   TIME_OF_CHANGE        =

     print_operation       = '2'

   TABLES

*   XCDHDR                =

*   XCDSHW                =

     xekpo                 = IT_PEKPO

     xaend                 = lt_xaend

Short text:

Type conflict when calling a function module (field length),

A function module was called incorrectly.

10 REPLIES 10
Read only

Former Member
0 Likes
1,284

Hi,

post the error dump description...

Read only

0 Likes
1,284

Short text:

Type conflict when calling a function module (field length),

A function module was called incorrectly.

Read only

0 Likes
1,284

Short text:

Type conflict when calling a function module (field length),

A function module was called incorrectly.

Read only

Former Member
0 Likes
1,285

  CALL FUNCTION 'ME_READ_CHANGES_EINKBELEG'

   EXPORTING

*   ADDRESS_NUMBER        =

     document              = is_ekko

*   DATE_OF_CHANGE        = '31-08-2012'

*   TIME_OF_CHANGE        =

     print_operation       = '2'

   TABLES

*   XCDHDR                =

*   XCDSHW                =

     xekpo                 = IT_PEKPO

     xaend                 = lt_xaend

Short text:

Type conflict when calling a function module (field length),

A function module was called incorrectly.

Read only

0 Likes
1,284

Change it_pekpo to the structure of EKPO.

DATA:

IT_PEKPO to TYPE STANDARD TABLE OF ekpo.

Read only

0 Likes
1,284

Hi shambu

  I have tried exactly as u said ,but still dump is coming with description type conflict and calling of incorrect function module . 

Read only

0 Likes
1,284

Hi,

I have tried that and its not giving any dump for me.

Put the code here and error analysis section of your dump here from ST22.

Thanks,

Shambu

Read only

0 Likes
1,284

Hi

  this code i have written before calling a smart form.

*****************************  Added on 31.8.2012 for old value

  TYPES: BEGIN OF ty_chg_texts,

*ebeln TYPE ekpo-ebeln,        "Purchase Order number

ebelp TYPE ekpo-ebelp,        "Line item number

ctxnr TYPE t166t-ctxnr,       "Text number for change text

chtxt TYPE t166t-chtxt,       "Description of Changed Field in Printout

f_old TYPE cdshw-f_old,       "Old value

f_new TYPE cdshw-f_new,       "New/changed value

END OF ty_chg_texts.

TYPES: BEGIN OF ty_meein_xaend.

         INCLUDE STRUCTURE cdshw.

TYPES:

*ebelp LIKE ekpo-ebelp,        "PO number

zekkn LIKE ekkn-zekkn,        "Sequential Number of Account Assignment

etenr LIKE eket-etenr,        "Delivery Schedule Line Counter

ctxnr LIKE t166c-ctxnr,       "Text number for change text

rounr LIKE t166c-rounr,       "Routing number

insert,

flag_adrnr,

END OF ty_meein_xaend.

TYPES: ty_meein_xaend_tab TYPE STANDARD TABLE OF ty_meein_xaend.

types: IT_PEKPO TYPE STANDARD TABLE OF EKPO.

DATA:  is_ekko TYPE EKKO,

       GT_CHG_TEXTS type standard table of TY_CHG_TEXTS.

DATA: It_xaend TYPE STANDARD TABLE OF ty_meein_xaend,

       ls_xaend TYPE ty_meein_xaend,

       ls_chg_texts TYPE TY_CHG_TEXTS.

   CALL FUNCTION 'ME_READ_CHANGES_EINKBELEG'

     EXPORTING

*     ADDRESS_NUMBER        =

       document              = is_ekko

*     DATE_OF_CHANGE        =

*     TIME_OF_CHANGE        =

       print_operation       = '2'

     TABLES

*     XCDHDR                =

*     XCDSHW                =

       xekpo                 = IT_EKPO

*     XAEND                 = IT_XAEND

          .

Read only

0 Likes
1,284

Change this to the below section.

*****************************  Added on 31.8.2012 for old value

 

TYPES: BEGIN OF ty_chg_texts,

 

*ebeln TYPE ekpo-ebeln, "Purchase Order number

 

ebelp TYPE ekpo-ebelp, "Line item number

ctxnr TYPE t166t-ctxnr, "Text number for change text

chtxt TYPE t166t-chtxt, "Description of Changed Field in Printout

f_old TYPE cdshw-f_old, "Old value

f_new TYPE cdshw-f_new, "New/changed value

END OF ty_chg_texts.

 

TYPES: BEGIN OF ty_meein_xaend.

INCLUDE STRUCTURE cdshw.

 

TYPES:

 

*ebelp LIKE ekpo-ebelp, "PO number

 

zekkn LIKE ekkn-zekkn, "Sequential Number of Account Assignment

etenr LIKE eket-etenr, "Delivery Schedule Line Counter

ctxnr LIKE t166c-ctxnr, "Text number for change text

rounr LIKE t166c-rounr, "Routing number

insert,

flag_adrnr,

END OF ty_meein_xaend.

 

TYPES: ty_meein_xaend_tab TYPE STANDARD TABLE OF ty_meein_xaend.

DATA: it_pekpo TYPE STANDARD TABLE OF ekpo.

 

DATA: is_ekko TYPE ekko,

gt_chg_texts TYPE STANDARD TABLE OF ty_chg_texts.

 

DATA: it_xaend TYPE STANDARD TABLE OF ty_meein_xaend,

ls_xaend TYPE ty_meein_xaend,

ls_chg_texts TYPE ty_chg_texts.

 

CALL FUNCTION 'ME_READ_CHANGES_EINKBELEG'

EXPORTING

 

* ADDRESS_NUMBER =

 

document = is_ekko

 

* DATE_OF_CHANGE =

 

* TIME_OF_CHANGE =

 

print_operation = '2'

TABLES

 

* XCDHDR =

 

* XCDSHW =

 

xekpo = it_pekpo.

 

* XAEND = IT_XAEND

Read only

0 Likes
1,284

Hi

Thanx for the help now the dump is not coming, smart form is calling.

But the FM not works .Means it is not displaying the old value ,still its displaying the new value  in the smart form.

So the client requirement if they take print out of invoice number 85 then

it should be pick rate of 2000 rs instead of 2500.