Question:
Hi,
I'm trying to execute a specify functionality from a alv button. Let me explain.
The program displays an ALV with a list of ps-projects and then the user should push a button to change the status of this project, this funcionality should be made in background. And also the program should sent the result to spool.
How can I codify this? I was using the FM JOB_OPEN, JOB_CLOSE, but doesn't work.
Thanks in advance.
Regards,
Diana.
Answer:
What exactly did you insert into the job? A program that updates the status?
_________________
ilya
More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com
Answer:
what I insert into the job is the process in which the status change is done. It means, like this is my code.
FM JOB_OPEN.
Loop gt_outtab.
* Change the status
endloop.
FM JOB_CLOSE.
There is no a program that updates the status. It's just a process within the method handle_user_command from the alv.
Thanks.
Regards,
Diana.
Answer:
To do something in background, you have to either call a function (without a job) or a program (in a job). So, you have to write a separate program that updates a status, and then insert the calls of this program for each selected line (or one call for several lines) into this job, with SUBMIT ... VIA JOB.
_________________
ilya
More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com