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: 

Fm Material_maintain_dark

Former Member
0 Kudos

Hi all,

iam trying to extend material to another sales org with hte help of a FM Material_maintain_dark

but iam always getting a msg " you have not maintained tax classifications correctly"

iam passing AMARA_UEB, AMAKT_UEB AMVKE_UEB AND ASTEU_UEB TABLES

WHERE iam doing the mistake.

am i missing something.

Thanks in advance.

SAI

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hai Sai Ram

Check the following Code & Also Check the Sap Standard Program 'SAPRCKM2'.

DATA: H_ANZFEHLER LIKE TBIST-NUMERROR.

DATA: BEGIN OF T_MARA_UEB OCCURS 1.

INCLUDE STRUCTURE MARA_UEB.

DATA: END OF T_MARA_UEB.

DATA: BEGIN OF T_MBEW_UEB OCCURS 1.

INCLUDE STRUCTURE MBEW_UEB.

DATA: END OF T_MBEW_UEB.

DATA: T_MERRDAT TYPE MERRDAT OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'

EXPORTING

p_kz_no_warn = 'N'

kz_prf = 'E'

kz_aend = 'X'

kz_dispo = ' '

IMPORTING

number_errors_transaction = h_anzfehler

TABLES

amara_ueb = t_mara_ueb

ambew_ueb = t_mbew_ueb

amerrdat = t_merrdat.

Thanks & regards

Sreeni

2 REPLIES 2

Former Member
0 Kudos

Hai Sai Ram

Check the following Code & Also Check the Sap Standard Program 'SAPRCKM2'.

DATA: H_ANZFEHLER LIKE TBIST-NUMERROR.

DATA: BEGIN OF T_MARA_UEB OCCURS 1.

INCLUDE STRUCTURE MARA_UEB.

DATA: END OF T_MARA_UEB.

DATA: BEGIN OF T_MBEW_UEB OCCURS 1.

INCLUDE STRUCTURE MBEW_UEB.

DATA: END OF T_MBEW_UEB.

DATA: T_MERRDAT TYPE MERRDAT OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'

EXPORTING

p_kz_no_warn = 'N'

kz_prf = 'E'

kz_aend = 'X'

kz_dispo = ' '

IMPORTING

number_errors_transaction = h_anzfehler

TABLES

amara_ueb = t_mara_ueb

ambew_ueb = t_mbew_ueb

amerrdat = t_merrdat.

Thanks & regards

Sreeni

Former Member
0 Kudos

While manually creating material in MM01, we need to maintain classification data in the tab SALES ORG 1.

Field name : TAXKM.

Are you passing data to TAXKM of structure ASTEU_UEB?

It is a mandatory field.