cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to generate EHS label in background (Through BAPI or Function module)

Former Member
0 Likes
814

Hello,

Is there any function module or BAPI to generate EHS label which used to generated through tcode "CBGL_MP01".

Situation:

=======

Label has to be ordered through Web application. Once label ordered it will communicatd to SAP and SAP has to generate the label and send it back to Web.

Normally label used to be generated through tcode "CBGL_MP01" . But when Label ordered in web, Label has to be generated in background and need to send back to Web. So i wanted to know. is there any BAPI or Function module which can generate the label.

Thanks in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

Hi ,

I have a similar requirement where a 3rd party can input data and request a label from GLM in PDF format. Can anybody tell if there is any BAPI or RFC that can be used to achieve this requirement Or any other work around .

Appreciate your help.

Thanks,

Hema

christoph_bergemann
Active Contributor
0 Likes

Dear Hema

a.) please start new thread

b.) check document: http://scn.sap.com/docs/DOC-56806

There is a link to a document in context of "generation of pdf file for label"

Make sure that you understand "WWI" (generation server set up) and GLM (and especially what is called GLM+).

C.B:

Former Member
0 Likes

Thanks Christoph. I already started a new thread But didn't get any response yet. Its really urgent . can you please help?

christoph_bergemann
Active Contributor
0 Likes

Dear Hema

referring to

and

You have a "very" special requirement. Pugal tried to help in:

But your requirement is "that" special that really no "real" help is possible within SCN.

There is only one or two threads available discussing an approach which has some "overlap" to yours.

One of these "rare" examples is: ; but clearly ther "overlap" is very limited. Same for: EH&S Web Interface Issue | SCN; the overlap does not "really" exist

C.B:

Former Member
0 Likes

Hi, This functionality is going to be part of EHP5 which is due for release in 2011.

Regards,

Keshav

Former Member
0 Likes

The label-ID is used during the label determination step. When GLM determines the possible labels for the scenario, the label-ID is calculated as 1-n where n is the number of applicable labels. I'm not certain that this field is actually used in the LABEL_GENERATE function... it may just be stored in the structure from the earlier label determination step.

I don't know of any documentation that would help with figuring out all the variables needed to call this function. It would be much easier if you could set a breakpoint there and print or preview a template from CBGL_MP01.

Former Member
0 Likes

The function module used to call WWI and generate the label is WWI_GENERATE_LABEL. CBGL_LB61_LABEL_GENERATE is where that function module is called and could show you how to setup the data necessary for the WWI call. Form L_PRINT_EACH_BATCH from function group LCBGL_MP10 calls CBGL_LB61_LABEL_GENERATE to generate the labels, and then downloads them to the front end to print them... could be useful to look at as well.

HTH,

Mike

Former Member
0 Likes

Thanks Mike. Appreciated ur answer.

I am trying same function module "CBGL_LB61_LABEL_GENERATE" in SE37 to get a sense how it generate the file.

But when i execute in different data combination, it never executed successfully.

So do you have more info to execute this function module successfully.

ex: I_label accepts a ID which is 4 digit. so which id it says here.

Thanks again Mike. Let me know if you have more info on this.