‎2009 Nov 06 2:13 PM
Dear All,
We have requirement where we need to update the Purchase Requisition Quanity.
For this purpose, I am using Bapi '/AFS/CHANGE_AFS_PR_DATA'.
In this I want to change Sheduled Qty. (AFS Grid Qty.), but I m getting error like
"Line item 0010 : different quantities in item and schedule line". (Sy-subrc = 3)
Can any one help me out with this.
Thanks in advance.
Regards ,
Vishal.
‎2009 Nov 06 2:28 PM
‎2009 Nov 06 2:28 PM
‎2009 Nov 10 10:58 AM
Thanks Keshu for reply.
I will check this BAPI and will let u know abt it.
‎2009 Nov 10 11:55 AM
Hi,
Refer:
* BAPI to change the PR details
CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
EXPORTING
number = v_banfn "<--PR Number
TABLES
requisition_items_old = it_old_detail "<--pass in old PR details
requisition_items_new = it_new_detail "<--pass in new PR details
return = it_return_change. "<--return table
* "read for error message while changing details for PR
READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
IF sy-subrc = 0.
"check for ERROR
ENDIF.
Hope this helps you.
Regards,
Tarun
‎2009 Nov 11 7:14 AM
Dear Keshu ,
Thanks yaar..... My Problem is solved.
Thank you very much.
Regards ,
Vishal Bhalsing.