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: 

BAPI_PO_CREATE1 - Message ME 887

Former Member
0 Kudos

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!!!!!!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

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

0 Kudos

Thank you!

0 Kudos

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!!!

0 Kudos

Aditya,

do you have an example please?

Thank you!

0 Kudos

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.

Former Member
0 Kudos

please

Former Member
0 Kudos

Please!!!

Former Member
0 Kudos

Thanks!

I had implemented ME_BAPI_PO_CUST method map2i_extensionin.

0 Kudos

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.