2008 Jul 22 12:22 PM
Hi guys,
I am using a table maintaince generator for a ztable.
The first field i spolulated with th help of foreign key search help.
Based on this value selected i have written the dynmaic search help for the second field.My problem is that the value which was selected by the user for teh first feild is not getting populated in PAI MOdule.
I have written the code for the dynamic search help in the PAI module.
Please help me,
Its very urgent.
Hi guys,
I am using a table maintaince generator for a ztable.
The first field i spolulated with th help of foreign key search help.
Based on this value selected i have written the dynmaic search help for the second field.My problem is that the value which was selected by the user for teh first feild is not getting populated in PAI MOdule.
I have written the code for the dynamic search help in the PAI module.
Please help me,
Its very urgent.
2008 Jul 22 1:06 PM
2008 Jul 22 1:45 PM
Thanks a lot for ur reply michael.
In ur code please let me know the place where ur trying to get the value from the screen that the user has eneterd.
THanks in advance,
Rajeev
2008 Jul 22 1:53 PM
Hi,
Check the below code this is to implement F4 help for a field on the screen last part is for coping the value back to the screen.
DATA : IT_FIELDS LIKE HELP_VALUE OCCURS 0 WITH HEADER LINE.
DATA : IT_IND LIKE SY-TABIX.
CLEAR: IT_FIELDS,IT_IND,IT_Ztable.
REFRESH: IT_Ztable,IT_FIELDS.
SELECT ZSTATVAL ZDESC20 INTO TABLE IT_Ztable
FROM ZML08.
DELETE IT_Ztable WHERE ZSTATVAL = ''.
* where
IT_FIELDS-TABNAME = 'Ztable'.
IT_FIELDS-FIELDNAME = 'ZSTATVAL'.
IT_FIELDS-SELECTFLAG = 'X'.
APPEND IT_FIELDS.
CLEAR IT_FIELDS.
IT_FIELDS-TABNAME = 'Ztable'.
IT_FIELDS-FIELDNAME = 'ZDESC20'.
IT_FIELDS-SELECTFLAG = ' '.
APPEND IT_FIELDS.
CLEAR IT_FIELDS.
CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME'
EXPORTING
CUCOL = 120
CUROW = 120
SELECTFIELD = 'ZSTATVAL'
TITEL = 'Help text '
IMPORTING
IND = it_ind
TABLES
FIELDS = IT_FIELDS
FULL_TABLE = IT_Ztable
EXCEPTIONS
FULL_TABLE_EMPTY = 1
NO_TABLESTRUCTURE_GIVEN = 2
NO_TABLEFIELDS_IN_DICTIONARY = 3
MORE_THEN_ONE_SELECTFIELD = 4
NO_SELECTFIELD = 5
OTHERS = 6.
IF SY-SUBRC = 0.
READ TABLE IT_Ztable INDEX IT_IND TRANSPORTING ZSTATVAL ZDESC20
.
IF SY-SUBRC = 0.
EKKO_CI-PROC_MTHD = IT_Ztable-ZSTATVAL.
ENDIF.
ENDIF.
Regards,
Himanshu Verma
2008 Jul 22 2:08 PM
Thanks a lot for ur reply HImanshu,
I am copying my code here , hope this will help u guys to resolve the issue.
MODULE get_level INPUT.
DATA : BEGIN OF lwa_level, "F4 table
level TYPE zzmdna_05-zlevel,
desc TYPE zmdna_sh01-zsh1desc,
END OF lwa_level ,
ltb_level LIKE TABLE OF lwa_level,
lw_selmethod TYPE tabname,
lw_list TYPE string .
get the table name lw_selmethod and selection list lw_list.
if the table name selected is terr
+IF zzmdna_05-ztable_name = 'ZMDNA_TERRITORY'.+GUYS here ZZMDNA_05-ztable_name is the field from the screen.
+BUt the value which i have entered is not saved.I am populating thsi field from the SM30 screen.
SO my functionality is not working.+
PLease help me out,
thanks and regards,
Rajeev
2008 Jul 22 2:46 PM
In my example I am getting the value from a table control. The user has an F4 help in the second column, but the value is based on the input from column one.
gt_pod_sales is the internal table used for the table control
* where on the table control did we hit F4?
GET CURSOR LINE lv_line.
READ TABLE gt_pod_sales
INTO gs_pod_screen
INDEX lv_line
TRANSPORTING vendor.
Hope that helps,
Michael
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |