‎2008 Apr 21 11:06 AM
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
‎2008 Apr 21 11:10 AM
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 .
‎2008 Apr 21 11:22 AM
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."
‎2008 Apr 21 11:59 AM
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
‎2008 Apr 21 1:13 PM
Hi..
You Can try this fm...
BAPI_MATERIAL_SAVEDATA
Regards,
Rahul
‎2008 Apr 21 4:47 PM
Hi,
Is every Both the function Module has same functionality.
I dont think so.
Regards
Pavan
‎2008 Apr 22 11:52 AM
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