Google Search - Blog...........

ABAP - F4 (Value On Request) For Organization Unit In HR Report Program.

tables: hrp1000.

select-options: s_objid for hrp1000-objid.

data: it_objec like objec occurs 0 with header line.

at selection-screen on value-request for s_objid-low.

call function 'RH_OBJID_REQUEST'
exporting
plvar = '01'
* otype can be 'O' 'S' 'T' 'C' and so on
otype = 'S'
dynpro_repid = sy-repid
dynpro_dynnr = sy-dynnr
tables
sel_objects = it_objec
exceptions
cancelled = 1
wrong_condition = 2
nothing_found = 3
internal_error = 4
illegal_mode = 5
others = 6 .

if sy-subrc = 0.
read table it_objec index 1.
if sy-subrc = 0.
s_objid-low = it_objec-objid.
endif.
endif.


ALSO READ:

- Employee Pay Scale Report Program.

- Finding Job Code For Position.

- Ordering (Descending ) Org. Unit For An Organization.

- Display Details about Organization unit, Position or Job In HR ABAP.

- First & Last Working Date Of An Employee.

.....Back To Sub-Index On HR ABAP.

.....Back To MAIN INDEX.


No comments:

Post a Comment