2009 Oct 23 9:09 AM
HI,
please solve my problem.
i am taking the LIFNR from MSEG in one internal table
AND LIFNR FROM MY ZTABLE in other internal table
after this READ the table and take the data in
LIFNER2
my condition is:
{READ TABLE it_mseg WITH KEY mblnr = it_mkpf-mblnr.
i_DATA-lifnr = it_mseg-lifnr.
Read table it_ZTMM_LOG_REQ_HDR with key repid = it_ztmm_reporting-repid.
i_data-lifnr1 = it_ZTMM_LOG_REQ_HDR-lifnr.
if i_data-lifnr = ' ' .
i_data-lifnr2 = i_data-lifnr1.
else.
i_data-lifnr2 = i_data-lifnr.
endif.}
the LIFNR3 is in my final table
the lifnr3 field i have to show on selection sceen
the it_mseg is not my 1st selection condition.
Regards,
Pankaj Vashista
HI,
please solve my problem.
i am taking the LIFNR from MSEG in one internal table
AND LIFNR FROM MY ZTABLE in other internal table
after this READ the table and take the data in
LIFNER2
my condition is:
{READ TABLE it_mseg WITH KEY mblnr = it_mkpf-mblnr.
i_DATA-lifnr = it_mseg-lifnr.
Read table it_ZTMM_LOG_REQ_HDR with key repid = it_ztmm_reporting-repid.
i_data-lifnr1 = it_ZTMM_LOG_REQ_HDR-lifnr.
if i_data-lifnr = ' ' .
i_data-lifnr2 = i_data-lifnr1.
else.
i_data-lifnr2 = i_data-lifnr.
endif.}
the LIFNR3 is in my final table
the lifnr3 field i have to show on selection sceen
the it_mseg is not my 1st selection condition.
Regards,
Pankaj Vashista
2009 Oct 23 10:21 AM
Hi,
Copy the code into subroutine call and use it in the INITIALIZATION event and pass the value of lifnr3 in the selection-screen.
Regards,
Anil
2009 Oct 23 11:00 AM
the code which u have written jus write it in INITIALIZATION.
The value which u want to pass ditrectly in the selct-options.
2009 Oct 23 11:05 AM
Pankaj,
It is always better to have even the MJHAR in the where/read with key clause as there is a possibility of same material doc number getting repeated in two fiscal years.
K.Kiran.
2010 Jan 21 5:44 AM