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

ASSIGN_TYPE_CONFLICT - BAPI_CONTRACT_CREATE

Former Member
0 Likes
624

Hi Gurus,

I'm encountering a dump ASSIGN_TYPE_CONFLICT when using BAPI_CONTRACT_CREATE and BAPI_CONTRACT_CHANGE.

The parameters of my BAPI are as follows:

call function 'BAPI_CONTRACT_CREATE'

exporting

header = wa_header

headerx = wa_headerx

testrun = v_testrun

importing

purchasingdocument = v_contract

tables

return = wa_return

item = i_item

itemx = i_itemx.

Can please someone help me regarding my issue in dump?

<<unacceptable promise removed by moderator>>

Please.

Thanks in advance.

Edited by: kishan P on Nov 2, 2010 10:53 AM

4 REPLIES 4
Read only

Former Member
0 Likes
554

If u want to create contract order number the use CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'

Read only

Former Member
0 Likes
554

Please let us know how you have declared the parameters passed to this FM.

The parameters you passed to the FM should be of same data type as they are declared in FM.

Read only

0 Likes
554

Hi PawanG,

This is how I declared my parameters:

data:

wa_header type bapimeoutheader,

wa_headerx type bapimeoutheaderx,

i_item type bapimeout_t_item,

wa_item type bapimeoutitem,

i_itemx type bapimeout_t_itemx,

wa_itemx type bapimeoutitemx,

v_testrun type bapiflag-bapiflag.

But still I encounter the dump.

Please help.. badly need your help guys..

Read only

0 Likes
554

Hi,

What about wa_return passed to FM? if all the parameters passed to the BAPI are correct then check below points.

Assign type conflict will happen when there is a type mismatch in ASSIGN statement in program (with field symbols).

In the dump you will get the sorce code extract where this dump occured in program, is it the ASSIGN statement?.

Put the breakpoint at the place where error occured and check the statement in debugging and analyse the error.

Seems there is something wrong in data you are passing to the FM.

Regards,

Pawan