Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reading data for multiple employees using LDB

Hi Friends,

I am working on payslip, i am not getting data for more than employees

Its working for one employee perfectly.

Please find below piece of code.

START-OF-SELECTION.
GET PERNR.
CLEAR: GS_PERNR.
GS_PERNR = PERNR.
PERFORM GET_FORPERIOD.  "  Getting for period
CLEAR: T500P, T501T,
        T528T, T001, LS_PDET.
REFRESH LT_PDET.
PERFORM GET_PDATA.   " getting personel and company data
CLEAR: LS_BANKDET,
        LV_BNKA.
PERFORM GET_BANKDATA. " Getting bank data
CLEAR: LV_ABSN_BALAN.
PERFORM GET_ABSENCEDATA. " Getting absence data(Leave data)
CLEAR: MOLGA,
        LV_SEQNR,
        LV_BETRG, RT.
REFRESH: LT_DEDU,
          LT_EARN,
          LT_WGTXT,
          LT_WGTXT_DEDN,
          LT_WGTFINAL, LT_WGTFINAL_DEDU.

PERFORM GET_PAYROLLDATA USING PERNR-PERNR " Getting data from rt.
                               PN-BEGDA
                               PN-ENDDA.


END-OF-SELECTION.
PERFORM CALL_FORM.  " Calling smartform

Former Member
Not what you were looking for? View more on this topic or Ask a question