cancel
Showing results for 
Search instead for 
Did you mean: 

Need info on how to delete Contracts

former_member184390
Participant
0 Kudos

Hi All,

I am new to SAP R/3. Please provide me info on transactions to create and delete contract and info on FM to delete Contracts in R/3 System..

All helpful answers will be rewarded.

Regards,

Udaya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Udaya,

Check this function module

BAPI_CUSTOMERCONTRACT_CHANGE.

Set the UPDATEFLAG as 'D' to delete the customer contract.

Set this parameter in the importing strcture of BAPISDH1X ie set BAPISDH1X-UPDATEFLAG = 'D'.

Thanks,

Vinay

Message was edited by:

Vinaykumar G

former_member184390
Participant
0 Kudos

Vinay,

Thanks a lot. It worked. Can you please tell me how to delete a line item in a given contract. I have tried but it is deleting the contract as a whole.

Please tell me the options that should be set for import parameters.

Regards,

Udaya

Former Member
0 Kudos

Hi Udaya,

Check the UPDATEFLAG as 'D' for the table parameters CONTRACT_ITEM_INX to delete a particular line item in a contract.

Give your line item to BAPISDITMX-ITM_NUMBER and BAPISDITMX-UPDATEFLAG as 'D' to the structure and APPEND this to table parameters

CONTRACT_ITEM_INX .

The required fields to be filled to execute this BAPI are:

1. Only enter fields that you want to change.

2. Mark the fields you want to change with an X.

3. Fill in the UPDATEFLAG field with a U.

4. Always enter the key fields when making changes, including in the checkbox list.

5. An exception is configuration. If you change this, you must fill it in completely.

6. Enter quantities and dates under schedule line data.

7. Possible update flags: U = change

D = delete

I = insert

Thanks,

Vinay

Answers (1)

Answers (1)

ferry_lianto
Active Contributor
0 Kudos

Hi,

You can use transaction VA41 to create new contract and VA42 to delete a contract (Menu: Sales Document -> Delete).

Also please check this BAPI BAPI_SALESORDER_CHANGE to delete contract.

Hope this will help.

Regards,

Ferry Lianto