Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

LSMW update vendor account just if the actual (old) is in the txt file

$
0
0

I want to update the vendor account but just if it is the same I have in the txt file.

 

My txt file is the fllowing for example:

 

Vendor - Old Account - New Account

A2A123A321
A1A133B321
A3A144C321

 

So, for each vendor if the actual bank account number is (old account in the file) replace the actual (old account) with the new account.

 

In the CODE text for LSMW (check my attach) I have this:

 

IF FK02A-BANKN_01 = CTAS-BANKN. FK02A-BANKN_01 = CTAS-BANKNNUEVO. ENDIF.

 

Where:

 

FK02A-BANKN_01 is the FK02 text for vendor account

CTAS-BANKN is in my file and structure defined the OLD ACCOUNT

CTAS-BANKNUEVO in my file and structure defined the NEW ACCOUNT (the one should be now)

 

But it is not replacing, if i check converted data, this field is empty. So the if is not working. Ideas?

 

 

I changed it by

 

FK02A-BANKN_01 = CTAS-BANKN

or

FK02A-BANKN_01 = CTAS-BANKNNUEVO

 

and it works, but put the old or the new code of course, not doing the comparation with the old and replacing with the new.


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>