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_PR_CHANGE

Former Member
0 Likes
1,004

Hi All,

Can we use BAPI_PR_CHANE to add new line item in PR ?

If Yes, can some one Please give me suggestion.

Thanks in advance,

Hardik

5 REPLIES 5
Read only

Former Member
0 Likes
786

No, BAPI_PR_CHANGE used to change the existing PR only.

you can use BAPI_PR_CREATE to create new PR.

Regards

Read only

0 Likes
786

I dont need to create PR.

I have to add new line item in existing PR.

Hardik

Read only

0 Likes
786

SOme body... any thought will be very helpful.

Hardik

Read only

Former Member
0 Likes
786

HI,,

Yes you can use 'BAPI_PR_CHANGE' to add new iems to the existing PR.

In the Tables Interface of the BAPI :

PRITEM - pass relevant details of new line item (PR_ITEM should be incremental value. For e.g item 1 was 10, then new item no will be 20)

PRITEMX - pass 'X' iin the relevant fileds which you have modified the value in PRITEM.

In the Importing clause of the BAPI :

PRNUMBER - PR# you want to change

Hope this helps.

Gary.

Read only

0 Likes
786

Hi ,

Thx for ur inputs gary. I tried ur suggestion. but not able to make it.

can u pl send me a sample code.

Thanks again

Hardik