05-06-2010 12:01 AM
Hi experts,
Is it possible to have the student number as a selection criteria for FICA transaction, for example for payment assignment, among others?
Do you have a coding example?
Regards.
05-07-2010 3:06 AM
FUNCTION CMAC_EVENT_0210.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_SELTAB) LIKE ISELTAB STRUCTURE ISELTAB
*" TABLES
*" T_SELTAB STRUCTURE ISELTAB
*" EXCEPTIONS
*" UNKNOWN_SELECTION
*"----
DATA: ld_student12 TYPE piqstudent12,
ld_partner TYPE bu_partner,
ld_student(12) TYPE n.
IF i_seltab-selfn <> c_student12.
RAISE unknown_selection.
ELSE.
to get leading zero's move the student number in a NUMC-field first
ld_student = i_seltab-selcu.
ld_student12 = ld_student.
CALL FUNCTION 'HRIQ_CMACBPST_SELECT_WITH_STID'
EXPORTING
IV_STOBJID =
iv_student12 = ld_student12
XREAD_BUFFER = 'X'
IMPORTING
ev_partner = ld_partner
EXCEPTIONS
student_not_found = 1
INVALID_PARAMETER_ASSIGN = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
i_seltab-selfn = 'GPART'.
i_seltab-selcu = ld_partner.
CLEAR: i_seltab-xsfex,
i_seltab-selco,
i_seltab-selwu,
i_seltab-selwo.
APPEND i_seltab TO t_seltab.
ENDIF.
ENDIF.
ENDFUNCTION.