Application Development 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: 

Display Material Description on a Screen

Former Member
0 Kudos

Hi All,

I have custom table maintainance screen and it has change contents tab to change the contents of the table. It is working fine but in the screen when the record shows up it comes with Matnr and Amount, here I have to display Material Description. In my PBO I have my Itab as my ztable ZSDCOOP. How should I include description here.

I do not have Maktx in my ztable. I have to get it from MAKT. In the change screen Input/Output field should I define it as MAKT-MAKTX. I just want to display the description of the material here.

Please help me.

Thanks,

Veni.

DATA: ITAB LIKE ZSDCOOP OCCURS 100 WITH HEADER LINE.

MODULE status_0400 OUTPUT.

SET PF-STATUS 'ZCHG'.

SELECT * FROM zsdcoop INTO TABLE itab where cmponum = 0.

SORT itab by pfnum descending.

READ TABLE itab INTO zsdcoop INDEX cnt.

DESCRIBE TABLE itab LINES lin.

ENDMODULE. " STATUS_0400 OUTPUT

2 REPLIES 2

Former Member
0 Kudos

Hi,

You can change your itab definition to inlcude MAKTX:


types: begin of ty_itab.
       include structure zsdcoop.
types:  maktx  type makt-maktx,
       end of ty_itab.

data: itab type standard table of ty_itab with header line.

Then in your PBO you can use an outer join of ZSDCOOP and MAKT to fill itab with both the ZSDCOOP data and the MAKT-MAKTX for each ZSDCOOP's material number.

Regards,

Jamie

0 Kudos

As I had 5 materials and descriptions, so I created a separate Internal table and passed the values to it.

Thankyou Jamie.

Regards,

Veni.