Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pnp selection screen

Former Member
0 Likes
567

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
488

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.

2 REPLIES 2
Read only

Former Member
0 Likes
489

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.

Read only

Former Member
0 Likes
488

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