‎2011 Feb 11 12:00 PM
Hi ,
I am not able to change header data in BAPI_CUSTOMERCONTRACT_CHANGE when i want to change the sales office in va42,
but it is posting the partnerchanges successfully.
It is giving the error message as "E |VP |107 |FB call: insufficient parameters < |PARTNER "
Here i am not using any PARTNER in my bapi.
CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = lv_vbeln
contract_header_in = con_header
contract_header_inx = con_header_inx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
TABLES
CONTRACT_ITEM_IN =
contract_item_inx = it_it
PARTNERS =
partnerchanges = it_partnerchanges
Please let me know what i need to do.
Thanks,
Shirisha
‎2011 Feb 11 6:42 PM
>
> Hi ,
>
> I am not able to change header data in BAPI_CUSTOMERCONTRACT_CHANGE when i want to change the sales office in va42,
> but it is posting the partnerchanges successfully.
> It is giving the error message as "E |VP |107 |FB call: insufficient parameters < |PARTNER "
> Here i am not using any PARTNER in my bapi.
> CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
> EXPORTING
> salesdocument = lv_vbeln
> contract_header_in = con_header
> contract_header_inx = con_header_inx
> * SIMULATION =
> * BEHAVE_WHEN_ERROR = ' '
> * INT_NUMBER_ASSIGNMENT = ' '
> * LOGIC_SWITCH =
> TABLES
> * CONTRACT_ITEM_IN =
> contract_item_inx = it_it
> * PARTNERS =
> partnerchanges = it_partnerchanges
>
> Please let me know what i need to do.
>
> Thanks,
> Shirisha
So if you are not passing any partner information and if you only want to change the Header information, you dont need to pass anything except the header information.
CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = lv_vbeln
contract_header_in = con_header
contract_header_inx = con_header_inx
TABLES
return = it_return.
This should do the trick. Just pass the following info
SALESDOCUMENT - Contract number
CONTRACT_HEADER_IN - Fill this out with 'SALES_OFF' (sales office)
CONTRACT_HEADER_INX - fill this out with UPDATEFLAG = 'U' and SALES_OFF = 'X'.
good luck
‎2011 Feb 11 12:05 PM
Are you filling with X the corresponding field in CONTRACT_HEADER_INX structure?
Are you informing the UPDATEFLAG field with U?
Regards,
Manel
‎2011 Feb 11 12:07 PM
‎2011 Feb 11 6:42 PM
>
> Hi ,
>
> I am not able to change header data in BAPI_CUSTOMERCONTRACT_CHANGE when i want to change the sales office in va42,
> but it is posting the partnerchanges successfully.
> It is giving the error message as "E |VP |107 |FB call: insufficient parameters < |PARTNER "
> Here i am not using any PARTNER in my bapi.
> CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
> EXPORTING
> salesdocument = lv_vbeln
> contract_header_in = con_header
> contract_header_inx = con_header_inx
> * SIMULATION =
> * BEHAVE_WHEN_ERROR = ' '
> * INT_NUMBER_ASSIGNMENT = ' '
> * LOGIC_SWITCH =
> TABLES
> * CONTRACT_ITEM_IN =
> contract_item_inx = it_it
> * PARTNERS =
> partnerchanges = it_partnerchanges
>
> Please let me know what i need to do.
>
> Thanks,
> Shirisha
So if you are not passing any partner information and if you only want to change the Header information, you dont need to pass anything except the header information.
CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = lv_vbeln
contract_header_in = con_header
contract_header_inx = con_header_inx
TABLES
return = it_return.
This should do the trick. Just pass the following info
SALESDOCUMENT - Contract number
CONTRACT_HEADER_IN - Fill this out with 'SALES_OFF' (sales office)
CONTRACT_HEADER_INX - fill this out with UPDATEFLAG = 'U' and SALES_OFF = 'X'.
good luck
‎2011 Feb 14 5:01 AM