cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Purchase requisition change BAPI

Former Member
0 Kudos

Hi Techies

When using BAPI "BAPI_REQUISITION_CHANGE" for AFS for changing the purchase requistion, the changes are getting affected only in the purchase request line item level. whereas the schedule line (AFS size Breakup) is not getting changed.

______________________________

CALL FUNCTION 'BAPI_REQUISITION_CHANGE'

EXPORTING

number = va_prno

TABLES

requisition_items_old = it_itmold

requisition_items_new = it_itmnew

  • REQUISITION_ACCOUNT_OLD =

  • REQUISITION_ACCOUNT_NEW =

  • REQUISITION_TEXT_OLD =

  • REQUISITION_TEXT_NEW =

return = it_return

requisition_afs_data_old = it_liold

requisition_afs_data_new = it_linew.

IF sy-subrc = 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

CLEAR: flg.

ENDIF.

_______________________________

please suggest.

Regards,

PRASAD.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member778253
Active Participant
0 Kudos

Hi

I really don't understand hw you passed (requisition_afs_data_old = it_liold, requisition_afs_data_new = it_linew.)

as there is no such parameter exists in that function module.

Former Member
0 Kudos

Hi,

Yes, in the AFS BAPI these parameters are exits..

ofcourse,i got the Solution..

Best regards

Prasad.EV