2008 Jun 18 11:54 AM
Hi Good Evening,
I have appended strcture ZCORP to LFA1. The ZCORP structure having two fields ZGRP_D & ZNAME1. In the screen I have added two screen fields LFA1-ZGRP_D & LFA1-ZNAME1 from data dictionary.
When I enter values to these two fields it's not passing back values back to the program.
The declaration would be like
DATA: LFA1-ZGRP_D LIKE LFA1-ZGRP_D ,
LFA1-ZGRP_D LIKE LFA1-ZGRP_D .
After pressing save I need to copy these values into below fields.
zmat_grp = LFA1-ZGRP_D.
zgrp_d = LFA1-ZNAME1 .
But the values in LFA1-ZGRP_D & LFA1-ZNAME1 showing blank. Please guide me where is going in this case.
I will be very helpful.
Thanks & Best Regards,
Mahesh
2008 Jun 18 12:12 PM
Hi,
You need to pass or assign the values in PAI.
MODULE user_command_9000 INPUT.
MOVE LFA1-ZGRP_D TO zmat_grp.
MOVE LFA1-ZNAME1 TO zgrp_d .
.
.
ENDMODULE.Hope this helps you.
Plz reward if useful.
Thanks,
Dhanashri.
Edited by: Dhanashri Pawar on Jun 18, 2008 1:12 PM
Hi Good Evening,
I have appended strcture ZCORP to LFA1. The ZCORP structure having two fields ZGRP_D & ZNAME1. In the screen I have added two screen fields LFA1-ZGRP_D & LFA1-ZNAME1 from data dictionary.
When I enter values to these two fields it's not passing back values back to the program.
The declaration would be like
DATA: LFA1-ZGRP_D LIKE LFA1-ZGRP_D ,
LFA1-ZGRP_D LIKE LFA1-ZGRP_D .
After pressing save I need to copy these values into below fields.
zmat_grp = LFA1-ZGRP_D.
zgrp_d = LFA1-ZNAME1 .
But the values in LFA1-ZGRP_D & LFA1-ZNAME1 showing blank. Please guide me where is going in this case.
I will be very helpful.
Thanks & Best Regards,
Mahesh
2008 Jun 18 11:56 AM
Hi,
In PAI of the screen you have to pass the screen value back to the program.
Cheers.
...Reward if useful
2008 Jun 18 12:12 PM
Hi,
You need to pass or assign the values in PAI.
MODULE user_command_9000 INPUT.
MOVE LFA1-ZGRP_D TO zmat_grp.
MOVE LFA1-ZNAME1 TO zgrp_d .
.
.
ENDMODULE.Hope this helps you.
Plz reward if useful.
Thanks,
Dhanashri.
Edited by: Dhanashri Pawar on Jun 18, 2008 1:12 PM
2008 Jun 18 12:55 PM
Hi,
The things what ever you have told I have implemented but the main concern here is that the screen fields LFA1-ZGRP_D & LFA1-ZGRP_D not fetching any values even though I have assigned the values at screen level.
Please suggest me.
Regards,
Mahesh
2008 Jun 18 9:14 PM
Try using SET and GET PARAMETER. You will be able to post the parameter at global level and pass it between the screens and programs.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm
Regards,
C