‎2008 Apr 04 9:27 AM
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
‎2008 Apr 04 9:31 AM
No, BAPI_PR_CHANGE used to change the existing PR only.
you can use BAPI_PR_CREATE to create new PR.
Regards
‎2008 Apr 04 9:38 AM
I dont need to create PR.
I have to add new line item in existing PR.
Hardik
‎2008 Apr 04 9:54 AM
‎2008 Apr 04 9:59 AM
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.
‎2008 Apr 04 10:26 AM
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