10-16-2008 5:36 PM
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
10-16-2008 6: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
10-16-2008 7:46 PM
As I had 5 materials and descriptions, so I created a separate Internal table and passed the values to it.
Thankyou Jamie.
Regards,
Veni.