12-27-2007 1:42 PM
Hi people,
I´m having a problem when using BAPI_PO_CREATE1 in ERP 6.0.
I have Z fields in CI_EKKODB, some of them are type CHAR other DEC, INT4.
When I execute the function, I receive the following messages in return table, and the PO is not generated:
All the messages are warning messages:
ME 887 - Error transferring ExtensionIn data for enhancement CI_EKKODB
ME 887 - Error transferring ExtensionIn data for enhancement CI_EKPODB
Do you know what I can do to solve this? Any ideas?
Thank you!!!!!!!!
12-27-2007 5:46 PM
Hi,
First of all, ensure all the new fields added under the customer include CI_EKKODB are character like. Please check the long text on the message ME887 from SE91 for more information on this.
If it is not avoidable, then you need to implement a enhancement spot ME_BAPI_PO_CUST method map2i_extensionin, and in the implementation for this method of the spot, you need to transfer the non-character like fields to a structure with all character like fields.
This will solve the problem.
Hope this helps.
Regards,
Aditya Laud
12-27-2007 5:46 PM
Hi,
First of all, ensure all the new fields added under the customer include CI_EKKODB are character like. Please check the long text on the message ME887 from SE91 for more information on this.
If it is not avoidable, then you need to implement a enhancement spot ME_BAPI_PO_CUST method map2i_extensionin, and in the implementation for this method of the spot, you need to transfer the non-character like fields to a structure with all character like fields.
This will solve the problem.
Hope this helps.
Regards,
Aditya Laud
12-27-2007 7:49 PM
12-28-2007 4:11 PM
Hello Aditya,
I have some fields in CI_EKKODB that are no character-like.
This problem aborts everything? In this case, in EXIT_SAPL2012_001, I´m creating a extensionin table with only three fields that are character type. But when I check the Purchase Order, these three fields (Char) are not there.
Thanks!!!
01-03-2008 3:50 PM
04-23-2014 5:37 PM
Hi. I Have some problems in bapi_contract_create with strucuture CI_EKKODB. Get message 887. Could you help me?
I don´t no the steps to implement this solution.
12-28-2007 4:11 PM
01-03-2008 3:50 PM
02-07-2008 3:41 PM
Thanks!
I had implemented ME_BAPI_PO_CUST method map2i_extensionin.
07-16-2008 9:54 PM
Hi MRM,
Thanks for your time.
I had created the class for the interface, F_EX_ME_BAPI_PO_CREATE_02.
This method map2i_extensionin for the object ME_BAPI_PO_CUST is implemented.
However, my problem is not able to convert the non-character like fields to a flat structure with all character like fields.
The changing parameter ch_struc is defined as followed:
{poitem char 5
length pack 4
width pack 6
}
Copy part of Code from L2012f23
//////
call customer BAdI for inbound mapping of extensionin
TRY.
CALL BADI lr_badi->map2i_extensionin
EXPORTING
im_container = im_container
im_name = im_name
im_error = lf_exit
CHANGING
ch_struc = ch_struc.
CATCH cx_mmpur_root.
EXIT.
ENDTRY.
CHECK lf_exit EQ cl_mmpur_constants=>no.
TRY.
ASSIGN ch_struc TO <fs>. (this is where short dump)
convert container data to target structure
im_nls->cont_to_struc( EXPORTING cont = im_container
langu = sy-langu
IMPORTING struc = <fs> ).
CATCH: cx_root.
ENDTRY.
////
A short dump is created when it hit this code "ASSIGN ch_struc TO <fs>."
The reason is that the ch_struc contains pack data value instead all character values.
Can you please advise how you convert the non-character value within the map2i_extensionin method?
Thanks.