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: 

Filled Input Field with value from another program

Former Member
0 Kudos

Dear experts,

I have created 2 dialog programs, the 1st will provide the values to be retrieved by the second program and displays it in the input field (text box)

For example, user select certain customer in the first program, and after user click on a button (use submit function) then the customer value will be displayed in the input field on the second program (disabled, can't be edited)

Is that possible? Can you please show me little snippet of code on how to achieve it?

Thank you very much,

Sam

4 REPLIES 4

former_member229729
Active Participant
0 Kudos

Hi,

In the 2nd dialog program, try to give PARAMETER ID 'EXA' on the Layout Editor and activate it.

Note: ID name above given can be anything as you desire.

And while submitting the 1st Program, try to add the below syntax:

On the PAI write the following:

SET PARAMETER ID 'EXA'  FIELD <VALUE>.

When user opens the 2nd program, the Field which is set with Parameter id, will automatically get the value from the 2nd program.

Rgds,

Ramani N

0 Kudos

hI Ramani,

I have set the parameter id (IDCUSTX)for the input field in screen 2 and activate it.

Then I put this value in the PAI section of screen 1.

MODULE USER_COMMAND_0100 INPUT.

SET PARAMETER ID 'IDCUSTX' FIELD 'CUSTOMERA'.

ENDMODULE.

Then I submit.

MODULE STATUS_0100 OUTPUT.

if OK_CODE = 'call'.

SUBMIT ZCUSTDETAILS VIA SELECTION-SCREEN AND RETURN .

endif.

ENDMODULE.

But I still can't see the value in screen 2 (ZCUSTDETAILS)

Thank

Sam

0 Kudos

Hi Sam,

Try this

In screen1,

SET PARAMETER ID 'IDCUSTX' FIELD G_CUSTOMERA.

In screen2,

GET PARAMETER ID 'IDCUSTX' FIELD G_CUSTOMERB.

Hope this helps

Thanks, Vimal

0 Kudos

Vimal,

I put this code inside screen 2 BPO.

MODULE STATUS_0200 OUTPUT.

GET PARAMETER ID 'IDCUSTX' FIELD G_CUSTOMERB.

ENDMODULE.

I'm very confused, the G_CUSTOMERB already has value, it should get assigned right? but why the textfield still empty?

Thanks,

Sam