Skip to Content
0
Former Member
Nov 29, 2008 at 06:03 AM

SELECT statement help_HR ABAP

26 Views

Hello experts.

i have browsed the forum about the how to solve my current issue.

i am creating an FM where i have to update an infotype.

here is my code:

IF sy-ucomm EQ lc_route.

gwa_p0490-zzeval = zneweval. <<<<this already has a value

SELECT <what should i select here?>

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'

EXPORTING

number = pa0490-pernr

.

IF sy-subrc EQ 0.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = ???

number = ???

SUBTYPE = ???

record = ???

operation = ???

.

IF sy-subrc EQ 0.

ENDIF.

ENDIF.

CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'

EXPORTING

number = gwa_pa0490-pernr

.

IF sy-subrc EQ 0.

ENDIF.

ENDLOOP.

LEAVE TO SCREEN 0.

ENDif.

here's what i wanted to do:

i have a push button with a function code: 'ROUTE', and when i clicked that one,

infotype pa490-zzeval should be updated with the value of ZNEWEVAL.

questions:

1. how can i update it? whats the select statement should i use?

2. ZNEWEVAL value is obtained and stored in P0494. how can i link these two infotypes together in order to update the other infotype?

thanks for future responses.

Mark