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 statement behaviour

Former Member
0 Likes
2,364

Dear experts,

We have one database server and clustered server environment on production.

I am going to make an application live and wish to know what should happen here.

At one point I write coding  Submit <progname> and return.

<progname> program is without selection screen and do some idoc generation.

Is it possible that in clustered environment, as I am writing submit without via job,

any server in cluster might pickup due to load balancing.

To my understanding when we use submit without job format, program run in foreground

so ideally server should be same on which program run.Am I wrong ?

9 REPLIES 9
Read only

Former Member
0 Likes
1,961

hello,

I would like to know what you mean by clustered server ? Do you mean multiple App servers or something else here?

Well when you use the Submit statement another internal session is opened apart from the session used by the calling program. An this is happening in the foreground.

best regrads,

swanand

Read only

Former Member
0 Likes
1,961

Hi Aditya,

As the submit statement is without the job specification,

Yes, the program will run in the foreground.But as a new internal session is created to run this thread of the submit program, ideally it will run on the same server if the server load is smooth, otherwise the new session would be created on different server and the control would return back to the host program.

Read only

Former Member
0 Likes
1,961

Dear experts,

I think ,i need to elaborate my problem better.I have multiple application server for prd acting based on load balancing.I trigger a RFC to a fixed IP of production server.This rfc further uses a 'submit' command.

My worry is till RFC i have made sure execution happen on the fixed server that  i decide to execute because i am using sap jco and mentioning ip here ,means no problem here.

Now if this rfc triggers a program using submit,is it supposed to run on same fixed server or may adopt any application server based on load balancing.This is my query.

I also feel to mention here that submit statement used is not via job but like "submit <progname> and return."No selection screen involved etc.

Regards.

Aditya Sharma

Read only

Former Member
0 Likes
1,961

Basicallly SUBMIT program.. and return will load the program in the same instance in forground and Return statement will bring the control back to the calling program. While SUBMIT job will create a background job and execute it separately.

Now SUBMIT will only access the program if it is on the same server. From server i mean SAP server and not application server. Whether it is submit job or submit program and return, they will only work if the called program/job is on the same server.

Hope this helps.

Read only

0 Likes
1,961

To my knowledge we have one sap server having database server and clustered application servers on which internally load balancing happens.In my process of program which i am submitting,it is supposed to pick file from current application server.

So i feel chances are if unintended server get chosen ,it wont find file in app server path.

I wish to know incase submit <progname> and return means in foreground,does this mean it will take only current production server into picture or any random.

If any random then i need to be cautious in finding some remedy.

Read only

0 Likes
1,961

Whatever path you see in AL11 will get selected even if they are physically present on different application servers as basis team maps all the connected server paths in Al11. So if your path is available in AL11 then you need not worry about your SUBMIT in background or foreground.

Hope this helps.

Read only

0 Likes
1,961

Hi Aditya,

Possibly you already have an answer by now.

Just to clarify on the Load balancing and choosing the servers for picking the files: -

Usually businesses have one SAP server with one back end database server and many application servers for load balancing. The Load balancing is managed at the basis end as to which particular server would be selected when you enter into SAP. You can see the details of the server in transaction SM51, and see the name of the server on which you are working at the bottom right of screen.

Now each server has its own AL11 environment. What exactly is AL11 ?

A transaction which shows the snapshot of underlying Unix directories and sub directories.

When we say snapshot it means, it does not show all the directories available on that server but the ones required by us (developer or user etc.). AL11 is just a pointer to underlying directories.

So Ideally each server will have its own AL11 environment. To check the same, go to SM51 double click on any of the server and see the bottom right end of your screen. Your server is now changed and you are now on the server you chose on SM51.

So like this manually toggle between different servers and check AL11 for all. Possibly you could see some same name directories and some may be different.

The same directories with same files are not diff directories with same contents on diff application servers, but its one directory for which the pointer is created on all the application servers.

In SAP terms, this is called "mounting the directories to server".

So for your case, you could probably see if the directory is already mounted to all the servers, your program would work fine irrespective of the case that which server is been selected.

In fact the application server directories are also mounted across SAP R/3, BW, PI etc, such that either of the system can access the files if required.

So I don't think you need to take any special remedy other than just to check if the directory path is mounted across all concerned servers.

Hope this makes some sense

Best Regards,

Shreya

Read only

0 Likes
1,961

Thanks Shreya and all participant of the thread .As expected i find everything in fine and running in current application server.

Read only

Former Member
0 Likes
1,961

Hello,

You could go through the below link where a lot of discussions  happened  just two days before, it would be so helpful to you.

http://scn.sap.com/thread/3397814.

revert for any further queries.

Thanks,

Dinesh.