cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW material tool suddenly donot work

Former Member
0 Kudos

Dear experts,

We are using 'Standard batch/direct input'

Object               0020   Material master

Method               0000

For material conversion. It worked well 2 weeks ago. Now I want to extend sales orgnization view for some materials in Q system.

Object is Object               MM01_SALESORG

but error msg issued msg id M3 384 

M3384Material not in sales org. 1000 distrib. channel 11

Actually i want to extend this material to 1000 11

But when i use same data in Deveop system, it is OK...I tried to reimport LSMW from development system to Q system, still not work..

In converted data, i also found BMM00-TCODE field are all MM02, it is strange, as my thought, it should be MM01, but in development system, it is also MM02 and worked well.....

So strange issue.

Please suggest how to investigate...

Thank you.

Richard

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

it probably worked in your Q system because the sales organisation data did already exist when you executed your LSMW,

change your BMM00-TCODE to MM01 and try again

Former Member
0 Kudos

Thank you. Jurgen. I check data convert program and found below code has bug, will send OSS to SAP:

   IF NOT zbmm00-matnr IS INITIAL.
    SELECT SINGLE matnr FROM mvke INTO g_matnr
    WHERE matnr = zbmm00-matnr and vkorg = zbmm00-vkorg.
*vkorg is added in where clause to fix SIR001330
    IF sy-subrc = 0.
      SELECT SINGLE vkorg FROM mvke INTO g_vkorg
      WHERE vkorg = zbmm00-vkorg.
      IF sy-subrc = 0.
        SELECT SINGLE vtweg FROM mvke INTO g_vtweg
        WHERE vtweg = zbmm00-vtweg.
        IF sy-subrc = 0.
          bmm00-tcode = 'MM02'.
        ELSE.
          bmm00-tcode = 'MM01'.
        ENDIF.
      ELSE.
        bmm00-tcode = 'MM01'.
      ENDIF.
    ELSE.
      bmm00-tcode = 'MM01'.
    ENDIF.
  ELSE. "MATNR IS INITIAL
    CONCATENATE 'MATERIAL NUMBER' zbmm00-matnr
    'DOES NOT EXIST'
    INTO g_message
  SEPARATED BY space.
    WRITE : g_message .
    skip_transaction.
  ENDIF.

Answers (0)