ALV problem..urgent?
Hi experts...
I am using alv function module.. I want to count the number of rows and display..the output is
PLAN BUKRS PERSA PERNR
adnd 1010 US01 100102
bsch 1010 US02 100103
The output I want is
PLAN BUKRS PERSA PERNR
adnd 1010 US01 100102
bsch 1010 US02 100103
total PERNR in US01 1
total PERNR in US02 1
total PERNR in 1010 2
total PERNR in PLAN 2
PLease help...if u can provide with sample code....the code may be also in class method....
points will be awarded....nut its urgent
Hi Abhay,
One thing you can do it is while creating an internal table after each group insert a line of count and then simply display it in ALV.
Like,
loop at itab.
at end of group (US01, US02....)
count lines.
insert lines to itab.
endat.
endloop.
Pass this to ALV.
Reward if useful!
Similar Messages
-
J2EE StartUp Problem, URGENT.
Hi all!
I'm having a problem since friday with the J2EE Engine Startup. The problem is that MMC says me that the server is running but i can access to the server by anyway. The developer trace of the jcontrol process is:
[Thr 2968] Tue Aug 09 13:59:50 2005
[Thr 2968] JControlICheckProcessList: process server0 started (PID:1544)
JStartupStartJLaunch: program = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
-> arg[00] = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
-> arg[01] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
-> arg[02] = -DSAPINFO=J2E_00_sdm
-> arg[03] = -file=C:\usr\sap\J2E\JC00\SDM\program\config\sdm_jstartup.properties
-> arg[04] = -nodeName=sdm
-> arg[05] = -nodeId=2
-> arg[06] = -syncSem=JSTARTUP_WAIT_ON_2964
-> arg[07] = -jvmOutFile=C:\usr\sap\J2E\JC00\work\jvm_sdm.out
-> arg[08] = -stdOutFile=C:\usr\sap\J2E\JC00\work\std_sdm.out
-> arg[09] = -locOutFile=C:\usr\sap\J2E\JC00\work\dev_sdm
-> arg[10] = -mode=JCONTROL
-> arg[11] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
-> lib path = PATH=C:\j2sdk1.4.2_08\jre\bin\server;C:\j2sdk1.4.2_08\jre\bin;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
-> exe path = PATH=C:\j2sdk1.4.2_08\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
[Thr 2968] Tue Aug 09 13:59:51 2005
[Thr 2968] JControlICheckProcessList: process SDM started (PID:1556)
[Thr 1188] Tue Aug 09 14:01:01 2005
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] Tue Aug 09 14:01:58 2005
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
[Thr 1188] Tue Aug 09 14:10:25 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:15:45 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:20:46 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:26:06 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:31:07 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:36:27 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:41:28 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
Then i try to login the visual admin gives me a windows error and the msg_server process shuts down alone. Then i restart that node and agregate the following lines to the trace:
Thr 1188] Tue Aug 09 14:42:25 2005
[Thr 1188] *** ERROR => MsINiRead: NiBufReceive failed (NIECONN_BROKEN) [msxxi.c 2488]
[Thr 1188] *** ERROR => MsIReadFromHdl: NiRead (rc=NIECONN_BROKEN) [msxxi.c 1652]
[Thr 1188] Tue Aug 09 14:42:27 2005
[Thr 1188] ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi_r.cpp 8588]
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:32 2005
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:38 2005
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:44 2005
[Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c 633]
[Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c 295]
[Thr 1188] Tue Aug 09 14:42:49 2005
[Thr 1188] JControlMSConnect: reconnected to message server (toshiba-user/3601)
[Thr 1188] Tue Aug 09 14:48:11 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:53:12 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
[Thr 1188] Tue Aug 09 14:58:32 2005
[Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
I try to login the visual admin again and gives me the following error: "Cannot open connection on host: 191.9.6.22 and port: 50004"
Looking the log and trace files i see the following errors:
- SAPEngine_System_Thread[impl:5]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to toshiba-user/3201(Connection refused: connect)#
- java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at com.sap.engine.core.port.impl0.ServerSocketListener.run(ServerSocketListener.java:87)
- erver socket listener opened by service on socket encountered error. The listener will be stopped.#2#p4#ServerSocket[addr=/0.0.0.0,port=0,localport=50004]
I dont know whats happening, if somebody knows i hope that helps me. Please is urgent.
Thx and Rgds.
GregoryHi, thx a lot both.
Respect the link
http://<hostname>:50<instanceno>00/sap/monitoring/SystemInfo , i cant access it. I cant access by telnet, by visual admin.
In the work folder under \usr\sap\<sid>\JC00 i found that the last updated files are:
- available.txt that contains the following data:
Unavailable 08.08.2005 10:46:53 - 08.08.2005 10:58:54
Available 08.08.2005 10:59:54 - 08.08.2005 13:52:54
Unavailable 08.08.2005 13:53:54 - 08.08.2005 13:53:54
Available 08.08.2005 13:54:54 - 08.08.2005 14:03:54
Unavailable 08.08.2005 14:04:54 - 08.08.2005 14:04:54
Available 08.08.2005 14:05:54 - 08.08.2005 14:34:54
Unavailable 08.08.2005 14:35:54 - 08.08.2005 14:39:44
Unavailable 08.08.2005 14:56:17 - 08.08.2005 16:24:13
Unavailable 08.08.2005 16:28:07 - 08.08.2005 16:29:07
Unavailable 08.08.2005 16:34:36 - 08.08.2005 17:17:58
Unavailable 09.08.2005 08:13:36 - 09.08.2005 08:54:33
Unavailable 09.08.2005 08:57:04 - 09.08.2005 12:46:25
Available 09.08.2005 12:47:25 - 09.08.2005 13:26:25
Available 09.08.2005 13:43:56 - 09.08.2005 13:55:56
Unavailable 09.08.2005 13:56:40 - 09.08.2005 14:04:57
Available 09.08.2005 14:05:57 - 09.08.2005 16:16:57
Unavailable 09.08.2005 16:17:57 - 09.08.2005 17:27:12
Unavailable 10.08.2005 08:10:30 - 10.08.2005 08:35:39
Available 10.08.2005 08:36:39 - 10.08.2005 09:16:39
Available 10.08.2005 12:33:51 - 10.08.2005 14:01:51
- dev_jcontrol that contains the information displayed in the developer trace of jcontrol process(and y mentioned above)
- dev_dispatcher that contains the following info:
[Thr 2664] Wed Aug 10 08:33:04 2005
[Thr 2664] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
[Thr 2664] JLaunchISetClusterId: set cluster id 5761000
[Thr 2664] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
[Thr 2664] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
[Thr 3320] Wed Aug 10 08:33:21 2005
[Thr 3320] JLaunchISetP4Port: set p4 port 50004
[Thr 3528] Wed Aug 10 08:33:26 2005
[Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
[Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
[Thr 3584] Wed Aug 10 08:33:55 2005
[Thr 3584] JLaunchISetHttpPort: set http port 50000
[Thr 2664] Wed Aug 10 08:34:02 2005
[Thr 2664] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
[Thr 2568] Wed Aug 10 08:34:08 2005
[Thr 2568] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
[Thr 3660] Wed Aug 10 08:35:07 2005
[Thr 3660] JLaunchISetP4Port: set p4 port 50004
[Thr 3600] Wed Aug 10 08:36:34 2005
[Thr 3600] JLaunchISetHttpPort: set http port 50000
[Thr 3612] Wed Aug 10 12:43:40 2005
[Thr 3612] JLaunchISetHttpPort: set http port 50000
[Thr 3612] JLaunchISetP4Port: set p4 port 50004
[Thr 3612] JLaunchISetTelnetPort: set telnet port 50008
- dev_server0 that contains:
[Thr 2676] Wed Aug 10 08:33:06 2005
[Thr 2676] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
[Thr 2676] JLaunchISetClusterId: set cluster id 5761050
[Thr 2676] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
[Thr 2676] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
[Thr 4296] Wed Aug 10 08:34:58 2005
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
[Thr 4296] Wed Aug 10 08:35:00 2005
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPConverters
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPCharToNUCByteConverter
[Thr 4296] Wed Aug 10 08:35:01 2005
[Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPNUCByteToCharConverter
[Thr 2676] Wed Aug 10 08:35:07 2005
[Thr 2676] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]
[Thr 208] Wed Aug 10 08:36:34 2005
[Thr 208] JLaunchISetState: change state from [Starting applications (10)] to [Running (3)]
I still dont know whats happening. And i need to solve the problem urgent. I hope u can help me.
Thx and Rgds.
Gregory. -
I´m having trouble with FormsCentral.
My form is running about 8 months with no problems.
Yesterday people started to complain that the system doesn´t accept any date.
That means the date field restricts date entries, from date dd/mm/aaaa (brazilian format) to another dd/mm/aaaa, but every date that users input in, is considered by the system as invalid, even it´s a correct and valid date right between the interval specified!
I need Help Urgent!!!
I depend on these forms to finish the payrol service from here.
Thanks
I´ll be waiting.
Maurício Galletti
Message was edited by: SNOWMAUSS
It look like the system accepts just dates starting from the date of today.
I´m testing.
Please help.
Thanks
Message was edited by: SNOWMAUSS
It looks like the system have some problem just with the date 20/10/2013?!
I´ve fixed the problem change the interval from 20/10/2013 to another date and used 21/10/2013 to another date and it works!
But I think something is wrong with the 20/10/2013 date?!
To reproduce the erros just create a new form with date feature with this exaclty configurations and the bug appears:
I´ll keep waiting
Message was edited by: SNOWMAUSSHi
I´ve concluded that the problem persist if the date interval starts at the
specific date "20/10/2013". Don´t know why?!
Look at the screen capture above, you aks for
Thanks a lot
image: Imagem inline 1
Maurício P. Galletti
Contador
[email protected]
( 55 11 3331-5567
www.cadt.com.br
2013/10/29 Genevieve Laroche <[email protected]>
Re: DATE FIELD PROBLEMS - URGENT created by Genevieve Laroche<http://forums.adobe.com/people/Genevieve+Laroche>in
FormsCentral - View the full discussion<http://forums.adobe.com/message/5797083#5797083 -
Details:
Hi i can not buy any thing from the app store and any thing from in side any games pls fix my problem urgent and as soon
Note this is second email pls answer and fix my problem
<Email Edited by Host>These are public forums, you are not talking to iTunes Support here (most of the people here, including myself, are fellow users) - I've asked the hosts to remove your email address from your post
If you are getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
If it's a different problem ... ? -
Problem in Auto Mail of ALV Report : Urgent
Hello All ,
I have created one ALV Report contain 240 Columns . This report is need to schedule for auto mail in HTML Format.
My Problem is when I am sending this report manually the html output displays all the columns in the mail attachment. While it is scheduled thro' SM36 in background mode the HTML format displays only restricted columns (say upto 132 columns)
Also, we have tried to create new page format X_65_512/2 to accomodate the output. However this option did not work.
Any solution to resolve the same is most welcome !
Regards
Swati NamdeoHi
This problem was not resolved. I tried few things but not good. So what we did we created a few profile like MM/SD/FICA and we executed report based on profile and sent them only the column relevant to them.
Regards,
Atul Joshi -
Problem with dispalying Colum name in ALV grid - Urgent
My requirement is to print the column name as "Sales order item number".
I declared the field for "Sales order item number" in the output table as
aupos LIKE vbrp-aupos
And in field catalog
pt_hlp_fieldcat-reptext_ddic = 'Sales order Item number'.
pt_hlp_fieldcat-seltext_l = 'Sales order Item number'.
pt_help_fieldcat-seltext_m = 'Sales order Item number'.
pt_hlp_fieldcat-seltext_s = 'Sales order Item number.'.
Append pt_hlp_fieldcat.
My layout is as follows
PS_LAYOUT-ZEBRA = 'X'.
PS_LAYOUT-window_titlebar = 'Invoice Buildup'.
PS_LAYOUT-DETAIL_POPUP = ' '.
PS_LAYOUT-TOTALS_BEFORE_ITEMS = ' '.
PS_LAYOUT-GET_SELINFOS = 'X'.
PS_LAYOUT-GROUP_CHANGE_EDIT = 'X'.
PS_LAYOUT-confirmation_prompt = 'X'.
PS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
PS_LAYOUT-NO_KEYFIX = 'X'.
PS_LAYOUT-KEY_HOTSPOT = 'X'.
The problem is still it is displaying the field name form the table-field label.
How can i forcefuly display the colum name irrespect of table field label.
Thanks in advance....See the sample code
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
Similarly u can
fieldcatalog-fieldname = 'AUPOS'.
<b>fieldcatalog-seltext_m = 'Sales order item number'.</b>
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
hope this helps.
reward points if this helps. -
Alv. problem in I_call
Hi Gurus,
Problem in this program.plz check it its very urgent.
im working in version 4.6. the problem is in I_call_back.plz help me in this.
Correct answers will be appreciated with good points.
Thanks & regards
sunita
TABLES : likp.
TYPE-POOLS: slis.
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS: s_vkorg FOR likp-vkorg,
s_vstel FOR likp-vstel,
s_vbeln FOR likp-vbeln,
s_lfdat FOR likp-lfdat,
s_lfart FOR likp-lfart ,
s_wadat FOR likp-wadat,
s_wa_ist FOR likp-wadat_ist,
s_kunnr FOR likp-kunnr,
s_kunag FOR likp-kunag.
SELECTION-SCREEN END OF BLOCK b1.
DATA: BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE likp.
DATA: zchk(20),
END OF itab.
DATA: gt_fcat type slis_t_fieldcat_alv.
SELECT * FROM likp
INTO CORRESPONDING FIELDS OF TABLE itab
WHERE vkorg IN s_vkorg
AND vstel IN s_vstel
AND vbeln IN s_vbeln
AND lfdat IN s_lfdat
AND lfart IN s_lfart
AND wadat IN s_wadat
AND wadat_ist IN s_wa_ist
AND kunnr IN s_kunnr
AND kunag IN s_kunag.
LOOP AT itab.
IF itab-wadat = itab-wadat_ist.
itab-zchk = 'OK'.
ELSE.
itab-zchk = 'Posting Error'.
ENDIF.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = itab
CHANGING
ct_fieldcat = gt_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = gt_fcatHi Sunita,
Create your ALV output structure via the ABAP Dictionary (SE11) as a dictionary Structure (ZSTRUCTURE) and then follow the code changes as below:
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
* i_internal_tabname = 'ITAB' --------------> Delete
I_STRUCTURE_NAME = 'ZSTRUCTURE' <----------------
CHANGING
ct_fieldcat = gt_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = gt_fcat
TABLES
t_outtab = itab. <----------------------------
Cheers,
Sougata.
Message was edited by:
Sougata Chatterjee -
Hi guys,
I have a problem in ALV. There is character field which is company code , whenever the value is '000'or 010' it is displaying as '0' or '10'. can you please help me on this. here is the field catelog for this... it is really urgent.
CLEAR e_fieldcat.
ADD 1 TO w_col_pos.
e_fieldcat-fieldname = 'AUFNR'.
e_fieldcat-seltext_m = 'Company Code'.
e_fieldcat-col_pos = w_col_pos.
e_fieldcat-no_zero = space.
e_fieldcat-lzero = 'X'.
e_fieldcat-edit_mask = '==ALPHA'.
APPEND e_fieldcat TO t_fieldcat.
thanks.Hi Lakshmi ,
wa_fieldcat-edit_mask = '==ALPHA'.
wa_fieldcat-edit_lzero = 'X'.
If this doesnt work.
<b>
Declare the field as type MARA-MATNR.
</b>
BCOZ conv routine for MATNR IS MATN1.
Usually, if all is well, this will be handled automatically, for example, if on a dynpro, all you need to do is set the conversion routine value to ALPHA, then the conversion will be automatic, nothing to code. If in a list display, the field should be TYPE MARA-MATNR, then the conversion will be automatic on the list display, as well as the ALV grid.
Reward points if helpful
Regards
Naresh -
Excel Download problem - Urgent please
Hi All,
I am using 4.6C version.
The user is downloading the ALV output to excel from the output menu
List > Save > File > Spreadsheet >
User tried saving a file to the Local drive and got a "Disk is full" error.
User realized that the export didn't complete (Partial download)
because there wasn't enough disk space to export the report.
User stated that if he had received an error message of some sort, he might have realized the problem.
He didn't receive any kind of errors.
User would like some kind of error message to come up in those situations.
Without an error message, he assumes the reports are acurate and trusts them.
<b>I have analysied and found a exit EXIT_SAPLGRAP_001 which triggres after the popup asking the file path. However this exit doesnot give me the file path</b>.
After this i think i can make use of the class CL_GUI_FRONTEND_SERVICES and method GET_FREE_SPACE_FOR_DRIVE and FILE_GET_SIZE to check for disk space full.
Kindly let me know how to get the file path given in the popup to get it in the exit EXIT_SAPLGRAP_001. Also there was no parameter id for the field.
Thanks for your help.
SenthilSenthil,
"However in this case the sap didnot uses GUI_DOWNLOAD to download instead it uses download FM. "
What "download FM" is 4.6 using then?
The GUI_DOWNLOAD does check for a disk_full situation... I find it hard to believe that SAP made an oversight here.
I believe that the user is not telling the truth to you... or something else happened in that they have not conveyed to you. -
Hi all,
iam getting a problem regarding pricing.
When i make a Sales doc. with reference to an invoice,
everything is being copied from invoice to the sales doc.-customer, material and its no. , sales area, payment terms, incoterms, and material qty. also.
But the pricing of the invoice is not getting copied on to the sales doc.
I have maintained all checks available in the sales doc. type and the item category of the sales doc. type i.e
Pricing: X
and then in OVKK , i have maintained the doc. pric. procedure of the sales doc. type with the pricing procedure of the invoice
and again in the copy control measures, i have maintained
Pricing type: D
But i still not able to copy pricing procedure from the invoice to the Sales doc.
I want the soltn. urgently.
Thanks in advance
Souravrun VTAF for your sales doc type/bil type
and check item category
set flag for "update doc flow"
and pricing type B -
HTML Link problem (Urgent!)
I'm writing a prrogram that displays an HTML file. I used a JEditorPane. I tryed using the hyperlinkListener but it doesn't work! here's the class I wrote...
can anyone help please?
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
import browser.*;
import java.net.*;
import javax.swing.event.*;
* Classe :
* Description :
* Societe : Medias France
* @version 1.0
public class Aide extends JFrame implements HyperlinkListener
BrowserInterface bI;
URL url1;
static Interface parent;
public Aide(String titre, Interface i)
super(titre);
parent = i;
getContentPane().setLayout(new BorderLayout());
//bI = new BrowserInterface(jp);
setBounds(10,10,800,600);
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
quit(null);
try
url1 = new URL("file:/home/darkazan/java/BDO/tablegen-1.8/help/help.html");
//bI.URL_Process(url1);
catch (MalformedURLException e)
System.out.println("probleme " + e.toString());
JEditorPane editorPane = new JEditorPane();
editorPane.setEditable(false);
try
editorPane.setPage(url1);
catch (IOException e)
System.err.println("Attempted to read a bad URL: " + url1);
JScrollPane editorScrollPane = new JScrollPane(editorPane);
editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
editorScrollPane.setPreferredSize(new Dimension(800, 600));
getContentPane().add(editorScrollPane, "Center");
pack();
setVisible(true);
public void hyperlinkListener(HyperlinkEvent e)
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
// do something on HL click
System.out.println("ouverture");
if (e.getEventType() == HyperlinkEvent.EventType.ENTERED)
// do something on mouse over HL
// do something on HL click
System.out.println("bbbbbbbbbbbbbbbbbbbb");
if (e.getEventType() == HyperlinkEvent.EventType.EXITED)
// do something on HL click
System.out.println("ggggggggggggggggggg");
// do something on mouse moved away from HL
public void hyperlinkUpdate(HyperlinkEvent e)
public static void main(String[] args)
Aide aide1 = new Aide("Help", parent);
* Quitter l'application
* @param e L'evenement recu
* @return Sans objet.
void quit(ActionEvent e)
parent.bAide.setEnabled(true);
dispose();
}also check your file protocol it should look like this: file:/// with three slashes(i think?)
here Mr. Urgent, my html viewer: (and it works) ;P
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.accessibility.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
public class iROCHelp extends JPanel implements HyperlinkListener{
//ATTRIBUTES
JEditorPane html;
private static boolean HelpShowing = false;
private static JFrame selTopic;
//METHODS
//Constructor
public iROCHelp(java.net.URL URLstr){
//setBorder(new EmptyBorder());
setLayout(new BorderLayout());
try{
URL url = URLstr;
if(url != null){
html = new JEditorPane(url);
html.setEditable(false);
html.addHyperlinkListener(this);
JScrollPane scroller = new JScrollPane();
JViewport vp = scroller.getViewport();
vp.add(html);
vp.setBackingStoreEnabled(true);
add(scroller, BorderLayout.CENTER);
catch (MalformedURLException e){
System.out.println("Malformed URL: " + e);
catch (IOException e){
System.out.println("IOException: " + e);
}//HelpTopic CONSTRUCTOR
public void hyperlinkUpdate(HyperlinkEvent e){
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
linkActivated(e.getURL());
}//hyperlinkUpdate
protected void linkActivated(URL u){
Cursor c = html.getCursor();
Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
html.setCursor(waitCursor);
SwingUtilities.invokeLater(new PageLoader(u, c));
}//linkActivated
class PageLoader implements Runnable{
PageLoader(URL u, Cursor c){
url = u;
cursor = c;
public void run(){
if (url == null){
// restore the original cursor
html.setCursor(cursor);
Container parent = html.getParent();
parent.repaint();
else{
Document doc = html.getDocument();
try{
html.setPage(url);
catch (IOException ioe){
html.setDocument(doc);
finally{
// schedule the cursor to revert after
// the paint has happended.
url = null;
SwingUtilities.invokeLater(this);
}//else
}//run
URL url;
Cursor cursor;
}//PageLoader
public static void spawnHelp(java.net.URL URLStr){
if (!HelpShowing){
selTopic = new JFrame();
selTopic.getContentPane().setLayout(new BorderLayout());
selTopic.getContentPane().add(new iROCHelp(URLStr),BorderLayout.CENTER);
Dimension dim = selTopic.getToolkit().getScreenSize();
selTopic.setLocation((int)dim.getWidth()/2-selTopic.getWidth()/2,(int)dim.getHeight()/2-selTopic.getHeight()/2);
selTopic.setSize(500, 400);
selTopic.setTitle("Remote Operators Console Help");
selTopic.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
closeHelp();
}//windowClosing
selTopic.show();
HelpShowing = true;
}//if help showing
}//spawnHelp
public static void closeHelp(){
if (HelpShowing){
selTopic.dispose();
HelpShowing = false;
}//closeHelp
}//HelpTopic CLASS -
ALV: Problem in exporting to excel with too many columns
Hi,
While exporting from ALV report to excel following issue was faced:
ALV report contains 81 columns out of which 67 columns are displayed properly but from 68th column onwards data is dispalyed on next row
I want all columns displayed on single row..
Any help will greatly appreciated..
Thanks,
DeepakHi Deepak,
I was browsing through these threads to find anwer for the same issue.
So thought of putting my analysis which helped me resolve my problem.
Analysis/Solution:
When we export ALV data to excel worksheet, as sap notes say the maximum lenght allowed is 1023 charaters and the max no of columns supported is 90.
(I never faced any issue related to no of columns as it worked fine for columns >90 too)
Issue occured when row size of exported data gets more than 1023 character.
Therefore the row data must not exceed 1023 character, otherwise column splits and moves to next row.
One additional aspect generally missed is that:
When data in any particular column changes it's length, alv header also changes its lengh (short text, medium text, long text; depending on the length of of the longest cell in the column)
therefore even if you have total length of row less than 1023 character, there might be cases when your ALV header size exceeds this length.
Hopefully it will be helpful for you too.
Regards,
Parveen -
ALV problems, trying to click Back button, Filtering, download (Excel)
Hi
When I try to click Back button, Filtering or download (Excel) on ALV grid this dumps appear:
Runtime Error MOVE_TO_LIT_NOTALLOWED_NODATA
Error analysis
The program tried to assign a new value to the field "<L_BOX>" even though
it is protected against changes.
The following objects are protected:
- Character or numeric literals
- Constants (CONSTANTS)
- Parameters of the category IMPORTING REFERENCE for functions
and methods
- Untyped field symbols to which a field has not yet been assigned
using ASSIGN
- TABLES parameters if the corresponding actual parameter is protected
against changes
- USING reference parameters and CHANGING parameters for FORMs if
the actual parameter for this is protected against changes
- Field symbols if the field assigned using ASSIGN or ASSIGNING
is protected against changes
- External write accesses to READ-ONLY attributes
- Key components of lines in internal tables of the type HASHED or
SORTED TABLE
SORTED TABLE.
Line SourceCde
681 * set/unset <box> of all items
682 if l_ucomm eq '&SAL' or l_ucomm eq '&ALL'.
683 if l_ucomm eq '&SAL'.
684 loop at t_outtab.
685 l_tabix = l_tabix + 1.
->>> <l_box> = ' '.
687 modify t_outtab index l_tabix.
688 endloop.
689 endif.
690 if l_ucomm eq '&ALL'.
691 loop at t_outtab.
692 l_tabix = l_tabix + 1.
693 <l_box> = 'X'.
694 modify t_outtab index l_tabix.
695 endloop.
696 endif.
What I must check on my ALV settings:
ch_alv_layout-zebra = 'X'.
ch_alv_layout-box_fieldname = 'SELE'.
ch_alv_layout-box_tabname = v_nametab.
ch_alv_layout-reprep = 'X'.
ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
ch_alv_layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = ch_alv_layout
it_fieldcat = ch_alv_fieldcat
it_sort = ch_alv_sortinfo
i_save = 'X'
it_events = ch_slis_event
TABLES
t_outtab = p_control
EXCEPTIONS
program_error = 1
OTHERS = 2.
Thanks in advance.ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
ch_alv_layout-colwidth_optimize = 'X'.
try commenting the above values.and also check the Fieldcatlog.
Check the issue similar issue was resolve by checking catalog and layout:
[ALV Issue solution|Re: Problem when export ALV.]
Regards,
Gurpreet -
ALV - problem in downloading to excel - HIGH
In our ALV report , we are facing problem with downloading to excel. It is intact downloading but in an irregular manner.
LIST-> EXPORT-> Local File(excel)
How to overcome this..try to load like this
spreadsheet>press enter>pivot table-->microsoft excel -
Media reconnection problem URGENT!
I am in a very urgent situation.
Working on a feature length project and today after opening 2 sequences I was working on yesterday I had to relink media, because my scratch disks were not connected.
While relinking, final cut pop up says that some clips' media start & end has changed , continue with relinking or cancel. I had to continue work so I went on. Alas, now i am in front of a nightmare!
Both sequencies have been altered. In some areas the edits look the same but the content is different, in other areas cuts have been totaly removed.
please help.Thank you for trying to help. These file were imported by log and capture and were atomaticaly converted to prores 422 LT. I did not mess around with file names, as the names were given during the log and transfer proccess.
This is definetely a final cut bug.
The problem dissapeared (not solved though, as the reasons remain unknown) with the folowing way:
a) I open one of the backed up files and looked at my rough cut wich consists of sequencies.
b) By playing the 2 specific sequencies on the rough cut, there was no error in the edit.
c) By opening these 2 sequencies on the project browser, there was a different edit !!!!
d) By going back to the rough cut and double clicking on the nested sequence, I could see the original edit.
e) Now I had one specific sequence in the timeline, the same name, the identical sequence, opened in two different tabs. In one tab (the sequence that i entered to through the rough cut) the edit was the original, in the other tab (the one that i opened through the project browser) the edit was distorted !!!
f) I copied the clips of the original edit to a newly created sequence.
g) I deleted the old- problematic sequence
h) i repeated the process with the second sequence that was altered by final cut on its own will.
I hope this will help someone in a similar situation and I keep this question as unsolved, because in reality noone really knows - until now- the reason for this situation. Thank god it was solved.
Maybe you are looking for
-
Mac Pro will not find boot volume
Hello, My Mac Pro will not find it's boot volume. Each time the computer is started, the blinking folder with the question mark is the result. A working install of 10.7 does exist on the machine's primary hard drive. If I were to press the option ke
-
Loading a document to a central location
hi all Requirement is like this. On clicking a button, a popup should come where the user can give the path of the document(which is in the user's system) , and the document should be uploaded in a central shared location . Is there any function m
-
X-Fi Xtreme Gamer Fatality Pro doesn't work anymore?
So a few days ago I re-formatted my computer (with Windows Vista). The sound drivers installed fine, and everything was good. Fast forward to today. Sound was working, but after a restart my sound only comes through my headset. From checking in contr
-
Hi,I have Windows 2003(64 bit) server and I install oracle10g r2. I execute lsnrctl start then occur following error LSNRCTL> start Starting tnslsnr: please wait... TNS-12560: TNS:protocol adapter error TNS-00530: Protocol adapter error LSNRCTL> why?
-
Hi Can you tell me, What is the procedure to be followed, if I want to block the entries for the cost center if total actual amount exceed the Budgeted Figures Regards Ash