‎2009 May 08 7:42 AM
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.
‎2009 May 08 7:54 AM
Hey Rohit,
Try using commit work after the insert statement.
By the way, what is the requirement?
Thanks and Regards,
Ravi
‎2009 May 08 7:57 AM
‎2009 May 08 8:02 AM
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
‎2009 May 08 8:09 AM
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
‎2009 May 08 7:57 AM
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
‎2009 May 08 7:59 AM
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.
‎2009 May 08 8:13 AM
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.