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.
f. If the material document specified in the description field does not exist then system throws below error
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,data: r_bwart TYPE RANGE OF mseg-bwart,
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_bwart-sign = 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 draw-dokar = 'F05'.
IF drat-dktxt+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 = drat-DKTXT
and bwart In r_bwart.
IF sy-subrc <> 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.
After clicking on DMS Document tab below screen appear. Here you can view the linked document and can view the documents with its attachments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |