2007 Jun 28 1:43 AM
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
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
2007 Jun 28 1:53 AM
Hi raj,
What is the error you are getting?
Have you checked the value of sy-subrc after SUBMIT?
Regards,
Atish
2007 Jun 28 1:54 AM
2007 Jun 28 2:11 AM
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
2007 Jun 28 3:47 AM
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.
2007 Jun 28 4:38 AM
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....
2007 Jun 28 4:28 PM
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
2007 Jun 28 4:37 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |