Need option to count the no. of pernrs based on org unit in ALV Grid Format
Hi ,
Do we have any option to count the no. of pernrs in an org. unit to be printed with subtotals in the pernrs column itself.
Do we have any option for counter in SLIS itself.
Thanks in advance,
Sarika
Hi Sarika,
Create an additional column in your output for integer field and populate the same with value 1 fro each row.
Then, SORT the internal table by Org. Unit and Job and perform sum operation on the column for integer field.
You can SORT by adding fields to the IT_SORT parameter in REUSE_ALV_GRID_DISPLAY and mark the DO_SUM in the new integer column fieldcatalog entry.
Cheers,
Aditya
Edited by: Aditya Laud on Feb 14, 2008 2:25 AM
Similar Messages
-
Do we have any option to count the no. of pernrs to be printed.
Hi ,
Do we have any option to count the no. of pernrs in an org. unit to be printed with subtotals in the pernrs column itself.
Do we have any option for counter in SLIS itself.
Thanks in advance,
Sarika.you can use an ICM timeout - but then this will also affect long running queries if you set it too low.
icm timeout is a system parameter and not specific to your query alone.
Otherwise you can have a portal and setup DSM ( Distributed Session Management) to handle the same...
Sorry it was ICM timeout... and not ICF...
http://www.saptechies.com/icm-and-sap-web-dispatcher-timeout-parameter/&ei=PXnvSaaYDJOdlQeBqo3CBw&usg=AFQjCNGict0Qj7n2if1qcvr6M6S6D1R6mA
Edited by: Arun Varadarajan on Apr 23, 2009 1:38 AM -
I Just converted my iPhoto library to Photos. Now I can't find my RAW files. I need to have all the images in my old library show up in their RAW format.
Unfortunately no - Photos use extensions and the vendor (adobe) will have to implement the extension to allow external edits in PS or PSE
For now you must export the photo, edit and then import - not great but a work arond
And you can continue to use iPhoto until Photos meets your needs - launch it in your applications folder - if you need assistance on this see Why won't my iPhotos open?
LN -
Regarding downlaod the output from ALV grid format
Hi
i want to download the output ALV grid format into excel sheet .
but condition is when ever user press the button (&ZDL) the should be downloaded.
and also how to convert the output into CSV format.hi,
when '&ZDL'.
use this condition
check this one for down loading
try to download an ALV report in excel format using (list ->export -> local file-> soread sheet )
Re: advantages of alv reports
Excel Download to ALV report
hi this is full program
REPORT ZCR_BOMPLANT_DOWNLOAD.
TABLES : MAST , "Material to BOM Link
STKO , "BOM Header
MARA . "General Material Data
TYPES : BEGIN OF TY_MASTER ,
MATNR TYPE MAST-MATNR , "Material Number
WERKS TYPE MAST-WERKS , "Plant
STLAN TYPE MAST-STLAN , "BOM Usage
STLNR TYPE MAST-STLNR , "Bill of material
STLAL TYPE MAST-STLAL , "Alternative BOM
ANDAT TYPE MAST-ANDAT , "Date record created on
AEDAT TYPE MAST-AEDAT , "Date of Last Change
AENAM TYPE MAST-AENAM , "Name of Person Who Changed Object
STLST TYPE STKO-STLST , "BOM status
ZPLP1 TYPE MBEW-ZPLP1 , "Future Planned Price 1
DWERK TYPE MVKE-DWERK , "Delivering Plant (Own or External)
END OF TY_MASTER .
TYPES : MY_TYPE(20) TYPE C.
DATA : IT_MASTER TYPE STANDARD TABLE OF TY_MASTER,
WA_MASTER TYPE TY_MASTER .
DATA : IT_HEADER TYPE TABLE OF MY_TYPE.
DATA : W_PTH TYPE RLGRAP-FILENAME.
DATA : W_FILE TYPE RLGRAP-FILENAME.
*--- Add Header Fields to Header Table ---
APPEND 'Material Number' TO IT_HEADER .
APPEND 'Plant' TO IT_HEADER .
APPEND 'BOM Usage' TO IT_HEADER .
APPEND 'Bill Code' TO IT_HEADER .
APPEND 'Alternative BOM' TO IT_HEADER .
APPEND 'Created On' TO IT_HEADER .
APPEND 'Changed On' TO IT_HEADER .
APPEND 'Changed By' TO IT_HEADER .
APPEND 'BOM Status' TO IT_HEADER .
APPEND 'Planned Price' TO IT_HEADER .
APPEND 'Delivery Plant' TO IT_HEADER .
IF SY-MANDT = '700'.
W_PTH = '
lkdb01\ISD\IS\Software Developments\Developments\Data Files\SAP Dumps\BOM_Available\'.
ELSE.
W_PTH = 'C:\'.
ENDIF.
START-OF-SELECTION.
*--- Load Data to Internal Table ---
SELECT MASTMATNR MASTWERKS MASTSTLAN MASTSTLNR MASTSTLAL MASTANDAT MASTAEDAT MASTAENAM STKO~STLST
INTO TABLE IT_MASTER
FROM MAST
INNER JOIN STKO ON STKOSTLNR EQ MASTSTLNR
AND STKOSTLAL EQ MASTSTLAL
INNER JOIN MARA ON MARAMATNR EQ MASTMATNR
WHERE MARA~MTART LIKE 'ZFG%'
AND STKO~LKENZ NE 'X'
AND STKO~LOEKZ NE 'X'
AND STKO~STLST EQ '1'.
SELECT MAST~MATNR MAST~WERKS MAST~STLAN MAST~STLNR MAST~STLAL MAST~ANDAT MAST~AEDAT MAST~AENAM STKO~STLST MBEW~ZPLP1 MVKE~DWERK
INTO TABLE IT_MASTER
FROM MAST
INNER JOIN STKO ON STKO~STLNR EQ MAST~STLNR
AND STKO~STLAL EQ MAST~STLAL
INNER JOIN MARA ON MARA~MATNR EQ MAST~MATNR
INNER JOIN MBEW ON MBEW~MATNR EQ MAST~MATNR
AND MBEW~BWKEY EQ MAST~WERKS
INNER JOIN MVKE ON MVKE~MATNR EQ MAST~MATNR
WHERE MARA~MTART LIKE 'ZFG%'
AND STKO~LKENZ NE 'X'
AND STKO~LOEKZ NE 'X'
AND STKO~STLST EQ '1'.
IF SY-SUBRC <> 0.
MESSAGE I014(ZLOAD).
ENDIF.
*--- Set Path to Function Module ---
CONCATENATE W_PTH SY-DATUM ' - ' 'BOM_AVAILABLE_PLANT.XLS' INTO W_FILE.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = W_FILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = IT_MASTER
FIELDNAMES = IT_HEADER
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_EIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
SUBMIT ZI005_MARA_DUMP_SOLIDEAL_N.
MESSAGE I023(ZLOAD) WITH text-001.
ELSE.
MESSAGE I022(ZLOAD) WITH W_FILE. "Errors while downloading.
ENDIF.
END-OF-SELECTION.
SUBMIT ZI005_MARA_DUMP_SOLIDEAL_N. -
Need code to count the no.of time each character occurs in a sentence
hi all i need code to find the count of each character in a sentecne
1.) Don't ask questions that have been asked (and answered) a thousand times before:
1a.) Google
1b.) Search the forums
2.) Show us what you already tried. You're getting help here, not your complete homework
3.) How To Ask Questions The Smart Way -
Count the number of rows based on the values!!!
Hi all,
What I am using:
I am working with a multidimensional database in Visual Studio 2010 using its Data source view and calculation member and dimension usage.
What I want to do:
I have a fact table that has five columns(leg(s),hand(s), Head and body,overall) that shows the category of how severe the injury is. Let say for the records all columns never have an empty value(no injury is stated with 'No injury' ) . These five columns
are connected with a dimension that has all the available values (Category A-E of injury).The overall has the most severe from the other four columns. I want to create a bar chart with five different measure
values, one for each column, and count the values in those columns.
For example : I have a slicer in the excel and a bar chart and the slicer has all the values of the Category of the injury ( Cat a,Cat B, Cat C, ... Cat E, No injury ) and when i select one of them, lets say
Cat C, the bar chart should update and show how many Cat C each measurement column has.
Example FACT table:
ID LEG HAND HEAD BODY OVERALL
1 No A No No A
2 No D C C C
3 E C D A A
4 E E B C B
So if i selected C the bar chart will count (Leg = 0, Hand = 1, Head = 1, body = 2 and Overall = 1).
Any ideas ?
Thanks for the help and the time :)Hi DBtheoN,
According to your description, you want to create a chart on excel worksheet to count the rows based on the value, right? If in this case, I am afraid this issue is related to Office forum, I am not the expert of Office, you can post the issue on the corresponding
forum.
However, this requirement can be done easily on SQL Server Reporting Services. You can using the expression below to count the rows.
=COUNT(IIF(Fields!LEG.Value=Parameters!TYPE.Value,1,NOTHING))
Regards,
Charlie Liao
TechNet Community Support -
How to assign a pernr to a org unit
Hi to all experts,
How do i assign a pernr to a organisation unit.Hi,
You can create using following transactions as mentioned.
1.PPOME : select the orgunit and position under that orgunit.Right click on position then click on assign and select holder person.
For Company code change
Go to PPOME. select the Orgunit.
under account assignment tab,you can change the company code for the selected Orgunit.
2.Goto transaction code:PP02
Object type: S
Object ID: position ID
Infotype: 1001
Subtype: A008
planning status 1
Validity: give the selection period from which date you want.
For Company code change:
PP02:
select
Object type: O
Object ID: Orgunit ID
Infotype: 1008
planning status 1
Validity: give the selection period from which date you want.
Go to change mode.
Regards,
Soujanya
Edited by: soujanya reddy on Sep 9, 2009 12:17 PM -
Find the personal number of chief of org unit
hi all,
I want to know how to find the personel number of the chief of organizational unit.
For org. unit only one chief will exists, So I want to know how can we get that pernr. Is there any quickest way like function module or any other way.
thanks & regards,
Sekhar.Hi,
Find the relation between the chief and the position and from that position find the relation to person.
T.code :SE16 -> table: HRP1001
- Suresh -
Why is the spreadsheet empty when users download to Excel from ALV grid?
Users are seeing SAP GUI transaction results display in the ALV Grid when running an SAP Report; however, when they click the Download to Excel icon the spreadsheet is empty. When they use List...Export...Spreadsheet, the spreadsheet is filled.
This seems to only be happening with 'Z' transactions. Standard delivered transactions are OK.
Using SAP GUI for Windows and Excel 2003.Hi All,
I also have same Problem I my case when i click on 'Microsoft Excel' it does nothing. It does not even open a sheet.
Please suggest,
regards,
Vinit -
How to reconstruct the right order of jobs in org unit
Please, could you help me to determinate, where is saved order of jobs and units in Organizational Structure?
I'm using HRP1000 for definition of objects and HRP1001 for connections between them. But I can't determinate the right sort order of jobs on the same level in an org unit.
Thanks for help.
DasaHi Dasa
The relation order is stored at the field <b>"PRIOX"</b> of the 1001 record.
Best regards...
*--Serdar -
Need project details on the basis of PERNR from PA0002
Hello Experts,
I am developing one RFC which will accepts PERNR (Table PA0002) as a input and should output one table containing project information from table PROJ.
I found another table namely PA0535 (HR Master Record: Infotype 0535 (Project & Achievement) ) containing 3 fields:
1) ACHTP Project or achievement type
2) ACHNM Project or achievement number
3) ATTRL Role in project
More required fields from PROJ are :
1) PSPNR Project definition (internal)
2) PSPID Project Definition
3) VERNA Name of responsible person (Project manager)
4) PLFAZ Project planned start date
5) PLSEZ Project planned finish date
But i don't find any common field in these two tables.
Can you tell me the other tables so that i can write join query to fetch all these fields??
Any pointers regarding this will be greatly appreciated.
Thanks in Advance,
PrashantHi Godhuli,
You can achieve this by the following procedure.
For your Corporate dropdown you need to specify a DataProvider.
For Your Facility dropdown you need to specify a Dataprovider.
For the Corporate dropdown there is a property "Affected DataProvider".
In that property select the DataProvider of your Facility dropdown.
So now when you select Corporate your Facility will get filtered by the values for that selected Corporate dropdown value.
Hope it helps.
Regards,
Parth. -
Needs Query to get the cycle time automatically based on the value provided in the UDF on OWOR table
Dear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST)
2.Start time =10:00 (Field Name U_EA_REASTARTTIME)
3.End date =11/07/14 (Field Name U_EA_REET)
4.End Time=14:00 (Field Name U_EA_REAENDTIME
Cycle Time=_______ (Field Name U_EA_REACYCLETIME)
Regards,
BanugopanRajendranDear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST) - Date Type
2.Start time =10:00 (Field Name U_EA_REASTARTTIME) - Hour Type
3.End date =11/07/14 (Field Name U_EA_REET) - Date Type
4.End Time=14:00 (Field Name U_EA_REAENDTIME - Hour Type
Cycle Time=_______ (Field Name U_EA_REACYCLETIME) - Hour Type
Regards,
BanugopanRajendran -
Dump when changing the value for a field (of 13 decimals) in alv grid.
Hi Group,
Its giving a dump when user is trying to change the value.
dump description: Unable to interpret "70,000 " as a number.
what is happening here is, the original value is 50,000 and he is deleting 5 and replacing it with 7, here its throwing the dump.
If he removes the complete number 50,000 and then gives 70000 its taking the value.
I tried to use, the decimals options in alv field catalog but to no joy.
Please can you give me an advice on this.
Many Thanks.the problem is the comma in the 70,000....that's an alpha character.... Normally, we expect SAP to display numeric fields in a appropriate format, based upon their numeric type, but trying to forcibly insert '70,000' into a true numeric-type field can generate an 'unable to interpret xxx,xxxx as number' error.
You could experiment with changing your ALV column to a char17 (or appropriate width) and putting your numeric value into that to display, then converting back to type P, or other field type in the table, in a column that is not displayed, when the user changes the value.... essentially two columns, one not displayed with a routine to copy/convert the numeric field into the alpha field and the reverse when the field is changed.
But, the better solution is probably for the user to understand that they're seeing a formatted numeric field, and that they need to replace the entire value with the only possible punctuation being a decimal and (if necessary) a negative sign. -
REG : How to read the value of Head of own org unit
Hi SRM gurus,
I have a requirement where I am populating the default purchaser, for that I am defaulting the purchaser as the head of Organizational unit.
Now my issue is I need to read this detail and populate in a custom field.
Do we have any BADI or FM which stores this (head of the purchasing org) data ?
Regards,
Aakash AwasthiHi,
you can try function module BBP_OM_STRUC_GET_MGR_FROM_ORG
Regards
Konstantin -
can anyone help me
Hi,
It is depends on your requirement. compulsory info types are 1000 1001 1002 1003 1008 1018....
go to pp02 and click on F4 option in IT field and Subtype field.
Example:
1000
Object
1001
Relationships
1002
Description
1003
Department/Staff
1004
Character
1005
Planned Compensation
1006
Restrictions
1007
Vacancy
1008
Acct. Assignment Features
1009
Health Examinations
1010
Authorities/Resources
1011
Work Schedule
1013
Employee Group/Subgroup
1014
Obsolete
1015
Cost Planning
1016
Standard Profiles
1017
PD Profiles
1018
Cost Distribution
Maybe you are looking for
-
Jvm.dll error; Java will not open from control panel
Hi, I am not too familiar with Java so bear with me. When loading some pages in I.E., they crash and I get an error message asking to send the error info to Microsoft. It mentions jvm.dll...also, I tried to open Java icon in control panel, but it wil
-
How to close S/A bridge immediatly without calling any asyn comm?
Hi, how can i close an S/A bridge immediatly (so i have only a sync/receive(start S/A) and immediatly a sync/send(close S/A bridge)? thanks, Peter Ha
-
My AOL login for iTunes has been changed to an inaccessible e-mail address
I was using my AOL account for iTunes (lets call it [email protected]) but as of April 1st it no longer works. Previously I would login with SCREENNAME + my password, now it's saying my ID has been changed to [email protected] I don't have an AIM a
-
Thumbnails missing from a keepsake
I have created two keepsakes from the same event as I wish to create two books of a particular trip. Each keepsake and the event show 1803 photos. However, on one of the keepsakes, the first as it happens, a number of thumbnails are missing (5 consec
-
Recently upgraded to Windows 7 and having trouble
I've been using Adobe Acrobat 8 Professional for several years on Windows XP. Yesterday, my help desk upgraded me to Windows 7. I needed to reinstall Adobe. I keep getting a message during the installation process "The file "Adobe PDF.dll" on Wind