2009 Nov 17 3:02 PM
Hi All,
We are facing an issue while submitting the program RVV50R10C using SUBMIT command.
When we run the program from VL10A transaction directly, it creates a delivery. But, we are not able to create delivery with the help of submit command.
We have configured the profile in such a way that it creates the deliveries directly without showing the second screen.
Here is the program that we had written. Please help us.
DATA: t_ledat TYPE RANGE OF vbep-mbdat,
e_ledat LIKE LINE OF t_ledat.
DATA: t_vbak TYPE RANGE OF vbak-vbeln,
e_vbak LIKE LINE OF t_vbak.
DATA: t_vstel TYPE RANGE OF vbap-vstel,
e_vstel LIKE LINE OF t_vstel.
DATA: t_fcode TYPE RANGE OF t186f-fcode,
e_fcode LIKE LINE OF t_fcode.
MOVE 'I' TO e_ledat-sign.
MOVE 'EQ' TO e_ledat-option.
MOVE '20091113' TO e_ledat-low.
MOVE '20091118' TO e_ledat-high.
APPEND e_ledat TO t_ledat.
MOVE 'I' TO e_vbak-sign.
MOVE 'EQ' TO e_vbak-option.
MOVE '0010014121' TO e_vbak-low.
APPEND e_vbak TO t_vbak.
MOVE 'I' TO e_vstel-sign.
MOVE 'BT' TO e_vstel-option.
MOVE 'DED7' TO e_vstel-low.
MOVE 'DED7' TO e_vstel-high.
APPEND e_vstel TO t_vstel.
SUBMIT rvv50r10c WITH p_prnam EQ '5001'
WITH P_LERUL EQ space
WITH st_ledat IN t_ledat
WITH st_vbeln IN t_vbak
WITH st_vstel IN t_vstel
EXPORTING LIST TO MEMORY AND RETURN.
Thanks a lot in advance. Awaiting your replies on this.
Babu Kilari
2009 Nov 17 3:07 PM
HI,
Just try to create a batch job(JOB_OPEN, JOB_CLOSE) and see the job log or import the spool content from memory and see what exactly happend.
Hopefully there should be some errors.
You can try with BDC as well. But i suggest to go with BAPI.
Thanks,
Vinod.
2009 Nov 17 3:19 PM
VL10A does call program rvv50r10c, but it does some other calls before.
If you look in SE93 at VL10A, it calls VL10X, and this calls program RVV50R10_PRESTEP, which calls function SHP_VL10_PRESTEP. This calls RVV50R10C after doing so preparatory work with the profiles.
So by submitting RVV50R10C you may be missing some necessary code
I think you may need adjust what you are submitting. I had a similar problem and finished up with a bespoke version of SHP_VL10_PRESTEP which submitted RVV50R10C with the selection criteria..