Application Development 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: 

abap query regarding lsmw

Former Member
0 Kudos

hi ,friend ,i am taking matnr vaue from user and check the value of matnr coming from flat file ,if both are same then i want to skip the row ,but whern i use skip_record it is just replacing the vaue of matnr by'/'in allthe recoreds ,not escaping that par row.

i want some sugg .

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If you are processing the matnr values in an internal table, use keyword CONTINUE to go to the next record.


IF ITAB-MATNR = <MATNR_FROM_FLAT_FILE>
CONTINUE.
ENDIF.

6 REPLIES 6

Former Member
0 Kudos

If you are processing the matnr values in an internal table, use keyword CONTINUE to go to the next record.


IF ITAB-MATNR = <MATNR_FROM_FLAT_FILE>
CONTINUE.
ENDIF.

Former Member
0 Kudos

try SKIP_TRANSACTION.

Former Member
0 Kudos

hi Andreas,

the code let i am wr.

p_in ;value in flat flie.

w_matnr the value i have given.

if p_in = w_matnr.

skip_record.

endif.

matnr mbrsh mtart

/ s 03

/ p 04

it is doing in this way but i want if matnr is 20 in flat file and the value i have given match , it should take that row ,but it is taking olny by replacing the value of matnr by '/'

Former Member
0 Kudos

hello sir, i want say ,suppose the value of matnr coming form flat file is same as my given value ,it should skip that row ,and move to next row,

if i am using the skip_record,it is not skipping ,it is just replacing the valuie of matnr by '/'.

0 Kudos

Which object are you loading?

0 Kudos

In your field mapping, double click on begin_of_transaction and put your logic there and use skip transaction(assuming one record from your file will result in one transaction).

Srinivas