cancel
Showing results for 
Search instead for 
Did you mean: 

print label automatically after LQ02

former_member1021627
Participant
0 Kudos

Hi,

I need to print several labels and I don't know how to do!!

First I would like *to print a label automatically when I make LQ02, *

For example, the material are in quality control, and I make a LQ02 in order to put it available.

I use the movement type 322.

How could I do it?

Thanks a lot

Kari

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

In standard you cannot print Lable using LQ02, but you can do using LT31

else follow the modification as described below along with explanation

the LQ02 triggers posting changes from WM in inventory management and

creates transfer orders for them. I tested this in our internal

test system and it showed that the function module which creates the

transfer order 'L_TO_CREATE_POSTING_CHANGE' sets in this case

the flag I_NIDRU = CON_X. NIDRU controls whether the TO is printed

or not. As this transaction only triggers a posting change in IM and

there is really no physical move in WM, the transfer order that is

created is already confirmed, we suppress the printing here.

In the SAP standard we suppress the printing here if you change this

flag and fill it with space printing will take place acoording to the

customizing.

RLLQ0200

*........Füllen Übergabestruktur Umbuchung WM..........................

PERFORM LUBUI_FUELLEN.

CALL FUNCTION 'L_TO_CREATE_POSTING_CHANGE'

EXPORTING

I_LGNUM = S1_LGNUM

I_LUBUI = LUBUI

I_SQUIT = CON_X

I_NIDRU = CON_X "!!!!!!

I_UPDATE_TASK = SPACE

I_COMMIT_WORK = SPACE

I_BNAME = SY-UNAME

IMPORTING

E_TANUM = HLP_TANUM

TABLES

T_LUBQU = ILUBQU

T_LTAP_VB = TAP

EXCEPTIONS

ERROR_MESSAGE = 99.

RETCODE = SY-SUBRC.

IF SY-SUBRC NE 0.

*........Fehler bei der TA-Erstellung aufgetreten..................

HLP_FARBE = RED.

...

PLEASE TEST in your TEST SYSTEM BEFORE DOING ANYTHING IN YOUR PRODUCTION SYSTEM

I hope the above information is of helpful to you.

regards,

Ramana

Edited by: A.L.V Ramana on Dec 18, 2009 3:14 PM

Answers (0)