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: 

Submitting program in Background - Very Urzent

Former Member
0 Kudos

Hi,

I am currently working in mySAPERP 2005 upgradation project.

Here i am facing a strange situation. I want to submit a SAP standard program SAPMV50S (Delivery due list creation) in my custom program in Background.

I tried below option:

CALL FUNCTION 'JOB_OPEN'

EXPORTING

JOBNAME = JOBNAME

IMPORTING

JOBCOUNT = JOBNUMBER

EXCEPTIONS

CANT_CREATE_JOB = 01

INVALID_JOB_DATA = 02

JOBNAME_MISSING = 03

OTHERS = 99.

IF SY-SUBRC > 0.

  • <error processing>

ENDIF.

SUBMIT SAPMV50S WITH VSTEL = 'USCQ'

WITH LEDAB = SY-DATUM

TO SAP-SPOOL

SPOOL PARAMETERS print_parameters

WITHOUT SPOOL DYNPRO

USER SY-UNAME

VIA JOB JOBNAME NUMBER JOBNUMBER

AND RETURN.

But program is not submitting in the background.

But same program is working in 4.5 b system, but it is not working in mySAPERP2005.

If anyone faced same kind of situation please help me on this.

Its very very very urzent.

Expecting the reply from you soooon.

Thanks,

Regards

Raj

7 REPLIES 7

Former Member
0 Kudos

Hi raj,

What is the error you are getting?

Have you checked the value of sy-subrc after SUBMIT?

Regards,

Atish

Former Member
0 Kudos

Hi Raj A,

Check Print_parameters.

Reward if useful!

0 Kudos

Hi,

I have checked the SY-SUBRC it is 0 only, and i have tested with Print_parameters also.

same code is working fine in 4.5b system . but it is not working in ECC 6.0

Thanks,

Regards

Raj

0 Kudos

Hi,

GO to tcode se37 and then find out what is the status of the submitted job.Check whether it is cancelled status?If you are able to find it,then select the job and simply put jdbg in the command bar and then press enter to debug and find out where exactly the problem happened.

Kindly reward points by clikcing the star on the left of reply,if it helps.

Former Member
0 Kudos

Raj,

Debugg the background program .Then you will find the problem

Goto Tcode SM50--->select your process->on menubar Program/Session>program->Debugging

Don't forget to reward if useful....

0 Kudos

Hi,

I tried debugging the job also. Here the problem is

Job is getting released but not fininishing(not executing the program) in ECC6.0.

Thanks,

Regards,

Raj A

0 Kudos

Hi

That program was replaced from release 4.6, u should replace it with reports run by trx VL10, VL10A, VL10B.... (reports RVV50R10A, RVV50R10B o RVV50R10C).

If you run your report online, a popup should be opened, probably the job stops there and waits for user decision.

Max