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

Creating a program through insert statement

Former Member
0 Likes
965

Im using the insert statement to create a program dynamically...

Now, after insert statement im using submit and return. During this

processing it is failing to create a program at the time of insert

but after submit and return it is creating...

Because of this im getting dump stating that no program exist.

Can anyone tell me as to why program is not created during insert

statement. here it also checkd the sy-subrc it is success.

Waiting for help.

7 REPLIES 7
Read only

Former Member
0 Likes
895

Hey Rohit,

Try using commit work after the insert statement.

By the way, what is the requirement?

Thanks and Regards,

Ravi

Read only

Former Member
0 Likes
895

Can u explain ur problem ?

Read only

0 Likes
895

Ya,

Im creating a program through an std f.m:RFC ABAP INSTALL AND RUN.. So, during this i need to create a program..At the insert command why the program is not created ( 1st question) and why it was created after using the submit and return command (2nd question).

As of now, i have used wait up to - seconds..

My question is why program is not created after the insert command.. why we need to do a commit work for the same or user this wait command.

Thanks

rohith

Read only

0 Likes
895

When we create a program several DBtables are updated.SO reason why we required COmmit work or Wiat so that all the Dependent tables are updated.

Regards,

Gurpreet

Read only

Former Member
0 Likes
895

When ever you create a report/Program Tadir table is update may be when you submit the program updates are still going on.

Try these codes.

report ztest.
Data: fs(72),
      itab like standard table of fs.


      fs = 'Report ZTEST_GP.'.
      append fs to itab.
      clear fs.
       fs = 'Write 1.'.
      append fs to itab.

insert report 'ZTEST_GP' from Itab.
commit work.
submit ztest_gp and return.

Regards,

Gurpreet

Read only

Former Member
0 Likes
895

Hello,

Insert statement is used to update the internal table or database tables.

insert and submit are both different.

Submit is used to call other program.

In insert statement check the sturucture of the table and work area.

Read only

Former Member
0 Likes
895

Hello,

Gurpreet Singh has given u one example it is working fine.

No need of using commit work it will work.

Go with that example.