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_REQUIREMENTS_CHANGE

Former Member
0 Likes
6,858

Dear Experts,

I want to create and change PIR (planned indepedent requirement) through MD61 and MD62.

for that BAPI_REQUIREMENTS_CREATE and BAPI_REQUIREMENTS_CHANGE is available.

I want to create/add requirement for first time BAPI_REQUIREMENTS_CREATE is fine for that...

But when I want to add or change the existing requirement I have to use the BAPI_REQUIREMENTS_CHANGE ....and add or change there...now the problem is .........

after executing BAPI_REQUIREMENTS_CHANGE , earlier requirements are wiped and overwritten with the newer ones........and I want to add/replace new requirements keeping older ones untouched......

and if I try to use BAPI_REQUIREMENTS_CREATE , it does not allow if the PIR already exists..

Could anybody suggest me a solution.................

Thanks...............

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,851

Hi,

Refer this link for sample program to change the existing one

http://www.sapnet.ru/viewtopic.php?t=310

8 REPLIES 8
Read only

Former Member
0 Likes
3,852

Hi,

Refer this link for sample program to change the existing one

http://www.sapnet.ru/viewtopic.php?t=310

Read only

Former Member
0 Likes
3,851

Hi Ubhaka,

For the BAPI BAPI_REQUIREMENTS_CHANGE pass the value BLANK for the parameter DELETE_OLD by default its 'X'. remove the 'X' & send the value as Blank.. I think this will help u

Read only

0 Likes
3,851

Hi Bala,

Could u pls tell me where that DELETE_OLD field is ?

Thanks.....

Read only

0 Likes
3,851

Hi

DELETE_OLD is one of the paramters in that function module

Read only

0 Likes
3,851

Go to the SE37, Give the BAPI name...

Click on Import tab from the bottom.. 3rd Parameter is DELETE_OLD

Read only

0 Likes
3,851

Dear Bala,

I m working on 4.7..and there is no Import parameter as such in that Function module...............

Correct me if I am wrong.........

Thanks

Read only

0 Likes
3,851

Thanks Tharani,

Which version u r working on?

Bcoz I dont find any parameter named DELETE_OLD in my 4.7 version............

What can be the alternative ?

Thanks

Read only

Former Member
0 Likes
3,851

issue closed ..thanks......