Skip to Content
0
Former Member
Sep 15, 2010 at 03:51 AM

Re: module pool programing

21 Views

Dear All,

In a module pool programing in table control i given a batch number automatically displayed variety, crop. This table control table is ZMSAMP_ITEM. Batch, Variety, Crop fields are already stored in another ztable is ZMFORM1_HEADER.

This condition is

SELECT SINGLE * FROM ZMFORM1_HEADER WHERE BUKRS = ZMSAMP_HEADER-BUKRS

AND LOTNO = ZMSAMP_ITEM-LOTNO.

IF SY-SUBRC = 0.

ZMSAMP_ITEM-BUKRS = ZMFORM1_HEADER-BUKRS.

ZMSAMP_ITEM-CRPCD = ZMFORM1_HEADER-CRPCD.

ZMSAMP_ITEM-VARCD = ZMFORM1_HEADER-VARCD.

ENDIF.

But another condition i want change variety. i given another variety and enter same in zmform1_header variety is displayed What can i do please tell any body.

Regards.

Sreelakshmi,