Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

EHS - CG36 - Import report - how to define MSDS version in key file?

Dear all,

I have created the following key file, only the VER=1.3 is not taken in respect by the import process.

Does anybody know what I do incorrect? Or are the function modules: C13G_DOKX_SDB_IMPORT and C13G_DOKX_SDB_PREIMP not able to use the VER= coding for allocating the versioning of the MSDS in EH&S Report Information Management?

CPN=TEST

DTY=SDB

SID=000000000492

PRN=TEST PRODUCT

CTY=GB

LAC=E

STA=V

DAT=19.03.1996

FNA=test.PDF

VER=1.3

FFT=PDF

Thank you in advance.

Kind regards,

Roy Derks

Former Member
replied

Hello Roy

Short Answer:

the value "VER=1.3" in the key file does not drive the version of the raw report. This value in the key file will be stored in one of the characteristics which are linked to the document class (take a look in coding of the function moduls). You can check this value later if the report has been uploaded sucessfully either in cg50 or cg54 by clicking on th "info" button of the report; here you will find any information as provided in the key file.

Long answer: (in addition):

Based on the definition of your generation variant EH&S will create in the normal WWI process a version regarding the new report. Based on the "status" which is defined in the generation variant you have the chance to select the first main version to be used. E.g. if the status in generation variant is "Ready" as the default the raw report is either uploaded in the process or generated as "Ready". Now the user can interact to release the report (done in cg50). If this is the first report (combination of generation variant and language) on the sub id you can specify the first main version. The version ID is a character 5 field if I remember correct so the last potential version which is possibkle is 99999.99999 which can be generated using EH&S (what will happen if this value is exceded: i Have no idea)

I believe you can enter as the first version "0" without an error message. Therefore I am not sure if there is really any "check" routine behind the first version you could enter in the dialog process in EH&S.

A longer answer (in addition):

The VER value is used (or could be used) to store whatsoever value as long as the value does not exceed 30 characters. I believe you can use something like

VER=AAAA

or

VER=A123

etc. and the upload is done and this value is stored in the characteristic. I belive that none of the characteristic(s) do have an assigned check routine

From the point of the view of the user it would clearly be nice to generate a version 1.2 if on the paper is written 1.2 but this is not possible to my knowledge with this standard process.

Potentially it could be possible to think of "own" programming

As this upload process is done completely in an user exit which is defined in customizing (so you have the full options to do soemthing without modifications) you could analyze if it would be possilbe by using a copy of the standard function module (you must copy potentially both functoin modules) to force the system to use the version in estdh. I have never investigated this topic deeper but the question you are asking is asked often during the EH&S set up (project phase of implementation).

If there is a "real" benefit from the point of view of business/user etc. to have the "same" version shown in EH&S like is printed in the document... No idea. I believe this is a company specific decision like many other questions which could be asked in the sense: how to use EH&S and how to optimize it

With best regards

C.B.

PS: sorry for the "format" of the answer.

Edited by: Christoph Bergemann on Apr 9, 2010 8:32 PM

Edited by: Christoph Bergemann on Apr 9, 2010 8:32 PM

Edited by: Christoph Bergemann on Apr 9, 2010 8:34 PM

Edited by: Christoph Bergemann on Apr 9, 2010 8:35 PM

Edited by: Christoph Bergemann on Apr 9, 2010 8:36 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question