Application Development 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: 

Hi,It is possible to call a program in to smartforms..?

Former Member
0 Kudos

Hi,I have table and a program,the program should be called in smartforms. can any let me know the procedure..?

4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos

Hi,

like in other abap program :  perform form in program prog.  

don't try to call with a selection screen, I'm not sure SAP will appreciate

regards

Fred

former_member202771
Contributor
0 Kudos

Hi Rahman,

1) Use Submit statement.

2) Perform(perform_name) in Program(Program_name).

3) use:  field = '(PROGRAM_NAME)I_TAB[]'

            assign (field) to <lt_output>.

This will help us to see values in a table(i_tab) from program(PROGRAM_NAME).

Thanks,

Anil

former_member206650
Active Participant
0 Kudos

hi junaid ur rahman ms,

ya use flow logic to write the code using submit.i will advise not to use it because it will make processing time more.instead of that use the loop in smatforms and do necessary logical operation...

hope it helps

raymond_giuseppi
Active Contributor
0 Kudos

Yes create an Program lines node and in it you could use a syntax like "PERFORM subr IN PROGRAM prog" or "SUBMIT prog WITH plist AND RETURN." But better solution would be use of function module or class method for such requirement, first solutions have an obsolete flavour...

Regards,

Raymond