on 08-17-2006 8:50 AM
I received error messages bellow:
MG Field MATNR has been transferred inconsistently or is blank
MG MATNR for LTX1 is ""; previously "000000000030000917"
MK Trying to change: 30000917 ____ ____ ____ __________ ____ __ ___ ___
The following parameters are passed:
MATHEAD.MATERIAL = "000000000030000917";
MATHEAD.IND_SECTOR = "C";
MATHEAD.MATL_TYPE = "ZFRT";
MATHEAD.BASIC_VIEW = "X";
MAKT[0].LANGU_ISO = "ZH";
MAKT[0].MATL_DESC = "MATE NAME";
MARA.MATL_GROUP = "0001";
MARA.BASE_UOM_ISO = "KGM";
MARAX.MATL_GROUP = "X";
MARAX.BASE_UOM_ISO = "X";
These parameters are passed testing in an ABAP Report Program which calls the BAPI.
I don't know what's the problem, can anyone help me?
I faced this exact problem today almost 7 years later.
The problem is that the long text structure has a field called TEXT_NAME except that it doesn't show up in the structure for LTX1. I don't know if BAPI_Material_Savedata is the same as the IDOC MatMass_bapi but you have to put the same material number in for the 70 character text_name field as you put in for the MATNR field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is true (tested it and it works). In addition to that, you have to add some code in step 5 of the LSMW to match the 18-char MATNR field to the 70-char TEXT_NAME. Changing the MATNR source field to 70-char also won't help as it then can't find the material number in MARA. Here's an example of code for TEXT_NAME field in step 5 of LSMW when using BAPI (BUS1001006 - MATMAS_BAPI03):
TABLES: MARA.
DATA: lv_matnr(18) type c.
if not POTEXTSOURCE-MATNR is initial.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = POTEXTSOURCE-MATNR
IMPORTING
OUTPUT = lv_matnr.
E1BP_MLTX-TEXT_NAME = lv_matnr.
endif.
Hope that helps
Message was edited by: Arnold
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.