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: 

Submit Z program in lsmw

Former Member
0 Kudos

Hi all,

I need to run a Z program right after a LSMW.

I've tried to insert a "submit ZPROG" in the LSMW "end_of_transaction" step but it doesn't work.

Does somebody has an idea if it's possible ?

Or, is there any workaround ?

Thanks in advance for your help

Br,

Pierre

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

You may write ABAP code in LSMW step i.e. in Generate Conversion Program .Just search for writing code in LSMW.

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos

You may write ABAP code in LSMW step i.e. in Generate Conversion Program .Just search for writing code in LSMW.

Former Member
0 Kudos

for this you need to write ABAP program, why because the end_of_transaction also trigger in convert data, in this section the lsmw data not updated in SAP.

ThomasZloch
Active Contributor
0 Kudos

Sounds like you might rather want to put it into the "end of processing" block, so it gets executed only once. What means "doesn't work"? What does the program do? You are probably aware that by putting it into the data conversion program logic, all you have at the time of the SUBMIT is a flat file with converted data, nothing stored in SAP yet.

Thomas

0 Kudos

Hi Thomas,

The aim of my LSMW is to create a "HR function".

One of the dynpro reached uses a BADI and more specificaly the "IN UPDATE" method.

My problem is that, with LSMW, this "IN UPDATE" method is only run at the end of the LSMW and so, the data are missing.

So I was thinking of exporting data to memory in the "AFTER INPUT" method and then, import and treat everything in my program.

But you're right, my program should be called in the "end of processing". But I'm not sure that will be enough.

Br,

Pierre

0 Kudos

I've finaly changed my input file.

This is not beautiful but it works.

Thanks for your answers.

Br,

Pierre