Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Documents printing using Document management

Former Member
0 Kudos

Hi,

I would like to use document management to print documents along with picking list. I would like to store documents (in word format) in document management and like to link this to customer-material information record (VD52). I am able to store word documents in the document management but could not find a way on how to link with customer-material info record.

In order to make the link with a new object, SAP help indicated the following;

1) Program two screens for the following module pools for the SAP object that is to be linked additionally;

- SAPLCV00

- SAPLCVIN

The process logic mus be according to that of screen 0204 in program SAPLCV00 and must not be changed.

2) Create the functional module OBJECT_CHECK_XXXX (XXXX = name of the SAP object).

If this object can be classified, this function module already exists in the standard system. Otherwise, copy the existing function module OBJECT_CHECK_EQUI and change it to suit the new project.

I am a functional guy and not sure about the point 1?

Can you any of you help with creating new objects and this linking documents with this new object?

Thanks for the help.

Regards,

Shiva

1 REPLY 1

Former Member
0 Kudos

Hi I just implemented this and here are some tips.

1.) The 2 program that SAP mention is a guide. I took a different approach since you will be implementing a badi DOCUMENT_OBJ what I did is just look at the existing (standard) implementation of that BADI and tried to see what I can leverage.

2.) You still need to do some IMG activity like linking the object and using screen 0500. Please note that your screen for the BADI does not have to be screen 0500 it is only in the IMG path that it has to be 0500.

3.) On the BADI the initial method that needs to be populated are GET_DATA and PUT_DATA.

Sample GET_DATA code.

TABLE_DRAD_WORK[] = IF_EX_DOCUMENT_OBJ~TABLE_DRAD_WORK[].

ACTIVITY = IF_EX_DOCUMENT_OBJ~ACTIVITY.

Sample PUT_DATA code.

IF_EX_DOCUMENT_OBJ~TABLE_DRAD_WORK[] = TABLE_DRAD_WORK[].

IF_EX_DOCUMENT_OBJ~TABLE_DRAD_DB[] = TABLE_DRAD_DB[].

IF_EX_DOCUMENT_OBJ~ACTIVITY = ACTIVITY.

IF_EX_DOCUMENT_OBJ~DRAW = DRAW.

Hope this helps.

A question that I want to ask is what is the relevance of the OBJECT_CHECK_XXXX. I am not sure if you really have to implement this but I will find out since I will be implementing one with have no standard FM for object check.