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

Submit function pool program

Former Member
0 Likes
2,907

hi all,

i am using submit statement in Z program and calling standard program of SM37, but problem is that it is going for dump and saying that we cant use submit for function-pool.

can anyone please tell me that how can i submit? can i call this by using call transaction? actually i have to pass selection screen parameters also from my Z program and have to skip standard selection screen.

plz help.

regards.

6 REPLIES 6
Read only

venkat_o
Active Contributor
0 Likes
1,478

saurabh srivastava, There are few things regarding your query, which I need to clarify <li>Submit statements can be used to call Report programs (Type 1 means executable). So program for SM37 transaction is SAPLBTCH which means you can not use SUBMIT statement. SAPLBTCH is module pool program. You can not use Selection-screen statement for module pool program. <li>Call transaction can be used to call either report programs or module programs. Which means if transaction is assigned to them, we can use. As I said before program is module pool program. You can still use below statement.


CALL TRANSACTION 'SM37' and SKIP FIRST SCREEN. 
<li>If you want to use AND SKIP FIRST SCREEN statement , need to follow the below conditions

"1.For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number. 
"2.All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters
<li>Please press F1 help on * and SKIP FIRST SCREEN* statement to see how to use. Thanks Venkat.O

Read only

Former Member
0 Likes
1,478

hi venkat and gurunath,

thanx for reply...actually if i skip first screen then how would i pass the parameters values to that screen because there is no parameter id exist for fields 'JOB NAME' and 'USERNAME',

so please tell me is there any possibility to set parameter there?

Regards.

Read only

venkat_o
Active Contributor
0 Likes
1,478

saurabh, <li>Yes. You are right, There is no PARAMETER ID for JOBNAME or USERNAME, you can not use AND SKIP FIRST SCREEN. Instead you have to use just CALL TRANSACTION '' statement. There is no option. Thanks Venkat.O

Read only

Former Member
0 Likes
1,478

Yes you can.

its very much possible...

see.. with call transaction there is one option called with BDCTAB.

there you can fill the field details and call the transaction...

in call transaction press F1.

Read only

Former Member
0 Likes
1,478

>

> hi ,

>

> If you want to call the standard transaction then you have to use " Call transaction <tcode> and skip first screen ".

> but the selection screen of the standard screen has some mandatory paramters to be filled in the first selection screen

> since we are skipping the first screen , you need to set the madantory fields by uisng

> SET PARAMETER ID pid FIELD dobj.

>

> if you set this , then the process works successfully

>

> regards.

Read only

Former Member
0 Likes
1,478

Hi Saurabh,

Please go through this link below:

Hope it helps

Regards

Mansi