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: 

Need help with JOB_OPEN, JOB_SUBMIT and JOB_CLOSE

Former Member
0 Kudos

I am calling a standard Report which popups list of sessions.

Out of which, i select one session and the data belonging to that session is deleted from data base.

I need to perform the above task using a single report which consists of JOB_OPEN, JOB_SUBMIT and JOB_CLOSE function modules.

I mean i know the session number which i have to select. Where should i pass it and in which FM so that no popup should come and the data is automatically deleted as soon as the report is executed.

Can anyone tell me how to do this??

7 REPLIES 7

Clemenss
Active Contributor
0 Kudos

Hi Suruchi Razdan,

i select one session and the data belonging to that session is deleted from data base

Interesting. How do you or does the session know what data belongs to it and how to delete them fcrom the database?

You may use an internet search engine to finmd the answer or explain what you really want to do.

Regards,

Clemens

Former Member
0 Kudos

I have clearly mentioned that I am executing a standard report which generates list of sessions.

SO deleting data from Database tables is the functionality of the report.

We dont need to worry about that.

I just need to perform that same functionality using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE

i.e. is i write submit (reort)

via job number and return.

Where should i pass session number???

My only purpose is no break or halt should be there or i shouldnt select sessions while executing report.

I just pass session names at the beginning and the report is executed successfully.

Clemenss
Active Contributor
0 Kudos

Hi,

I do not dare to ask for the name of the standard program.

Regards,

Clemens

Former Member
0 Kudos

The program name is RM06ED47.

it is a standard report.

0 Kudos

Hi Suruchi,

Report RM06ED47 is used to delete purchase-related data that have been archived.

No Popup for any kind of sessions is provided by standard coding. There is a BAdI and a couple of enhancement spots. May be in your system this is used to provide the mysterious session popup.

But this is not standard SAP.

You may assign a transaction to the report and record the batch-input-session. Then use a CALL transaction using ...

But anyway you will have to identify the code for the session popup and determine the session position before starting it.

Regards,

Clemens

Former Member
0 Kudos

Thanks ...

But my problem has been resolved. I did by my own.

Well the program does creates sessions

0 Kudos

Hi Suruchi,

the community expresses grateful thanks for sharing the innovative solution.

Regards,

Clemens