Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Question from crepmaster on Oct 27 at 10:17 AM BAPI_MATERIAL_MAINTAINDATA_RT the bapi does not show error but the field is not updated. Do I miss some parameters for the BAPI? This is my piece of code: CLEAR: ls_headdata, ls_plantdata, ls_plantdatax. REFRESH: lt_plantdata, lt_plantdatax. *dati di testata MOVE: '004' TO ls_headdata-function, wa_matnr-matnr TO ls_headdata-material, 'X' TO ls_headdata-logdc_view. * dati di posizioni MOVE: '004' TO ls_plantdata-function, '004' TO ls_plantdatax-function, wa_matnr-matnr TO ls_plantdata-material, wa_matnr-matnr TO ls_plantdatax-material, 'D100' TO ls_plantdata-plant, 'D100' TO ls_plantdatax-plant, 'X' TO ls_plantdata-neg_stocks, 'X' TO ls_plantdatax-neg_stocks. APPEND: ls_plantdata TO lt_plantdata, ls_plantdatax TO lt_plantdatax. * Chiamata alla bapi CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT' EXPORTING headdata = ls_headdata IMPORTING return = ls_return TABLES plantdata = lt_plantdata plantdatax = lt_plantdatax. IF ls_return-type NE 'E'. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. ELSE. WRITE /: 'update error for material:', wa_matnr. ENDIF. With MM42 I do not have problem to add the flag. Thanks and regards. | Reply to this email to post your response. __.____._ | _.____.__ |