01-29-2009 10:52 AM
dear all,
can any body help me in code for list of meterials with sales text as discription.
thanks &rgds
vamsee krishna yadav
01-29-2009 11:05 AM
Hi Vamsee
The table for material related Sales data is MVKE.
If you want to display materials then you may write a select query on MVKE, selecting Sales Organization and Distributuion Channel.
the concatenate mat number (with the leading zeros), Sales Org and Dist Channel into what will be the 'Name'
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = '0001'
language = <language>
NAME = 'Name'
object = 'MVKE'
TABLES
lines = li_lines.
Now read the li_lines table for the Sales Text.
Thanks
Pushpraj
01-29-2009 10:57 AM
hi
you can try these rfc's
RFC_SELECT_OBJ_VIA_MATCHCODE
RFC_DISPLAY_MATERIAL_MASTER
hope this helps
regards
Aakash Banga
01-29-2009 11:00 AM
Hi,
Check the below Function modules.
RFC_SELECT_OBJECTS_VIA_CLASS
RFC_SELECT_OBJ_VIA_MATCHCODE
Regards,
Anki Reddy
01-29-2009 11:05 AM
Hi Vamsee
The table for material related Sales data is MVKE.
If you want to display materials then you may write a select query on MVKE, selecting Sales Organization and Distributuion Channel.
the concatenate mat number (with the leading zeros), Sales Org and Dist Channel into what will be the 'Name'
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = '0001'
language = <language>
NAME = 'Name'
object = 'MVKE'
TABLES
lines = li_lines.
Now read the li_lines table for the Sales Text.
Thanks
Pushpraj