Skip to Content

Requirement:

1.       In standard SAP, the functionality of attaching document to MIGO object link is not available.

2.       Attach documents to material document number so that in MIGO display the user can retrieve the same.

Step 1:

a.       The material document number should be entered in to description field of CV01N

b.       For example if 5000083433 is the GRN document then you should enter the same as highlighted below

c.        If the user enters any other description other than this, the system will throw error message

d.       Exit is used while saving CV01N, which will check for F05 document, the value entered under description field exists in to MSEG table or not for 101-movement type.

e.       If yes then only it allows creating the record.

dESC_ERROR.png

f.       If the material document specified in the description field does not exist then system throws below error

dESC_ERROR1.png

Here in CV01 u can upload the multiple files (like any *.jpg, *.xlxs, *.doc etc ) in the originals screen.

Step 2: For above error implicit enhancement has been done

Enhancement: ZMOVEMNT_TYPE

Include: LCV110F06

ENHANCEMENT 1 ZMOVEMNT_TYPE.    “active version

data: gv_mblnr type MBLNR,datar_bwart  TYPE RANGE OF msegbwart,
       wa_bwart
LIKE LINE OF r_bwart,
       gv_gjahr
TYPE char4,
       lv_len
TYPE i,
       gv_error
TYPE char1.CONSTANTS: cs_inc     TYPE char1      VALUE ‘I’,
           cs_eq     
TYPE char2      VALUE ‘EQ’,
           cs_101    
TYPE char3      value ‘101’,
           cs_501    
TYPE char3      value ‘501’,
           cs_105    
TYPE char3      value ‘105’.

      wa_bwartsign = cs_inc.
      wa_bwart
option = cs_eq.
      wa_bwart
low = cs_101.
     
APPEND wa_bwart TO r_bwart.
      wa_bwart
low = cs_501.
     
APPEND wa_bwart TO r_bwart.
  
IF drawdokar = ‘F05’.

  IF dratdktxt+10(30) is not INITIAL.

  Message ‘Material document specified in Description is invalid’ type ‘E’.
 
ENDIF.
      
Select single  mblnr
        
from mseg
       
into gv_mblnr
       
where mblnr = dratDKTXT
        
and bwart In r_bwart.
   
IF sysubrc <> 0.
     
Message ‘ Material document mentioned in Description field does not exist’ type ‘E’.
   
ENDIF.
ENDENHANCEMENT.

Step 3:

Once the record is saved, you can go to MIGO display material document view to add the additional tab in line item level.

/wp-content/uploads/2015/08/migo_776932.png

After clicking on DMS Document tab below screen appear. Here you can view the linked document and can view the documents with its attachments

/wp-content/uploads/2015/08/migo_dms_776934.png

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply