Dms

March 26, 2018 | Author: bumaselvan | Category: Computer Data, Information Technology Management, Technology, Computing, Software


Comments



Description

DMS - Linking Material Document in DIR and Displaying the attachments in MIGO.Posted by Firoz Ashraf in Firoz Ashraf's Blog on Oct 13, 2012 1:06:03 PM inShare Requirement: Users want that using transaction CV01N, they should be able to link the material document at header level and the same should be displayed in transaction MIGO. Solution: A. B. There are two parts involved in the whole process: Doing settings on DMS Side. Enhancing the MIGO Screen to display the list of attachments. Let's go in detail on each part of the solution: Part A - Doing settings on DMS Side. (You may also refer to SAP Note 1417841 and Online SAP Help Documentation on this part) Step No. 1: Since we want the documents to be attached at header level. Hence find if your system has the function module OBJECT_CHECK_MKPF If you do not have this FM then create it using the template of OBJECT_CHECK_MSEG or OBJECT_CHECK_EQUI and do the neccesary changes in the code so that data is read from MKPF instead of MSEG or Equipment Master table. This FM is used to retrieve the header text to be displayed in the object link screen in CV01N. Step No. 2: Now using SE80, go to Package CV. Under Screens of function Group CV130, create a subscreen (Copy screen 1204 to 9002 for example). Replace EQUI-EQUNR with MKPF-MBLNR and MKPF-MJHAR. Copy the same screen under CV140. Kindly note that you have to take the access keys from SAP to create the subscreens under CV130 and CV140. MKPF. Now you need to do the configuration in SPRO. Table .Transaction Code . 3: After you have created the screen 9002.MBLNR.9002 .MBN. 4: Go to SPRO --> Cross-Application Components --> Document Management --> Control Data --> Maintain Screen for Object Link Create a new entry. ABAP development for the first part on DMS side is done. Go to SPRO--> Cross-Application Components --> Document Management --> Control Data --> Maintain Key Fields Create a new entry. PID.MJAHR. PID . Field Name .MKPF.MIGO. SAP Object .Step No.Screen . Field name .MJA Step No. . Screen 9002 will automatically get picked. 5: Go to SPRO --> Cross-Application Components --> Document Management --> Control Data --> Define Document Types Copy document type PUR and name it ZMG Next. click on 'Define object links'. enter MKPF under Object. Enter the the document type ZMG that you created above. Create new entry here.Step No. Save your entries. This completes part A of the solution. To verify this go to CV01N and enter or select ZMG from the drop down and press enter. Now DIR can be created and attachments to material header document can be done in transaction CV01N. . This will open up a pop-up window to select the file that you want to attach.' icon at the same bottom screen (marked 2).Enter the description and document status in 'Document Data' tab and click on 'Open Original' icon at the bottom of the screen (marked 1 in the screen shot). . Next click on 'Check In Orig. Enter and valid document. press enter and the doucment header 'Description' will get populated. and year. If you don't maintain these fields in MCDOKOB then after entering the MBLNR and MJAHR values in the above sscreen when you press enter. . the values will disappear. Note that you have to append two fields (MBLNR and MJAHR) in standard structure MCDOKOB for CV01N to retain the data entered in fields MBLNR and MJAHR.Now click on tab 'Object Links' Here you can see your screen 9002 with two fields material Doc. Enhancing the MIGO Screen to display the list of attachments.Part B . create a subscreen under a seperate Z program. You need to use the BADI MB_MIGO_BADI to add a new header tab containing your screen with a button to show the list of attachments. . To acheive this follow the below steps: Step No. 1: Using SE80. For example. screen 100 under ZMMM120. v_zeile TYPE mblpo. ENDMODULE.i_tabdrad TYPE drad OCCURS 0. v_objkey TYPE drad-objky.Place a pushbutton on the screen and in the PAI. IF sy-subrc = 0. FREE MEMORY ID 'MIGODMS'. The coding of this module could be: MODULE get_attachment INPUT.No. Year we will simply use the FM DOCUMENT_ASSIGNMENT using document object as MKPF and document key as MBLNR & MJAHR concatenated togeather. (MBLNR) and Doc. MODULEGET_ATTACHMENT.) to fetch the attachments. CHECK sy-ucomm = 'ATT'. v_gjahr TYPE gjahr. CONCATENATE v_mblnr v_gjahr INTO v_objkey. DATA: v_mblnr TYPE mblnr. Year (MJAHR) will be IMPORTed from the point in BADI implementation where it has been EXPORTed to Memory ID 'MIGODMS'. write a module (Say.No. CALL FUNCTION 'DOCUMENT_ASSIGNMENT' EXPORTING dokob = 'MKPF' objky = v_objkey opcode =3 TABLES tabdrad = i_tabdrad. and Doc. IMPORT p1 = v_mblnr p2 = v_gjahr FROM MEMORY ID 'MIGODMS'. Once we get the Doc. ENDIF. " GET_ATTACHMENT INPUT Note that the Doc. . in the method LINE_MODIFY do the following coding to EXPORT the Doc. e_cprog = 'ZMMM0120'. Clicking this button generates a pop-up window showing all the attachments done through DIR (transaction CV01N). e_dynnr = '0100'. METHOD if_ex_mb_migo_badi~line_modify. You will find a new tab in the header havign a push button. In the method PBO_HEADER do the following coding to call the subscreen that you created in the above step. go to SE19 and create an implementation of BADI MB_MIGO_BADI.No. EXPORT p1 = cs_goitem-mblnr p2 = cs_goitem-mjahr TO MEMORY ID 'MIGODMS'. Activate the BADI Implementaion and you are done !! This completes the whole process of creating the DIR and displaying the attachment list on MIGO Header Screen. To verify this go to transaction MIGO. METHOD if_ex_mb_migo_badi~pbo_header . and year to Memory ID. 2: After you have created your subscreen.Step No. enter any Doc. "External fields: Input e_heading = 'DMS Attachment List'. ENDMETHOD. and press enter. No. * Export data to function group (for display on subscreen) CALL FUNCTION 'MIGO_BADI_EXAMPLE_PUT_HEADER' EXPORTING is_migo_badi_header_fields = gs_exdata_header. Next. ENDMETHOD. . SAP Notes: 1417841. Rename MCDOKOB-BANFN with MCDOKOBMBLNR and MCDOKOB-BNFPO with MCDOKOB-MJAHR.htm Regards. Save and activate the screen 9002. Solution: Method PAI_DETAIL (IF_EX_MB_MIGO_BADI~PAI_DETAIL) of the BADI Implementation MB_MIGO_BADI should be activated and shold have the have the code: e_force_change = 'X'. SAP Online Help Documentation:http://help. Issue No. go to Package CV. Under Screens of function Group CV100. PS: Transaction CV04N might give Short Dump.sap. Firoz. 1066915 2.References: 1. When the pop-up window is closed (being in the MIGO screen) and when trying to click the attachment button again.com/erp2005_ehp_04/helpdata/en/b2/c043a66fab11 d1949500a0c92f024a/frameset. create a subscreen (Copy screen 1247 to 9002). 1: The attachment push button is working only once. the pop-u[p window that shows the list of attachment is not opening. .To overcome this please do the following: Using SE80.
Copyright © 2024 DOKUMEN.SITE Inc.