Skip to Content
0
Former Member
Dec 07, 2010 at 05:08 AM

BAPI_PR_CHANGE not updating table EBAN

1183 Views

Hi All,

DATA:it_returnreq TYPE STANDARD TABLE OF bapiret2 with header line,
     it_pritem    TYPE STANDARD TABLE OF bapimereqitemimp with header line,
     it_pritemx   TYPE STANDARD TABLE OF bapimereqitemx with header line,
     it_pritemxp  TYPE STANDARD TABLE OF bapimereqitem with header line.

     it_pritem-preq_item = '00010'.
     it_pritem-material = '3000000000029'.
     it_pritem-quantity = '100'.
     APPEND it_pritem.

     CLEAR it_pritem.

     it_pritemx-material = 'X'.
     it_pritemx-quantity = 'X'.
     it_pritemx-preq_item = 'X'.
    APPEND it_pritemx.

CALL FUNCTION 'BAPI_PR_CHANGE'
  EXPORTING
    prnumber    = '10008991'
  TABLES
    return    = it_returnreq
    pritem    = it_pritem
    pritemx   = it_pritemx
    pritemexp = it_pritemxp.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    wait = 'X'.

Im using FM BAPI_PR_CHANGE to upadate table EBAN with new values. it_returnreq shows status as SUCCESS. But when i check the values in EBAN it doesn't show the new values that we need to update.

Thanks,

Barada