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: 

Problem with header data in BAPI_CUSTOMERCONTRACT_CHANGE

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member191735
Active Contributor
0 Kudos

>

> 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

4 REPLIES 4

former_member582701
Contributor
0 Kudos

Are you filling with X the corresponding field in CONTRACT_HEADER_INX structure?

Are you informing the UPDATEFLAG field with U?

Regards,

Manel

0 Kudos

Yes.

former_member191735
Active Contributor
0 Kudos

>

> 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

Former Member
0 Kudos

Solved by Self