08-27-2009 1:17 PM
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
08-27-2009 1:21 PM
You may write ABAP code in LSMW step i.e. in Generate Conversion Program .Just search for writing code in LSMW.
08-27-2009 1:21 PM
You may write ABAP code in LSMW step i.e. in Generate Conversion Program .Just search for writing code in LSMW.
08-27-2009 2:48 PM
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.
08-27-2009 2:52 PM
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
08-27-2009 3:06 PM
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
08-27-2009 3:55 PM
I've finaly changed my input file.
This is not beautiful but it works.
Thanks for your answers.
Br,
Pierre