‎2007 May 17 9:28 AM
In PNP selection screen i hav a push button say Org st. i want to capture what i have selected in my Org St. . how can i get the values what i have selected.
‎2007 May 17 9:33 AM
hi nidhi,
the value of org units tht u have selected on selection screen via button org unit will get stored in varaible PNPOBJID, debug ur code and check values in this field.
then u can use these values as per your requirement.
see my code i m checking here tht i need to process only those employees who r having org unit (in IT0001) in my choosed field PNPOBJID.
rp_provide_from_last t_0001 ' ' pnpbegda pnpendda.
sy-datum sy-datum.
check t_0001-orgeh in PNPOBJID. "this thing
check t_0001-persg = '6' OR t_0001-persg = '7' OR t_0001-persg = '8'.
wa_person_tab-stell = t_0001-stell.
wa_person_tab-werks = t_0001-werks.
wa_person_tab-persg = t_0001-persg.
wa_person_tab-orgeh = t_0001-orgeh.
wa_person_tab-persk = t_0001-persk.
wa_person_tab-btrtl = t_0001-btrtl.
‎2007 May 17 9:33 AM
hi nidhi,
the value of org units tht u have selected on selection screen via button org unit will get stored in varaible PNPOBJID, debug ur code and check values in this field.
then u can use these values as per your requirement.
see my code i m checking here tht i need to process only those employees who r having org unit (in IT0001) in my choosed field PNPOBJID.
rp_provide_from_last t_0001 ' ' pnpbegda pnpendda.
sy-datum sy-datum.
check t_0001-orgeh in PNPOBJID. "this thing
check t_0001-persg = '6' OR t_0001-persg = '7' OR t_0001-persg = '8'.
wa_person_tab-stell = t_0001-stell.
wa_person_tab-werks = t_0001-werks.
wa_person_tab-persg = t_0001-persg.
wa_person_tab-orgeh = t_0001-orgeh.
wa_person_tab-persk = t_0001-persk.
wa_person_tab-btrtl = t_0001-btrtl.
‎2007 May 17 9:37 AM
hi,
1. press f1 on that field
2. take technical information of next screen.
3. U will get the field name in the bottom (text field)
4. use that field name inside ur program to gte that value.
Regards
Reshma