‎2005 Jul 11 10:30 AM
Hi all,
I've created a subsceen 1xxx which contains an include program in SAPLLMOB.
The problem I'm facing is the data passing. Suppose I got some codes in the include program. How could I pass the values from the include program and display them onto the output screen?
Thanks in advance.
‎2005 Jul 11 10:41 AM
Hi,
Incase if you have created a subscreen in any range in 1xxx the corresponding screen painter looks like this:
PROCESS BEFORE OUTPUT.
MODULE STATUS_SCREEN.
MODULE SU_TEXT.
MODULE DISABLE_PB_SAVE.
MODULE SET_CURSOR.
MODULE DATA_TO_EXIT0100.
CALL CUSTOMER-SUBSCREEN EXIT0101
INCLUDING 'SAPLXLRF' SCRN_DATA-scrnd_USCRN.
PROCESS AFTER INPUT.
CALL CUSTOMER-SUBSCREEN EXIT0101.
MODULE DATA_FROM_EXIT0100.
MODULE EXIT_COMMANDS AT EXIT-COMMAND.
FIELD OK_CODE MODULE USER_COMMANDS.
where in you have two modules naemly data_to_exit and data_from_exit which passes and fetches values fron the common screen fields used and the exit pertaining to the subscreen one on the PBO and the other on the PAI can be used which calls the corresponding include in SAPLXLRF.
so you can code the corresponding logic in it. indeed a bit of R&D will be more helpful.
Regards,
Jagath
‎2005 Jul 11 10:41 AM
Hi,
Incase if you have created a subscreen in any range in 1xxx the corresponding screen painter looks like this:
PROCESS BEFORE OUTPUT.
MODULE STATUS_SCREEN.
MODULE SU_TEXT.
MODULE DISABLE_PB_SAVE.
MODULE SET_CURSOR.
MODULE DATA_TO_EXIT0100.
CALL CUSTOMER-SUBSCREEN EXIT0101
INCLUDING 'SAPLXLRF' SCRN_DATA-scrnd_USCRN.
PROCESS AFTER INPUT.
CALL CUSTOMER-SUBSCREEN EXIT0101.
MODULE DATA_FROM_EXIT0100.
MODULE EXIT_COMMANDS AT EXIT-COMMAND.
FIELD OK_CODE MODULE USER_COMMANDS.
where in you have two modules naemly data_to_exit and data_from_exit which passes and fetches values fron the common screen fields used and the exit pertaining to the subscreen one on the PBO and the other on the PAI can be used which calls the corresponding include in SAPLXLRF.
so you can code the corresponding logic in it. indeed a bit of R&D will be more helpful.
Regards,
Jagath
‎2005 Jul 11 10:54 AM
Thanks Jagath.
The codes are exactly I got.
Could you tell me more?
Inside DATA_FROM_EXIT and DATA_TO_EXIT, I have to modify the includes in the CUSTOMER FUNCTIONS, but I just don't know how...
‎2005 Jul 11 11:07 AM
Hi,
Indeed the data_from_exit and data_to_exit does not needs to be modified as it will fetch data from the screen where in your are currently working ( main or the subscreen) as your subscreen will be placed on the main screen it will give the set of current cursor placed details. the modification needs to be done at the subscreen exit include which is placed inside the program SAPLXLRF. indeed for each subscreen there will be a standard include starting with LXLRF* series. but you need to put your logic or validation into teh corresponding ZLXLRF*.
Regards,
Jagath
‎2005 Jul 11 11:32 AM
If I'm adding a field on the subscreen.
How could I pass the value to the subscreen?
‎2005 Jul 11 12:18 PM
Hi,
If you add fields to your screen then in the PBO exit you can access the same and you pass the value in the include pertaining to the screen in program SAPLLRF. similarly the same holds for PAI.
Regards,
Jagath
‎2005 Jul 12 2:51 AM
I just don't know how to pass the value in the include program to the field on the subscreen which is defined by me...
Could any body helps?
Thanks