Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

To show data from internal table on selection Screen

Former Member
0 Likes
712

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

4 REPLIES 4
Read only

Former Member
0 Likes
686

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

Read only

Former Member
0 Likes
686

the code which u have written jus write it in INITIALIZATION.

The value which u want to pass ditrectly in the selct-options.

Read only

kiran_k8
Active Contributor
0 Likes
686

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.

Read only

Former Member
0 Likes
686

answered