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

How to submit a standard program in the zprogram without using the submit

Former Member
0 Likes
1,493

How to submit a standard program in the zprogram without using the submit statement. is there any option of copying the standard program into a subroutine.

if there is such kind of an option please do tell what are the steps to be considered.

the standard program name is : RM06EANL.

please reveret quickly as this is urgent.

thanks for ur help.

9 REPLIES 9
Read only

Former Member
0 Likes
1,109

Hi,

There is no other way to call a Program ( Standard or Z program ) from another program without using SUBMIT command.

May i ask, why you want to do like that?

Regards,

RS

Read only

Former Member
0 Likes
1,109

Hi,

Any reason why submit will not work for you???

Thanks,

Naren

Read only

0 Likes
1,109

Hi naren thanks for you reply,

my update routine in which i have a function module in which iam calling submit program, my scenario is when i create a purchase order based on some output type it should create the inbound delivery, when iam checking the output with me9f tcode it is working fine,but it is going to short dump when i run me22n tcode, becasue in the update function module we cannot call the submit statement it seems.

Read only

0 Likes
1,109

Hi prasad,

1. U are using update routine (update FM)

2. U are right we cannot use submit inside update fm.

3. One way is to find some BAPI/FM which will post data in your required transaction. Call this BAPI inside your update fm.

regards,

amit m.

Read only

Former Member
0 Likes
1,109

Hi,

Try this..

You can call the BAPI for creating a inbound delivery..

You have to call the BAPI IN BACKGROUND TASK..

CALL FUNCTION 'BAPIxxxxxxx' IN BACKGROUND TASK..

I will check for a BAPI for creating inbound delivery..

Thanks,

Naren

Read only

0 Likes
1,109

Hi naren, i dont think so i have to use the bapi,

if you could give me your mobile number i can explain you clearly what is the scenario.

provided if you dontmine and also if iam not disturbing you,

thank you,

you can send ur number to my mail: janumay13@gmail.com.

Read only

Former Member
0 Likes
1,109

Hi,

Please explain your requirement..What is the problem in calling the BAPI.

Thanks,

Naren

Read only

0 Likes
1,109

Hi Naren,

my scenario is iam submitting a standard program in my function module which creates an inbound delivery for that particular purchase order, and this is working fine, with me9f tcode.because my standard program is working background.

But when go for me22n tcode and select the output type and click FURTHER data, there u select 4th option called start immediately, and then save it come back to me22n and debug it, then control is going to my function module, when iam debugging the function module it works fine untill the cursor comes to my submit statement in my FM, once it reaches there u press any key it is going back to me22n tcode,

now when you go to st22 tcode and select the user and process it and check it, it is going to dump.and it states that one of the statement cannot be executed because submit statement cannot be used in update task.

my standard program is : RM06EANL, please check this standard program.

what i was thinking is copy the standard program in to subroutine, comment all the selection screen parameters, and you declare them locally, and then call the subroutine in my function module, instead of submit statement

i hope u understand my scenario.

regards,

prasadnn.

Read only

Former Member
0 Likes
1,109

Hai,

It is possible.

Write the code in smart form and call that in effect your other program can be executed.

Reward points if it helps you.

Other wise,

SAP developed programs which generates Programs dynamically such as generating selcetion screens...

Debug the codes of those,You might get a path to the solution.

You copy the program into a text file.

Call GUI_UPLOAD to have the program into an internal table.

Regds,

Rama.Pammi