07-16-2009 2:28 AM
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
07-16-2009 3:30 AM
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
07-16-2009 4:10 AM
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
07-16-2009 5:18 AM
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
07-16-2009 5:39 AM
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