ner_copy

9
Centre of Excellence (CoE) Code Repository Document NER Copy: Contact Person Kishore Sakthi Kumar [email protected] As developer its trouble to copy NERs(as you don’t have one) and I know many might have a solution of their choice to overcome this problem but here is my 2 cents… Take a case of 1000 lines of code and you just need to copy them without changing data structures then follow the steps below. You do it as quick within few mins. Copy From Object: N550001 Description: Test NER Function Name: TestFunctionNER Function Description: Test Function NER Copy To Object : N550001A Description: Test NER Copy Function Name: TestFunctionNERCopy Function Description: Test Function NER Copy Note: We are about change XML files for this process so be very cautious. 1) Take .par file of the NER which you would like to copy using Save option in OMW. I am taking an example of N550001.c which has D550001 as Data structures. Tuesday, July 19, 2022 L&T Infotech Proprietary Page 1 of 9

Upload: deepesh-divakaran

Post on 09-Dec-2015

2 views

Category:

Documents


0 download

DESCRIPTION

Copy NER

TRANSCRIPT

Page 1: NER_Copy

Centre of Excellence (CoE)Code Repository Document

NER Copy:

Contact PersonKishore Sakthi [email protected]

As developer its trouble to copy NERs(as you don’t have one) and I know many might have a solution of their choice to overcome this problem but here is my 2 cents… Take a case of 1000 lines of code and you just need to copy them without changing data structures then follow the steps below. You do it as quick within few mins.

Copy From

Object: N550001

Description: Test NER

Function Name: TestFunctionNER

Function Description: Test Function NER

Copy To

Object : N550001A

Description: Test NER Copy

Function Name: TestFunctionNERCopy

Function Description: Test Function NER Copy

Note: We are about change XML files for this process so be very cautious.

1) Take .par file of the NER which you would like to copy using Save option in OMW. I am taking an example of N550001.c which has D550001 as Data structures.

2) You can locate file BSFN_N550001_60_99.par in your machine from the saved location. Rename BSFN_N550001_60_99.par to BSFN_N550001_60_99.zip

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 1 of 8

Page 2: NER_Copy

Centre of Excellence (CoE)Code Repository Document

3) Here are the list of files you can see include, source, F9860.xml, F9861.xml, F9862.xml, F9863.xml, manifest.xml, specs.zip

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 2 of 8

Page 3: NER_Copy

Centre of Excellence (CoE)Code Repository Document

4) Now open F9860.xml in notepad search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A. Also change <col name="SIMD">Test NER</col> to <col name="SIMD">Test NER Copy</col> (name of new copied NER) and save it.

5) Now open F9861.xml in notepad search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A and save it.

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 3 of 8

Page 4: NER_Copy

Centre of Excellence (CoE)Code Repository Document

6) Now open F9862.xml in notepad search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A. Now change the function name and description for the NER <col name="SIFCTNM">TestFunctionNER</col> to <col name="SIFCTNM">TestFunctionNERCopy</col> and <col name="SIMD">Test Function NER </col> to <col name="SIMD">Test Function NER Copy</col>. Also you will have event rule key like this <col name="SIEVSK">1421b8ac-068b-43e7-ab3e-a9d1225842ed</col> change a character of this key, I always choose 3 character from last which is 2 for me in this case and modifying the value to 5 <col name="SIEVSK">1421b8ac-068b-43e7-ab3e-a9d1225845ed</col> and save it

7) Now open F9863.xml (if you see any xml tags then) in notepad search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A and save it.

8) Now open manifest.xml in notepad and it looks like this below <manifest sar="0" name="BSFN_N550001" type="60" release="E900" hosttype="99" aggregate="" description="Test NER" documentation="" typedescription="" hosttypedescription="">

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 4 of 8

Page 5: NER_Copy

Centre of Excellence (CoE)Code Repository Document

- <filelist> <file id="include\N550001.h" filename="include\N550001.h" /> <file id="source\N550001.c" filename="source\N550001.c" /> <file id="specs.zip" filename="specs.zip" /> <file id="F9860.xml" filename="F9860.xml" /> <file id="F9861.xml" filename="F9861.xml" /> <file id="F9862.xml" filename="F9862.xml" /> <file id="F9863.xml" filename="F9863.xml" /> </filelist>- <omw> <omwObject id="N550001A" file="BSFN_N550001A_60_99.par" type="BSFN" description="Test NER Copy" /> </omw> </manifest>

Change the ones in highlighted above with new values as below,

<manifest sar="0" name="BSFN_N550001A" type="60" release="E900" hosttype="99" aggregate="" description="Test NER Copy" documentation="" typedescription="" hosttypedescription="">- <filelist> <file id="include\N550001A.h" filename="include\N550001A.h" /> <file id="source\N550001A.c" filename="source\N550001A.c" /> <file id="specs.zip" filename="specs.zip" /> <file id="F9860.xml" filename="F9860.xml" /> <file id="F9861.xml" filename="F9861.xml" /> <file id="F9862.xml" filename="F9862.xml" /> <file id="F9863.xml" filename="F9863.xml" /> </filelist>- <omw> <omwObject id="N550001A" file="BSFN_N550001A_60_99.par" type="BSFN" description="Test NER Copy" /> </omw> </manifest>

9) Open include folder now and open the .h file, search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A. Change the function name also JDEBFRTN(ID) JDEBFWINAPI TestFunctionNER( LPBHVRCOM lpBhvrCom , LPVOID lpVoid , LPDSD550001 lpDS ); to JDEBFRTN(ID) JDEBFWINAPI TestFunctionNERCopy( LPBHVRCOM lpBhvrCom , LPVOID lpVoid , LPDSD550001 lpDS );

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 5 of 8

Page 6: NER_Copy

Centre of Excellence (CoE)Code Repository Document

10) Open source folder now and open the .c file, search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A. Change the function name also JDEBFRTN(ID) JDEBFWINAPI TestFunctionNER( LPBHVRCOM lpBhvrCom , LPVOID lpVoid , LPDSD550001 lpDS ); to JDEBFRTN(ID) JDEBFWINAPI TestFunctionNERCopy( LPBHVRCOM lpBhvrCom , LPVOID lpVoid , LPDSD550001 lpDS );

11) Now almost half job is done, copy all these changed files to a folder (include, source, F9860.xml, F9861.xml, F9862.xml, F9863.xml, manifest.xml).

12) Unzip the specs.zip and you can see two folders BUSFUNC and GBRSPEC

13) Open BUSFUNC folder, you can see TestFunctionNER.xml, rename the file as TestFunctionNERCopy.xml. Open the TestFunctionNERCopy.xml search for N550001 and change the name to your new NER name (I will name my copy as N550001A) N550001A. Search for szFcnName=" TestFunctionNER" and change it to szFcnName=" TestFunctionNERCopy" and save it.

14) Open GBRSPEC folder, you can see 1421b8ac-068b-43e7-ab3e-a9d1225842ed.xml, rename the file as 1421b8ac-068b-43e7-ab3e-a9d1225845ed.xml (as per step 6). Open the 1421b8ac-068b-43e7-ab3e-a9d1225845ed.xml search for szEventSpecKey="1421b8ac-068b-43e7-ab3e-a9d1225842ed" and change to szEventSpecKey="1421b8ac-068b-43e7-ab3e-a9d1225845ed" and save it.

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 6 of 8

Page 7: NER_Copy

Centre of Excellence (CoE)Code Repository Document

15) Below steps are very important and follow it as mentioned, else you might not get results.

16) Select the two folders BUSFUNC and GBRSPEC and right click to create .zip file. Rename the .zip as specs.zip. Copy the specs.zip to location where you have rest of files as per step 11.

17) Now select all the changed files include, source, F9860.xml, F9861.xml, F9862.xml, F9863.xml, manifest.xml, specs.zip and right click to create .zip file. Rename the .zip as BSFN_N550001A_60_99.par

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 7 of 8

Page 8: NER_Copy

Centre of Excellence (CoE)Code Repository Document

18) Now in OMW create an object NER with N550001A and description as Test NER Copy. Using OMW Restore option, take the BSFN_N550001A_60_99.par from your local workstation.

19) Now you can open NER in the Business Function Design Aid to see the copied NER now.

Tuesday, April 18, 2023 L&T Infotech Proprietary

Page 8 of 8