Skip to Content
0
Former Member
Mar 28, 2006 at 02:20 AM

When Two person print at on time,error happened.

14 Views

Hello:

The code: (S_NUMBER is sequence number)

SELECT

*

FROM <table>

INTO TABLE ITAB

SORT ITAB BY ZNUMBER.

LOOP AT ITAB.

S_NUMBER = ITAB-ZNUMBER.

ENDLOOP.

WA-ZNUMBER = S_NUMBER + 1.

WA-ZNAME = NAME.

WA-ZUSER_ID = ID.

CONCATENATE SY-DATUM SY-UZEIT INTO PTIME.

WA-ZTIME = PTIME.

INSERT INTO <table> VALUES WA.

When two person print different documents at one time.the printer work automatic,but S_NUMBER is same,and can not insert the wa into the table.

Hope someone can give me some helps.

Regards&Thanks

zagory