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: 

LSMW read old data before update record (PA30)

0 Kudos

Dear expert.

I created LSMW (Batch Input Recording) for update old records of infotype 0009 (PA30). The old data must be evaluated before save new data; otherwise skip record.

Example :  (Abap code wa inserted  in "Maintain mapping and convserion rules" --> "BEGIN_OF TRANSACTION"  of LSMW)

IF P0009-BANKN   NE   ZPA0009-BANKN   " ZPA0009-BANKN   is structure from PC text file.

    SKIP_TRANSACTION.         " Nothing do.

ENDIF.

Pd.

I cant read/evaluate P0009-BANKN !!!.  How i can read value of this field ???

Regards.

2 REPLIES 2

former_member188831
Contributor
0 Kudos

Old data means the data from the data base or the previous records. ?

0 Kudos

In update mode (PA30) the fields of screen MP000900 (first screen) will be filled with data of text file (personal number, infotype number, subtype). After return key the field P0009-BANKN is filled (old values) and i can see P0009-BANKN (Dynpro 2000). But I cant evaluate this field in LSMW.

Regards.