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: 

Type conflict during a function module call (field length).??

0 Kudos
4,738

Hello All,

I am trying to call a bapi for PO upload i.e, bapi_po_create1.

Everything is working fine ,the internal tables for bapi tables are also filled

But when my function module for 'bapi_po_create1' calls,just before i get a dump saying

"   Type conflict during a function module call (field length)."

The call to function module "BAPI_PO_CREATE1" is incorrect:

In the function module interface, it was stipulated that only fields of

a specific type and length can be specified under "POHEADER". The currently

specified field )"GT_POHEADER") has the right type, but its length is

  incorrect.

i am passing these tables in bapi.

CALL FUNCTION 'BAPI_PO_CREATE1'                                           

         EXPORTING

           poheader       = gt_poheader

           poheaderx      = gt_poheaderx

         TABLES

           return         = gt_return

           poitem         = gt_poitem

           poitemx        = gt_poitemx

           poaddrdelivery = gt_podelivery_address

           poschedule     = gt_poschedule

           poschedulex    = gt_poschedulex

           poaccount      = gt_poaccount

           poaccountx     = gt_poaccountx

           potextheader   = gt_potextheader

           potextitem     = gt_potext.

        

Please help me for this.

1 ACCEPTED SOLUTION

michael_kozlowski
Active Contributor
0 Kudos
588

please try: gt_header TYPE bapimepoheader

4 REPLIES 4

michael_kozlowski
Active Contributor
0 Kudos
589

please try: gt_header TYPE bapimepoheader

0 Kudos
588

This message was moderated.

0 Kudos
588

Hi Siddhant,

While calling a BAPI always make sure that the Internal tables passed to the BAPI are of the same type which are decalred in the BAPI.

588

Hello Samir,

I got the answer,while calling the bapi
i was passing the the whole internal table for header.

but ideally i should pass workarea when calling bapi function module.

So thanks anyways.

Regards
Siddhant Patel