Skip to Content
avatar image
Former Member

Display Material Description on a Screen

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 16, 2008 at 05:00 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

      Thankyou Jamie.

      Regards,

      Veni.