‎2010 Nov 02 5:03 AM
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
‎2010 Nov 02 5:24 AM
If u want to create contract order number the use CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
‎2010 Nov 02 5:26 AM
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.
‎2010 Nov 02 5:31 AM
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..
‎2010 Nov 02 7:43 AM
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