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

LSMW

Former Member
0 Likes
329

<b>1.WHAT ARE THE EVENTS IN LSMW?

2.CAN YOU WRITE A SELECT STATEMENT IN LSMW? IF YES EXPLAIN IT?

3.HOW TO MAKE INPUT VALIDATION IN LSMW?

4.HOW TO TRANSFER LEGACY DATA IN LSMW FOR TABLE VIEW CONTROL TRANSACTIONS LIKE VA01,XK01 AND FK01?

PLEASE SEND ANSWERS TO E-MAIL

[email protected]

<b>1.WHAT ARE THE EVENTS IN LSMW?

2.CAN YOU WRITE A SELECT STATEMENT IN LSMW? IF YES EXPLAIN IT?

3.HOW TO MAKE INPUT VALIDATION IN LSMW?

4.HOW TO TRANSFER LEGACY DATA IN LSMW FOR TABLE VIEW CONTROL TRANSACTIONS LIKE VA01,XK01 AND FK01?

PLEASE SEND ANSWERS TO E-MAIL

[email protected]

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
293

Please do not open multiple threads for the same questions. Thanks.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
293

CAN YOU WRITE A SELECT STATEMENT IN LSMW? IF YES EXPLAIN IT?

yes, you can write in <b> Maintain Field Mapping and Conversion Rulesstep of LSMW.</b>

CLEAR: V_FLAG,
       V_MATNR.
CONDENSE MATMAS_MRPVIEW-MATNR.
SELECT SINGLE MATNR
              INTO V_MATNR
             FROM MARC
               WHERE MATNR = MATMAS_MRPVIEW-MATNR
                AND  WERKS = MATMAS_MRPVIEW-WERKS.
IF SY-SUBRC <> 0.
  V_FLAG = 'X'.
ENDIF.

this code i am writing in BEGIN OF RECORD section,my intension here is to know material already created for that plant or not. if its been there,i go with MM02(material CHANGE) else with MM01(create).

HOW TO MAKE INPUT VALIDATION IN LSMW?

for this also, in the same step(as above),

IF not MATMAS_MRPVIEW-gewei is initial.
ZMMH1-GEWEI = MATMAS_MRPVIEW-gewei.
else.
ZMMH1-GEWEI = 'LB'.
endif.

here i am validating input file Weight UNIT is EMpty or not.If it is empty,then i am populating LB as Default value to the LSMW target Structure.

Regards

Srikanth

Message was edited by: Srikanth Kidambi