Application Development and Automation 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: 
Read only

BAPI_MATERIAL_MAINTAINDATA_RT

Former Member
0 Likes
1,738

Hi Bapi Gurus,

We are using ECC5 version.

For uploading the Creating Article and change, I used BAPI_MATERIAL_MAINTAINDATA_RT function module.

But it is givimg dump.

So i executed this FM in se37, just i given the Header data, than also it is giving dump.

Error Analysis is:

In program "SAPLMGWD ", the following syntax error occurred

in the Include "LMGWDF02 " in line 1425:

""P_MARA" is not compatible with "TMARA". In Unicode programs, "P_MARA""

" must have the same structure layout as "TMARA", irrespective of the l"

"ength of a Unicode character."

" "

Plz help me regarding this.

It is very urgent.

Thanks & Regards

Pavan

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:23 PM

6 REPLIES 6
Read only

Former Member
0 Likes
1,123

hi,

Check out the declarations of P_MARA and TMARA both of them have to be of same type ...

i.e,


Data : TMARA type table of P_MARA . 

Read only

0 Likes
1,123

Hi,

That is standard SAP program, How can we change that, Plz suggest.

Error Analysis.

In program "SAPLMGWD ", the following syntax error occurred

in the Include "LMGWDF02 " in line 1425:

""P_MARA" is not compatible with "TMARA". In Unicode programs, "P_MARA""

" must have the same structure layout as "TMARA", irrespective of the l"

"ength of a Unicode character."

Read only

0 Likes
1,123

Hello Pavan

On ECC 6.0 it looks like this:


" Include LMGWDF02:
...
      ELSE.
*       Aufbau des TA-Artikelnummerngedächtnisses
        PERFORM ADD_MATNR_BLOCK_TA USING AMARA_UEB-MATNR.
*       Aufbau der Übergabetabelle TMARA
        CLEAR TMARA.
        MOVE AMARA_UEB TO TMARA.
        PERFORM MARA_DATE CHANGING TMARA.  " line 1425
        APPEND TMARA.
      ENDIF.
    ENDLOOP.
  ENDIF.
...


* Generated form for segment MARA
FORM MARA_DATE CHANGING P_MARA STRUCTURE MARA.

  IF P_MARA-ERSDA = SPACE.
    P_MARA-ERSDA = '00000000'.
  ENDIF.

  IF P_MARA-LAEDA = SPACE.
    P_MARA-LAEDA = '00000000'.
  ENDIF.

  IF P_MARA-DATAB = SPACE.
    P_MARA-DATAB = '00000000'.
  ENDIF.

  IF P_MARA-LIQDT = SPACE.
    P_MARA-LIQDT = '00000000'.
  ENDIF.

  IF P_MARA-MSTDE = SPACE.
    P_MARA-MSTDE = '00000000'.
  ENDIF.

  IF P_MARA-MSTDV = SPACE.
    P_MARA-MSTDV = '00000000'.
  ENDIF.

ENDFORM.

However, TMARA is different from MARA:


DATA: TMARA          LIKE MARA_UEB   OCCURS 0 WITH HEADER LINE.

MARA_UEB (enhancement category: can be enhanced (character-type or numeric)) includes MARA at the beginning and has additional fields at the end.

Therefore, I would suggest to seach for OSS notes regarding this function module.

Regards

Uwe

Read only

Former Member
0 Likes
1,123

Hi..

You Can try this fm...

BAPI_MATERIAL_SAVEDATA

Regards,

Rahul

Read only

0 Likes
1,123

Hi,

Is every Both the function Module has same functionality.

I dont think so.

Regards

Pavan

Read only

0 Likes
1,123

Hi,

I Used The Function Module BAPI_MATERIAL_SAVEDATA insteed of BAPI_MATERIAL_MAINTAINDATA_RT.

It is creating the article But whenever i want to see that article in MM42 it is giving the error message like

You cannot use the material RETAILS00012 for retail (MAW1 missing)

Message no. MH035

Diagnosis

The material RETAILS00012 has been created with the material master for industry, and cannot be used in retail.

Procedure

Choose a retail material or use transactions MM01, MM02, and MM03 for extending, changing, and displaying industry materials respectively.

After Creating the Article I want ot update all the tables in MM42.

Plz Help me regarding this.

Thanks & Regards

Pavan