Sei sulla pagina 1di 73

*&---------------------------------------------------------------------* *& Report ZHR_UPLOAD_ADOBE *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZHR_UPLOAD_ADOBE.

************************ TYPES: BEGIN OF TY_DATA, DATA(300) TYPE C, END OF TY_DATA. ****Infotypw 0002 TYPES: BEGIN OF TY_PERNR, PERNR TYPE CHAR8, BEGDA(10) TYPE C, ENDDA(10) TYPE C, ANRED TYPE CHAR1, VORNA TYPE CHAR40, NACHN TYPE CHAR40, MIDNM TYPE CHAR40, GBDAT(10) TYPE C, GBORT TYPE CHAR40, GESCH TYPE CHAR1, NATIO TYPE CHAR3, GBLND(2) TYPE C, GBDEP(3) TYPE C, FAMST TYPE CHAR1, KONFE TYPE CHAR3, ZZLANU TYPE ZLCOD, ZZCAT TYPE ZCATEGORY, ZZCASTE TYPE ZCASTE, ZZFLY TYPE ZFAMILYPLAN, ZZOTXT TYPE SPTXT, FAMDT TYPE FAMDT, ANZKD TYPE ANZKD, NATI2 TYPE NATS2, END OF TY_PERNR. TYPES: BEGIN OF TY_PROPOSED_VALUES. INCLUDE STRUCTURE PPROP. TYPES: END OF TY_PROPOSED_VALUES. *TYPES: BEGIN OF TY_PROPOSED_VALUES, * INFTY TYPE PPROP-INFTY, *FNAME TYPE PROP_FNAME, *FVAL TYPE PROP_FVAL, *SEQNR TYPE CHAR4, * END OF TY_PROPOSED_VALUES. * *CHAR 4 *CHAR 132 *CHAR 255 *NUMC 2

"char8, "char8,

" char8,

TABLES: PERNR. INFOTYPES: 0185. TYPES:BEGIN OF S_FINAL. INCLUDE STRUCTURE P0185. TYPES:END OF S_FINAL. data: itab_0185_new TYPE STANDARD TABLE OF s_final. data:wa_0185_new TYPE s_final.

TYPES: BEGIN OF TY_MODIFIED_KEYS. INCLUDE STRUCTURE PSKEY. TYPES: END OF TY_MODIFIED_KEYS. ********************* *********************Infotype 9001 TYPES: BEGIN OF TY_PERNR_9001, PERNR TYPE CHAR8, BEGDA(10) TYPE C, ENDDA(10) TYPE C, ZSSIZE TYPE ZSSIZE, ZWSIZE TYPE ZWAIST, ZSHOE TYPE ZSHOE, ZLAN1 TYPE ZLCOD, ZLAN2 TYPE ZLCOD, ZLAN3 TYPE ZLCOD, ZREAD1 TYPE ZREAD, ZWRITE1 TYPE ZWRITE, ZSPEAK1 TYPE ZSPEAK, ZREAD2 TYPE ZREAD, ZWRITE2 TYPE ZWRITE, ZSPEAK2 TYPE ZSPEAK, ZREAD3 TYPE ZREAD, ZWRITE3 TYPE ZWRITE, ZSPEAK3 TYPE ZSPEAK, END OF TY_PERNR_9001.

"char8, "char8,

DATA: ITAB_FINAL_9001 TYPE TABLE OF TY_PERNR_9001 WITH HEADER LINE, WA_FINAL_9001 TYPE TY_PERNR_9001. DATA: HIREDATE LIKE P0000-BEGDA. ********************* ***************Infotype 0185 *********************Infotype 9001 TYPES: BEGIN OF TY_PERNR_0185, PERNR TYPE CHAR8, BEGDA(10) TYPE C, ENDDA(10) TYPE C, SUBTY TYPE SUBTY, ICTYP TYPE ICTYP, ICNUM TYPE PSG_IDNUM, AUTH1 TYPE P25_AUTH1, FPDAT TYPE PSG_FPDAT,

"char8, "char8,

EXPID TYPE EXPID, ISSPL TYPE P25_ISSPL, ISCOT TYPE P25_ISCOT, PAN_ICTYP(2) TYPE C, PAN_NO TYPE PSG_IDNUM, DRI_ICTYP TYPE ICTYP, DRI_ID TYPE PSG_IDNUM, DRI_AUTH TYPE P25_AUTH1, DRI_DATE_ISSUE TYPE PSG_FPDAT, DRI_PLACE_ISSUE TYPE ISSPL, DRI_DATE_EXP TYPE EXPID, DRI_COUNTRY TYPE P25_ISCOT, END OF TY_PERNR_0185. DATA: ITAB_FINAL_0185 TYPE TABLE OF TY_PERNR_0185 WITH HEADER LINE, WA_FINAL_0185 TYPE TY_PERNR_0185. TYPES: BEGIN OF TY_0185, SLNO(3) TYPE C, ICTYP TYPE P0185-ICTYP,"ICTYP, ICNUM TYPE PSG_IDNUM, AUTH1 TYPE P25_AUTH1, FPDAT TYPE PSG_FPDAT, EXPID TYPE EXPID, ISSPL TYPE P25_ISSPL, ISCOT TYPE P25_ISCOT, END OF TY_0185. DATA:ITAB_0185 TYPE STANDARD TABLE OF TY_0185 WITH HEADER LINE. DATA:WA_0185 TYPE TY_0185. TYPES :BEGIN OF TY_TEMP, SLNO(3) TYPE C, ICTYP TYPE ICTYP, STEXT TYPE STRING, TEXT TYPE STRING, END OF TY_TEMP. DATA:ITAB_TEMP TYPE STANDARD TABLE OF TY_TEMP WITH HEADER LINE. DATA:WA_TEMP TYPE TY_TEMP. ************************************End ***********************Infotype 0006 for address TYPES : BEGIN OF TY_PERNR_0006, PERNR TYPE CHAR8, BEGDA(10) TYPE C, ENDDA(10) TYPE C, ANSSA TYPE ANSSA, NAME2 TYPE PAD_CONAM, STRAS TYPE PAD_STRAS, HSNMR TYPE PAD_HSNMR, LOCAT TYPE PAD_LOCAT, PSTLZ TYPE PSTLZ_HR, ORT01 TYPE PAD_ORT01, ORT02 TYPE PAD_ORT02, STATE TYPE REGIO, LAND1 TYPE LAND1, TELNR TYPE TELNR, ENTKM TYPE ENTKM, ZHR_ACC_TYP TYPE ZHR_ACC_TYP,

"char8, "char8,

END OF TY_PERNR_0006. DATA: ITAB_FINAL_006 TYPE STANDARD TABLE OF TY_PERNR_0006 WITH HEADER LINE. DATA: WA_FINAL_0006 TYPE TY_PERNR_0006. TYPES : BEGIN OF TY_0006, ANSSA TYPE ANSSA, NAME2 TYPE PAD_CONAM, STRAS TYPE PAD_STRAS, HSNMR TYPE PAD_HSNMR, LOCAT TYPE PAD_LOCAT, PSTLZ TYPE PSTLZ_HR, ORT01 TYPE PAD_ORT01, ORT02 TYPE PAD_ORT02, STATE TYPE REGIO, LAND1 TYPE LAND1, TELNR TYPE TELNR, ENTKM TYPE ENTKM, ZHR_ACC_TYP TYPE ZHR_ACC_TYP, END OF TY_0006. DATA:ITAB_0006 TYPE STANDARD TABLE OF TY_0006 WITH HEADER LINE. DATA:WA_0006 TYPE TY_0006.

TYPES :BEGIN OF TY_TEMP_0006, SLNO(3) TYPE C, ANSSA TYPE ANSSA, STEXT TYPE STRING, TEXT TYPE STRING, END OF TY_TEMP_0006. DATA:ITAB_TEMP_0006 TYPE STANDARD TABLE OF TY_TEMP_0006 WITH HEADER LINE. DATA:WA_TEMP_0006 TYPE TY_TEMP_0006. DATA: IT_PER TYPE STANDARD TABLE OF TY_TEMP_0006 WITH HEADER LINE. DATA:WA_PER TYPE TY_TEMP_0006. DATA:WA_SAC TYPE TY_TEMP_0006. " BY SACHIN DATA: SAMEASABOVE TYPE CHAR2 VALUE 0, SAME_E TYPE CHAR2 VALUE 0, SAME_M TYPE CHAR2 VALUE 0. *********************************End Address **********************************Infotype 0021 TYPES : BEGIN OF TY_PERNR_0021, PERNR TYPE CHAR8, BEGDA(10) TYPE C, ENDDA(10) TYPE C, FAMSA TYPE FAMSA, FANAM TYPE PAD_NACHN, FGBNA TYPE PAD_NAME2, FAVOR TYPE PAD_VORNA, TITEL TYPE TITEL, GESC2 TYPE GESC2, GESC1 TYPE GESC1, FGBDT(10) TYPE C, FGBOT TYPE PAD_GBORT, FANAT TYPE NATSL,

"char8, "char8,

FGBLD TYPE GBLND, ZZOCCU TYPE BU_JOBGR, END OF TY_PERNR_0021. DATA: ITAB_FINAL_0021 TYPE STANDARD TABLE OF TY_PERNR_0021 WITH HEADER LINE. DATA: WA_FINAL_0021 TYPE TY_PERNR_0021. TYPES : BEGIN OF TY_0021, FAMSA TYPE FAMSA, ANRED TYPE ANRED, FANAM TYPE PAD_NACHN, FGBNA TYPE PAD_NAME2, FAVOR TYPE PAD_VORNA, TITEL TYPE TITEL, GESC2 TYPE GESC2, GESC1 TYPE GESC1, FGBDT(10) TYPE C, FGBOT TYPE PAD_GBORT, FANAT TYPE NATSL, FGBLD TYPE GBLND, ZZOCCU TYPE BU_JOBGR, OBJPS TYPE OBJPS, KDZUL TYPE KDZUL, KDGBR TYPE KDGBR, END OF TY_0021. DATA:ITAB_0021 TYPE STANDARD TABLE OF TY_0021 WITH HEADER LINE. DATA:WA_0021 TYPE TY_0021. TYPES :BEGIN OF TY_TEMP_0021, SLNO(3) TYPE C, FAMSA TYPE ANSSA, STEXT TYPE STRING, TEXT TYPE STRING, END OF TY_TEMP_0021. DATA:ITAB_TEMP_0021 TYPE STANDARD TABLE OF TY_TEMP_0021 WITH HEADER LINE. DATA:WA_TEMP_0021 TYPE TY_TEMP_0021. ****************************************end **************************Infotype 0022 TYPES :BEGIN OF TY_TEMP_0022, SLNO(3) TYPE C, TEXT TYPE STRING, STEXT TYPE STRING, END OF TY_TEMP_0022. DATA:ITAB_TEMP_0022 TYPE STANDARD TABLE OF TY_TEMP_0022 WITH HEADER LINE. DATA:WA_TEMP_0022 TYPE TY_TEMP_0022. TYPES: BEGIN OF S_FINAL_0022, PERNR(8) TYPE C, BEGDA TYPE BEGDA, ENDDA TYPE ENDDA, SUBTY TYPE SUBTY, SLART TYPE SLART, SLABS TYPE SLABS, SLTP1 TYPE FACH1,

ZZSPECIALISATION(75) TYPE C, INSTI TYPE INSTI, SLAND TYPE LAND1, ANZEH TYPE PT_ZEINH, EMARK TYPE EMARK, ZZGRADEUNITS TYPE ZZGRADEUNITS, END OF S_FINAL_0022. DATA:ITAB_0022 TYPE STANDARD TABLE OF S_FINAL_0022 WITH HEADER LINE. DATA:WA_0022 TYPE S_FINAL_0022. DATA: ITAB_FINAL_0022 TYPE STANDARD TABLE OF S_FINAL_0022 WITH HEADER LINE. DATA: WA_FINAL_0022 TYPE S_FINAL_0022. DATA: RETURN LIKE BAPIRETURN1. *************************End Infotype 0022 TYPES: BEGIN OF TY_STR1. INCLUDE TYPE ZHR_EMP_1. TYPES: END OF TY_STR1. DATA: ITAB_STR1 TYPE STANDARD TABLE OF TY_STR1 WITH HEADER LINE. DATA: WA_STR1 TYPE TY_STR1.

************************ DATA: IT_DATA TYPE TABLE OF TY_DATA WITH HEADER LINE, IT_PERNR TYPE TABLE OF TY_PERNR WITH HEADER LINE, IT_PROPOSED_VALUES TYPE STANDARD TABLE OF TY_PROPOSED_VALUES WITH HEADER LINE, IT_MODIFIED_KEYS TYPE TABLE OF TY_MODIFIED_KEYS WITH HEADER LINE, WA_FVAL LIKE PPROP-FVAL, WA_BAPIRET LIKE BAPIRETURN, WA_BAPIRET1 LIKE BAPIRETURN1, ITAB_FINAL TYPE STANDARD TABLE OF TY_PERNR WITH HEADER LINE, WA_FINAL TYPE TY_PERNR.

DATA :ITAB_T005T LIKE T005T OCCURS 0 WITH HEADER LINE. DATA:WA_T005T TYPE T005T. DATA: DD(2) TYPE C, MM(2) TYPE C, YY(4) TYPE C, DATE1 TYPE STRING, HIRE_DATE TYPE STRING, PASS_DATE_ISSUE TYPE STRING, PASS_DATE_VALID TYPE STRING, DRI_DATE_ISSUE TYPE STRING, DRI_DATE_VALID TYPE STRING.

**************************

SELECTION-SCREEN BEGIN OF BLOCK B1. PARAMETERS: L_PERNR LIKE PSPAR-PERNR, L_FMNO TYPE CHAR10, P_FILE_M LIKE RLGRAP-FILENAME OBLIGATORY, " File path HR Master P_FILE LIKE RLGRAP-FILENAME OBLIGATORY. " File path for Employee Master SELECTION-SCREEN END OF BLOCK B1. DATA: W_FILENAME TYPE STRING, " File name W_LENGTH TYPE I, LT_FILE_TABLE TYPE FILETABLE, LV_FILELENGTH TYPE I, LV_RC TYPE I, LV_FILENAME TYPE STRING, W_PDF_DATA TYPE XSTRING, LT_RAWTAB TYPE TABLE OF CHAR255, W_PDF_FILE TYPE STRING, * Create PDF Object using destination 'ADS' (<-- this is how it is * defined in SM59) LO_PDFOBJ TYPE REF TO IF_FP_PDF_OBJECT VALUE IS INITIAL, XSLT_MESSAGE TYPE STRING, EXC TYPE REF TO CX_ROOT, FS_PER_INFO TYPE ZADOBE_TEST."ZWD_PER_INFO. AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE. PERFORM F4_HELP_FOR_FILE. START-OF-SELECTION. PERFORM GET_DATA_TO_UPLOAD. PERFORM GET_PDF_DATA. PERFORM GET_PDF_INSTANTIATE. PERFORM EXTRACT_DATA. PERFORM POPULATE_0002. PERFORM CREATE_DATA_FOR_0185. PERFORM POPULATE_0185.

* * * *

*&----------------------------------------------------------------* *& Form F4_HELP_FOR_FILE *&----------------------------------------------------------------* FORM F4_HELP_FOR_FILE . CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG CHANGING FILE_TABLE = LT_FILE_TABLE RC = LV_RC * USER_ACTION = * FILE_ENCODING = EXCEPTIONS FILE_OPEN_DIALOG_FAILED = 1 CNTL_ERROR = 2 ERROR_NO_GUI = 3 NOT_SUPPORTED_BY_GUI = 4 OTHERS = 5. IF SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. * READ TABLE lt_file_table * INTO lv_filename * INDEX 1. READ TABLE LT_FILE_TABLE INTO P_FILE INDEX 1. IF SY-SUBRC EQ 0. LV_FILENAME = P_FILE. ENDIF. CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD( EXPORTING FILENAME = LV_FILENAME FILETYPE = 'BIN' "Binary IMPORTING FILELENGTH = LV_FILELENGTH CHANGING DATA_TAB = LT_RAWTAB EXCEPTIONS FILE_OPEN_ERROR = 1 FILE_READ_ERROR = 2 NO_BATCH = 3 GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 NO_AUTHORITY = 6 UNKNOWN_ERROR = 7 BAD_DATA_FORMAT = 8 HEADER_NOT_ALLOWED = 9 SEPARATOR_NOT_ALLOWED = 10 HEADER_TOO_LONG = 11 UNKNOWN_DP_ERROR = 12 ACCESS_DENIED = 13 DP_OUT_OF_MEMORY = 14 DISK_FULL = 15 DP_TIMEOUT = 16 NOT_SUPPORTED_BY_GUI = 17 ERROR_NO_GUI = 18 OTHERS = 19 ). ENDFORM. " F4_HELP_FOR_FILE *&----------------------------------------------------------------* *& Form GET_PDF_INSTANTIATE *&----------------------------------------------------------------* FORM GET_PDF_INSTANTIATE . * Get FP reference DATA: LO_FP TYPE REF TO IF_FP VALUE IS INITIAL. LO_FP = CL_FP=>GET_REFERENCE( ). * For handling exceptions DATA: LO_FPEX TYPE REF TO CX_FP_RUNTIME VALUE IS INITIAL. TRY. LO_PDFOBJ = LO_FP->CREATE_PDF_OBJECT( CONNECTION = 'ADS' ). * Set document LO_PDFOBJ->SET_DOCUMENT( EXPORTING PDFDATA = W_PDF_DATA ). * Tell PDF object to extract data LO_PDFOBJ->SET_EXTRACTDATA( ). * Execute the call to ADS LO_PDFOBJ->EXECUTE( ). CATCH CX_FP_RUNTIME_SYSTEM INTO EXC.

XSLT_MESSAGE = EXC->GET_TEXT( ). ENDTRY. ENDFORM. " GET_PDF_INSTANTIATE *&----------------------------------------------------------------* *& Form EXTRACT_DATA *&----------------------------------------------------------------* FORM EXTRACT_DATA . DATA: XML_DATA TYPE XSTRING, T_RETURN TYPE STANDARD TABLE OF BAPIRET2, T_PER_INFO TYPE STANDARD TABLE OF SMUM_XMLTB, LFS_PER_INFO TYPE SMUM_XMLTB. LO_PDFOBJ->GET_DATA( IMPORTING FORMDATA = XML_DATA ). CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING XML_INPUT = XML_DATA TABLES XML_TABLE = T_PER_INFO RETURN = T_RETURN. BREAK DEVJSPL1. CALL FUNCTION 'RP_GET_HIRE_DATE' EXPORTING PERSNR = L_PERNR CHECK_INFOTYPES = '0000' DATUMSART = '01' STATUS2 = '3' * P0016_OPTIONEN = ' ' IMPORTING HIREDATE = HIREDATE .

LOOP AT T_PER_INFO INTO LFS_PER_INFO. CASE LFS_PER_INFO-CNAME. WHEN 'PERNR'. WA_FINAL-PERNR = L_PERNR."LFS_PER_INFO-CVALUE. WHEN 'MR'. WA_FINAL-ANRED = LFS_PER_INFO-CVALUE. WHEN 'FIRST_NAME'. WA_FINAL-VORNA = LFS_PER_INFO-CVALUE. WHEN 'MIDDLE_NAME'. WA_FINAL-MIDNM = LFS_PER_INFO-CVALUE. WHEN 'LAST_NAME'. WA_FINAL-NACHN = LFS_PER_INFO-CVALUE. WHEN 'DOB'. CLEAR : DATE1. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DATE1. WA_FINAL-GBDAT = DATE1."LFS_PER_INFO-CVALUE. WHEN 'BIRTH_PLACE'. * BREAK-POINT. WA_FINAL-GBORT = LFS_PER_INFO-CVALUE. WHEN 'GENDER'. WA_FINAL-GESCH = LFS_PER_INFO-CVALUE.

WHEN 'NATIONALITY'. * * * * * * * CALL FUNCTION '/SAPNEA/SMAPI_COUNTRY_GETLIST' EXPORTING SPRAS = LAND1 = LANDX = NATIO = IMPORTING RETURN = TABLES E_T005T = ITAB_T005T . READ TABLE ITAB_T005T INTO WA_T005T WITH KEY NATIO = LFS_PER_INFO-CVALU E. IF SY-SUBRC = 0. WA_FINAL-NATIO = WA_T005T-LAND1. ENDIF. WHEN 'COUNTRY'. WA_FINAL-GBLND = LFS_PER_INFO-CVALUE. "'IN'. WHEN 'STATE_OF_BIRTH'. WA_FINAL-GBDEP = LFS_PER_INFO-CVALUE . WHEN 'MARITAL_STATUS'. WA_FINAL-FAMST = LFS_PER_INFO-CVALUE . WHEN 'RELIGION'. WA_FINAL-KONFE = LFS_PER_INFO-CVALUE. WHEN 'MOTHER_LANG'. BREAK-POINT. WA_FINAL-ZZLANU = LFS_PER_INFO-CVALUE. WHEN 'CATEGORY'. WA_FINAL-ZZCAT = LFS_PER_INFO-CVALUE. WHEN 'CASTE'. BREAK-POINT. WA_FINAL-ZZCASTE = LFS_PER_INFO-CVALUE. WHEN 'FAMILY_PLANNING'. BREAK-POINT. WA_FINAL-ZZFLY = LFS_PER_INFO-CVALUE. WHEN 'MARRIAGE_DATE'. CLEAR :DATE1. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DATE1. WA_FINAL-FAMDT = DATE1. "LFS_PER_INFO-CVALUE. WHEN 'CHILDREN'. WA_FINAL-ANZKD = LFS_PER_INFO-CVALUE. WHEN 'OTHER_NATION'. WA_FINAL-NATI2 = LFS_PER_INFO-CVALUE.

"'23'. "'1'. "'1'.

* *

********Infotype 9001 WHEN 'SHIRT_SIZE'. WA_FINAL_9001-ZSSIZE = LFS_PER_INFO-CVALUE. WHEN 'WAIST_SIZE'. WA_FINAL_9001-ZWSIZE = LFS_PER_INFO-CVALUE. WHEN 'SHOES_SIZE'. WA_FINAL_9001-ZSHOE = LFS_PER_INFO-CVALUE. WHEN 'LANG2'. WA_FINAL_9001-ZLAN1 = LFS_PER_INFO-CVALUE. WHEN 'LANG2_R'. WA_FINAL_9001-ZREAD1 = LFS_PER_INFO-CVALUE.

WHEN 'LANG2_S'. WA_FINAL_9001-ZSPEAK1 = LFS_PER_INFO-CVALUE. WHEN 'LANG2_W'. WA_FINAL_9001-ZWRITE1 = LFS_PER_INFO-CVALUE. WHEN 'LANG3'. WA_FINAL_9001-ZLAN2 = LFS_PER_INFO-CVALUE. WHEN 'LANG3_R'. WA_FINAL_9001-ZREAD2 = LFS_PER_INFO-CVALUE. WHEN 'LANG3_S'. WA_FINAL_9001-ZSPEAK2 = LFS_PER_INFO-CVALUE. WHEN 'LANG3_W'. WA_FINAL_9001-ZWRITE2 = LFS_PER_INFO-CVALUE. WHEN 'LANG4'. * BREAK-POINT. WA_FINAL_9001-ZLAN3 = LFS_PER_INFO-CVALUE. WHEN 'LANG4_R'. WA_FINAL_9001-ZREAD3 = LFS_PER_INFO-CVALUE. WHEN 'LANG4_S'. * BREAK-POINT. WA_FINAL_9001-ZSPEAK3 = LFS_PER_INFO-CVALUE. WHEN 'LANG4_W'. WA_FINAL_9001-ZWRITE3 = LFS_PER_INFO-CVALUE. ****Infotype 0185 WHEN 'PASS_ID'. * BREAK-POINT. WA_FINAL_0185-ICTYP = '01'. WA_FINAL_0185-ICNUM = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '01'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. * WHEN 'PASS_DATE_ISSUE'. BREAK-POINT. CLEAR:PASS_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_ISSUE. WA_FINAL_0185-FPDAT = PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_VALID'. CLEAR:PASS_DATE_VALID. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_VALID. " imp

WA_FINAL_0185-EXPID = PASS_DATE_VALID."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'EXPID'. WA_TEMP-TEXT = PASS_DATE_VALID. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_AUTHORITY'. WA_FINAL_0185-AUTH1 = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'AUTH1'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_COUNTRY'. WA_FINAL_0185-ISCOT = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ISCOT'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_PLACE_ISSUE'. BREAK-POINT. WA_FINAL_0185-ISSPL = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ISSPL'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. * WHEN 'PAN_ID'. break-point. WA_FINAL_0185-PAN_ICTYP = '02'. WA_FINAL_0185-PAN_NO = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '02'. WA_TEMP-ICTYP = '02'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '02'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '02'. WA_TEMP-ICTYP = '02'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

WHEN 'DRIVING_ID'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_ID = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '03'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_AUTHORITY'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_AUTH = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'AUTH1'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_DATE_ISSUE'. CLEAR:DRI_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DRI_DATE_ISSUE.

WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_DATE_ISSUE = DRI_DATE_ISSUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = DRI_DATE_ISSUE. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_PLACE_ISSUE'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_PLACE_ISSUE = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ISSPL'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

WHEN 'DRIVING_VALID'. CLEAR:DRI_DATE_VALID. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DRI_DATE_VALID. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_DATE_EXP = DRI_DATE_VALID."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'EXPID'. WA_TEMP-TEXT = DRI_DATE_VALID."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_COUNTRY'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_COUNTRY = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ISCOT'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

*******address details start WHEN 'SAMERB'. "SAME AS ABOVE RAIO BUTTON IF LFS_PER_INFO-CVALUE EQ '1'. SAMEASABOVE = 1. ELSE. SAMEASABOVE = 0. " NONE ENDIF. WHEN 'SAME_E'. " YES

" SAME AS BOTH ABOVE BUTTON

IF LFS_PER_INFO-CVALUE EQ '1'. SAME_E = 1. " PRESENT ELSEIF LFS_PER_INFO-CVALUE EQ '2'.. SAME_E = 2. " PERMANANT ELSE. SAME_E = 0. " NONE ENDIF. WHEN 'SAME_M'. " SAME AS BOTH ABOVE BUTTON BREAK-POINT. IF LFS_PER_INFO-CVALUE EQ '1'. SAME_M = 1. " PRESENT ELSEIF LFS_PER_INFO-CVALUE EQ '2'.. SAME_M = 2. " PERMANANT ELSE. SAME_M = 0. " NONE ENDIF. WHEN 'CAREOF_PER'.

BREAK-POINT. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '01'. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'HOUSE_NO_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'FIRST_LINE_ADD_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'SEC_LINE_ADD_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'CITY_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'DISTRICT_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'STATE_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'PIN_CODE_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'.

WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'TEL_NO_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WHEN 'COUNTRY_PER'. WA_TEMP_0006-SLNO = '01'. WA_TEMP_0006-ANSSA = '01'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ***************present address WHEN 'CAREOF_PRE'. IF SAMEASABOVE EQ 0. " IF NOT SAME AS ABOVE WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '02'. " sachin added * WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. WA_TEMP_0006-SLNO = '02'. "IF SAME AS ABOVE WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '02'. " sachin added WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'NAME2'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'HOUSE_NO_PRE'. IF SAMEASABOVE EQ 0. " 0 MEANS NOT SAME, 1 MEANS SAME

WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'HSNMR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'FIRST_LINE_ADD_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'STRAS'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'SEC_LINE_ADD_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'LOCAT'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'CITY_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'ORT01'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'DISTRICT_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'ORT02'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'STATE_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'STATE'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'PIN_CODE_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'PSTLZ'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'TEL_NO_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'TELNR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'COUNTRY_PRE'. IF SAMEASABOVE EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSE. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY TEXT = 'LAND1'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '02'. WA_TEMP_0006-ANSSA = '02'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF.

ENDIF. *********************EMER ADDRESS WHEN 'CAREOF_EMER'. IF SAME_E EQ 0 . " CHECKING EMER ADD IS SAM AS PRESENT OR P ERM. 1. PRESENT 2. PERMANENT, 3 OR 0 EQ NONE WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin * WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'NAME2'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'NAME2'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006.

ENDIF. ENDIF. WHEN 'HOUSE_NO_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'HSNMR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'HSNMR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'FIRST_LINE_ADD_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'.

WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'STRAS'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'STRAS'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'SEC_LINE_ADD_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'.

WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT

= 'LOCAT'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'LOCAT'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'CITY_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'ORT01'.

IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT

= 'ORT01'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'DISTRICT_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'ORT02'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2.

WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT

= 'ORT02'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'STATE_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'STATE'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006.

READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'STATE'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'PIN_CODE_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'PSTLZ'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'PSTLZ'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006.

CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'TEL_NO_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'TELNR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'TELNR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'COUNTRY_EMER'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '04'.

WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_E EQ 1. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'LAND1'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_E EQ 2. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '04'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'LAND1'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '04'. WA_TEMP_0006-ANSSA = '04'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. *********************************************MAIL ADDRESS WHEN 'CAREOF_MAIL'. break-point. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added by sachin * WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " commented by sachin APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006.

WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'NAME2'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'NAME2'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'NAME2'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'HOUSE_NO_MAIL'. if same_m eq 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1.

WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT

= 'HSNMR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'HSNMR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'HSNMR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'FIRST_LINE_ADD_MAIL'. IF SAME_E EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT

= 'STRAS'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'STRAS'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'STRAS'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'SEC_LINE_ADD_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'LOCAT'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006.

ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT

= 'LOCAT'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'LOCAT'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'CITY_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'ORT01'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006.

CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'ORT01'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ORT01'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'DISTRICT_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'ORT02'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'ORT02'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ORT02'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE.

APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'STATE_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'STATE'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'STATE'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'STATE'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'PIN_CODE_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'.

WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'PSTLZ'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'PSTLZ'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'PSTLZ'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF.

WHEN 'TEL_NO_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006.

ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'TELNR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'TELNR'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'TELNR'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. WHEN 'COUNTRY_MAIL'. IF SAME_M EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ELSEIF SAME_M EQ 1. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006.

READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '02' TEXT = 'LAND1'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ELSEIF SAME_M EQ 2. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'ANSSA'. WA_TEMP_0006-STEXT = '03'. " added sachin WA_TEMP_0006-STEXT = LFS_PER_INFO-CVALUE. " sachin commented APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. READ TABLE ITAB_TEMP_0006 INTO WA_TEMP_0006 WITH KEY SLNO = '01' TEXT = 'LAND1'. IF SY-SUBRC EQ 0. WA_TEMP_0006-SLNO = '03'. WA_TEMP_0006-ANSSA = '03'. WA_TEMP_0006-TEXT = 'LAND1'. WA_TEMP_0006-STEXT = WA_TEMP_0006-STEXT. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0006 TO ITAB_TEMP_0006. CLEAR WA_TEMP_0006. ENDIF. ENDIF. ********************************************** FAMILY DETAILS WHEN 'FATHER_F_NAME'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FAVOR'. WA_TEMP_0021-STEXT = '3'. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FANAM'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_M_NAME'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FGBNA'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_L_NAME'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FAMSA'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE.

APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_DOB'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FGBDT'. CLEAR :DATE1. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DATE1. WA_TEMP_0021-STEXT = DATE1."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_GENDER'. BREAK-POINT. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FASEX'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_PLACE_BIRTH'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FGBOT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'FATHER_COUNRTY_BIRTH'. BREAK-POINT. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FGBLD'. WA_TEMP_0021-STEXT = 'IN'."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_NATIONALITY'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'FANAT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'FATHER_OCCU'. WA_TEMP_0021-SLNO = '01'. WA_TEMP_0021-FAMSA = '3'. WA_TEMP_0021-TEXT = 'ZZOCCU'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021.

"'GESC1'.

****************************Mother details WHEN 'MOTHER_F_NAME'. * BREAK-POINT. WA_TEMP_0021-SLNO = '02'.

WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FAMSA'. WA_TEMP_0021-STEXT = '4'. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FAVOR'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_M_NAME'. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FGBNA'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_L_NAME'. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FANAM'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_DOB'. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FGBDT'. CLEAR :DATE1. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DATE1. WA_TEMP_0021-STEXT = DATE1."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'MOTHER_GENDER'. BREAK-POINT. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FASEX'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_PLACE_BIRTH'. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FGBOT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_COUNRTY_BIRTH'.

"'GESC1'.

BREAK-POINT. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FGBLD'. WA_TEMP_0021-STEXT = 'IN'."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_NATIONALITY'. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'FANAT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'MOTHER_OCCU'. WA_TEMP_0021-SLNO = '02'. WA_TEMP_0021-FAMSA = '4'. WA_TEMP_0021-TEXT = 'ZZOCCU'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021.

*****************************Spouse details WHEN 'SPOUSE_MR'. * WA_FINAL-ANRED = LFS_PER_INFO-CVALUE. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FAMSA'. WA_TEMP_0021-STEXT = '1'. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'ANRED'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'SPOUSE_F_NAME'. BREAK-POINT. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FAVOR'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'SPOUSE_M_NAME'. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FGBNA'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'SPOUSE_L_NAME'. WA_TEMP_0021-SLNO = '04'.

WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FANAM'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'SPOUSE_DOB'. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FGBDT'. CLEAR :DATE1. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DATE1. WA_TEMP_0021-STEXT = DATE1."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'SPOUSE_GENDER'. BREAK-POINT. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FASEX'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'SPOUSE_PLACE_BIRTH'. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FGBOT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'SPOUSE_COUNRTY_BIRTH'. BREAK-POINT. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FGBLD'. WA_TEMP_0021-STEXT = 'IN'."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'SPOUSE_NATIONALITY'. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'FANAT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'SPOUSE_OCCU'. WA_TEMP_0021-SLNO = '04'. WA_TEMP_0021-FAMSA = '1'. WA_TEMP_0021-TEXT = 'ZZOCCU'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021.

"'GESC1'.

CLEAR WA_TEMP_0021. ************************************child1 * WHEN 'CHILD1_F_NAME'. break-point. WA_TEMP_0021-SLNO = '03'. " FOR NUKBER OF CHILD MANDATROY WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'OBJPS'. WA_TEMP_0021-STEXT = '01' . "'LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FAMSA'. WA_TEMP_0021-STEXT = '2'. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FAVOR'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'CHILD1_M_NAME'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FGBNA'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'CHILD1_L_NAME'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FANAM'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'CHILD1_DOB'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FGBDT'. CLEAR :DATE1. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DATE1. WA_TEMP_0021-STEXT = DATE1."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'CHILD1_GENDER'. BREAK-POINT. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'.

WA_TEMP_0021-TEXT = 'FASEX'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'CHILD1_PLACE_BIRTH'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FGBOT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'CHILD1_COUNRTY_BIRTH'. BREAK-POINT. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FGBLD'. WA_TEMP_0021-STEXT = 'IN'."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'CHILD1_NATIONALITY'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'FANAT'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. WHEN 'CHILD1_OCCU'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'ZZOCCU'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. * WHEN 'CHILD1_EDU_ALLOW'. BREAK-POINT. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'KDZUL'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021.

"'GESC1'.

WHEN 'CHILD1_HOSTEL_ALLOW'. WA_TEMP_0021-SLNO = '03'. WA_TEMP_0021-FAMSA = '2'. WA_TEMP_0021-TEXT = 'KDGBR'. WA_TEMP_0021-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0021 TO ITAB_TEMP_0021. CLEAR WA_TEMP_0021. ******************** For Infotype 0022 WHEN 'PG_FROM'. BREAK-POINT. .

WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'BEGDA'. CLEAR: DATE1,yy, mm,dd. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO yy mm dd. CONCATENATE yy mm dd INTO DATE1. WA_TEMP_0022-STEXT = DATE1. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_TO'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'ENDDA'. CLEAR: DATE1,yy, mm,dd. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO yy mm dd. CONCATENATE yy mm dd INTO DATE1. WA_TEMP_0022-STEXT = DATE1."LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_QUALI'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'SUBTY'. WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_SPEC'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'ZZSPECIALISATION'. WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_UNI'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'INSTI'. WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_COUNTRY'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'SLAND'. WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_TIME'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'ANZEH'. WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_MARKS'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'EMARK'. WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022. WHEN 'PG_GRADE'. WA_TEMP_0022-SLNO = '01'. WA_TEMP_0022-TEXT = 'ZZGRADEUNITS'.

WA_TEMP_0022-STEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP_0022 TO ITAB_TEMP_0022. CLEAR WA_TEMP_0022.

*********************end of 0022 WHEN OTHERS. ENDCASE. ENDLOOP.

* BREAK-POINT. LOOP AT ITAB_TEMP INTO WA_TEMP. CASE WA_TEMP-STEXT. WHEN 'ICTYP'. WA_0185-ICTYP = WA_TEMP-ICTYP. WHEN 'ICNUM'. WA_0185-ICNUM = WA_TEMP-TEXT. WHEN 'AUTH1'. WA_0185-AUTH1 = WA_TEMP-TEXT. WHEN 'FPDAT'. WA_0185-FPDAT = WA_TEMP-TEXT. WHEN 'EXPID'. WA_0185-EXPID = WA_TEMP-TEXT. WHEN 'ISSPL'. WA_0185-ISSPL = WA_TEMP-TEXT. WHEN 'ISCOT'. WA_0185-ISCOT = WA_TEMP-TEXT. WHEN OTHERS. ENDCASE. AT END OF SLNO. IF WA_0185-ICNUM IS NOT INITIAL. APPEND WA_0185 TO ITAB_0185. CLEAR WA_0185. ENDIF. CLEAR WA_0185. ENDAT. ENDLOOP.

" added by sachin

" added by sachin

SORT ITAB_TEMP_0006 BY ANSSA. * BREAK-POINT. LOOP AT ITAB_TEMP_0006 INTO WA_TEMP_0006. CASE WA_TEMP_0006-TEXT. WHEN 'ANSSA'. WA_0006-ANSSA = WA_TEMP_0006-ANSSA. WHEN 'NAME2'. WA_0006-NAME2 = WA_TEMP_0006-STEXT. WHEN 'HSNMR'. WA_0006-HSNMR = WA_TEMP_0006-STEXT. WHEN 'STRAS'. WA_0006-STRAS = WA_TEMP_0006-STEXT. WHEN 'LOCAT'.

WA_0006-LOCAT = WA_TEMP_0006-STEXT. WHEN 'ORT01'. WA_0006-ORT01 = WA_TEMP_0006-STEXT. WHEN 'ORT02'. WA_0006-ORT02 = WA_TEMP_0006-STEXT. WHEN 'STATE'. WA_0006-STATE = WA_TEMP_0006-STEXT. WHEN 'PSTLZ'. WA_0006-PSTLZ = WA_TEMP_0006-STEXT. WHEN 'TELNR'. WA_0006-TELNR = WA_TEMP_0006-STEXT. WHEN 'LAND1'. WA_0006-LAND1 = WA_TEMP_0006-STEXT. WHEN OTHERS. ENDCASE. AT END OF ANSSA. IF WA_0006-ANSSA IS NOT INITIAL. APPEND WA_0006 TO ITAB_0006. CLEAR WA_0006. ENDIF. CLEAR WA_0006. ENDAT. ENDLOOP. SORT ITAB_TEMP_0021 BY SLNO. BREAK-POINT. LOOP AT ITAB_TEMP_0021 INTO WA_TEMP_0021. CASE WA_TEMP_0021-TEXT. WHEN 'FAMSA'. WA_0021-FAMSA = WA_TEMP_0021-FAMSA. WHEN 'ANRED'. WA_0021-ANRED = WA_TEMP_0006-STEXT. " SACHIN WHEN 'FANAM'. WA_0021-FANAM = WA_TEMP_0021-STEXT. WHEN 'FGBNA'. WA_0021-FGBNA = WA_TEMP_0021-STEXT. WHEN 'FAVOR'. WA_0021-FAVOR = WA_TEMP_0021-STEXT. WHEN 'FGBDT'. WA_0021-FGBDT = WA_TEMP_0021-STEXT. WHEN 'GESC2'. WA_0021-GESC2 = WA_TEMP_0021-STEXT. WHEN 'GESC1'. WA_0021-GESC1 = WA_TEMP_0021-STEXT. WHEN 'FGBOT'. WA_0021-FGBOT = WA_TEMP_0021-STEXT. WHEN 'FGBLD'. WA_0021-FGBLD = WA_TEMP_0021-STEXT. WHEN 'FANAT'. WA_0021-FANAT = WA_TEMP_0021-STEXT. WHEN 'ZZOCCU'. WA_0021-ZZOCCU = WA_TEMP_0021-STEXT. WHEN 'TITEL'. WA_0021-TITEL = WA_TEMP_0021-STEXT. " SACHIN WHEN 'KDGBR'. WA_0021-KDGBR = WA_TEMP_0021-STEXT. " SACHIN WHEN 'OBJPS'. WA_0021-OBJPS = WA_TEMP_0021-STEXT. " SACHIN WHEN 'KDZUL'. WA_0021-KDZUL = WA_TEMP_0021-STEXT. " SACHIN

WHEN OTHERS. ENDCASE. AT END OF SLNO. IF WA_0021-FAVOR IS NOT INITIAL. APPEND WA_0021 TO ITAB_0021. CLEAR WA_0021. ENDIF. CLEAR WA_0021. ENDAT. ENDLOOP. ************************ INFO TYPE 0022 LOOP AT ITAB_TEMP_0022 INTO WA_TEMP_0022. CASE WA_TEMP_0022-TEXT. WHEN 'BEGDA'. WA_0022-BEGDA = WA_TEMP_0022-STEXT. WHEN 'ENDDA'. WA_0022-ENDDA = WA_TEMP_0022-STEXT. WHEN 'SUBTY'. WA_0022-SUBTY = WA_TEMP_0022-STEXT. WHEN 'ZZSPECIALISATION' . WA_0022-ZZSPECIALISATION = WA_TEMP_0022-STEXT. WHEN 'INSTI'. WA_0022-INSTI = WA_TEMP_0022-STEXT. WHEN 'SLAND'. WA_0022-SLAND = WA_TEMP_0022-STEXT. WHEN 'ANZEH'. WA_0022-ANZEH = WA_TEMP_0022-STEXT. WHEN 'EMARK'. WA_0022-EMARK = WA_TEMP_0022-STEXT. WHEN 'ZZGRADEUNITS'. WA_0022-ZZGRADEUNITS = WA_TEMP_0022-STEXT. WHEN OTHERS. ENDCASE. AT END OF SLNO. APPEND WA_0022 TO ITAB_0022. CLEAR WA_0022. ENDAT. ENDLOOP. ************************

* * * * * *

PERFORM PERFORM PERFORM PERFORM PERFORM PERFORM

POPULATE_0002. POPULATE_9001. POPULATE_0185. POPULATE_0006. POPULATE_0021. POPULATE_0022.

MESSAGE I000(SU) WITH 'Employee Data Uploaded'. " v_subrc. ENDFORM. " EXTRACT_DATA *&----------------------------------------------------------------* *& Form GET_PDF_DATA *&----------------------------------------------------------------* FORM GET_PDF_DATA . CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING INPUT_LENGTH = LV_FILELENGTH * FIRST_LINE = 0 * LAST_LINE = 0 IMPORTING BUFFER = W_PDF_DATA TABLES BINARY_TAB = LT_RAWTAB * EXCEPTIONS * FAILED = 1 * OTHERS = 2 . IF SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. ENDFORM. " GET_PDF_DATA *&---------------------------------------------------------------------* *& Form POPULATE_0002 *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM POPULATE_0002. BREAK-POINT. READ TABLE ITAB_STR1 INTO WA_STR1 INDEX 1. wa_final-pernr = '00001148'. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-PERNR'. WA_FINAL-PERNR. '01'.

WA_STR1-DOB = '19800101'. WA_FINAL-GBDAT = WA_STR1-DOB. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-BEGDA'. WA_FINAL-GBDAT. '01'.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'0002'. 'P0002-ENDDA'. '99991231'. "IT_PERNR-ENDDA. '01'.

WA_FINAL-ANRED = WA_STR1-MR. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-ANRED'. WA_FINAL-ANRED. " '01'.

WA_FINAL-VORNA = WA_STR1-FNAME. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-VORNA'. WA_FINAL-VORNA. '01' .

WA_FINAL-NACHN = WA_STR1-LNAME. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-NACHN'. WA_FINAL-NACHN. '01' .

WA_FINAL-MIDNM = WA_STR1-MNAME. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-MIDNM'. WA_FINAL-MIDNM. '01'.

WA_FINAL-GBDAT = WA_STR1-DOB. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-GBDAT'. WA_FINAL-GBDAT. '01'.

WA_FINAL-GBORT = WA_STR1-BPLACE. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-GBORT'. WA_FINAL-GBORT. '01' .

WA_FINAL-GESCH = WA_STR1-GENDER. IT_PROPOSED_VALUES-INFTY = '0002'. IT_PROPOSED_VALUES-FNAME = 'P0002-GESCH'. IT_PROPOSED_VALUES-FVAL = WA_FINAL-GESCH.

IT_PROPOSED_VALUES-SEQNR = '01'. APPEND IT_PROPOSED_VALUES. WA_FINAL-NATIO = WA_STR1-NATIONALITY. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-NATIO'. WA_FINAL-NATIO. '01' .

WA_FINAL-GBLND = WA_STR1-COUNTRY. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-GBLND'. WA_FINAL-GBLND. '01'.

WA_FINAL-GBDEP = WA_STR1-ST_OF_BIR. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-GBDEP'. WA_FINAL-GBDEP. '01'.

WA_FINAL-FAMST = WA_STR1-M_STATUS. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-FAMST'. WA_FINAL-FAMST. '01'.

WA_FINAL-KONFE = WA_STR1-RELIGION. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-KONFE'. WA_FINAL-KONFE. '01'.

WA_FINAL-ZZLANU = WA_STR1-MOTHER_LANG. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-ZZLANU'. WA_FINAL-ZZLANU. '01'.

WA_FINAL-ZZCAT = WA_STR1-CATEGORY. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-ZZCAT'. WA_FINAL-ZZCAT. '01'.

WA_FINAL-FAMDT = WA_STR1-M_DATE.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'0002'. 'P0002-FAMDT'. WA_FINAL-FAMDT. '01'.

WA_FINAL-ANZKD = WA_STR1-CHILDREN. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-ANZKD'. WA_FINAL-ANZKD. '01'.

WA_FINAL-ZZCASTE = WA_STR1-CASTE. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-ZZCASTE'. WA_FINAL-ZZCASTE. '01'.

WA_FINAL-ZZFLY = WA_STR1-FLY_PLANNING. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. * * * * * * * '0002'. 'P0002-ZZFLY'. WA_FINAL-ZZFLY. '01'.

WA_FINAL-NATI2 = WA_STR1-OTHER_NATION. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0002'. 'P0002-NATI2'. WA_FINAL-NATI2. '01'.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' EXPORTING PERNR = L_PERNR ACTIO = 'INS' TCLAS = 'A' BEGDA = SY-DATUM ENDDA = '99991231' DIALOG_MODE = '0' NO_EXISTENCE_CHECK = 'X' IMPORTING RETURN = WA_BAPIRET RETURN1 = WA_BAPIRET1 TABLES PROPOSED_VALUES = IT_PROPOSED_VALUES MODIFIED_KEYS = IT_MODIFIED_KEYS.

COMMIT WORK. WAIT UP TO 4 SECONDS. ENDFORM. "POPULATE_0002

*&---------------------------------------------------------------------* *& Form POPULATE_9001 *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM POPULATE_9001. WA_FINAL_9001-BEGDA = HIREDATE. WA_FINAL_9001-ENDDA = '99991231'. WA_FINAL_9001-PERNR = L_PERNR. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '9001'. 'P9001-PERNR'. WA_FINAL_9001-PERNR. '01'. '9001'. 'P9001-BEGDA'. WA_FINAL_9001-BEGDA. '01'.

'9001'. 'P9001-ENDDA'. WA_FINAL_9001-ENDDA. '01'. '9001'. 'P9001-ZSSIZE'. WA_FINAL_9001-ZSSIZE. '01'.

'9001'. 'P9001-ZWSIZE'. WA_FINAL_9001-ZWSIZE. '01'. '9001'. 'P9001-ZSHOE'. WA_FINAL_9001-ZSHOE. '01'.

IT_PROPOSED_VALUES-INFTY = '9001'. IT_PROPOSED_VALUES-FNAME = 'P9001-ZLAN1'. IT_PROPOSED_VALUES-FVAL = WA_FINAL_9001-ZLAN1.

IT_PROPOSED_VALUES-SEQNR = '01'. APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '9001'. 'P9001-ZREAD1'. WA_FINAL_9001-ZREAD1. '01'. '9001'. 'P9001-ZWRITE1'. WA_FINAL_9001-ZWRITE1. '01'.

'9001'. 'P9001-ZSPEAK1'. WA_FINAL_9001-ZSPEAK1. '01'.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'9001'. 'P9001-ZLAN2'. WA_FINAL_9001-ZLAN2. '01'. '9001'. 'P9001-ZREAD2'. WA_FINAL_9001-ZREAD2. '01'. '9001'. 'P9001-ZWRITE2'. WA_FINAL_9001-ZWRITE2. '01'. '9001'. 'P9001-ZSPEAK2'. WA_FINAL_9001-ZSPEAK2. '01'. '9001'. 'P9001-ZLAN3'. WA_FINAL_9001-ZLAN3. '01'. '9001'. 'P9001-ZREAD3'. WA_FINAL_9001-ZREAD3. '01'.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'9001'. 'P9001-ZWRITE3'. WA_FINAL_9001-ZWRITE3. '01'. '9001'. 'P9001-ZSPEAK3'. WA_FINAL_9001-ZSPEAK3. '01'.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' EXPORTING PERNR = L_PERNR ACTIO = 'INS' TCLAS = 'A' BEGDA = SY-DATUM ENDDA = '99991231' DIALOG_MODE = '0' NO_EXISTENCE_CHECK = 'X' IMPORTING RETURN = WA_BAPIRET RETURN1 = WA_BAPIRET1 TABLES PROPOSED_VALUES = IT_PROPOSED_VALUES MODIFIED_KEYS = IT_MODIFIED_KEYS. ENDFORM. "POPULATE_9001

*&---------------------------------------------------------------------* *& Form POPULATE_0185 *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM POPULATE_0185. DATA: N TYPE STRING, SQ_NO TYPE STRING. CLEAR: N,SQ_NO. N = 1. L_PERNR = '00001148'. CALL FUNCTION 'RP_GET_HIRE_DATE' EXPORTING PERSNR = L_PERNR CHECK_INFOTYPES = '0000' DATUMSART = '01' STATUS2 = '3' * P0016_OPTIONEN = ' ' IMPORTING HIREDATE = HIREDATE . BREAK-POINT. LOOP AT ITAB_0185 INTO WA_0185.

BREAK-POINT. CONCATENATE '000' N INTO SQ_NO. * CLEAR : IT_PROPOSED_VALUES. * CLEAR : IT_PROPOSED_VALUES. L_PERNR = '00001148'. WA_FINAL_0185-BEGDA = HIREDATE. WA_FINAL_0185-ENDDA = '99991231'. WA_FINAL_0185-PERNR = L_PERNR. WA_0185_NEW-BEGDA = HIREDATE. WA_0185_NEW-ENDDA = '99991231'. WA_0185_NEW-ICTYP = WA_0185-ICTYP. WA_0185_NEW-AUTH1 WA_0185_NEW-FPDAT WA_0185_NEW-EXPID WA_0185_NEW-ICNUM WA_0185_NEW-ISSPL WA_0185_NEW-ISCOT WA_0185_NEW-SUBTY = WA_0185-auth1. = WA_0185-FPDAT. = WA_0185-EXPID. = WA_0185-ICNUM. = WA_0185-ISSPL. = WA_0185-ISCOT. = WA_0185-ICTYP. '0185'. 'P0185-PERNR'. WA_FINAL_0185-PERNR. SQ_NO. " '0185'. 'P0185-BEGDA'. WA_FINAL_0185-BEGDA. SQ_NO. '0185'. 'P0185-ENDDA'. WA_FINAL_0185-ENDDA. SQ_NO. '0185'. 'P0185-ICTYP'. WA_0185-ICTYP. SQ_NO. '0185'. 'P0185-AUTH1'. WA_0185-AUTH1. SQ_NO.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

"'01'.

"'01'.

"'01'.

"'01'.

"'01'.

'0185'. 'P0185-FPDAT'. WA_0185-FPDAT. SQ_NO.

"'01'.

IT_PROPOSED_VALUES-INFTY = '0185'.

IT_PROPOSED_VALUES-FNAME = 'P0185-EXPID'. IT_PROPOSED_VALUES-FVAL = WA_0185-EXPID. IT_PROPOSED_VALUES-SEQNR = SQ_NO. APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0185'. 'P0185-ICNUM'. WA_0185-ICNUM. SQ_NO. '0185'. 'P0185-ISSPL'. WA_0185-ISSPL. SQ_NO. '0185'. 'P0185-ISCOT'. WA_0185-ISCOT. SQ_NO.

"'01'.

"'01'.

"'01'.

"'01'.

****************************** CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE' EXPORTING NUMBER = l_pernr ."WA_FINAL-PERNR. CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING INFTY = '0185' NUMBER = l_pernr "WA_FINAL-PERNR SUBTYPE = WA_0185_NEW-SUBTY "WA_0185_NEW-ictyp " wa_0185-ictyp "'01' VALIDITYEND = WA_0185_NEW-ENDDA " WA_0185-ENDDA VALIDITYBEGIN = WA_0185_NEW-BEGDA " WA_0185-BEGDA RECORD = WA_0185_NEW "WA_0185 "WA_FINAL OPERATION = 'INS' TCLAS = 'A' IMPORTING RETURN = RETURN EXCEPTIONS OTHERS = 0 . CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE' EXPORTING NUMBER = L_PERNR ."WA_FINAL-PERNR.

******************************

* * * * * * * * * * * * * * * * * * * * *

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' EXPORTING PERNR = L_PERNR ACTIO = 'INS' TCLAS = 'A' BEGDA = SY-DATUM ENDDA = '99991231' DIALOG_MODE = '0' NO_EXISTENCE_CHECK = 'X' IMPORTING RETURN = WA_BAPIRET RETURN1 = WA_BAPIRET1 TABLES PROPOSED_VALUES = IT_PROPOSED_VALUES MODIFIED_KEYS = IT_MODIFIED_KEYS. N = N + 1 . COMMIT WORK AND WAIT .

CLEAR : IT_PROPOSED_VALUES,IT_MODIFIED_KEYS,WA_BAPIRET,WA_BAPIRET1. REFRESH : IT_PROPOSED_VALUES,IT_MODIFIED_KEYS. ENDLOOP. ENDFORM. "POPULATE_0185 *&---------------------------------------------------------------------* *& Form POPULATE_0006 *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM POPULATE_0006. DATA: N TYPE STRING, SQ_NO TYPE STRING. CLEAR: N,SQ_NO. N = 1. BREAK-POINT. LOOP AT ITAB_0006 INTO WA_0006. CONCATENATE '000' N INTO SQ_NO. CLEAR : IT_PROPOSED_VALUES. REFRESH : IT_PROPOSED_VALUES. WA_FINAL_0006-BEGDA = HIREDATE. WA_FINAL_0006-ENDDA = '99991231'. WA_FINAL_0006-PERNR = L_PERNR. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY IT_PROPOSED_VALUES-FNAME IT_PROPOSED_VALUES-FVAL IT_PROPOSED_VALUES-SEQNR = = = = '0006'. 'P0006-PERNR'. WA_FINAL_0006-PERNR. SQ_NO. '0006'. 'P0006-BEGDA'. WA_FINAL_0006-BEGDA. SQ_NO.

"'01'.

"'01'.

APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0006'. 'P0006-ENDDA'. WA_FINAL_0006-ENDDA. SQ_NO.

"'01'.

'0006'. 'P0006-ANSSA'. SQ_NO. " WA_0006-ANSSA. "WA_FINAL_0006-ANSSA. SQ_NO. "'01'.

'0006'. 'P0006-NAME2'. WA_0006-NAME2. SQ_NO. '0006'. 'P0006-STRAS'. WA_0006-STRAS. SQ_NO.

"'01'.

"'01'.

'0006'. 'P0006-HSNMR'. WA_0006-HSNMR. SQ_NO.

'0006'. 'P0006-LOCAT'. WA_0006-LOCAT. SQ_NO. '0006'. 'P0006-PSTLZ'. WA_0006-PSTLZ. SQ_NO . '0006'. 'P0006-ORT01'. WA_0006-ORT01. SQ_NO . '0006'. 'P0006-ORT02'. WA_0006-ORT02. SQ_NO .

"'01'.

"'01'.

"'01'.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'0006'. 'P0006-STATE'. WA_0006-STATE. SQ_NO .

"'01'.

'0006'. 'P0006-LAND1'. WA_0006-LAND1. SQ_NO .

"'01'.

'0006'. 'P0006-TELNR'. WA_0006-TELNR. SQ_NO . '0006'. 'P0006-ENTKM'. WA_0006-ENTKM. SQ_NO . '0006'. 'P0006-ZHR_ACC_TYP'. WA_0006-ZHR_ACC_TYP. SQ_NO .

"'01'.

"'01'.

"'01'.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' EXPORTING PERNR = L_PERNR ACTIO = 'INS' TCLAS = 'A' BEGDA = SY-DATUM ENDDA = '99991231' DIALOG_MODE = '0' NO_EXISTENCE_CHECK = 'X' IMPORTING RETURN = WA_BAPIRET RETURN1 = WA_BAPIRET1 TABLES PROPOSED_VALUES = IT_PROPOSED_VALUES MODIFIED_KEYS = IT_MODIFIED_KEYS. N = N + 1. CLEAR : IT_PROPOSED_VALUES. REFRESH : IT_PROPOSED_VALUES. ENDLOOP. ENDFORM. "POPULATE_0006

*&---------------------------------------------------------------------*

*& Form POPULATE_0021 *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* FORM POPULATE_0021. DATA: N TYPE STRING, SQ_NO TYPE STRING. CLEAR: N,SQ_NO. N = 1. BREAK-POINT. SORT ITAB_0021 BY FAMSA ASCENDING. LOOP AT ITAB_0021 INTO WA_0021. CONCATENATE '000' N INTO SQ_NO. CLEAR : IT_PROPOSED_VALUES. REFRESH: IT_PROPOSED_VALUES. WA_FINAL_0021-BEGDA = HIREDATE. WA_FINAL_0021-ENDDA = '99991231'. WA_FINAL_0021-PERNR = L_PERNR. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0021'. 'P0021-PERNR'. WA_FINAL_0021-PERNR. SQ_NO. '0021'. 'P0021-BEGDA'. WA_FINAL_0021-BEGDA. SQ_NO.

"'01'.

"'01'.

'0021'. 'P0021-ENDDA'. WA_FINAL_0021-ENDDA. SQ_NO. '0021'. 'P0021-ANRED'. WA_0021-ANRED. SQ_NO.

"'01'.

"'01'.

'0021'. 'P0021-FAMSA'. WA_0021-FAMSA. SQ_NO. '0021'. 'P0021-FGBNA'. WA_0021-FGBNA. SQ_NO.

"'01'.

"'01'.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'0021'. 'P0021-FANAM'. WA_0021-FANAM. SQ_NO.

"'01'.

IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES.

'0021'. 'P0021-FAVOR'. WA_0021-FAVOR. SQ_NO. '0021'. 'P0021-FGBDT'. WA_0021-FGBDT. SQ_NO. '0021'. 'P0021-GESC2'. WA_0021-GESC2. SQ_NO. '0021'. 'P0021-GESC1'. WA_0021-GESC1. SQ_NO. '0021'. 'P0021-FGBOT'. WA_0021-FGBOT. SQ_NO. '0021'. 'P0021-FANAT'. WA_0021-FANAT. SQ_NO. '0021'. 'P0021-FGBLD'. WA_0021-FGBLD. SQ_NO. '0021'. 'P0021-ZZOCCU'. WA_0021-ZZOCCU. SQ_NO.

"'01'.

"'01'.

"'01'.

"'01'.

"'01'.

"'01'.

"'01'.

"'01'.

IT_PROPOSED_VALUES-INFTY = '0021'. IT_PROPOSED_VALUES-FNAME = 'P0021-TITEL'. IT_PROPOSED_VALUES-FVAL = WA_0021-TITEL.

IT_PROPOSED_VALUES-SEQNR = SQ_NO. APPEND IT_PROPOSED_VALUES. ********* IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0021'. 'P0021-OBJPS'. WA_0021-OBJPS. SQ_NO. '0021'. 'P0021-KDZUL'. WA_0021-KDZUL. SQ_NO. '0021'. 'P0021-KDGBR'. WA_0021-KDGBR. SQ_NO.

"'01'.

"'01'.

"'01'.

"'01'.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' EXPORTING PERNR = L_PERNR ACTIO = 'INS' TCLAS = 'A' BEGDA = SY-DATUM ENDDA = '99991231' DIALOG_MODE = '0' NO_EXISTENCE_CHECK = 'X' IMPORTING RETURN = WA_BAPIRET RETURN1 = WA_BAPIRET1 TABLES PROPOSED_VALUES = IT_PROPOSED_VALUES MODIFIED_KEYS = IT_MODIFIED_KEYS. CLEAR : IT_PROPOSED_VALUES. REFRESH: IT_PROPOSED_VALUES. N = N + 1 . ENDLOOP. ENDFORM. "POPULATE_0006

FORM POPULATE_0022. DATA: N TYPE STRING, SQ_NO TYPE STRING. LOOP AT ITAB_0022 INTO WA_0022. CONCATENATE '000' N INTO SQ_NO.

CLEAR : IT_PROPOSED_VALUES. REFRESH: IT_PROPOSED_VALUES. WA_FINAL_0022-BEGDA = HIREDATE. WA_FINAL_0022-ENDDA = '99991231'. WA_FINAL_0022-PERNR = L_PERNR. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0022'. 'P0022-PERNR'. WA_FINAL_0022-PERNR."'00000421'. " SQ_NO. "'01'. '0022'. 'P0022-BEGDA'. WA_FINAL_0022-BEGDA."'19980101'." SQ_NO. "'01'.

'0022'. 'P0022-ENDDA'. WA_FINAL_0022-ENDDA. "'20000101'." SQ_NO. "'01'.

'0022'. 'P0022-SUBTY'. WA_0022-SUBTY."'01'." SQ_NO. '0022'. 'P0022-SLART'. '01'."WA_0022-SLART. SQ_NO.

"'01'.

"'01'.

'0022'. 'P0022-SLABS'. '01'."WA_0022-SLABS. SQ_NO. '0022'. 'P0022-SLTP1'. '00134'."WA_0022-SLTP1. SQ_NO. '0022'. 'P0022-INSTI'. WA_0022-INSTI."'xyz'." SQ_NO.

"'01'.

"'01'.

"'01'.

IT_PROPOSED_VALUES-INFTY = '0022'. IT_PROPOSED_VALUES-FNAME = 'P0022-SLAND'.

IT_PROPOSED_VALUES-FVAL = WA_0022-SLAND."'IN'." IT_PROPOSED_VALUES-SEQNR = SQ_NO. APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. IT_PROPOSED_VALUES-INFTY = IT_PROPOSED_VALUES-FNAME = IT_PROPOSED_VALUES-FVAL = IT_PROPOSED_VALUES-SEQNR = APPEND IT_PROPOSED_VALUES. '0022'. 'P0022-ANZEH'. WA_0022-ANZEH."'IN'." SQ_NO.

"'01'.

"'01'.

'0022'. 'P0022-EMARK'. WA_0022-EMARK."'9.2'." SQ_NO.

"'01'.

'0022'. 'P0022-ZZGRADEUNITS'. WA_0022-ZZGRADEUNITS."'01'." SQ_NO. "'01'.

'0022'. 'P0022-ZZEDU_STDT'. '19980101'."WA_FINAL_0022-BEGDA. SQ_NO. "'01'. '0022'. 'P0022-ZZEDU_ENDT'. '19980101'."WA_FINAL_0022-BEGDA. SQ_NO. "'01'.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA' EXPORTING PERNR = L_PERNR ACTIO = 'INS' TCLAS = 'A' BEGDA = SY-DATUM ENDDA = '99991231' DIALOG_MODE = '2' NO_EXISTENCE_CHECK = 'X' IMPORTING RETURN = WA_BAPIRET

RETURN1 TABLES PROPOSED_VALUES MODIFIED_KEYS

= WA_BAPIRET1 = IT_PROPOSED_VALUES = IT_MODIFIED_KEYS.

CLEAR : IT_PROPOSED_VALUES. REFRESH: IT_PROPOSED_VALUES. N = N + 1 . ENDLOOP.

ENDFORM. FORM GET_DATA_TO_UPLOAD. SELECT * FROM ZHR_EMP_1 INTO TABLE ITAB_STR1 WHERE FORM_NO = L_FMNO. ENDFORM. FORM CREATE_DATA_FOR_0185. READ TABLE ITAB_STR1 INTO WA_STR1 INDEX 1.

WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '01'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

" imp

WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = WA_STR1-PASS_ID."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. * * * * * * WHEN 'PASS_DATE_ISSUE'. BREAK-POINT. CLEAR:PASS_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_ISSUE. WA_FINAL_0185-FPDAT = PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE.

WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = WA_STR1-PASS_DATE_ISSUE. "WA_PASS_DATE_ISSUE."LFS_PER_IN FO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. * WHEN 'PASS_VALID'.

* * * *

CLEAR:PASS_DATE_VALID. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_VALID. WA_FINAL_0185-EXPID = PASS_DATE_VALID."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'EXPID'. WA_TEMP-TEXT = WA_STR1-PASS_VALID. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

* *

WHEN 'PASS_AUTHORITY'. WA_FINAL_0185-AUTH1 = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'AUTH1'. WA_TEMP-TEXT = WA_STR1-PASS_AUTHORITY. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_COUNTRY'. WA_FINAL_0185-ISCOT = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ISCOT'. WA_TEMP-TEXT = WA_STR1-PASS_COUNTRY. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

* *

* * *

WHEN 'PASS_PLACE_ISSUE'. BREAK-POINT. WA_FINAL_0185-ISSPL = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ISSPL'. WA_TEMP-TEXT = WA_STR1-PASS_PLACE_ISSUE. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

* ** * *

WHEN 'PAN_ID'. break-point. WA_FINAL_0185-PAN_ICTYP = '02'. WA_FINAL_0185-PAN_NO = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '02'. WA_TEMP-ICTYP = '02'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '02'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '02'. WA_TEMP-ICTYP = '02'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = WA_STR1-PAN_ID. " LFS_PER_INFO-CVALUE.

APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * WHEN 'DRIVING_ID'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_ID = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '03'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_AUTHORITY'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_AUTH = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'AUTH1'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_DATE_ISSUE'. CLEAR:DRI_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DRI_DATE_ISSUE.

WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_DATE_ISSUE = DRI_DATE_ISSUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = DRI_DATE_ISSUE. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_PLACE_ISSUE'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_PLACE_ISSUE = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ISSPL'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_VALID'. CLEAR:DRI_DATE_VALID. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DRI_DATE_VALID. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_DATE_EXP = DRI_DATE_VALID."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'EXPID'. WA_TEMP-TEXT = DRI_DATE_VALID."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_COUNTRY'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_COUNTRY = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ISCOT'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

**************** MOVE TO MY TABLE LOOP AT ITAB_TEMP INTO WA_TEMP. CASE WA_TEMP-STEXT. WHEN 'ICTYP'. WA_0185-ICTYP = WA_TEMP-ICTYP. WHEN 'ICNUM'. WA_0185-ICNUM = WA_TEMP-TEXT. WHEN 'AUTH1'. WA_0185-AUTH1 = WA_TEMP-TEXT. WHEN 'FPDAT'. WA_0185-FPDAT = WA_TEMP-TEXT. WHEN 'EXPID'. WA_0185-EXPID = WA_TEMP-TEXT. WHEN 'ISSPL'. WA_0185-ISSPL = WA_TEMP-TEXT. WHEN 'ISCOT'. WA_0185-ISCOT = WA_TEMP-TEXT. WHEN OTHERS. ENDCASE. AT END OF SLNO. IF WA_0185-ICNUM IS NOT INITIAL. APPEND WA_0185 TO ITAB_0185. CLEAR WA_0185. ENDIF. CLEAR WA_0185.

" added by sachin

" added by sachin

ENDAT. ENDLOOP. **************

* * * * * * * * * * * * * * * * * ** ** ** * * * * * * * * * * *

WA_FINAL_0185-ICTYP = '01'. WA_FINAL_0185-ICNUM = WA_STR1-PASS_ID. "LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '01'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. " imp

WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = WA_STR1-PASS_ID."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. CLEAR:PASS_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_ISSUE. WA_FINAL_0185-FPDAT = WA_STR1-PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. CLEAR:PASS_DATE_VALID.

** ** * * * * * * * * * * * * * * ** * * * * * * * * * * * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * *

SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_VALID. WA_FINAL_0185-EXPID = WA_PASS_DAPASS_DATE_VALID."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'EXPID'. WA_TEMP-TEXT = PASS_DATE_VALID. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP.

WHEN 'PASS_ID'. BREAK-POINT. WA_FINAL_0185-ICTYP = '01'. WA_FINAL_0185-ICNUM = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '01'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_DATE_ISSUE'. BREAK-POINT. CLEAR:PASS_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_ISSUE. WA_FINAL_0185-FPDAT = PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = PASS_DATE_ISSUE."LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_VALID'. CLEAR:PASS_DATE_VALID. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO PASS_DATE_VALID. WA_FINAL_0185-EXPID = PASS_DATE_VALID."LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'EXPID'. WA_TEMP-TEXT = PASS_DATE_VALID. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. " imp

* * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * *

WHEN 'PASS_AUTHORITY'. WA_FINAL_0185-AUTH1 = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'AUTH1'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_COUNTRY'. WA_FINAL_0185-ISCOT = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ISCOT'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PASS_PLACE_ISSUE'. BREAK-POINT. WA_FINAL_0185-ISSPL = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '01'. WA_TEMP-ICTYP = '01'. WA_TEMP-STEXT = 'ISSPL'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'PAN_ID'. break-point. WA_FINAL_0185-PAN_ICTYP = '02'. WA_FINAL_0185-PAN_NO = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '02'. WA_TEMP-ICTYP = '02'. WA_TEMP-STEXT = 'ICTYP'. WA_TEMP-TEXT = '02'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '02'. WA_TEMP-ICTYP = '02'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_ID'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_ID = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ICTYP'.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

WA_TEMP-TEXT = '03'. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ICNUM'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_AUTHORITY'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_AUTH = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'AUTH1'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_DATE_ISSUE'. CLEAR:DRI_DATE_ISSUE. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DRI_DATE_ISSUE.

WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_DATE_ISSUE = DRI_DATE_ISSUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'FPDAT'. WA_TEMP-TEXT = DRI_DATE_ISSUE. "LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_PLACE_ISSUE'. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_PLACE_ISSUE = LFS_PER_INFO-CVALUE. WA_TEMP-SLNO = '03'. WA_TEMP-ICTYP = '03'. WA_TEMP-STEXT = 'ISSPL'. WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. APPEND WA_TEMP TO ITAB_TEMP. CLEAR WA_TEMP. WHEN 'DRIVING_VALID'. CLEAR:DRI_DATE_VALID. SPLIT LFS_PER_INFO-CVALUE AT '-' INTO YY MM DD. CONCATENATE YY MM DD INTO DRI_DATE_VALID. WA_FINAL_0185-DRI_ICTYP = '03'. WA_FINAL_0185-DRI_DATE_EXP = DRI_DATE_VALID."LFS_PER_INFO-CVALUE.

* * WA_TEMP-SLNO = '03'. * WA_TEMP-ICTYP = '03'. * WA_TEMP-STEXT = 'EXPID'. * WA_TEMP-TEXT = DRI_DATE_VALID."LFS_PER_INFO-CVALUE. * APPEND WA_TEMP TO ITAB_TEMP. * CLEAR WA_TEMP. * * WHEN 'DRIVING_COUNTRY'. * WA_FINAL_0185-DRI_ICTYP = '03'. * WA_FINAL_0185-DRI_COUNTRY = LFS_PER_INFO-CVALUE. * * WA_TEMP-SLNO = '03'. * WA_TEMP-ICTYP = '03'. * WA_TEMP-STEXT = 'ISCOT'. * WA_TEMP-TEXT = LFS_PER_INFO-CVALUE. * APPEND WA_TEMP TO ITAB_TEMP. * CLEAR WA_TEMP. ENDFORM.

*FORM INSERT_BY_INFOTY. * * LOOP AT ITAB_0185 INTO WA_0185. . * * wa_0185_new-begda = * * * * * CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE' * EXPORTING * NUMBER = l_pernr ."WA_FINAL-PERNR. * * * CALL FUNCTION 'HR_INFOTYPE_OPERATION' * EXPORTING * INFTY = '0185' * NUMBER = l_pernr "WA_FINAL-PERNR * SUBTYPE = wa_0185_new-ictype. "'01' * VALIDITYEND = WA_FINAL-ENDDA * VALIDITYBEGIN = WA_FINAL-BEGDA * RECORD = WA_0185 "WA_FINAL * OPERATION = 'INS' * TCLAS = 'A' * IMPORTING * RETURN = RETURN * EXCEPTIONS * OTHERS = 0 * . * CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE' * EXPORTING * NUMBER = WA_FINAL-PERNR. * * * ENDLOOP. * *ENDFORM.