EXEC LD0_COPY_BL_Q01;

DELETE FROM LD0P0Q01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128;

INSERT INTO LD0P0Q01
(KODTYP, KOD, KLARTEXT, AKTIV, EXTKOD, XNUM1, XTXT1, XNUM2, XTXT2, XNUM3, XTXT3, XNUM4, XTXT4, XNUM5, XTXT5, UPDDAT, UPDSIGN, XNUM6, XTXT6, XNUM7, XTXT7, XNUM8, XTXT8, XNUM9, XTXT9, XNUM10, XTXT10, SORTORDN, XNUM11, XTXT11, XNUM12, XTXT12, XNUM13, XTXT13, XNUM14, XTXT14, XNUM15, XTXT15, XNUM16, XTXT16, XNUM17, XTXT17, XNUM18, XTXT18, XNUM19, XTXT19, XNUM20, XTXT20, XNUM21, XTXT21, XNUM22, XTXT22, XNUM23, XTXT23, XNUM24, XTXT24, XNUM25, XTXT25, XNUM26, XTXT26, XNUM27, XTXT27, XNUM28, XTXT28, XNUM29, XTXT29, XNUM30, XTXT30, XNUM31, XNUM32, XNUM33, XNUM34, XNUM35, XNUM36, XNUM37, XNUM38, XNUM39, XNUM40, XNUM41, XNUM42, XNUM43, XNUM44, XNUM45, XNUM46, XNUM47, XNUM48, XNUM49, XNUM50) VALUES (
'TYPDOK',4000128,
'FRA V2 Adoption 4 Utredarens förslag till beslut U',1,' ',
0,'230;230;230',0,' ',0,' ',1,' ',0,' ',
'250505','SCRIPT',
0,'0',1,'0',0,'0',1,' ',10,' ',0,
0,' ',0,' ',0,' ',7017,' ',0,' ',0,' ',0,' ',0,' ',0,'FRA_V2_Adoption_4_Utredarens_forslag_till_beslut_U.sql',0,'14:23:02',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',7,' ',0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0);

Update LD0P0Q01 set XNUM7 = (select xnum7 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );

Update LD0P0Q01 set XNUM24 = (select XNUM24 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM25 = (select XNUM25 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM26 = (select XNUM26 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM27 = (select XNUM27 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM28 = (select xnum28 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM33 = (select XNUM33 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM41 = (select XNUM41 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM42 = (select XNUM42 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM45 = (select XNUM45 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM47 = (select XNUM47 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );
Update LD0P0Q01 set XNUM48 = (select XNUM48 from LD0TEMPQ01 where KODTYP = 'TYPDOK' and KOD = 4000128) where KODTYP = 'TYPDOK' and KOD = 4000128 AND EXISTS (SELECT 'X' FROM LD0TEMPQ01 WHERE KODTYP = 'TYPDOK' AND KOD = 4000128 );

delete from ld0p0v02
where dyndelsys = 2 and exists (select 'x' from ld0p0v05 v05
              where v05.fragenr = ld0p0v02.fragenr
                and v05.formnr = 4000128 and v05.dyndelsys = 2);


delete from ld0p0v05
where dyndelsys = 2 and exists (select 'x' from ld0p0v04 v04
              where v04.formnr = ld0p0v05.formnr
                and v04.typdok = 4000128 and v04.dyndelsys = 2);


delete from ld0p0v04
where typdok = 4000128 and dyndelsys = 2;


insert into ld0p0v04
(FORMNR, FORMNAME, PREFIX, ORIENTERING, OBJEKT, VISACOMBO, TYPDOK, DYNDELSYS, ANTALCOL, PARENT, NIVA, AVSNITT, FORMLOGO, VISAITRAD, SORTERING, AVSNITTSTYP, VERSION) values (
4000128,'FRA V2 Adoption 4 Utredarens förslag till beslut U',' ',1,7017,0,4000128,2,24,0,0,0,' ',0,0,0,0);

insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149671,1,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149672,2,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149673,3,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149674,4,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149675,5,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149676,6,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149677,7,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149678,8,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149679,9,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149680,10,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149681,11,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149682,12,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149683,13,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149684,14,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149685,15,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149686,16,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149687,17,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149688,18,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149689,19,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149690,20,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149691,21,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149692,22,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149693,23,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149694,24,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149695,25,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149696,26,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149697,27,0,0,2,0,'');
insert into ld0p0v05
(FORMNR, FRAGENR, SORTERING, VERSION, SIDNUMMER, DYNDELSYS, PAGEBREAK, ROWLOGIC) values (
4000128,101149698,28,0,0,2,0,'');

insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149671,1,0,0,42,35,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149671,2,30,0,42,30,0,0,'MyndighetFamiljerattStod.bmp','Arial',14,4,0,0,0,4,1,0,2,5,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149671,10,0,0,42,35,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149671,12,5,0,42,30,0,0,'ADOPTION 4','Arial',22,7,0,0,0,0,0,0,1,10,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149671,24,0,0,42,32,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149672,12,5,0,28,30,0,0,'Utredarens förslag till beslut','Arial',16,7,0,0,0,0,8,0,1,11,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149673,3,0,0,50,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149673,7,0,0,50,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149673,12,5,0,50,30,0,0,'Underlag för socialnämndens beslut vid ansökan om medgivande att ta emot ett utländskt barn för adoption enligt 24 kap. 1 § socialtjänstlagen','Arial',14,4,0,0,0,0,8,0,1,11,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149680,12,5,0,50,30,0,0,'Utredarens förslag till beslut bör enligt HSLF-FS 2022:25 inte tas med i utredningsrapporten utan skrivas i ett separat dokument.','Arial',14,4,0,0,0,0,0,0,1,11,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149685,2,0,0,15,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149685,22,0,0,15,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,1,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149686,2,5,0,15,30,0,0,'Sökande','Arial',12,7,0,0,0,0,0,0,1,3,0,' ',0,0,0,0,0,0,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149687,2,5,0,15,30,0,0,'Efternamn och samtliga förnamn','Arial',10,4,0,0,0,0,0,0,1,13,0,' ',0,0,0,0,0,1,1,1,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149687,15,5,0,15,30,0,0,'Personnummer','Arial',10,4,0,0,0,0,0,0,1,8,0,' ',0,0,0,0,0,0,1,1,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149688,2,3,0,21,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,13,0,' ',0,7000,32,1,0,1,1,0,1,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149688,15,7,0,21,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,8,0,' ',0,7000,1,1,0,0,1,0,1,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149689,2,5,0,15,30,0,0,'Efternamn och samtliga förnamn','Arial',10,4,0,0,0,0,0,0,1,13,0,' ',0,0,0,0,0,1,1,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149689,15,5,0,15,30,0,0,'Personnummer','Arial',10,4,0,0,0,0,0,0,1,8,0,' ',0,0,0,0,0,0,1,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149690,2,3,0,21,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,13,0,' ',0,7017,528,1,0,1,1,0,1,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149690,15,7,0,21,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,8,0,' ',0,7017,520,1,0,0,1,0,1,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149691,2,5,0,45,30,0,0,'Grundat på den bifogade utredningsrapporten föreslår utredaren att socialnämnden:','Arial',12,7,1,0,0,0,2,0,1,21,0,' ',0,0,0,0,0,1,1,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149692,2,6,0,35,30,0,0,'beviljar ansökan om medgivande att ta emot','Arial',12,4,0,0,0,0,2,0,1,9,0,' ',0,0,0,0,0,1,0,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149692,11,3,0,35,60,0,0,' ','Arial',14,4,0,0,0,4,2,0,1,12,0,' ',0,0,0,0,0,0,1,0,0,0,1,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149693,2,6,0,35,30,0,0,'avslår ansökan om medgivande att ta emot utländskt barn för adoption','Arial',12,4,0,0,0,0,2,0,1,21,0,' ',0,0,0,0,0,1,1,0,0,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');
insert into ld0p0v02
(FRAGENR, SVTYPLNR, SVTYP, SVKOMBOTYP, RADHOJD, KOLBREDD, TOMRAD, TOMKOL, RUBRIK, TYPSNITT, TEXTSTORLEK, VIKT,  KURSIV, UNDERSTRYK, OVERSTRYK, HORPOS, VERPOS, ORIENTERING, TACKCELLRAD, TACKCELLCOL, RAMSTIL, TOOLTIP, LONGTEXT, IDM_ID, IDME_ID, STATICDATA, TEXTLIMIT, VRAM, HRAM, TRAM, BRAM, ALLOWENTER, AUTOSIZE, DYNDELSYS, MAXRADER, STATM, OBLIG, KOPPL_FRAGENR, KOPPL_SVTYPLNR, CELLLOGIK, CELLID, HIDEPRINT, E_LETTER, RTFID, VERSION, SAMMANST_RUBRIK, SAMMANST_CELLID, EXTRATEXT, ALTDISPMODE, MAPID, COLOR, BGCOLOR) values (
101149694,2,0,0,15,30,0,0,' ','Arial',14,4,0,0,0,0,0,0,1,21,0,' ',0,0,0,0,0,1,1,0,1,0,0,2,0,' ',0,0,0,' ',' ',0,0,' ',0, ' ', ' ', ' ', '0',' ', '', '');



delete from LD0P0ParameterQuery
where formnr = 4000128 and dyndelsys = 2;

delete from LD0V0ParameterOption
where formnr = 4000128 and dyndelsys = 2;

update ld0p0lnr
set lnr = (select max(fragenr)+1 from ld0p0v05
          where dyndelsys = 2)
where lnrtyp = 66
 and lnr < (select max(fragenr)+1 from ld0p0v05
             where dyndelsys = 2);

update ld0p0lnr
set lnr = (select max(formnr)+1 from ld0p0v04
          where dyndelsys = 2)
where lnrtyp = 69
 and lnr < (select max(formnr)+1 from ld0p0v04
             where dyndelsys = 2);

