Skip to Content
0
Former Member
Jun 28, 2007 at 12:43 AM

Submitting program in Background - Very Urzent

147 Views

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