OO ALV - No Output, Please help
hello all...
in this alv.. i used the static call instead of creating a custom container.
i couldn't get the output. please help.
<code part too large, removed by moderator, please stay below 5000 characters, counting each single one ;)>
Edited by: Thomas Zloch on Feb 9, 2011 1:23 PM
re submission of the code from fieldcatalog to the method call for better clarity of view.
dgw_it_fieldcatalog-fieldname = 'VBELN'.
dgw_it_fieldcatalog-col_pos = 1.
dgw_it_fieldcatalog-outputlen = 20.
dgw_it_fieldcatalog-emphasize = 'X'.
APPEND dgw_it_fieldcatalog TO dgmst_it_fieldcatalog.
CLEAR dgw_it_fieldcatalog.
dgw_it_fieldcatalog-fieldname = 'ERNAM'.
dgw_it_fieldcatalog-col_pos = 1.
dgw_it_fieldcatalog-outputlen = 20.
dgw_it_fieldcatalog-emphasize = 'X'.
APPEND dgw_it_fieldcatalog TO dgmst_it_fieldcatalog.
CLEAR dgw_it_fieldcatalog.
dgw_it_fieldcatalog-fieldname = 'ERDAT'.
dgw_it_fieldcatalog-col_pos = 2.
dgw_it_fieldcatalog-outputlen = 10.
dgw_it_fieldcatalog-emphasize = 'X'.
APPEND dgw_it_fieldcatalog TO dgmst_it_fieldcatalog.
CLEAR dgw_it_fieldcatalog.
dgw_it_fieldcatalog-fieldname = 'POSNR'.
dgw_it_fieldcatalog-col_pos = 3.
dgw_it_fieldcatalog-just = 'L'.
dgw_it_fieldcatalog-outputlen = 10.
dgw_it_fieldcatalog-emphasize = 'X'.
APPEND dgw_it_fieldcatalog TO dgmst_it_fieldcatalog.
CLEAR dgw_it_fieldcatalog.
dgw_it_fieldcatalog-fieldname = 'MATNR'.
dgw_it_fieldcatalog-col_pos = 4.
dgw_it_fieldcatalog-outputlen = 15.
dgw_it_fieldcatalog-emphasize = 'X'.
APPEND dgw_it_fieldcatalog TO dgmst_it_fieldcatalog.
CLEAR dgw_it_fieldcatalog.
dgw_it_fieldcatalog-fieldname = 'MAKTX'.
dgw_it_fieldcatalog-col_pos = 5.
dgw_it_fieldcatalog-outputlen = 40.
dgw_it_fieldcatalog-emphasize = 'X'.
APPEND dgw_it_fieldcatalog TO dgmst_it_fieldcatalog.
CLEAR dgw_it_fieldcatalog.
CREATE OBJECT r_grid
EXPORTING
* i_shellstyle = 0
* i_lifetime =
i_parent = cl_gui_custom_container=>screen0.
* i_appl_events = space
* i_parentdbg =
* i_applogparent =
* i_graphicsparent =
* i_name =
* i_fcat_complete = space
* EXCEPTIONS
* error_cntl_create = 1
* error_cntl_init = 2
* error_cntl_link = 3
* error_dp_create = 4
* others = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD r_grid->set_table_for_first_display
* EXPORTING
* i_buffer_active =
* i_bypassing_buffer =
* i_consistency_check =
* i_structure_name =
* is_variant =
* i_save =
* i_default = 'X'
* is_layout =
* is_print =
* it_special_groups =
* it_toolbar_excluding =
* it_hyperlink =
* it_alv_graphics =
* it_except_qinfo =
* ir_salv_adapter =
CHANGING
it_outtab = dgmst_order
it_fieldcatalog = dgmst_it_fieldcatalog
* it_sort =
* it_filter =
* EXCEPTIONS
* invalid_parameter_combination = 1
* program_error = 2
* too_many_lines = 3
* others = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Similar Messages
-
hi, iam facing problem in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem
Hi achyuth,
Thank you for posting on the National Instruments forum.
I am not sure what you are trying to do. Are you trying to input and output at the
same time? Are you just trying to
synchronize all of your inputs? Do you
want them to run off the same clock? If
you could, give me some more information so I can understand your problem
better.
In the meantime, this might help you:
PXI Timing,
Triggering, and Synchronization Capabilities of E-Series Multifunction Data
Acquisition ...
PXI Timing and Synchronization
Thank You,
Nick F.
Applications Engineer -
No Audio output please help!!!
I have a Toshiba Satellite A205S4617 Vista and audio wont come out of the speakers. I have tried:
1. Reinstalling audio driver from the Toshiba website
2. Updating all drivers from Control Panel - Sound - Device Menus (said everything was up to date but when I went to sound to do a test it said it failed)
3. System Restore (but it didn't give me an option to go back to yesterday when the audio was working, any idea how to get it to do that? )
4. Reboot F2,F9,F10 config restore
Any more ideas please help!!! thanks.Satellite A205-S4617
Time to restore the hard disk to its original out-of-the-box contents using Toshiba recovery media. If the sound doesn't work then, you have a hardware malfunction.
-Jerry -
hi there from Portugal
I am running a trace using toad over an oracle 8 database which runs in a remote location.
I do not have an account to acess that machine - Only can connect to database with toad or sql plus.
Is there any other way to see the output of a trace command without accessing the server machine and opening the file stored in the user dump destination?!?!
For example output the trace result to the toad editor screen!?
PS: i do not have permissions to change the user dump destination
I'm sure you guys will find me a solution
Grateful for your help
Regards from Portugal
Edited by: user6364639 on 2/Fev/2009 11:29When I've been in this unfortunate situation (like on a hosted database) I have been able to create an external table that will give me access to the trace file.
First, look up user_dump_dest so you can create a directory object for this location.
Next you need to get the spid (from v$process) for the session that you are tracing - the default file name for the trace file is ${ORACLE_SID}_ora_${SPID}.trc
So if your spid is 12345
Create the directory and external table like this:
DECLARE
UDumpDir VARCHAR2(200);
SID VARCHAR2(16);
MySpid NUMBER := 12345; -- ***CHANGE THIS
ObjectExists EXCEPTION;
PRAGMA EXCEPTION_INIT(ObjectExists,-955);
BEGIN
-- get the udump dir
SELECT value
INTO UDumpDir
FROM v$parameter
WHERE name='user_dump_dest';
-- create the directory for the udump dir
EXECUTE IMMEDIATE 'CREATE OR REPLACE DIRECTORY udump_dir AS '''||UDumpDir||'''';
-- grant the necessary privileges
EXECUTE IMMEDIATE 'GRANT READ ON DIRECTORY udump_dir TO system';
-- get the SID
SELECT instance_name INTO SID FROM v$instance;
EXECUTE IMMEDIATE 'CREATE TABLE system.TRACE_'||MySpid||'_EXTERNAL
(TEXT VARCHAR2(255)
) ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY UDUMP_DIR
ACCESS PARAMETERS
(records delimited by newline
nobadfile
nologfile
LOCATION ('''||SID||'_ora_'||MySpid||'.trc'')
REJECT LIMIT UNLIMITED'
-- ignore ORA-955 errors (object already exists)
EXCEPTION WHEN ObjectExists THEN NULL;
END;
/Now that you have the external table (trace_12345_external). Select from it, spooling the output into a local copy of the trace file.
like this:
set pages 0
set linesize 255
set trimspool on
spool MyLocalTraceFile.trc
select * from trace_12345_external;
spool offYou can now tkprof (or otherwise analyze) your trace file on your client machine.
Don't forget to clean up after yourself and drop the external table when you're done.
Good Luck -
F4 - Help for field in ALV Grid Output
Hi,
I generated a report which gives output in ALV Grid output.
In the output, 1 of the field is editable.Here, for this field I need to have my own F4-Help.
I think the procedure to be followed is:--
Create a Search Help in SE11.
Link the Search Help to the editable field.
Please let me know if its the correct procedure.
I f yes, how can I link user defined Search Help to the editable field?
Thanks,
Shivaa........Hi siva,
you can also do that way.
while filling the fieldcatalog use the parameter F4AVAILABL
for more info check
F4 help in ALV Grid...
f4 help for a field in alv grid
hope it helps you
Thanks!
Edited by: Prasanth on Mar 6, 2009 3:59 PM -
ALV Report: How to pass the variable in Work area to the FM ? Please help !
I want to pass the field in the work area which contains the floating point numbers to FM 'FLTP_CHAR_CONVERSION_FROM_SI'. This the correct FM, I have tested.
If I specify the field with Tab name in FM , It says its not an internal table with header line.
Please help me, How should can I proceed further and pass the field to FM and get it back in work area.
And an other issue is I want to sum the particular field in the output.
Is there a way to do using 'PF-STATUS', if so how ? or what is the alternative for this ?
Please help me with my issues.
I'm new to ALV reports.
Thanks in Advance !Hi,
For your FM issue, i think you are trying to pass the field in the FM as ITAB-field, while you should be taking the data in the work area first and then pass this work area in the FM as WA_ITAB-field.
I hope this will resolve your prob.
I mean loop at the table and take the values into work area, update the internal table with changed value. This way by the end of loop you will have all your fields converted.
Please explain a little more about your second doubt, it is unclear(to me atleast).
Edited by: DeepakNagar on Jul 28, 2011 6:08 PM -
How to code to get intermediate results in webdynpro ALV? Please help!
Hi Experts,
I got following info from help file to generate Intermediate Results(subtotal).
Can somebody help me with sample code to achieve this?
Basically I want to subtotal 'Qty' column based on 'Product' field.
By default, all values in a field are used in the calculation during aggregation. However, you
are also able to generate intermediate results. You group the data records that contain the
values for an intermediate result and display each intermediate result in its own result row.
To generate intermediate results, you have to provide certain information:
● To specify in which field the values from which the intermediate results are calculated
are located, generate an aggregation condition for the desired field. The overall result is
displayed in the result row.
● To specify which data records are contained in an intermediate result, group the data
records: You sort the ALV output by the field that includes the criterion for the
intermediate result.
● To then generate the intermediate results, calculate the intermediate results using the
field with the criterion.
● To then display the intermediate results, switch on the display of intermediate results.
You are able to make the following settings for intermediate results:
● Generate intermediate results
● Display intermediate results
● Setting levels for drilling down intermediate results
● Set the position of the result rows (see Settings for Aggregation [page 196])
● Forbid the generation of intermediate results
Prerequisites
● You have generated an aggregation object for at least one aggregatable field.
● The field with the criterion for intermediate results is not an aggregatable field, and
therefore has an alphanumeric data type.
Generate Intermediate Results
To generate intermediate results in a field that already has an aggregation condition, generate
a sort condition for the field of a column (another column) (see Sorting [page 190]).
In this sort condition, define whether intermediate results are to be generated. To do this, use
the methods of the class CL_SALV_WD_SORT_RULE.
Methods for Generating Intermediate Results
Function Method
Generate intermediate results SET_GROUP_AGGREGATION
Check whether intermediate results are displayed GET_GROUP_AGGREGATION
Display Intermediate Results
Once you have made all settings, to generate intermediate results you have to switch on the
display of these intermediate results. You use the methods of the interface class
IF_SALV_WD_FIELD_SETTINGS for this (implementing class
CL_SALV_WD_CONFIG_TABLE).
Methods for Displaying Intermediate Results
Function Method
Display intermediate results SET_GROUP_AGGR_DISPLAYED
Check whether intermediate results are displayed GET_GROUP_AGGR_DISPLAYED
I have tried a bit but it is not working. here is my code:
get field and create aggregation rule of type total
lr_field = l_value->if_salv_wd_field_settings~get_field( 'Qty' ).
lr_field->if_salv_wd_aggr~create_aggr_rule( ).
lr_aggr_rule = lr_field->if_salv_wd_aggr~get_aggr_rule( ).
lr_aggr_rule->set_aggregation_type( if_salv_wd_c_aggregation=>aggrtype_total ).
l_field = l_value->if_salv_wd_field_settings~get_field( 'PRODUCT' ).
l_sortrule = l_field->IF_SALV_WD_SORT~create_sort_rule( ).
l_sortrule~SET_GROUP_AGGREGATION( 'Y').
l_value->if_salv_wd_field_settings~SET_GROUP_AGGR_DISPLAYED( 'Y' ).
Please help
Message was edited by:
gopalkrishna baligaHi Gopalakrishna balgia,
I think i have answered in the below thread. Check it out.
How to show Subtotal in webdynpro ALV(ABAP)? Kindly help!
Regards
Rakesh -
Hi,
Please help me in this.
1) Create the selection screen with the following fields on it.
S_REQUESTOR for ZSWAPHISTORY- REQUESTOR
S_APPROVER for ZSWAPHISTORY- APPROVER providing range
S_to_customer for ZSWAPHISTORY- to_customer providing range
S_from_customer for ZSWAPHISTORY- from_customer providing range
S_MRPC for MARC-DISPO providing range
S_MATNR for MARA-MATNR providing range
S_APPR_DATE for ZSWAPHISTORY- APPR_DATE Default to yesterdays date
S_QUAN for ZSWAPHISTORY-quan
2) Validate the fields entered in the selection screen.
3) Check the user authorizations for this report.
4) Select the entries from the table ZSWAPHISTORY into an internal table based on the input from the selection screen and the value of the field ZSWAPHISTORY -STATUS is APPROVED.
5) Then select the MRP Controller ID (DISPO) from the Table MARC for all entries in the internal table where MARC-MATNR equals to the internal table -material number.
6) Move the field value of MRP Controller ID (DISPO) into the final internal table for the corresponding entries.
7) Declare the Filed Catalogue with the fields that are to be displayed in the ALV
Please help to create this , iam new to this area.
Thanks
AliHi
See the sample code of ALV and do accordingly
Since you are using a Z table it is not clear to create
report ZRGRIRNA no standard page heading
line-count 65
line-size 255
message-id mm.
GR IR Detail Report *
Description : The output has to be displayed
in the ALV Grid format with the Selection *
screen appearing on the output. In The Output *
Subtotals for Vendor, Plant, Period, Material,*
Valuation Class, Purchase Order,Cost Center, *
Cost Element and Receipt Date are displayed *
after sorting the data by same fields. *
Declaration for Tables
tables: t001, " Company Codes
t001w, " Plants/Branches
lfa1, " Vendor Master
ska1, " GL Account Master
mara, " Material Master
mbew, " Material Valuation
ekko, " PO Header Data
cska, " Cost Elements
csks, " Cost Centers
bsis, " GL Accounts: Open Items Data
bkpf. " Accounting Doc: Header Data
Type-pools
Type pools for ALV display
type-pools : slis.
Global variables
data: g_repid like sy-repid,
g_exit type c,
g_events type slis_t_event,
g_list_top_of_page type slis_t_listheader,
g_exit_caused_by_caller,
g_exit_caused_by_user type slis_exit_by_user,
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_variant like disvariant,
g_save.
Declaration for Constants
constants : c_x type c value 'X', " Flag
c_c type c value 'C', " Flag
c_l type c value 'L', " Flag
c_a type c value 'A', " Line Type
c_h type c value 'H', " Dr/Cr
c_s type c value 'S', " Line Type
c_mkpf(4) type c value 'MKPF'. " Table
Declaration of Internal Tables
Internal Table for BSIS Table data
data: begin of i_bsis occurs 0,
bukrs like bsis-bukrs, " Company Code
hkont like bsis-hkont, " GR IR Account
gjahr like bsis-gjahr, " Fiscal Year
belnr like bsis-belnr, " Acc Document
buzei like bsis-buzei, " Item No
budat like bsis-budat, " Receipt Date(Posting)
monat like bsis-monat, " Period
end of i_bsis.
Internal Table for BSEG Table data
data: begin of i_bseg occurs 0,
bukrs like bsis-bukrs, " Company Code
belnr like bsis-belnr, " Acc Document
buzei like bsis-buzei, " Item No
gjahr like bsis-gjahr, " Fiscal Year
shkzg like bseg-shkzg, " Dr/Cr Indicator
lifnr like bseg-lifnr, " Vendor Code
matnr like bseg-matnr, " Material No
ebeln like bseg-ebeln, " Purchase Order
ebelp like bseg-ebelp, " PO Item
werks like bseg-werks, " Plant
menge like bseg-menge, " PO Quantity
meins like bseg-meins, " UOM
dmbtr like bseg-dmbtr, " Amount in Local Currency
wrbtr like bseg-wrbtr, " Amount in Trans.Currency
end of i_bseg.
Internal Table for BKPF Table data
data: begin of i_bkpf occurs 0,
bukrs like bkpf-bukrs, " Company Code
belnr like bkpf-belnr, " Acc Document
gjahr like bkpf-gjahr, " Fiscal Year
waers like bkpf-waers, " Trans. Currency
awkey like bkpf-awkey, " Object Key
awtyp like bkpf-awtyp, " Reference Procedure
end of i_bkpf.
Internal Table for MSEG Table data
data: begin of i_mseg occurs 0,
mblnr like mseg-mblnr, " Material Document
mjahr like mseg-mjahr, " Fiscal Year
bwart like mseg-bwart, " Movement Type
matnr like mseg-matnr, " Material No
menge like mseg-menge, " PO Quantity
meins like mseg-meins, " UOM
end of i_mseg.
Internal Table for MBEW Table data
data: begin of i_mbew occurs 0,
matnr like mbew-matnr, " Material No
werks like mbew-bwkey, " Plant
bklas like mbew-bklas, " Valuation Class
end of i_mbew.
Internal Table for EKPO Table data
data: begin of i_ekpo occurs 0,
ebeln like ekpo-ebeln, " Purchase Order
ebelp like ekpo-ebelp, " PO Item
matnr like ekpo-matnr, " Material No
txz01 like ekpo-txz01, " Material Text
end of i_ekpo.
Internal Table for EKKN Table data
data: begin of i_ekkn occurs 0,
ebeln like ekkn-ebeln, " Purchase Order
ebelp like ekkn-ebelp, " PO Item
kostl like ekkn-kostl, " Cost Center
sakto like ekkn-sakto, " Cost Element
end of i_ekkn.
Internal Table for LFA1 Table data
data: begin of i_lfa1 occurs 0,
lifnr like lfa1-lifnr, " Vendor
name1 like lfa1-name1, " Name
end of i_lfa1.
Declaration of Output Internal Table
data: begin of i_final occurs 0,
lifnr like lfa1-lifnr, " Vendor
werks like bseg-werks, " Plant
monat like bsis-monat, " Period
matnr like mara-matnr, " Material Number
bklas like mbew-bklas, " Val Class
ebeln like bseg-ebeln, " PO
kostl like ekkn-kostl, " Cost Center
sakto like ekkn-sakto, " Cost Element
budat like bsis-budat, " Rec. Date
name1 like lfa1-name1, " Vendor Name
belnr like bsis-belnr, " FI Document
bwart like mseg-bwart, " Movement Type
txz01 like ekpo-txz01, " Material Text
menge like bseg-menge, " Quantity
meins like bseg-meins, " UOM
dmbtr like bseg-dmbtr, " Local Amount
wrbtr like bseg-wrbtr, " Tran.Amount
waers like bkpf-waers, " Tran.Currency
status type c, " Material Status
end of i_final.
Internal table to hold field catgory data
data: i_fldcat type slis_t_fieldcat_alv. " Table - field catgory
Internal table to hold Sort/Subtotals criteria data
data: i_sort type slis_t_sortinfo_alv. " Table - sort/Subtotals
Structure
data: x_layout type slis_layout_alv, " Structure-layout
x_fldcat like line of i_fldcat, " Structure-field catagory
x_sort like line of i_sort. " Structure-Sort/Subtotals
Selection screen
selection-screen : begin of block b1 with frame title text-000.
parameters:
p_bukrs like t001-bukrs obligatory, " Company Code
p_grira like ska1-saknr default '0241101000' obligatory. " Account
select-options:
s_budat for bkpf-budat, " Posting Date
s_werks for t001w-werks, " Plant
s_lifnr for lfa1-lifnr, " Vendor
s_matnr for mara-matnr, " Material Number
s_kostl for csks-kostl, " Cost Center
s_kstar for cska-kstar, " Cost Element
s_ebeln for ekko-ebeln, " Purchase Order
s_monat for bsis-monat. " Period
selection-screen skip.
parameters:
p_incmt as checkbox default 'X',
p_incnm as checkbox default 'X'.
selection-screen end of block b1.
Initialization
initialization.
g_repid = sy-repid.
perform layout_init using x_layout.
perform eventtab_build using g_events[].
g_variant-report = g_repid.
g_save = 'A'.
At selection screen
at selection-screen.
Validation of Selection Screen Fields
perform validate_screen.
Start of selection
start-of-selection.
Read Data from Database Tables
perform read_data.
End of selection
end-of-selection.
Build layout report layout.
perform populate_layout_stucture.
Perform build_field_catalog and Sort Table
perform build_field_catalog.
perform build_sort_totals.
List Header for Top-Of-Page
perform comment_build using g_list_top_of_page[].
Call list viewer function module
perform call_list_viewer .
****************Form - Routines**************************************
Form : layout_init
Description : Form to Build layout for list display
form layout_init using rs_layout type slis_layout_alv.
rs_layout-detail_popup = c_x.
endform.
Form : Eventtab_build
Description : Registration of events to happen during list display
form eventtab_build using rt_events type slis_t_event.
Registration of events to happen during list display
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = rt_events.
read table rt_events with key name = slis_ev_top_of_page
into ls_event.
if sy-subrc = 0.
move g_top_of_page to ls_event-form.
append ls_event to rt_events.
endif.
endform. "eventtab_build
Form : top_of_page
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
I_LOGO = 'ENJOYSAP_LOGO'
it_list_commentary = g_list_top_of_page.
endform.
Form validate_screen
Validation of Selection Screen fields
form validate_screen.
Validation of Company Code
clear t001.
if not p_bukrs is initial.
select single bukrs
into t001-bukrs
from t001
where bukrs eq p_bukrs.
if sy-subrc <> 0.
message e899 with 'Enter Valid Company Code'(012).
endif.
endif.
Validation of GL Account (GR/IR)
clear ska1.
if not p_grira is initial.
select saknr
into ska1-saknr
from ska1
up to 1 rows
where saknr eq p_grira.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid GR/IR Account'(013).
endif.
endif.
Validation of Vendor Code
clear lfa1.
if not s_lifnr[] is initial.
select single lifnr
into lfa1-lifnr
from lfa1
where lifnr in s_lifnr.
if sy-subrc <> 0.
message e899 with 'Enter Valid Vendor'(001).
endif.
endif.
Validation of Plant Code
clear t001w.
if not s_werks[] is initial.
select single werks
into t001w-werks
from t001w
where werks in s_werks.
if sy-subrc <> 0.
message e899 with 'Enter Valid Plant'(014).
endif.
endif.
Validation of Material Code
clear mara.
if not s_matnr[] is initial.
select single matnr
into mara-matnr
from mara
where matnr in s_matnr.
if sy-subrc <> 0.
message e899 with 'Enter Valid Material'(015).
endif.
endif.
Validation of Purchase Order
clear ekko.
if not s_ebeln[] is initial.
select single ebeln
into ekko-ebeln
from ekko
where ebeln in s_ebeln.
if sy-subrc <> 0.
message e899 with 'Enter Valid Purchase Order'(016).
endif.
endif.
Validation of Cost Center
clear csks.
if not s_kostl[] is initial.
select kostl
into csks-kostl
from csks
up to 1 rows
where kostl in s_kostl.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Cost Center'(017).
endif.
endif.
Validation of Cost Element
clear cska.
if not s_kstar[] is initial.
select kstar
into cska-kstar
from cska
up to 1 rows
where kstar in s_kstar.
endselect.
if sy-subrc <> 0.
message e899 with 'Enter Valid Cost Element'(018).
endif.
endif.
endform. "validate_screen
*& Form read_data
Read the Data from the database Tables
form read_data.
Get the Accounting Documents for the GR/IR Account Entered on
Selection Screen
clear i_bsis.
refresh i_bsis.
select bukrs " Company Code
hkont " GR IR Account
gjahr " Fiscal Year
belnr " Acc Document
buzei " Item No
budat " Receipt Date(Posting)
monat " Period
into table i_bsis
from bsis
where bukrs = p_bukrs
and hkont = p_grira
and budat in s_budat
and monat in s_monat .
if sy-subrc <> 0.
message i899 with 'No data found'(043).
g_exit = c_x.
stop.
endif.
sort i_bsis by bukrs hkont gjahr belnr buzei.
Get the Vendor,PO,Material,Qty details from BSEG Table
if not i_bsis[] is initial.
clear i_bseg.
refresh i_bseg.
select bukrs " Company Code
belnr " Acc Document
buzei " Item No
gjahr " Fiscal Year
shkzg " Dr/Cr Indicator
lifnr " Vendor Code
matnr " Material No
ebeln " Purchase Order
ebelp " PO Item
werks " Plant
menge " PO Quantity
meins " UOM
dmbtr " Amount in Local Currency
wrbtr " Amount in Trans.Currency
into table i_bseg
from bseg
for all entries in i_bsis
where bukrs = p_bukrs
and belnr = i_bsis-belnr
and gjahr = i_bsis-gjahr
and buzei = i_bsis-buzei
and lifnr in s_lifnr
and werks in s_werks
and matnr in s_matnr
and ebeln in s_ebeln.
sort i_bseg by bukrs belnr buzei gjahr.
Select the Trans.Currency from BKPF Table
clear i_bkpf.
refresh i_bkpf.
select bukrs " Company Code
belnr " Acc Document
gjahr " Fiscal Year
waers " Trans. Currency
awkey " Object Key
awtyp " Reference Procedure
into table i_bkpf
from bkpf
for all entries in i_bsis
where bukrs = p_bukrs
and belnr = i_bsis-belnr
and gjahr = i_bsis-gjahr.
endif.
sort i_bkpf by bukrs belnr gjahr.
Get the Quantity and UOM of Material from MSEG Table
if not i_bkpf[] is initial.
clear i_mseg.
refresh i_mseg.
select mblnr " Material Document
mjahr " Fiscal Year
bwart " Movement Type
matnr " Material No
menge " PO Quantity
meins " UOM
into table i_mseg
from mseg
for all entries in i_bkpf
where mblnr = i_bkpf-awkey(10).
endif.
sort i_mseg by mblnr mjahr.
Get the Material And Description from EKPO Table
if not i_bseg[] is initial.
clear i_ekpo.
refresh i_ekpo.
select ebeln " Purchase Order
ebelp " PO Item
matnr " Material No
txz01 " Material Text
into table i_ekpo
from ekpo
for all entries in i_bseg
where ebeln = i_bseg-ebeln
and ebelp = i_bseg-ebelp.
sort i_ekpo by ebeln ebelp.
Get the Valuation Class from MBEW Table
clear i_mbew.
refresh i_mbew.
select matnr " Material No
bwkey " Plant
bklas " Valuation Class
into table i_mbew
from mbew
for all entries in i_bseg
where matnr = i_bseg-matnr
and bwkey = i_bseg-werks.
sort i_mbew by matnr werks.
Get the Cost Center and Cost Element of the PO from EKKN Table
clear i_ekkn.
refresh i_ekkn.
select ebeln " Purchase Order
ebelp " PO Item
kostl " Cost Center
sakto " Cost Element
into table i_ekkn
from ekkn
for all entries in i_bseg
where ebeln = i_bseg-ebeln
and ebelp = i_bseg-ebelp
and kostl in s_kostl
and sakto in s_kstar.
sort i_ekkn by ebeln ebelp.
Get the Vendor Name
clear i_lfa1.
refresh i_lfa1.
select lifnr " Vendor
name1 " Name
into table i_lfa1
from lfa1
for all entries in i_bseg
where lifnr = i_bseg-lifnr.
endif.
sort i_lfa1 by lifnr.
Move the data to Final Output Internal Table
loop at i_bsis.
i_final-belnr = i_bsis-belnr. " FI Document
i_final-monat = i_bsis-monat. " Period
i_final-budat = i_bsis-budat. " Rec. Date
Read the Transaction Currency from BKPF Internal Table
read table i_bkpf with key bukrs = i_bsis-bukrs
belnr = i_bsis-belnr
gjahr = i_bsis-gjahr
binary search.
if sy-subrc = 0.
i_final-waers = i_bkpf-waers. " Tran.Currency
Read the Movement Type for all Material Related
Documents from MSEG Internal Table
if i_bkpf-awtyp = c_mkpf.
read table i_mseg with key mblnr = i_bkpf-awkey(10)
mjahr = i_bkpf-awkey+10(4).
if sy-subrc = 0.
i_final-bwart = i_mseg-bwart. " Movement Type
endif.
endif.
endif.
Read Vendor, Plant, PO Document, Local And Trans.Amounts
from BSEG Internal Table
read table i_bseg with key bukrs = i_bsis-bukrs
belnr = i_bsis-belnr
gjahr = i_bsis-gjahr
buzei = i_bsis-buzei
binary search.
if sy-subrc = 0.
i_final-lifnr = i_bseg-lifnr. " Vendor
i_final-werks = i_bseg-werks. " Plant
i_final-ebeln = i_bseg-ebeln. " PO
i_final-dmbtr = i_bseg-dmbtr. " Local Amount
i_final-wrbtr = i_bseg-wrbtr. " Tran.Amount
i_final-menge = i_bseg-menge. " Quantity
i_final-meins = i_bseg-meins. " UOM
For Credit Indicator(SHKZG = H) amounts should be (-)ve
if i_bseg-shkzg = c_h.
i_final-dmbtr = i_final-dmbtr * -1.
i_final-wrbtr = i_final-wrbtr * -1.
i_final-menge = i_final-menge * -1.
endif.
Read the Material and its Description from EKPO Internal Table
read table i_ekpo with key ebeln = i_bseg-ebeln
ebelp = i_bseg-ebelp
matnr = i_bseg-matnr
binary search.
if sy-subrc = 0.
i_final-matnr = i_ekpo-matnr. " Material Number
i_final-txz01 = i_ekpo-txz01. " Material Text
Populate the Material Status depending on the Input Checkbox
On Selection Screen
if not i_ekpo-matnr is initial.
i_final-status = c_x.
endif.
endif.
Read the PO related Cost Element and Cost Centers
from EKKN Internal Table
read table i_ekkn with key ebeln = i_bseg-ebeln
ebelp = i_bseg-ebelp
binary search.
if sy-subrc = 0.
i_final-kostl = i_ekkn-kostl. " Cost Center
i_final-sakto = i_ekkn-sakto. " Cost Element
endif.
Read the Valuation Class from MBEW Internal Table
read table i_mbew with key matnr = i_bseg-matnr
werks = i_bseg-werks
binary search.
if sy-subrc = 0.
i_final-bklas = i_mbew-bklas. " Val Class
endif.
Read the Vendor Name from LFA1 Internal Table
read table i_lfa1 with key lifnr = i_bseg-lifnr
binary search.
if sy-subrc = 0.
i_final-name1 = i_lfa1-name1. " Vendor Name
endif.
endif.
append i_final.
clear i_final.
endloop.
sort i_final by lifnr werks monat matnr.
Depending on the check Box Selected display the data
if p_incmt = c_x and p_incnm ne c_x.
delete i_final where matnr eq space.
elseif p_incnm = c_x and p_incmt ne c_x.
delete i_final where matnr ne space.
endif.
endform. "Read Data
Form : populate_layout_stucture
Description : Populating the layout structure
form populate_layout_stucture.
clear x_layout .
Layout properties
x_layout-zebra = c_x.
x_layout-detail_popup = c_x.
x_layout-detail_initial_lines = c_x.
x_layout-colwidth_optimize = c_x.
endform. " populate_layout_stucture
Form : build_field_catalog
Description : Building the field catalog data
form build_field_catalog.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = g_repid
i_internal_tabname = 'I_FINAL'
i_inclname = g_repid
changing
ct_fieldcat = i_fldcat
exceptions
inconsistent_interface = 1
program_error = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Getting the Header text for the coloums
loop at i_fldcat into x_fldcat where fieldname = 'LIFNR' or
fieldname = 'NAME1' or
fieldname = 'WERKS' or
fieldname = 'MONAT' or
fieldname = 'MATNR' or
fieldname = 'BKLAS' or
fieldname = 'EBELN' or
fieldname = 'KOSTL' or
fieldname = 'SAKTO' or
fieldname = 'BUDAT' or
fieldname = 'BELNR' or
fieldname = 'BWART' or
fieldname = 'TXZ01' or
fieldname = 'MENGE' or
fieldname = 'MEINS' or
fieldname = 'DMBTR' or
fieldname = 'WRBTR' or
fieldname = 'WAERS' or
fieldname = 'STATUS'.
if x_fldcat-fieldname = 'LIFNR'.
x_fldcat-seltext_l = 'Vendor'(003).
x_fldcat-seltext_m = 'Vendor'(003).
x_fldcat-seltext_s = 'Vendor'(003).
x_fldcat-reptext_ddic = 'Vendor'(003).
x_fldcat-inttype = c_c.
endif.
if x_fldcat-fieldname = 'NAME1'.
x_fldcat-seltext_l = 'Vendor Name'(002).
x_fldcat-seltext_m = 'Vendor Name'(002).
x_fldcat-seltext_s = 'Vendor Name'(002).
x_fldcat-reptext_ddic = 'Vendor Name'(002).
x_fldcat-inttype = c_c.
endif.
if x_fldcat-fieldname = 'WERKS'.
x_fldcat-seltext_l = 'Plant'(010).
x_fldcat-seltext_m = 'Plant'(010).
x_fldcat-seltext_s = 'Plant'(010).
x_fldcat-reptext_ddic = 'Plant'(010).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'MONAT'.
x_fldcat-seltext_l = 'Period'(011).
x_fldcat-seltext_m = 'Period'(011).
x_fldcat-seltext_s = 'Period'(011).
x_fldcat-reptext_ddic = 'Period'(011).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'MATNR'.
x_fldcat-seltext_l = 'Material'(004).
x_fldcat-seltext_m = 'Material'(004).
x_fldcat-seltext_s = 'Material'(004).
x_fldcat-reptext_ddic = 'Material'(004).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'BKLAS'.
x_fldcat-seltext_l = 'Valuation Class'(009).
x_fldcat-seltext_m = 'Valuation Class'(009).
x_fldcat-seltext_s = 'Valuation Class'(009).
x_fldcat-reptext_ddic = 'Valuation Class'(009).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'EBELN'.
x_fldcat-seltext_l = 'Purchase Order'(005).
x_fldcat-seltext_m = 'Purchase Order'(005).
x_fldcat-seltext_s = 'Purchase Order'(005).
x_fldcat-reptext_ddic = 'Purchase Order'(005).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'KOSTL'.
x_fldcat-seltext_l = 'Cost Center'(006).
x_fldcat-seltext_m = 'Cost Center'(006).
x_fldcat-seltext_s = 'Cost Center'(006).
x_fldcat-reptext_ddic = 'Cost Center'(006).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'SAKTO'.
x_fldcat-seltext_l = 'Cost Element'(007).
x_fldcat-seltext_m = 'Cost Element'(007).
x_fldcat-seltext_s = 'Cost Element'(007).
x_fldcat-reptext_ddic = 'Cost Element'(007).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'BUDAT'.
x_fldcat-seltext_l = 'Receipt Date'(008).
x_fldcat-seltext_m = 'Receipt Date'(008).
x_fldcat-seltext_s = 'Receipt Date'(008).
x_fldcat-reptext_ddic = 'Receipt Date'(008).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'BELNR'.
x_fldcat-seltext_l = 'Acc.Document'(100).
x_fldcat-seltext_m = 'Acc.Document'(100).
x_fldcat-seltext_s = 'Acc.Document'(100).
x_fldcat-reptext_ddic = 'Acc.Document'(100).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'BWART'.
x_fldcat-seltext_l = 'Movement Type'(101).
x_fldcat-seltext_m = 'Movement Type'(101).
x_fldcat-seltext_s = 'Movement Type'(101).
x_fldcat-reptext_ddic = 'Movement Type'(101).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'TXZ01'.
x_fldcat-seltext_l = 'Material Text'(102).
x_fldcat-seltext_m = 'Material Text'(102).
x_fldcat-seltext_s = 'Material Text'(102).
x_fldcat-reptext_ddic = 'Material Text'(102).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'MENGE'.
x_fldcat-seltext_l = 'Quantity'(103).
x_fldcat-seltext_m = 'Quantity'(103).
x_fldcat-seltext_s = 'Quantity'(103).
x_fldcat-reptext_ddic = 'Quantity'(103).
x_fldcat-ddictxt = c_l.
x_fldcat-do_sum = c_x.
endif.
if x_fldcat-fieldname = 'MEINS'.
x_fldcat-seltext_l = 'UOM'(104).
x_fldcat-seltext_m = 'UOM'(104).
x_fldcat-seltext_s = 'UOM'(104).
x_fldcat-reptext_ddic = 'UOM'(104).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'DMBTR'.
x_fldcat-seltext_l = 'Amount in Local Curr'(105).
x_fldcat-seltext_m = 'Amount in Local Curr'(105).
x_fldcat-seltext_s = 'Amount in Local Curr'(105).
x_fldcat-reptext_ddic = 'Amount in Local Curr'(105).
x_fldcat-ddictxt = c_l.
x_fldcat-do_sum = c_x.
endif.
if x_fldcat-fieldname = 'WRBTR'.
x_fldcat-seltext_l = 'Amount in Trans.Curr'(106).
x_fldcat-seltext_m = 'Amount in Trans.Curr'(106).
x_fldcat-seltext_s = 'Amount in Trans.Curr'(106).
x_fldcat-reptext_ddic = 'Amount in Trans.Curr'(106).
x_fldcat-ddictxt = c_l.
x_fldcat-do_sum = c_x.
endif.
if x_fldcat-fieldname = 'WAERS'.
x_fldcat-seltext_l = 'Trans.Currency'(107).
x_fldcat-seltext_m = 'Trans.Currency'(107).
x_fldcat-seltext_s = 'Trans.Currency'(107).
x_fldcat-reptext_ddic = 'Trans.Currency'(107).
x_fldcat-ddictxt = c_l.
endif.
if x_fldcat-fieldname = 'STATUS'.
x_fldcat-seltext_l = 'Material Status'(019).
x_fldcat-seltext_m = 'Material Status'(019).
x_fldcat-seltext_s = 'Material Status'(019).
x_fldcat-reptext_ddic = 'Material Status'(019).
x_fldcat-ddictxt = c_l.
endif.
modify i_fldcat from x_fldcat index sy-tabix.
endloop.
endform. " build_field_catalog
Form : build_sort_totals
Description : Building the Criteria for Sort/Subtotals
form build_sort_totals.
x_sort-fieldname = 'LIFNR'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 1.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'WERKS'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 2.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'MONAT'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 3.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'MATNR'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 4.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'BKLAS'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 5.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'EBELN'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 6.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'KOSTL'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 7.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'SAKTO'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 8.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
x_sort-fieldname = 'BUDAT'.
x_sort-tabname = 'I_FINAL'.
x_sort-spos = 9.
x_sort-up = c_x.
x_sort-subtot = c_x.
append x_sort to i_sort.
clear x_sort.
endform. " build_sort_totals
Form : comment_build
Description : This form is used to display the Report Header(ALV)
form comment_build using lt_top_of_page type
slis_t_listheader.
data: l_line type slis_listheader,
l_heading1 like rs38m-repti,
l_date(10), l_time(8).
clear l_line.
l_heading1 = 'GR/IR DETAIL REPORT'(021).
g_repid = sy-repid.
write sy-uzeit to l_time.
write sy-datum to l_date.
l_line-typ = c_h.
move l_heading1 to l_line-info.
append l_line to lt_top_of_page.
clear l_line.
l_line-typ = c_s.
concatenate 'System:'(023) sy-sysid
'Date:'(024) l_date
' Time:'(025)
l_time into l_line-info.
append l_line to lt_top_of_page.
concatenate 'Report:'(026) g_repid
' User:'(027) sy-uname into
l_line-info.
append l_line to lt_top_of_page.
l_line-typ = c_a.
move 'SELECTION CRITERIA:'(028) to l_line-info.
append l_line to lt_top_of_page.
concatenate ' Company Code : '(029)
p_bukrs into l_line-info.
append l_line to lt_top_of_page.
concatenate ' GR/IR Account: '(030)
p_grira into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Posting Date : '(032) s_budat-low
' To: '(031) s_budat-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Plant : '(033) s_werks-low
' To: '(031) s_werks-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Vendor: '(034) s_lifnr-low
' To: '(031) s_lifnr-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Material: '(035) s_matnr-low
' To: '(031) s_matnr-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Cost Center : '(036) s_kostl-low
' To: '(031) s_kostl-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Cost Element: '(037) s_kstar-low
' To: '(031) s_kstar-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Purchase Order: '(038) s_ebeln-low
' To: '(031) s_ebeln-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Period : '(039) s_monat-low
' To: '(031) s_monat-high into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Include Material Items: '(040)
p_incmt into l_line-info.
append l_line to lt_top_of_page.
concatenate ' Include Non-Material Items: '(041)
p_incnm into l_line-info.
append l_line to lt_top_of_page.
endform.
Form : call_list_viewer
Description : This form is used to display the grid through ALV
form call_list_viewer.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
is_layout = x_layout
it_fieldcat = i_fldcat[]
i_default = c_x
it_sort = i_sort[]
i_save = g_save
is_variant = g_variant
it_events = g_events[]
importing
e_exit_caused_by_caller = g_exit_caused_by_caller
es_exit_caused_by_user = g_exit_caused_by_user
tables
t_outtab = i_final
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
write: / 'Problem in calling the ALV report'(042).
endif.
endform. " call_list_viewer
Regards
Anji -
How to handle blank time value in excel download in ALV. Please help
Hi Experts,
I have a ABAP webdynpro report which contains a ALV grid output. The ALV table has a time field (create_time of type tims).
The problem is when the create_time value is initial (00:00:00 by default) it displays 00:00:00 in the ALV.
When I export the contents to excel then there it shows the same value as 12:00:00 AM.
How can I avoid this programmatically? Actually when time is initial then I want to display as blank instead of 00:00:00.
For this if I change the data type of this field to CHAR08 then it displays the value as 0 (if initial) and 140523 (if time has some value or its not initial) instead if 14:05:23.
I don't know if there is any better way to handle this.
Please help.
Thanks & Regards
GopalMy suggestion is that you make the context attribute a type string. Then when you populate the data into the internal table that is bound to the context you perform a write statement on the date field. Here is some psydo-code.
if <ls_data>-time is initial.
clear <ls_output>-time.
else.
write <ls_data>-time to <ls_output>-time.
endif.
This way when the time is inital you can display nothing instead of the 00:00:00. This should also keep Excel from knowing that this column is a time field. To Excel it will just be a string and it should display whatever text you placed into the field.
Of course this means that filtering and sorting on this field won't work right. Those operations will be befored without knowledge this is actually a time field. -
Problem in web enabling ALV ABAP report via ITS. Please help!
Hi Experts,
I have a report that has a selection screen. On executing the selection screen an ALV output loads displaying data based on the selection criteria.
I have web enabled it via ITS. I have used SICF transaction.
When I run the internet service I can see only the selection screen. There is no execute button also. I also see a different layout then if my report has only selection screen. If my report has only selection screen then my page shows all the buttons including execute.
How to resolve this problem? Please help!
Thanks
Gopalsince you mentioned about SICF, i assume you are using integrated ITS.
<i>When I run the internet service I can see only the selection screen. There is no execute button also</i>
you wont see the execute icon, instead you will see a button with "execute" text. (you can also use F8 key)
<i>I also see a different layout then if my report has only selection screen. If my report has only selection screen then my page shows all the buttons including execute.</i>
the layout of SAPGUI for HTML is slightly different, if you want (somewhat) similar look of a wingui, either make your transaction as "Easy Web Transaction" or in the url pass ~webtransactiontype=EWT
as a test can you run the following url and see how it looks.
http://waserverhost.domain.com:port/sap/bc/gui/sap/its/webgui?sap-client=<clinetno>&~transaction=<you reports transaction code>
Regards
Raja -
ALV not showing all the rows! Please help!
Hi Experts,
I have webdynpro ALV report and I am using SALV_WD_TABLE as the reusable component. In component controller's WDDOINIT I have written the code for pulling teh data from R/3 table and binding it to ALV table.
In the view's WDDOMODIFYVIEW event I have written the following code to get subtotal and grand total of Qty column based on product column.
I have coded like this:
lr_field_settings ?= l_value.
lr_field = lr_field_settings->get_field( 'PRODUCT' ).
lr_field->if_salv_wd_sort~set_group_aggregation_allowed( ABAP_TRUE ).
lr_field->if_salv_wd_sort~create_sort_rule( ).
l_sortrule = lr_field->if_salv_wd_sort~GET_SORT_RULE( ).
l_sortrule->set_sort_order( if_salv_wd_c_sort=>sort_order_ascending ).
l_sortrule->set_group_aggregation( ABAP_TRUE ).
*...Aggregate Field PRODUCT
lr_field = lr_field_settings->get_field( 'QTY' ).
lr_field->if_salv_wd_aggr~create_aggr_rule( ).
lr_aggr_rule = lr_field->if_salv_wd_aggr~get_aggr_rule( ).
lr_aggr_rule->set_aggregation_type( if_salv_wd_c_aggregation=>aggrtype_total ).
It is working now but my ALV table is not showing all the rows. I have 6 products and it is showing from product 2. But it is calculating grand total and subtotal correctly. I am not able to see the first product row and subtotal for that. Even if I click on the ^ icon in the ALV table below it is not showing all the rows.
What could be the problem?
Please help
Thanks
Gopaldid you somehow manage to set the "first visible row" property on table object
to 2. Only thing I can think of that could cause this effect.
Cheers
Phil -
≥≤ Symbols output in different sizes. Please help!
Working in Quark Xpress 9.5.1, on OS 10.8.4 using Font Agent Pro 5.028...
I am having difficulty with the the font Helvetica Condensed. Sometimes the greater than/equal (≥) or less than/equal signs (≤) are different sizes. We have three different macs all set up with same software/versions and using the same font library. Each one is outputting differently. We have struggled with this same issue through various OS and various versions of Quark and Font Agent Pro.
I am not very knowledgeable about all of the things that can go wrong with fonts - and I just don't know how to get to the source of our issue.
This happens using both Adobe and Allied Fonts.
Please help!The usual problem is that at print time, your printer does not have the exact font available, and substitutes a different font that it thinks should be comparable. The letters sometimes work, but special symbols are rarely the same in all aspects in different fonts.
If there is a Printer option to do so, tell it not to do any Font substitution. -
How to hide the grid lines between two rows in a ALv? Please help!
Hi Experts,
I have a ABAP ALV(reuse alv grid FM) report.
The last field in the ALV is "Description" which can contain data of size more than 130 chars.
Since the max field length in ALV grid is 130 chars hence I am splitting this field value whenever the field length is more than 130 chars.
After splitting I am generating duplicate rows but with different "Description" field values ( each contains the splitted values".
For example:
Name| City | Description |
Hari|HK |Employee responsible for time management |
Hari|HK |and issue resolution |
Now I want to hide the grid line between these two rows
and just for Description field.
In other words I want ALV to display like this:
Name| City | Description |
Hari|HK |Employee responsible for time management |
Hari|HK |and issue resolution |
How can I acheive this?
Please provide some sample code.
Please help. I will be really greatfull to your help.
Thanks
GopalHi Rich,
If that is the case then atleast how can I hide the complete row grid line?
Please give some sample code.
Thanks
Gopal -
[Urgent] Please help me verify the debug output on E&M interface.
Hello,
I've got a problem when trying to make a call from the E&M interface on the router to PABX(Panasonic). I've got any dail-tone back. Please help me verify the logging output. It seemed to already send the digits.
###########################debug vpm signal####################
.Sep 20 06:43:43.911: htsp_process_event: [0/0/0, EM_ONHOOK, E_DSP_SIG_1100]em_onhook_offhook htsp_setup_ind
.Sep 20 06:43:43.911: [0/0/0] get_local_station_id calling num= calling name= calling time=09/20 13:43 orig called=
.Sep 20 06:43:43.915: htsp_timer - 3000 msec
.Sep 20 06:43:43.923: htsp_process_event: [0/0/0, EM_WAIT_SETUP_ACK, E_HTSP_SETUP_ACK]em_wait_setup_ack_get_ack
.Sep 20 06:43:43.923: htsp_timer_stop interdigit timer cfgd to 3000
.Sep 20 06:43:44.183: htsp_digit_ready: digit = 38
.Sep 20 06:43:44.183: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
.Sep 20 06:43:44.443: htsp_digit_ready: digit = 39
.Sep 20 06:43:44.443: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
.Sep 20 06:43:44.724: htsp_digit_ready: digit = 30
.Sep 20 06:43:44.724: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
.Sep 20 06:43:44.996: htsp_digit_ready: digit = 38
.Sep 20 06:43:44.996: htsp_process_event: [0/0/0, EM_OFFHOOK, E_VTSP_DIGIT]em_offhook_digit_collect
.Sep 20 06:43:45.004: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_PROCEEDING]
.Sep 20 06:43:46.224: htsp_call_bridged invokedhtsp_progress_notify
.Sep 20 06:43:46.228: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_VOICE_CUT_THROUGH]em_offhook_voice_cut
.Sep 20 06:43:51.184: htsp_process_event: [0/0/0, EM_OFFHOOK, E_DSP_SIG_0000]em_offhook_onhook, HF duration=480
.Sep 20 06:43:51.184: mlpp_detection_enabled MLPP is not supported on this interface
.Sep 20 06:43:51.184: em_start_timer: 480 ms
.Sep 20 06:43:51.184: htsp_timer - 480 msec
.Sep 20 06:43:51.664: htsp_process_event: [0/0/0, EM_OFFHOOK, E_HTSP_EVENT_TIMER]em_offhook_wait_release_req
.Sep 20 06:43:51.664: htsp_timer_stop
.Sep 20 06:43:51.664: htsp_timer_stop2
.Sep 20 06:43:51.676: htsp_process_event: [0/0/0, EM_RLS_WAIT_RLS_REQ, E_HTSP_RELEASE_REQ]em_wait_rls_release em_onhook (0)
.Sep 20 06:43:51.676: [0/0/0] set signal state = 0x0 timestamp = 0
.Sep 20 06:43:51.676: em_start_timer: 400 ms
.Sep 20 06:43:51.676: htsp_timer - 400 msec
.Sep 20 06:43:52.076: htsp_process_event: [0/0/0, EM_WAIT_CLR_DONE, E_HTSP_EVENT_TIMER]em_clr_done
.Sep 20 06:43:52.076: htsp_process_event: [0/0/0, EM_ONHOOK, E_DSP_SIG_0000]em_onhook_onhook
##########################debug vpip vtsp all####################
.Sep 20 07:02:51.640: //44/D16BA46380FC/VTSP:(0/0/1):-1:-1:-1/vtsp_timer_stop:
Timer Stop Time=23417277
.Sep 20 07:02:51.640: //-1/D16BA46380FC/VTSP:(0/0/1):-1:-1:-1/vtsp_free_cdb:
CDB=0x47575388
.Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_allocate_cdb:
CDB=0x47574E08
.Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_insert_cdb:
.Sep 20 07:02:55.416: //-1/xxxxxxxxxxxx/VTSP:(0/0/1):-1:-1:-1/vtsp_process_event:
[state:INVALID STATE MACHINE, event:E_CC_SETUP_REQ]
.Sep 20 07:02:55.416: htsp_timer_stop3
.Sep 20 07:02:55.416: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_og_call_req:
Echo Cancel=TRUE, Gain Control=0
Auto Gain Control=FALSE, Dual Tone Detect Mask=0x0, Seq Tone Detect=FALSE
.Sep 20 07:02:55.416: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_do_call_setup_req:
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_opened_cb:
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQ_PEND, event:E_VTSP_DSM_OPEN_SUCCESS]
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_req_pend_succ:
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_request_call:
Mode=0, Peer=2
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_create_call_active_on_setup_req:
Target Carrier ID=
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_create_call_active_on_setup_req:
Source Carrier ID=htsp_setup_req
.Sep 20 07:02:55.420: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_request_call:
Progress Indication=3, Info Trans Capability=16
Calling Number=, TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed
Called Number=7744, TON=Unknown, NPI=ISDN
.Sep 20 07:02:55.420: htsp_process_event: [0/0/1, EM_ONHOOK, E_HTSP_SETUP_REQ]em_onhook_setup
.Sep 20 07:02:55.424: em_offhook (0)
.Sep 20 07:02:55.424: [0/0/1] set signal state = 0x8 timestamp = 0
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQUEST, event:E_TSP_PROCEEDING]
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_proceeding:
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer:
Timer Start Time=23417655, Timer Value=10000(ms)
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_proceeding:
Peer=2, Progress Indication=0, Return Code=2
.Sep 20 07:02:55.424: htsp_process_event: [0/0/1, EM_BRANCH, EM_EVENT_IMMEDIATE]em_branch_immediate
.Sep 20 07:02:55.424: htsp_timer - 300 msec
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_opened_cb:
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_NULL, event:E_VTSP_DSM_OPEN_SUCCESS]
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_req_wait_pend_success:
Event=72
.Sep 20 07:02:55.424: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer_stop:
Timer Stop Time=23417655
.Sep 20 07:02:55.724: htsp_process_event: [0/0/1, EM_WAIT_DIALOUT_DELAY, E_HTSP_EVENT_TIMER]em_imm_send_digits em_send_digits htsp_dial
.Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQ_PROC, event:E_TSP_DIAL]
.Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_dial:
Digits=7744, Tone Mode=0
.Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dial:
.Sep 20 07:02:55.724: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:
Digits To Dial=7744
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_dial_done_cb:
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_DS_DIALING, event:E_VTSP_DSM_DIALING_COMPLETE]
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_dialing:
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:
Digits To Dial=
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_dial_comp:
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/ds_do_dial:exit@556
.Sep 20 07:02:56.568: htsp_process_event: [0/0/1, EM_WAIT_DIAL_DONE, E_DSP_DIALING_DONE]em_offhook_digit_done
.Sep 20 07:02:56.568: htsp_timer_stop2 htsp_progress
.Sep 20 07:02:56.568: htsp_timer2 - 850 msec
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQ_PROC, event:E_TSP_PROGRESS]
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_setup_pend_progress:
Progress Indication=8, Signal Indication=2, cdb->answer_supervision=0
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_ring_noan_timer_start:
Timer Start Time=23417770, No Answer Timer Value=180000(ms)
.Sep 20 07:02:56.568: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_check_cb:
.Sep 20 07:02:56.572: htsp_call_bridged invoked
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_check_cb:exit@1187
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_status_cb:
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_fax_config:
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_fax_config:
Fax Relay=ENABLED
Primary Fax Protocol=CISCO_FAX_RELAY, Fallback Fax Protocol=NONE_FAX_RELAY
Fax Relay CM Suppression :=ENABLED, Fax Parameters Set By=Global Settings
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_fax_feat_param:
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_tty_config:
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_save_tty_config:
Save TTY configuration
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_tty_feat_param:
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_set_tty_feat_param:
Set TTY feat parameters
.Sep 20 07:02:56.572: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQ_PROC, event:E_CC_DO_CAPS_IND]
.Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_peer_event_cb:
Event=E_DSM_CC_CAPS_ACK
.Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQ_PROC, event:E_CC_CAPS_IND]
.Sep 20 07:02:56.576: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_peer_event_cb:
Event=E_DSM_CC_CALL_MODIFY
.Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_feature_notify_cb:
Feature ID=0, Feature Status=1
.Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_reactivate_ringback:
.Sep 20 07:02:56.580: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_reactivate_ringback:exit@996
.Sep 20 07:02:56.580: htsp_process_event: [0/0/1, EM_WAIT_FOR_ANSWER, E_HTSP_VOICE_CUT_THROUGH]
.Sep 20 07:02:56.580: htsp_timer_stop2
.Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_dsm_bridge_status_cb:
.Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_SETUP_REQ_PROC, event:E_CC_DISCONNECT]
.Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_disconnect:
Cause Value=16
.Sep 20 07:03:13.913: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_ring_noan_timer_stop:
Timer Stop Time=23419504
.Sep 20 07:03:13.913: htsp_timer_stop3
.Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_WAIT_STATS, event:E_VTSP_DSM_STATS_COMPLETE]
.Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_dsm_dsp_stats_complete:
.Sep 20 07:03:13.925: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer:
Timer Start Time=23419505, Timer Value=60000(ms)
.Sep 20 07:03:13.929: htsp_process_event: [0/0/1, EM_WAIT_FOR_ANSWER, E_HTSP_RELEASE_REQ]em_wait_answer_release
.Sep 20 07:03:13.929: em_stop_timers
.Sep 20 07:03:13.929: htsp_timer_stop
.Sep 20 07:03:13.929: htsp_timer_stop2 em_onhook (0)
.Sep 20 07:03:13.929: [0/0/1] set signal state = 0x0 timestamp = 0
.Sep 20 07:03:13.929: em_start_timer: 400 ms
.Sep 20 07:03:13.929: htsp_timer - 400 msec
.Sep 20 07:03:14.329: htsp_process_event: [0/0/1, EM_GUARD_ALL, E_HTSP_EVENT_TIMER]em_guard_all_timer
.Sep 20 07:03:14.329: em_stop_timers
.Sep 20 07:03:14.329: htsp_timer_stop
.Sep 20 07:03:14.329: em_start_timer: 3000 ms
.Sep 20 07:03:14.329: htsp_timer - 3000 msec
.Sep 20 07:03:14.329: htsp_process_event: [0/0/1, EM_PARK, E_DSP_SIG_0000]em_park_onhook
.Sep 20 07:03:14.329: htsp_timer_stop
.Sep 20 07:03:14.329: htsp_timer_stop2 htsp_report_onhook_sig
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_WAIT_RELEASE, event:E_TSP_CALL_FEATURE_IND]
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_call_feature_ind:
Feature Type=6
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_process_event:
[state:S_WAIT_RELEASE, event:E_TSP_DISCONNECT_CONF]
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/act_wrelease_release:
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_play_busy_timer_stop:
Timer Stop Time=23419546
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_timer_stop:
Timer Stop Time=23419546
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_do_call_history:
.Sep 20 07:03:14.329: //48/E9FE7CA28104/VTSP:(0/0/1):-1:1:2/vtsp_do_call_history:
Coder Rate=16
.Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_dsm_closed_cb:
.Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_process_event:
[state:S_CLOSE_DSPRM, event:E_VTSP_DSM_CLOSE_COMPLETE]
.Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/act_terminate:
.Sep 20 07:03:14.333: //48/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_timer_stop:
Timer Stop Time=23419546
.Sep 20 07:03:14.333: //-1/E9FE7CA28104/VTSP:(0/0/1):-1:-1:-1/vtsp_free_cdb:
CDB=0x47574E08
Thanks in advance.
ToshiEDIT:
I've not got any dial-tone back from PABX.
Thanks in advance
Toshi -
Editable field with F4 help in alv tree output using cl_gui_alv_tree
HI
i need Editable field with F4 help in alv tree output using cl_gui_alv_tree
Regards
NareshHi Naresh,
Pass the field catalog with the additional parameter (ls_fcat-edit = 'X'.).
for F4 help if the data element have the search help it automatically will come. other wise include the additional parameter in the field catalog (ls_fcat-F4AVAILABL = 'X')
Reward if found helpful.
Regards,
Boobalan Suburaj
Maybe you are looking for
-
Images too dark on Samsung monitor - please help!
We've just upgraded a Samsung 21" monitor to a Samsung 30" (305T). In just TWO applications, Photoshop CS3 and Windows Photo Gallery (Vista64), all photographic images are much too dark. Not subtly, about 3-4 f-stops too dark. EVERY other of our appl
-
[JS][CS4/CS5] Images dropping off in scripted pdf export
I've encounted a bug that I wonder if someone could try to replicate or suggest a workaround of some sort for. Some background: we often need to batch-export a number of versioned InDesign files to pdf. These files will often share a lot of content,
-
How to set Character field's Format Mask?
dear all, how to set Character field's Format Mask? i searched the forum and found the following, where can i use this code and how to change and set its format mask. SRW.SET_FORMAT_MASK('mask'); Thanks Muhammad Nadeem
-
Version 8.5 and Version 11.5 on same machine
Post Author: ashleyp CA Forum: Older Products I've heard that loading version 8.5 and version 11.5 on the same pc can be done, but the loading needs to be done in a particular order. Does anyone have experience with this? Thanks, Ashley
-
Frozen ipad 2 64gb after the last update
frozen ipad 2 64gb after the last update