2007 Jul 23 10:28 PM
hi all,
I have a problem with te BAPI_PO_Change. I was trying modified the purchaseOrder but the bapi isn't updating the data. The message is " data haven´t been updated" . I am trying modify next data.
Payment Terms
Payment in days %
Payment in days %
Payment in days net
thanks!!!
Code,
t_bapi_poheader-pmnttrms = str_2000-zterm.
t_bapi_poheader-dscnt1_to = str_2000-zbd1t.
t_bapi_poheader-dscnt2_to = str_2000-zbd2t.
t_bapi_poheader-dscnt3_to = str_2000-zbd3t.
t_bapi_poheader-dsct_pct1 = str_2000-zbd1p.
t_bapi_poheader-dsct_pct2 = str_2000-zbd2p.
MODIFY t_bapi_poheader.
t_bapi_poheaderx-po_number = 'X'.
t_bapi_poheaderx-pmnttrms = 'X'.
t_bapi_poheaderx-dscnt1_to = 'X'.
t_bapi_poheaderx-dscnt2_to = 'X'.
t_bapi_poheaderx-dscnt3_to = 'X'.
t_bapi_poheaderx-dsct_pct1 = 'X'.
t_bapi_poheaderx-dsct_pct2 = 'X'.
APPEND t_bapi_poheaderx.
ENDLOOP.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = str_1000-ebeln
poheader = t_bapi_poheader
poheaderx = t_bapi_poheaderx
TABLES
return = t_return.
somebody could tell me how to modify those conditions? please!!!
regards.
marisol.
hi all,
I have a problem with te BAPI_PO_Change. I was trying modified the purchaseOrder but the bapi isn't updating the data. The message is " data haven´t been updated" . I am trying modify next data.
Payment Terms
Payment in days %
Payment in days %
Payment in days net
thanks!!!
Code,
t_bapi_poheader-pmnttrms = str_2000-zterm.
t_bapi_poheader-dscnt1_to = str_2000-zbd1t.
t_bapi_poheader-dscnt2_to = str_2000-zbd2t.
t_bapi_poheader-dscnt3_to = str_2000-zbd3t.
t_bapi_poheader-dsct_pct1 = str_2000-zbd1p.
t_bapi_poheader-dsct_pct2 = str_2000-zbd2p.
MODIFY t_bapi_poheader.
t_bapi_poheaderx-po_number = 'X'.
t_bapi_poheaderx-pmnttrms = 'X'.
t_bapi_poheaderx-dscnt1_to = 'X'.
t_bapi_poheaderx-dscnt2_to = 'X'.
t_bapi_poheaderx-dscnt3_to = 'X'.
t_bapi_poheaderx-dsct_pct1 = 'X'.
t_bapi_poheaderx-dsct_pct2 = 'X'.
APPEND t_bapi_poheaderx.
ENDLOOP.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = str_1000-ebeln
poheader = t_bapi_poheader
poheaderx = t_bapi_poheaderx
TABLES
return = t_return.
somebody could tell me how to modify those conditions? please!!!
regards.
marisol.
2007 Jul 23 10:30 PM
HI,
Use bapi_transaction_commit after the bapi call.
thanks
mahesh
2007 Jul 23 10:37 PM
2007 Jul 23 10:52 PM
Is that the only message you see in RETURN? Also you are setting "t_bapi_poheaderx-po_number = 'X'." but you not actually passing the value to t_bapi_poheader-po_number.
Also make sure that "str_1000-ebeln" is in internal format (with leading zeros) before you call the BAPI and fill the tables.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |