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

BAPI_CONTRACT_CHANGE

myriam_vanheygem
Explorer
0 Likes
2,074

How can I delete partners using this BAPI_CONTRACT_CHANGE function?

1 ACCEPTED SOLUTION
Read only

manthanraja
Active Participant
0 Likes
1,826

hi myriam ..

welcome to sdn

I would encourage you to please read the rules of engagement before posting basic questions

Are you sure you are using the correct BAPI ?

never the less

you must specify the purchasing document number ..

and

you should read the function module documentation ..

BR

Manthan.

9 REPLIES 9
Read only

manthanraja
Active Participant
0 Likes
1,827

hi myriam ..

welcome to sdn

I would encourage you to please read the rules of engagement before posting basic questions

Are you sure you are using the correct BAPI ?

never the less

you must specify the purchasing document number ..

and

you should read the function module documentation ..

BR

Manthan.

Read only

myriam_vanheygem
Explorer
0 Likes
1,826

Manthan;

I was able to add partners to the document , but I have no idea how I can delete a partner

In the partner table , there is a DELETE_IND field , but no further information how to use this field or BAPI.

Read only

0 Likes
1,826

Did you try setting the validity to the immediate time .. so that the validity runs out and the partner can then be deleted .. ?

Read only

myriam_vanheygem
Explorer
0 Likes
1,826

do you mean the validity from and to date of the contract ?

The contract was expired during my first tests and I was able to add partners .

I've changed the valid to date, but I can't delete partners

How do I fill the partner and partnerx table ?

Read only

0 Likes
1,826

do you mean the validity from and to date of the contract ?

The contract was expired during my first tests and I was able to add partners .

I've changed the valid to date, but I can't delete partners

How do I fill the partner and partnerx table ?

yes .. i meant the same .. ok ..

for filling those you can use me23n..

and u can change them using the same ..

BR

Manthan

Read only

myriam_vanheygem
Explorer
0 Likes
1,826

ME23N is to change a purchase order

I'm talking about purchase contracts

I've added a breakpoint in the BAPI and deleted a partner using me32k , but I didn't fall in the breakpoint

I just need to know how I have to fill the partner and partnerx to delete a partner

adding a partner is working when I fill

LT_PARTNER-PARTN_ROLE = 'EP'

LT_PARTNER-PARTNR = 'EP008747B1'

LT_PARTNERX-PARTN_ROLE = 'X'

LT_PARTNERX-PARTNR = 'X'

Read only

0 Likes
1,826

What i believe is like the link below about Po change

if you assign the *delete_ind = 'x ' * you will be able to flag the Contract for deletion

Also if this does not work .. there is another work around ..

like this link below in Structure Partnr you can have Actual values and for the same you can assign X values in PartnrX which will then help in over writing the contract

Parameter: POSCHEDULE

PO_ITEM = 00001

SCHED_LINE = 0001

QUANTITY = 10.000

PO_ITEM = 00001

SCHED_LINE = 0003

DELETE_IND = X

Parameter: POSCHEDULEX

PO_ITEM = 00001

SCHED_LINE = 0001

PO_ITEMX = X

SCHED_LINEX = X

QUANTITY = X

PO_ITEM = 00001

SCHED_LINE = 0003

PO_ITEMX = X

SCHED_LINEX = X

DELETE_IND = X

Reference Sravanthi's post from [here|;

Read only

myriam_vanheygem
Explorer
0 Likes
1,826

BAPI is updated by SAP to solve this problem

Read only

0 Likes
1,826

Hi Can you please let me know, how did you solve the problem,

I mean how are you able to delete the partners from the contract, what are the values you had passed, could you please help me on this.

Many thanks,

Prasad NN.