Material relating to ALV
Hi folks,
plz send me the material relating to ALV, to my mail id [email protected]
it's very urgent.
Thanks & Regards
pabitra
Hi,
I am sending sample program for alv.
Kindly check it.
REPORT:
REPORT YMS_COLOURALV NO STANDARD PAGE HEADING.
TYPE-POOLS: SLIS, ICON.
DATA: FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: BEGIN OF IMARA OCCURS 0,
LIGHT(4) TYPE C,
MATNR TYPE MARA-MATNR,
MTART TYPE MARA-MTART,
MAKTX TYPE MAKT-MAKTX,
COLOR_LINE(4) TYPE C,
TCOLOR TYPE SLIS_T_SPECIALCOL_ALV, "cell
END OF IMARA.
DATA: XCOLOR TYPE SLIS_SPECIALCOL_ALV.
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM WRITE_REPORT.
Get_Data
FORM GET_DATA.
WRITE ICON_GREEN_LIGHT AS ICON TO IMARA-LIGHT.
IMARA-MATNR = 'ABC'.
IMARA-MTART = 'ZCFG'.
IMARA-MAKTX = 'This is description for ABC'.
APPEND IMARA.
WRITE ICON_YELLOW_LIGHT AS ICON TO IMARA-LIGHT.
IMARA-MATNR = 'DEF'.
IMARA-MTART = 'ZCFG'.
IMARA-MAKTX = 'This is description for DEF'.
APPEND IMARA.
WRITE ICON_RED_LIGHT AS ICON TO IMARA-LIGHT.
IMARA-MATNR = 'GHI'.
IMARA-MTART = 'ZCFG'.
IMARA-MAKTX = 'This is description for GHI'.
APPEND IMARA.
LOOP AT IMARA.
IF SY-TABIX = 1.
IMARA-COLOR_LINE = 'C410'. " color line
ENDIF.
IF SY-TABIX = 2. " color CELL
CLEAR XCOLOR.
XCOLOR-FIELDNAME = 'MTART'.
XCOLOR-COLOR-COL = '3'.
XCOLOR-COLOR-INT = '1'. " Intensified on/off
XCOLOR-COLOR-INV = '0'.
APPEND XCOLOR TO IMARA-TCOLOR.
ENDIF.
MODIFY IMARA.
ENDLOOP.
ENDFORM. "get_data
WRITE_REPORT
FORM WRITE_REPORT.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV.
LAYOUT-COLTAB_FIELDNAME = 'TCOLOR'.
LAYOUT-INFO_FIELDNAME = 'COLOR_LINE'.
PERFORM BUILD_FIELD_CATALOG.
CALL ABAP LIST VIEWER (ALV)
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
TABLES
T_OUTTAB = IMARA.
ENDFORM. "write_report
BUILD_FIELD_CATALOG
FORM BUILD_FIELD_CATALOG.
DATA: FC_TMP TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
CLEAR: FIELDCAT. REFRESH: FIELDCAT.
CLEAR: FC_TMP.
FC_TMP-REPTEXT_DDIC = 'Status'.
FC_TMP-FIELDNAME = 'LIGHT'.
FC_TMP-TABNAME = 'IMARA'.
FC_TMP-OUTPUTLEN = '4'.
FC_TMP-ICON = 'X'.
APPEND FC_TMP TO FIELDCAT.
CLEAR: FC_TMP.
FC_TMP-REPTEXT_DDIC = 'Material Number'.
FC_TMP-FIELDNAME = 'MATNR'.
FC_TMP-TABNAME = 'IMARA'.
FC_TMP-OUTPUTLEN = '18'.
APPEND FC_TMP TO FIELDCAT.
CLEAR: FC_TMP.
FC_TMP-REPTEXT_DDIC = 'Material Type'.
FC_TMP-FIELDNAME = 'MTART'.
FC_TMP-TABNAME = 'IMARA'.
FC_TMP-OUTPUTLEN = '10'.
APPEND FC_TMP TO FIELDCAT.
CLEAR: FC_TMP.
FC_TMP-REPTEXT_DDIC = 'Material'.
FC_TMP-FIELDNAME = 'MAKTX'.
FC_TMP-TABNAME = 'IMARA'.
FC_TMP-OUTPUTLEN = '40'.
FC_TMP-EMPHASIZE = 'C610'. " color column
APPEND FC_TMP TO FIELDCAT.
ENDFORM. "build_field_catalog
Thanks,
Shankar
Similar Messages
-
ABAP programing material related to BW.
Hi Experts,
Im new to BW/BI. Can anyone please tell me where I can find ABAP programing material related to BW.
Thank in advance.I can also recommend my book [http://www.sap-hefte.de/katalog/hefte/titel/gp/titelID-1273]. It contains all the often used exits with practical examples, a long sample of the transformation and I received a lot of positive feedback. A second reworked edition that also contains the BPS and Integrated Planning is currently in work and will probably appear this fall.
Best regards
Dirk
Edited by: Dirk Herzog on Jul 20, 2008 8:38 PM -
MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS
Dear Experts,
Is there any separate t code available to MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS ?
I got this POINT from ECC 6.0 features in Solution browser.
Please help me on this.
MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS:
Functionality Enhancements
Provides a specific transaction for mass maintenance of material related excise duties fields
Business Benefits
Mass maintenance can now be performed in one step for material-relevant excise duties fields, instead of maintaining the excise duties fields in each material master record separately.
Regards
Soundar.GDear Ravi,
I have already created LSMW for this in Material master and J1ID.
But i have checked in ECC 6.0 feature, there they are mentioning New t code is available for MASS maintenance of excise duty fields.
Regards
Soundar.G -
MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS - T CODE
Dear Experts,
Is there any separate t code available to MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS ?
I got this POINT from ECC 6.0 features in Solution browser.
Please help me on this.
MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS:
Functionality Enhancements
Provides a specific transaction for mass maintenance of material related excise duties fields
Business Benefits
Mass maintenance can now be performed in one step for material-relevant excise duties fields, instead of maintaining the excise duties fields in each material master record separately.
Regards
Soundar.GDear Ravi,
I have already created LSMW for this in Material master and J1ID.
But i have checked in ECC 6.0 feature, there they are mentioning New t code is available for MASS maintenance of excise duty fields.
Regards
Soundar.G -
Bill of material related data.
Dear experts,
I want to know is their any standard datasources to extract Bill of material related data(Material,Component) to BI.As the data in standard tables like MAST,STPO,STKO.
Pts will be assigned.
With Regards,
MeiyappanHi,
Check these links:
Hope these links would be of some help
http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
http://www.sap-basis-abap.com/sappp007.htm
http://help.sap.com/saphelp_nw04/helpdata/en/43/40b8aeaa5bba4d9a81c7332119a4b4/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d9/6eeedf6d44f242902eafc361924026/content.htm
Sasi -
Display the material details in alv grid based on material(in mara)
hi,
display the material details when get input of material from user in mara table using alv-grid display.
give some examples.
Thanks of advance.Hi
For your help i am just giving you few hints.
1. Create a selection screen.
2. Select matnr from mara into an internal table.
3. use fm Reuse_Alv_grid_display to display your entries from the internal table
Please read about all of this step by step in the forum. -
Pdf and docu related to alv grid
Hi all,
Can any body please tell me how to get PDF and documents *of theory of alv grid display.* I have sample program of alv but not decent theory which can explain funcanality of function module and the parameters used in those fn module.please help mehi,
already there is lot of material in SDn regarding everything,
the thing is u need to search in SDN.
regarding the ALV reports there is one intresting website just check in..
www.alvrobot.com.ar -
Down Load Material related to 2005B
Hi,
I want to download some of the Indian Localisation material for SAP Business One 2005-B.
Please update for the same.
Thanks,
Vipul KapoorIndia Localization material available on market service place especially covered for Excise and CENVAT related issue.
Thanks
OP Sharma -
Hi to all
i have a problem in ALV, when i entered the material group 01, it takes the material from the material group 01 as well as other material group(with the values has null).i like to know how to delete the materials from other group if it is sorted by a particular material group.for eg if i select material group 01,it should bring only from 01.HI.
To set a filter, select one or more columns by clicking on the column header and by choosing Set Filter or Edit ® Set Filter.
In the Set Filter dialog box, enter the From/To values for each column selected.
Only rows with data within the intervals specified are shown.
Use And Also to enter more than one interval for a column.
Regards,
Venu. -
How to increase size of font in ALV grid display for all the rows.
Hi
you can't increase the fonts
Only thing is you can give different colors to the fileds/cells
see this sample code
REPORT zsharad_test1.
TABLES: ekko.
TYPE-POOLS: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
line_color(4) TYPE c, "Used to store row color attributes
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
PERFORM data_retrieval.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'STATU'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MENGE'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-datatype = 'CURR'.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'PEINH'.
fieldcatalog-seltext_m = 'Price Unit'.
fieldcatalog-col_pos = 8.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
ENDFORM. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
FORM build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
Set layout field for row attributes(i.e. color)
gd_layout-info_fieldname = 'LINE_COLOR'.
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
ENDFORM. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
FORM display_alv_report.
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
is_variant = z_template
TABLES
t_outtab = it_ekko
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
DATA: ld_color(1) TYPE c.
SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekko.
*Populate field with color attributes
LOOP AT it_ekko INTO wa_ekko.
Populate color variable with colour properties
Char 1 = C (This is a color property)
Char 2 = 3 (Color codes: 1 - 7)
Char 3 = Intensified on/off ( 1 or 0 )
Char 4 = Inverse display on/off ( 1 or 0 )
i.e. wa_ekko-line_color = 'C410'
ld_color = ld_color + 1.
Only 7 colours so need to reset color value
IF ld_color = 8.
ld_color = 1.
ENDIF.
CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
wa_ekko-line_color = 'C410'.
MODIFY it_ekko FROM wa_ekko.
ENDLOOP.
ENDFORM. " DATA_RETRIEVAL
Regards
Anji -
Material related condition types
hello mm gurus,
I have created a material and I want to maintain condition records for that material through MEK1
but there are so many condition types. I want to maintain the condition types which are related to material
please explain me briefly
thanks in advance
byeHi Subramanyam
it totally depends on you what condition records you want and for which condition types. for all the condition types for which access sequence is assigned you can create condition records and choose proper key combination "material/vendor" and enter your desirable price which you want to be picked up by the system at the time of PO creation.
regards
Yogesh -
Material relating to CLASS & Method(ABAP)
Hi all,
i want the complete materials relating to class, methods in ABAP.
it's very urgent.plz send me to my mail if u have good material .
my mail--
[email protected]
Thanks & regards
pabitraHi
Check this link
http://www.beinsoft.com/sap-tutorial-abap-objects.php
http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b6554f411d194a60000e8353423/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
regards
Shiva -
Hi All,
I have a doubt in ALV report.
there is an output which consists of four fields.
1.Employee
2.Organizational Unit
3.Required Compliance Training Not Completed (the specific course (D))
4.% Compliant*
Output should be:
1 2 3 4
1.a b c d
e
f
I mean there is a single row for 4 fields.
and in only 3 rd column there are again 3 rows.
how to display this.
1..4 are columns
a...f are data .
Please tell me.
Thanks,
Geetha.Hi All,
I have a doubt in ALV report.
there is an output which consists of four fields.
1.Employee
2.Organizational Unit
3.Required Compliance Training Not Completed (the specific course (D))
4.% Compliant*
Output should be:
1 2 3 4
1.a b c d
e
f
I mean there is a single row for 4 fields.
and in only 3 rd column there are again 3 rows.
how to display this.
1..4 are columns
a...f are data .
Please tell me.
Thanks,
Geetha. -
Material related to FI_GL ,
HI Experts,
As I am new to the FI_GL , can anyone please update me on this and also send any docs related to the same. As I am working on FI_GL related project for the first time. Please help me in this matter.
Thanks
SekharHi Sekhar,
Refer this pdf from SAP for understanding General Ledger Accounting (FI-GL),
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/FIGL/FIGL.pdf
Check for FI-GL Business Content,
http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
Assign pts if it helps,
Regards,
Mani.
Message was edited by:
Manikandan A -
Workflow and BPEM material related to IS-U
Hi,
1. I have read somewhere that workflows related to SAP IS-U are available.
So could you please provide information (documentation) as where to find it and how can we modify it as per client requirement?
2. BPEM process is also available but documentation (ccokbook) or related info is not available.
Would be grateful if anybody can provide that.
Regards,
PareshHi
u can check the below blogs to process the Excel sheet and generate Excel sheet using XI
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter (process excel sheet)
/people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible (Generate Excel sheet)
Have a look at this thread:
Re: how to send Excel File using file adapter
Regards
Abhishek
Maybe you are looking for
-
Dear All, Can you please let me know on how to change the minority status of the vendor in SRM? I tried the transaction BP but could not do anything there. Thanks for your time.
-
Obtain remote client IP address from webservice with WL 7.0.7
Hi, Please Help!! I need to get the remote client IP address from inside a webservice but with WLS 7.0.7. I know it is possible with WL 8: WebServiceContext wsContext = WebServiceContext.currentContext(); WebServiceHttpSessionImpl vHttp = (WebService
-
Boot Camp V2.1 gets HOT
I'm not kidding. After updating to V2.1 my temperature at boot up is 20-40 degrees higher! When I load up my online game it now goes to 180F before the fan kicks on. Before it only went to 140-150 and little fan was used. This is serious and needs to
-
Rounding the purchasing quantity
Hi i am having a reqirement to round my purchasing quantity. we procure the material in bags. 1 bag = 1000 kg if my reqirement exceeds 1000 kg it the the purchasing quantity should be 2 bags = 2000 kg. how should i do this right now. if my reqiremen
-
Handelt es sich bei dem DNG-Converter automatisch auch um die camera raw? Und wie kann ich die Version 8.3 updaten (Windows Vista und PSE 12)?