Application Development and Automation 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: 
Read only

Problem with Submit statement

Former Member
0 Likes
1,068

Hi All,

I am using below submit statement in my program.When I freshly log in to SAP and try to execute my program , program stops at selection screen of submit program rv50sbt1.With no values on selection screen even though in debugger I can see that values are being passed.

After this if I again try to execute my Z program SUBMIT works fine and everything goes well.

Then what is the issue that SUBMIT doesnt work only when I freshly log in to system and execute Z program.

SUBMIT rv50sbt1

WITH vstel EQ w_vstel

WITH s_ledat-high EQ w_date

WITH s_ledat IN s_ledat

WITH s_vbeln IN t_vbeln1

WITH samml EQ c_const2

WITH anzei EQ c_const1

AND RETURN.

Thanks

Saurabh

6 REPLIES 6
Read only

Former Member
0 Likes
933

Are you on a release > 4.6? The report you use has been released as of this release and the first time you run this program a popup is issued, which will not be issued the next time (unless you log off and log on again).

You should use report RVV50R10_PRESTEP instead.

Regards,

John.

Read only

Former Member
0 Likes
933

Hi Saurabh,

When you try to log for the first time and execute the Program the value of the

Parameter Id LE_VL10_VL04_OLD is not 'X' which is why values are not passed.

Just Debug the code and check the value of the parameter id.

Try these codes:

DATA : w_VSTEL TYPE   vbco2-vstel,
       c1.
w = '0001'.
GET PARAMETER ID  'LE_VL10_VL04_OLD'
                  FIELD  c1.                " Get the value                      

IF c1 NE 'X'.                   " If execute for the first time it will no be 'X'
  c1 = 'X'.                     
  SET PARAMETER ID 'LE_VL10_VL04_OLD'
                  FIELD  c1.       " Seting the parameter ID if Its no 'X'
ENDIF.

SUBMIT rv50sbt1
WITH vstel EQ w_VSTEL
and return.

Note: If the Value of Parameter Id LE_VL10_VL04_OLD is not 'X' value will not be passed.

Regards,

Pinaki

Read only

Former Member
0 Likes
933

Check out the INFO button help ON POPUP

The upgrade information dialog box appears a maximum of once per

terminal session. You can avoid this message after a system restart

or when you call up the old delivery list processing function for

the first time if you set user parameter LE_VL10_UPG_NOMSG = 'X' by

choosing System -> User profile -> Own data.

Read only

Former Member
0 Likes
933

Hi Saurabh Joshi,

As per my knowledge what all screen fields names in rv50sbt1 program should be same, I mean

SUBMIT rv50sbt1

WITH vstel EQ w_vstel " This should be vstel = vstel (you need to declare in our Zprogram as same)

WITH s_ledat-high EQ w_date " Same with all like s_ledat-high = s_ledat-high

WITH s_ledat IN s_ledat " and s_ledat in s_ledat

WITH s_vbeln IN t_vbeln1 " s_vbeln in s_vbeln

WITH samml EQ c_const2 " samml = samml

WITH anzei EQ c_const1 " anzei = anzei

AND RETURN.

Regards,

Suneel G

Read only

Former Member
0 Likes
933

thx

Read only

Former Member
0 Likes
933

the report

rv50sbt1

is not defined accepting the values.