cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a parameter value to another program's smartforms?

former_member242166
Participant
0 Kudos

Hi ,

i want get the input from ZAAA program(from selection screen ex: company name), and i have to pass that value into ZBBB program's smartform.. How will i do this. Please share ur thoughts simply to me. Thanks in advance frnds.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can pass it using ABAP Command 'SUBMIT'.

You can get all the required details on SUBMIT from ABAP keyword documentation (F1 on SUBMIT in SE38).

former_member242166
Participant
0 Kudos

Dear manigandan,

Can you please tell briefly about this here..

Former Member
0 Kudos

Hi,

I guess ZBBB is a report program. In the program ZBBB you need to define parameter or select-option for the company name.

In program ZAAA, you add submit command with the help of PATTERN. You can find SUBMIT in 'OTHER PATTERN'. You give the program name against SUBMIT option.

In the SUBMIT command, you will find the input fields (Parameters/select-options defined) also displayed. You will need to pass the company name to this input field.

The SUBMIT will execute ZBBB program with the values for parameters/select-options as values passed from ZAAA.

You may also use the 'AND RETURN' option in SUBMIT if you want to return back to program ZAAA.

An Eg:

SUBMIT report1 USING SELECTION-SCREEN '1100'

               WITH selcrit2 BETWEEN 'H' AND 'K'

               AND RETURN.