Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_MATERIAL_MAINTAINDATA_RT give error MH075 after 2 article creation.

former_member542222
Discoverer
0 Kudos

I am facing an issue . when i started to pass the article number which is lock state in table control .

Scenario 1 :when I am trying to pass single article it shows properly with log number.

Scenario 2 :when I am trying to pass 2 materials along with lock article which is having error case .

First one showing success correctly , but while 2nd one getting error without lognumber as

MH075 ,but It should show error as first scenaio.

I am clearing all the internal and work areas .

AT END OF matnr.

CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'

headdata = rec_header

IMPORTING return = rec_return

TABLES variantskeys = li_variant

plantdata = li_plantdata

plantdatax = li_plantdatax

taxclassifications = li_taxclass.

ENDAT.

IF rec_return IS NOT INITIAL.

rec_log-matnr = rec_header-material.

rec_log-aldate = sy-datum.

rec_log-altime = sy-uzeit.

rec_log-aluser = sy-uname.

rec_log-lognumber = rec_return-message_v2.

IF rec_return-type = c_e.

rec_log-status = icon_red_light.

rec_log-remarks = text-015.

ELSEIF rec_return-type = c_s.

rec_log-status = icon_green_light.

rec_log-remarks = text-014.

ELSE.

rec_log-status = icon_yellow_light.

rec_log-remarks = text-015.

ENDIF.

APPEND rec_log TO i_log.

CLEAR rec_log.

ENDIF.

CLEAR : rec_header , rec_return.

REFRESH : li_variant,li_plantdata,li_plantdatax,li_taxclass.

ENDLOOP.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING wait = c_x.

pls help me to overcome this issue.

0 REPLIES 0