‎2012 Aug 31 1:23 PM
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
.
‎2012 Sep 03 7:05 AM
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.
‎2012 Aug 31 1:32 PM
‎2012 Sep 01 5:22 AM
Short text:
Type conflict when calling a function module (field length),
A function module was called incorrectly.
‎2012 Sep 01 5:22 AM
Short text:
Type conflict when calling a function module (field length),
A function module was called incorrectly.
‎2012 Sep 03 7:05 AM
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.
‎2012 Sep 03 7:28 AM
Change it_pekpo to the structure of EKPO.
DATA:
IT_PEKPO to TYPE STANDARD TABLE OF ekpo.
‎2012 Sep 03 9:05 AM
Hi shambu
I have tried exactly as u said ,but still dump is coming with description type conflict and calling of incorrect function module .
‎2012 Sep 03 9:18 AM
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
‎2012 Sep 03 9:59 AM
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
.
‎2012 Sep 03 10:04 AM
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
‎2012 Sep 03 10:21 AM
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.