Product Grouping in Listing.....Help Needed
Hi Guys
Plz help me on how can grouping of Products can be done in listing?
e.g : Say, i have 10 products like
1) Toothpate
2) Toilet Cleaner
3) Toilet Brush
4) Tooth Brush
5) Hand Wash
6) Soap
7) Talcum Powder
8) Lipstick
9) Nail Polish
10) Mouth Freshner
So i want similar types of Products should fall at same time as in listing it will be difficult to search the particular product.
e.g : i want listing to look like as follows :
A)Oral Care
1) Tooth Brush
2) Toothpaste
3) Mouth Freshner
B) Beauty
4) Nail Polish
5) Talcum Powder
6) Lipstick
C) Sanitary
7) Soap
8) Hand Wash
9) Toilet Cleaner
10) Toilet Brush
So Can it be done? If Yes, How ??
Is there an action for Automator, which will allow me to get a text file of what is located in folder and ALL of it's subfolders ONLY? Not the files within the folders... Just the tree structure?
Thank you for giving me some excellent instructions to get the subfolders and all contents of the folder structures, but I just learned that's not what I need.
I know this stinks, but thanks so much for your help...
Thanks
Similar Messages
-
Conditional Validation on Textfield(s) based on Select/List - help needed.
Hey Gang,
I have a simple page where a select/list menu with values "1" through "5" determines how many following textfields require validation. There is an "onchange" event which calls a function to update the validation. Below is my code:
[ body tag *spry js/css scripts are called in head]
<form id="form1" name="form1" method="post" action="">
<p>
<select name="menu" id="menu" onchange="menuFunction()">
<option value="0" selected="selected">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</p>
<p>
<span id="sprytextfield1"><input type="text" name="text1" id="text1" /></span><br />
<span id="sprytextfield2"><input type="text" name="text2" id="text2" /></span><br />
<span id="sprytextfield3"><input type="text" name="text3" id="text3" /></span><br />
<span id="sprytextfield4"><input type="text" name="text4" id="text4" /></span><br />
<span id="sprytextfield5"><input type="text" name="text5" id="text5" /></span>
</p>
<p><input type="submit" name="submit" id="submit" value="Submit" /></p>
</form>
<script type="text/javascript">
<!--
function menuFunction() {
var menuNum = document.getElementById('menu').value;
for(i=1; i<=5; i++) {
if(i<=menuNum) {
eval("var sprytextfield" +i+ "= new Spry.Widget.ValidationTextField(\"sprytextfield" +i+ "\")" );
} else {
eval("var sprytextfield" +i+ "= new Spry.Widget.ValidationTextField(\"sprytextfield" +i+ "\", \"none\", {isRequired:false})" );
//-->
</script>
[ / body tag etc... ]
The function seems to work when it requires the validation for the textfields, but not when removing the validation. I've tried doing eval("sprytextfield" +i+ ".destroy()"); as well without success.
I've searched through forums and could not find an answer to this (sorry if I missed it) ... so hopefully somebody can point me in the right direction. (*I found the post w/ the link http://www.spry-it.com/examples/spry-widget-validation-generation-and-destroy/ -- however that page doesn't seem to work *Chrome)
Thanks for any help! =)
~MikeHave a look here http://forums.adobe.com/message/2651124#2651124
If that doesn't help please come back here.
Ben -
Reports 6i Requirement -- Complext Matrix with grouping. Urgent help needed
Hi All
I have a report requirement. The problem is like this.
There is an organization under which there are several schools.
each school has different classes.
Each class has several no of students.
We have to display marks of all the students in each class of the organization (note. all classes, schools)
============================================================================================
Organization
School1
Class1 subject 1 subject2 subject3 Totals
stud1 30 50 70 150
stud2 40 70 90 200
total for class 70 120 160 350
Class2
stud11 50 60 80 190
stud12 70 80 90 240
total for class 120 140 170 430
total for school1 190 260 330 780
like wise for another school
Total for
organization 190 260 330 780
=============================================================================================
I have tried using the matrix report with groups. But i was able to create a matrix and find the totals upto the class level which is quite simple.
I was not able to find the totals subjectwise for the school and orgnization levels.
Can you suggest me any solution for this?
Please ignore some formatting. It is the best I could fit in this compose text.
but you should get the idea.
Is there any other way to display other than using the matrix?
I am using Oracle REPORTS 6i on Windows 2000. the database is ORacle 9i.
Thanks
NaveenMuch of it depends on the structure of the data/query. If the subject per student are stored or prepared so they appear as separte columns in a query then there would be no need to use matrix. Are you getting what I am saying?
-
Hi All,
In CRM Web UI, there is no multi selection option for product group id f4 help for Custmer event creation or edit screen under “Product” tab=> Product Group ID field.
Web UI Component Details -
UI component : TPMOE
View : TPMOE/ProductEOL
Context: PRODUCT Attribute : -PRODUCT_GRUOP
Click on Product Group ID field then below F4 Help screen appears.
In the product group results list, user can select only one row and Then all the product will be queried for selected product group, transferred to product list tab.
Current technical design for Product Group F4:
a) SE11 Data Dictionary search help “CRM_MKTPL_PGRP1” is used and data is fetched displayed based it( Refer method GET_V_PRODUCT_GROUP of context node class CL_TPMOE_PRODUCTEOL_CN00)
b) In UI, F4 pop up is handled by UI Framework in SAP generic manner so no multi selection is allowed.
c) A round trip event is triggered after selection of row from results which reload view with queried product result based group selected.
Requirement :-
In the product group F4 results list View, user should be able to select multiple row .As SAP GUI has the option of multiple entry selection from search help window with the help of field called MULTISEL.
System should query for products with all selected product group, transferred to product list tab.
Note: - The multi select options works fine for GUI, but for UI standard SAP code ignores this or never is this structure taken into consideration. Standard class to display F4 help on UI is CL_THTMLB_F4HELP.
Can we enforce same behavior like DDIC search help in Web UI too Or suggest how we can achieve this requirement?
Thanks in advance
Regards,
ArjunHello All,
We have achieved this requirement by Custom development and approach followed as -
Define UI object model zprgrp & zprgrpquery and object relationship in table ZCRM_OBJTAB
Query Strcuture : ZCRMST_PRGRP_SEARCH & Result List structure : ZCRMST_PRGRP_RESULT
Created Custom component : ZPRGRP with Search /Result view and with GENIL Class, search logic
Defined custom ComponentUsage “ProductGroup1SearchHelp” for ZPRGRP in Standard Component TPMOE
e. Called F4 application for field product _group with help component usage created in step d.
Regards,
Arjun -
Material Group,Product Group
Hi ,
Can any one explain what is meant by Material Group, Product Group. Where is it used. What is the difference between
Material and Product Group. Do we need to have any prequisites for creating Product Group with Tcode MC84?.
Thanks in advanceAditya,
Material Group:
This is basically a field in Material master Basic data1. This field is available in most of the Purchasing Reporting transactions and you can run reports based on them. Material Group is also used as a reference when creating Purchase Inforecord without any material number reference.
Product Group:
Product Group is a material master of type "PROD". This type of material master can only be used for planning purpose, you can assign finished materials(FERT) as members to them. Example: If you are manufacturing a product which goes in for several type of packings then you create a product group and assign the individual finished product material numbers as members, here we also define the proportional factors for aggregation and disaggregation.
Hope this helps your understanding.
Regards,
Prasobh -
Help needed : Extension manager cs6 not listing products
Help needed to Adobe extension manager cs6 to show all my cs6 products
I downloaded Extension manager from here Adobe - Exchange : Download the Adobe Extension Manager
My Computer windows xp 32bit
My Photosop version cs6
My Dreamweaver version cs6
I installed photoshop here : C:\Program Files\Adobe\Adobe Dreamweaver CS6
and my XManConfigfile
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<VariableForExMan>
<Data key="$sharedextensionfolder">$shareddatafolder/Adobe/Dreamweaver CS6/$LOCALE/Configuration/Extensions</Data>
<Data key="$dreamweaver">$installfolder</Data>
<Data key="$dreamweaver/Configuration">$userdatafolder/Adobe/Dreamweaver CS6/$LOCALE/Configuration</Data>
<Data key="$UserBinfolder">$userdatafolder/Adobe/Dreamweaver CS6/$LOCALE</Data>
<Data key="NeedOperationNotification">true</Data>
<Data key="QuitScript">dw.quitApplication()</Data>
<Data key="SupportedInSuite">CS6</Data>
<Data key="HostNameForCSXS">DRWV</Data>
<Data key="ProductVersion">12.0</Data>
<Data key="Bit">32</Data>
<Data key="DefaultLocale">en_US</Data>
</VariableForExMan>
</Configuration>
Extension manager installed here : C:\Program Files\Adobe\Adobe Extension Manager CS6
Photoshop Installed here: C:\Program Files\Adobe\Adobe Photoshop CS6
and my XManConfigfile
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<VariableForExMan>
<Data key="EmStorePath">$SharedRibsDataFolder/Adobe/Extension Manager</Data>
<Data key="$photoshopappfolder">$installfolder</Data>
<Data key="$pluginsfolder">$photoshopappfolder/Plug-Ins</Data>
<Data key="$presetsfolder">$photoshopappfolder/Presets</Data>
<Data key="$platform">Win</Data>
<Data key="$actions">$presetsfolder/Actions</Data>
<Data key="$blackandwhite">$presetsfolder/Black and White</Data>
<Data key="$brushes">$presetsfolder/Brushes</Data>
<Data key="$channelmixer">$presetsfolder/Channel Mixer</Data>
<Data key="$colorbooks">$presetsfolder/Color Books</Data>
<Data key="$colorrange">$presetsfolder/Color Range</Data>
<Data key="$colorswatches">$presetsfolder/Color Swatches</Data>
<Data key="$contours">$presetsfolder/Contours</Data>
<Data key="$curves">$presetsfolder/Curves</Data>
<Data key="$customshapes">$presetsfolder/Custom Shapes</Data>
<Data key="$duotones">$presetsfolder/Duotones</Data>
<Data key="$exposure">$presetsfolder/Exposure</Data>
<Data key="$gradients">$presetsfolder/Gradients</Data>
<Data key="$huesat">$presetsfolder/Hue Sat</Data>
<Data key="$imagestatistics">$presetsfolder/Image Statistics</Data>
<Data key="$keyboardshortcuts">$presetsfolder/Keyboard Shortcuts</Data>
<Data key="$layouts">$presetsfolder/Layouts</Data>
<Data key="$lenscorrection">$presetsfolder/Lens Correction</Data>
<Data key="$levels">$presetsfolder/Levels</Data>
<Data key="$liquifymeshes">$presetsfolder/Liquify Meshes</Data>
<Data key="$menucustomization">$presetsfolder/Menu Customization</Data>
<Data key="$optimizedcolors">$presetsfolder/Optimized Colors</Data>
<Data key="$optimizedoutputSettings">$presetsfolder/Optimized Output Settings</Data>
<Data key="$optimizedsettings">$presetsfolder/Optimized Settings</Data>
<Data key="$patterns">$presetsfolder/Patterns</Data>
<Data key="$reducenoise">$presetsfolder/Reduce Noise</Data>
<Data key="$replacecolor">$presetsfolder/Replace Color</Data>
<Data key="$scripts">$presetsfolder/Scripts</Data>
<Data key="$selectivecolor">$presetsfolder/Selective Color</Data>
<Data key="$shadowhighlight">$presetsfolder/Shadow Highlight</Data>
<Data key="$smartsharpen">$presetsfolder/Smart Sharpen</Data>
<Data key="$styles">$presetsfolder/Styles</Data>
<Data key="$textures">$presetsfolder/Textures</Data>
<Data key="$tools">$presetsfolder/Tools</Data>
<Data key="$variations">$presetsfolder/Variations</Data>
<Data key="$webphotogallery">$presetsfolder/Web Photo Gallery</Data>
<Data key="$workspaces">$presetsfolder/Workspaces</Data>
<Data key="$zoomify">$presetsfolder/Zoomify</Data>
<Data key="$hueandsaturation">$presetsfolder/Hue and Saturation</Data>
<Data key="$lights">$presetsfolder/Lights</Data>
<Data key="$materials">$presetsfolder/Materials</Data>
<Data key="$meshes">$presetsfolder/Meshes</Data>
<Data key="$rendersettings">$presetsfolder/Render Settings</Data>
<Data key="$volumes">$presetsfolder/Volumes</Data>
<Data key="$widgets">$presetsfolder/Widgets</Data>
<Data key="$localesfolder">$photoshopappfolder/Locales</Data>
<Data key="$additionalplugins">$localesfolder/$LOCALE/Additional Plug-ins</Data>
<Data key="$additionalpresets">$localesfolder/$LOCALE/Additional Presets</Data>
<Data key="$localeskeyboardshortcuts">$localesfolder/$LOCALE/Additional Presets/$platform/Keyboard Shortcuts</Data>
<Data key="$localesmenucustomization">$localesfolder/$LOCALE/Additional Presets/$platform/Menu Customization</Data>
<Data key="$localesworkspaces">$localesfolder/$LOCALE/Additional Presets/$platform/Workspaces</Data>
<Data key="$automate">$pluginsfolder/Automate</Data>
<Data key="$digimarc">$pluginsfolder/Digimarc</Data>
<Data key="$displacementmaps">$pluginsfolder/Displacement Maps</Data>
<Data key="$effects">$pluginsfolder/Effects</Data>
<Data key="$extensions">$pluginsfolder/Extensions</Data>
<Data key="$fileformats">$pluginsfolder/File Formats</Data>
<Data key="$filters">$pluginsfolder/Filters</Data>
<Data key="$imagestacks">$pluginsfolder/Image Stacks</Data>
<Data key="$importexport">$pluginsfolder/Import-Export</Data>
<Data key="$measurements">$pluginsfolder/Measurements</Data>
<Data key="$panels">$pluginsfolder/Panels</Data>
<Data key="$parser">$pluginsfolder/Parser</Data>
<Data key="$3dengines">$pluginsfolder/3D Engines</Data>
<Data key="$lightingstyles">$pluginsfolder/Filters/Lighting Styles</Data>
<Data key="$matlab">$photoshopappfolder/MATLAB</Data>
<Data key="UserExtensionFolder">$photoshopappfolder</Data>
<Data key="$photoshop">$UserDataFolder/Adobe/Adobe Photoshop CS6/Configuration</Data>
<Data key="DisplayName">Photoshop CS6 32</Data>
<Data key="ProductName">Photoshop32</Data>
<Data key="FamilyName">Photoshop</Data>
<Data key="ProductVersion">13.0</Data>
<Data key="IconPath">Configuration/PS_exman_24px.png</Data>
<Data key="SupportedInSuite">CS6</Data>
<Data key="HostNameForCSXS">PHSP</Data>
<Data key="Bit">32</Data>
</VariableForExMan>
</Configuration>
Please someone help me i cant install any photoshop extension because of this issue,,,Waiting for your reply ...thanks
Here is the results
I installed photoshopcs6 illustrator cs6 dreamweaver cs6 illustrator cs6 in the system , But nothing seems
Result: BridgeTalk Diagnostics
Info:
Name = estoolkit-3.8
Status = PUMPING
Path
Version = 2.0
Build = ES 4.2.12
Next serial number = 40
Logging: = OFF
Now = 15:55:49
Messages:
Message Version = 2.05
Authentication = ON
Digest = ON
Thread: estoolkit-3.8#thread
Avg. pump interval = 55ms
Last pump = 62ms ago
Ping: 7
ECHO_REQUEST: ECHO_RESPONSE
Timeout = undefined
Handler = undefined
STATUS: PUMPING
Timeout = undefined
Handler = undefined
MAIN: MAIN
Timeout = undefined
Handler = installed
LAUNCHED: LAUNCHED
Timeout = undefined
Handler = installed
DIAGNOSTICS: DIAGNOSTICS
Timeout = undefined
Handler = installed
INFO: INFO
Timeout = undefined
Handler = installed
SETUPTIME: thread=0ms, left=16ms
Timeout = undefined
Handler = undefined
Instances: 3
estoolkit-3.8#dbg:
msg[15:55:49]: 00000035
@BT>Version = 2.05
Target = estoolkit-3.8#dbg
Sender = estoolkit-3.8#dbg
Sender-ID = localhost:win3788
Timeout = 15:55:50
Type = Ignore
Response-Request = Timeout
Headers = (no headers)
Timestamp = 15:55:49
Serial-Number = 35
Received = undefined
Result = undefined
Error = undefined
Body = (empty)
Incoming: 1
Outgoing: 0
Handler: 9
ExtendScript = for all messages
Error = for only msg #25
Error = for only msg #27
Error = for only msg #31
Result = for only msg #35
Error = for only msg #35
Timeout = for only msg #35
Result = for only msg #37
Error = for only msg #37
estoolkit-3.8#estk:
msg[15:55:49]: 00000037
@BT>Version = 2.05
Target = estoolkit-3.8#estk
Sender = estoolkit-3.8#dbg
Sender-ID = localhost:win3788
Timeout = 16:05:49
Type = Debug
Response-Request = Result Error
Headers = (no headers)
Timestamp = 15:55:49
Serial-Number = 37
Received = undefined
Result = undefined
Error = undefined
Body: 107 bytes
Text = <get-properties engine="main" object="$.global" exclude="undefined,builtin,prototype" all="true" max="20"/>
Incoming: 1
Outgoing: 0
Handler: 1
ExtendScript = for all messages
estoolkit-3.8: (main)
Incoming: 0
Outgoing: 0
Handler: 1
ExtendScript = for all messages
Targets: 1
Connector = PCD
Installed: 0
Running: 0
exman-6.0:
Path = C:\Program Files\Adobe\Adobe Extension Manager CS6\Adobe Extension Manager CS6.exe
Display Name = Adobe Extension Manager CS6
MsgAuthentication = ON
MsgDigest = ON
ESTK = OFF
BundleID = com.adobe.exman
Status = (not running)
ExeName = Adobe Extension Manager CS6.exe
Installed: 1
Running: 0
Groups = (no groups defined) -
Help needed Displaying ALV Secondary list without using oops concept
Hi Experts
Help needed Displaying ALV Secondary list without using oops concept.
its urgent
regds
rajasekharhi chk this code
******************TABLES DECLARATION*****************
TABLES : VBAP,MARA.
*****************TYPE POOLS**************************
TYPE-POOLS : SLIS.
****************INTERNAL TABLES**********************
DATA : BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
END OF IT_VBAP.
****************TEMPORARY VARIABLES******************
DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
*****************FIELD CATALOG***********************
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
****************LAYOUT*******************************
DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
***************VARIANT*******************************
DATA : G_VARIANT LIKE DISVARIANT.
****************SAVE*********************************
DATA : G_SAVE(1) TYPE C.
*****************EVENTS******************************
DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
G_EVENTS TYPE SLIS_T_EVENT.
******************PF STATUS**************************
DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
******************USER COMMAND************************
DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
R_UCOMM LIKE SY-UCOMM.
****************SELECTION SCREEN************************
SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
***************AT SELECTION SCREEN*********************
AT SELECTION-SCREEN.
PERFORM VALIDATE.
**************START-OF-SELECTION**************************
START-OF-SELECTION.
PERFORM GET_DETAILS.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM VARIANT.
PERFORM SAVE.
PERFORM EVENTS.
PERFORM ALV_DISPLAY.
*********************FORMS*******************************************
*& Form validate
text
--> p1 text
<-- p2 text
FORM VALIDATE .
SELECT SINGLE VBELN
FROM VBAP
INTO V_VBELN
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'enter valid vbeln'.
ENDIF.
ENDFORM. " validate
*& Form get_details
text
--> p1 text
<-- p2 text
FORM GET_DETAILS .
SELECT VBELN
POSNR
MATNR
FROM VBAP
INTO TABLE IT_VBAP
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'no details found'.
ENDIF.
ENDFORM. " get_details
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'VBELN'.
WA_FIELDCAT-OUTPUTLEN = 10.
WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'POSNR'.
WA_FIELDCAT-OUTPUTLEN = 6.
WA_FIELDCAT-SELTEXT_L = 'ITEM'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-OUTPUTLEN = 18.
WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " fieldcat
*& Form LAYOUT
text
--> p1 text
<-- p2 text
FORM LAYOUT .
WA_LAYOUT-ZEBRA = 'X'.
ENDFORM. " LAYOUT
*& Form VARIANT
text
--> p1 text
<-- p2 text
FORM VARIANT .
CLEAR G_VARIANT.
G_VARIANT-REPORT = SY-REPID.
ENDFORM. " VARIANT
*& Form SAVE
text
--> p1 text
<-- p2 text
FORM SAVE .
CLEAR G_SAVE.
G_SAVE = 'A'.
ENDFORM. " SAVE
*& Form EVENTS
text
--> p1 text
<-- p2 text
FORM EVENTS .
CLEAR XS_EVENTS.
XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
XS_EVENTS-FORM = 'TOP_OF_PAGE'.
APPEND XS_EVENTS TO G_EVENTS.
ENDFORM. " EVENTS
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
WRITE :/ ' INTELLI GROUP'.
ENDFORM. "TOP_OF_PAGE
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
FORM ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = PF_STATUS
I_CALLBACK_USER_COMMAND = USER_COMMAND
I_STRUCTURE_NAME =
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = G_EVENTS
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBAP
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " ALV_DISPLAY
*& Form SET_PF_STATUS
text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'Z50651_PFSTATUS' EXCLUDING EXTAB.
ENDFORM. "SET_PF_STATUS
*& Form SET_USER_COMMAND
text
FORM SET_USER_COMMAND USING R_UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'DC'.
READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SELECT SINGLE MTART
FROM MARA
INTO V_MTART
WHERE MATNR = IT_VBAP-MATNR.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
ELSE.
WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
WRITE :/ 'MATERIAL TYPE :' , V_MTART.
ENDIF.
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CLOSE'.
CALL TRANSACTION 'SE38'.
ENDCASE.
REPORT Z_ALV_INTERACTIVE MESSAGE-ID ZMSG_50651
LINE-SIZE 100
LINE-COUNT 60
NO STANDARD PAGE HEADING.
******************TABLES DECLARATION*****************
TABLES : VBAP,MARA.
*****************TYPE POOLS**************************
TYPE-POOLS : SLIS.
****************INTERNAL TABLES**********************
DATA : BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
END OF IT_VBAP.
****************TEMPORARY VARIABLES******************
DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
*****************FIELD CATALOG***********************
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
****************LAYOUT*******************************
DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
***************VARIANT*******************************
DATA : G_VARIANT LIKE DISVARIANT.
****************SAVE*********************************
DATA : G_SAVE(1) TYPE C.
*****************EVENTS******************************
DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
G_EVENTS TYPE SLIS_T_EVENT.
******************PF STATUS**************************
DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
******************USER COMMAND************************
DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
R_UCOMM LIKE SY-UCOMM.
****************SELECTION SCREEN************************
SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
***************AT SELECTION SCREEN*********************
AT SELECTION-SCREEN.
PERFORM VALIDATE.
**************START-OF-SELECTION**************************
START-OF-SELECTION.
PERFORM GET_DETAILS.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM VARIANT.
PERFORM SAVE.
PERFORM EVENTS.
PERFORM ALV_DISPLAY.
*********************FORMS*******************************************
*& Form validate
text
--> p1 text
<-- p2 text
FORM VALIDATE .
SELECT SINGLE VBELN
FROM VBAP
INTO V_VBELN
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'enter valid vbeln'.
ENDIF.
ENDFORM. " validate
*& Form get_details
text
--> p1 text
<-- p2 text
FORM GET_DETAILS .
SELECT VBELN
POSNR
MATNR
FROM VBAP
INTO TABLE IT_VBAP
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'no details found'.
ENDIF.
ENDFORM. " get_details
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'VBELN'.
WA_FIELDCAT-OUTPUTLEN = 10.
WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'POSNR'.
WA_FIELDCAT-OUTPUTLEN = 6.
WA_FIELDCAT-SELTEXT_L = 'ITEM'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-OUTPUTLEN = 18.
WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " fieldcat
*& Form LAYOUT
text
--> p1 text
<-- p2 text
FORM LAYOUT .
WA_LAYOUT-ZEBRA = 'X'.
ENDFORM. " LAYOUT
*& Form VARIANT
text
--> p1 text
<-- p2 text
FORM VARIANT .
CLEAR G_VARIANT.
G_VARIANT-REPORT = SY-REPID.
ENDFORM. " VARIANT
*& Form SAVE
text
--> p1 text
<-- p2 text
FORM SAVE .
CLEAR G_SAVE.
G_SAVE = 'A'.
ENDFORM. " SAVE
*& Form EVENTS
text
--> p1 text
<-- p2 text
FORM EVENTS .
CLEAR XS_EVENTS.
XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
XS_EVENTS-FORM = 'TOP_OF_PAGE'.
APPEND XS_EVENTS TO G_EVENTS.
ENDFORM. " EVENTS
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
WRITE :/ ' INTELLI GROUP'.
ENDFORM. "TOP_OF_PAGE
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
FORM ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = PF_STATUS
I_CALLBACK_USER_COMMAND = USER_COMMAND
I_STRUCTURE_NAME =
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = G_EVENTS
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBAP
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " ALV_DISPLAY
*& Form SET_PF_STATUS
text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'STANDARD' EXCLUDING EXTAB.
ENDFORM. "SET_PF_STATUS
*& Form SET_USER_COMMAND
text
FORM SET_USER_COMMAND USING R_UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'DC'.
READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SELECT SINGLE MTART
FROM MARA
INTO V_MTART
WHERE MATNR = IT_VBAP-MATNR.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
ELSE.
WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
WRITE :/ 'MATERIAL TYPE :' , V_MTART.
SUBMIT SLIS_DUMMY WITH P_MATNR EQ IT_VBAP-MATNR
WITH P_MTART EQ V_MTART.
ENDIF.
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CLOSE'.
CALL TRANSACTION 'SE38'.
ENDCASE.
plz reward if useful -
*Help Needed* Adding multiple emails/mailing list in the email subscription
Help Needed
Hi,
Can someone help me in adding multiple email address/mailing list in the email subscription for interactive reports in Apex 4.
pls mail me at [email protected]
Regards,
SunnyThe doc does not mention a separator for the email addresses because we only support one email address per subscription. I have logged a task for our next release to look at expanding it and allowing multiple.
-- Sharon -
Report for list of Product groups
Hi,
I wanted to have complete list of all the product groups (created thro MC84) and its members in one report.
Is there any standard report avl in SAP.
Regards
RishiHi,
Try using transactions - MC71, MC72 and MC73.
Revert back.
Rgds,
Shrenik -
Recently purchased my first Apple product (ipod touch) and am needing to know how to transfer music from other ipods and other itunes accounts. Can this be done? I have plugged in another ipod into my new itunes account and it will not let me transfer the music that it contains into my new account. Any/all help is much appreciated. Thank you!I have no music in my itunes account yet. I am trying to transfer music from friends' accounts and their ipods/playlists.
-
Linked lists problem -- help needed
Hello again. I've got yet another problem in my C++ course that stems from my use of a Mac instead of Windows. I'm going to install Parallels so I can get Windows on my MacBook and install Visual Studio this week so that I don't have to deal with these discrepancies anymore, but in the meanwhile, I'm having a problem here that I don't know how to resolve. To be clear, I've spent a lot of time trying to work this out myself, so I'm not just throwing this up here to have you guys do the work for me -- I'm really stuck here, and am coming here as a last resort, so I'll be very, very appreciative for any help that anyone can offer.
In my C++ course, we are on a chapter about linked lists, and the professor has given us a template to make the linked lists work. It comes in three files (a header, a source file, and a main source file). I've made some adjustments -- the original files the professor provided brought up 36 errors and a handful of warnings, but I altered the #include directives and got it down to 2 errors. The problematic part of the code (the part that contains the two errors) is in one of the function definitions, print_list(), in the source file. That function definition is shown below, and I've marked the two statements that have the errors using comments that say exactly what the errors say in my Xcode window under those two statements. If you want to see the entire template, I've pasted the full code from all three files at the bottom of this post, but for now, here is the function definition (in the source file) that contains the part of the code with the errors:
void LinkedList::printlist( )
// good for only a few nodes in a list
if(isEmpty() == 1)
cout << "No nodes to display" << endl;
return;
for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
{ cout << setw(8) << CURSOR->name; } cout << endl; // error: 'setw' was not declared in this scope
for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
{ cout << setw(8) << CURSOR->test_grade; } cout << endl; // error: 'setw' was not declared in this scope
As you can see, the problem is with the two statements that contain the 'setw' function. Can anyone help me figure out how to get this template working and get by these two errors? I don't know enough about linked lists to know what I can and can't mess with here to get it working. The professor recommended that I try using 'printf' instead of 'cout' for those two statements, but I don't know how to achieve the same effect (how to do whatever 'setw' does) using 'printf'. Can anyone please help me get this template working? Thank you very, very much.
For reference, here is the full code from all three files that make up the template:
linkedlist.h (header file):
#ifndef LINKED_LINKED_H
#define LINKED_LINKED_H
struct NODE
string name;
int test_grade;
NODE * link;
class Linked_List
public:
Linked_List();
void insert(string n, int score);
void remove(string target);
void print_list();
private:
bool isEmpty();
NODE *FRONT_ptr, *REAR_ptr, *CURSOR, *INSERT, *PREVIOUS_ptr;
#endif
linkedlist.cpp (source file):
#include <iostream>
using namespace std;
#include "linkedlist.h"
LinkedList::LinkedList()
FRONT_ptr = NULL;
REAR_ptr = NULL;
PREVIOUS_ptr = NULL;
CURSOR = NULL;
void Linked_List::insert(string n, int score)
INSERT = new NODE;
if(isEmpty()) // first item in List
// collect information into INSERT NODE
INSERT-> name = n;
// must use strcpy to assign strings
INSERT -> test_grade = score;
INSERT -> link = NULL;
FRONT_ptr = INSERT;
REAR_ptr = INSERT;
else // else what?? When would this happen??
// collect information into INSERT NODE
INSERT-> name = n; // must use strcpy to assign strings
INSERT -> test_grade = score;
REAR_ptr -> link = INSERT;
INSERT -> link = NULL;
REAR_ptr = INSERT;
void LinkedList::printlist( )
// good for only a few nodes in a list
if(isEmpty() == 1)
cout << "No nodes to display" << endl;
return;
for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
{ cout << setw(8) << CURSOR->name; } cout << endl; // error: 'setw' was not declared in this scope
for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
{ cout << setw(8) << CURSOR->test_grade; } cout << endl; // error: 'setw' was not declared in this scope
void Linked_List::remove(string target)
// 3 possible places that NODES can be removed from in the Linked List
// FRONT
// MIDDLE
// REAR
// all 3 condition need to be covered and coded
// use Trasversing to find TARGET
PREVIOUS_ptr = NULL;
for(CURSOR = FRONT_ptr; CURSOR; CURSOR = CURSOR-> link)
if(CURSOR->name == target) // match
{ break; } // function will still continue, CURSOR will
// mark NODE to be removed
else
{ PREVIOUS_ptr = CURSOR; } // PREVIOUS marks what NODE CURSOR is marking
// JUST before CURSOR is about to move to the next NODE
if(CURSOR == NULL) // never found a match
{ return; }
else
// check each condition FRONT, REAR and MIDDLE
if(CURSOR == FRONT_ptr)
// TARGET node was the first in the list
FRONT_ptr = FRONT_ptr -> link; // moves FRONT_ptr up one node
delete CURSOR; // deletes and return NODE back to free memory!!!
return;
}// why no need for PREVIOUS??
else if (CURSOR == REAR_ptr) // TARGET node was the last in the list
{ // will need PREVIOUS for this one
PREVIOUS_ptr -> link = NULL; // since this node will become the last in the list
REAR_ptr = PREVIOUS_ptr; // = REAR_ptr; // moves REAR_ptr into correct position in list
delete CURSOR; // deletes and return NODE back to free memory!!!
return;
else // TARGET node was the middle of the list
{ // will need PREVIOUS also for this one
PREVIOUS_ptr -> link = CURSOR-> link; // moves PREV nodes' link to point where CURSOR nodes' points
delete CURSOR; // deletes and return NODE back to free memory!!!
return;
bool Linked_List::isEmpty()
if ((FRONT_ptr == NULL) && (REAR_ptr == NULL))
{ return true; }
else
{ return false;}
llmain.cpp (main source file):
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
#include "linkedlist.h"
int main()
Linked_List one;
one.insert("Angela", 261);
one.insert("Jack", 20);
one.insert("Peter", 120);
one.insert("Chris", 270);
one.print_list();
one.remove("Jack");
one.print_list();
one.remove("Angela");
one.print_list();
one.remove("Chris");
one.print_list();
return 0;setw is the equivalent of the field width value in printf. In your code, the printf version would look like:
printf("%8s", CURSOR->name.c_str());
I much prefer printf over any I/O formatting in C++. See the printf man page for more information. I recommend using Bwana: http://www.bruji.com/bwana/
I do think it is a good idea to verify your code on the platform it will be tested against. That means Visual Studio. However, you don't want to use Visual Studio. As you have found out, it gets people into too many bad habits. Linux is much the same way. Both development platforms are designed to build anything, whether or not it is syntactically correct. Both GNU and Microsoft have a long history of changing the language standards just to suit themselves.
I don't know what level you are in the class, but I have a few tips for you. I'll phrase them so that they answers are a good exercise for the student
* Look into const-correctness.
* You don't need to compare a bool to 1. You can just use bool. Plus, any integer or pointer type has an implicit cast to bool.
* Don't reuse your CURSOR pointer as a temporary index. Create a new pointer inside the for loop.
* In C++, a struct is the same thing as a class, with all of its members public by default. You can create constructors and member functions in a struct.
* Optimize your function arguments. Pass by const reference instead of by copy. You will need to use pass by copy at a later date, but don't worry about that now.
* Look into initializer lists.
* In C++ NULL and 0 are always the same.
* Return the result of an expression instead of true or false. Technically this isn't officially Return Value Optimization, but it is a good habit.
Of course, get it running first, then make it fancy. -
User Exit for Material Group...Urgent help needed
Does anybody have an idea of which user exit can be used to capture the changes made to material group in MM02(Material)..... Urgent help needed...
See the below user exit and this will trigger under MM01,MM02 and MM17 Transaction
Enhancement name : MGA00001
Function module :EXIT_SAPLMGMU_001
Include : ZXMG0U02
Reward Points if it is helpful.
Thanks
Seshu -
Help - Need to save group text - story of daughter's life
Hello and thank you in advance. This may be a very dumb question, but I can't seem to find an easy solution in the research I have done.
I have used a group text since the birth of my daughter to update family members on her life. This group text is now basically the story of her life with pictures, things she has done, funny things she has said... I don't want to lose any of that. However, my iPhone 4S 64G is now maxed on storage due to this group text. I need to save this somehow, but don't know how to go about it. I have backed up my phone many times, but now that I need to delete the text to gain storage capacity. I don't want it to override the backup next time with the deletion. I need to keep the history.
Any suggestions on how I can go about that?
I have purchased a program called DiskAid, but have not had time to see if it will suit my needs.
Thank you,
A mommy desperately in need of help!Hi Maggie,
I would try the software decipher text message. It will let you save your text messages to your computer so that you can safely archive all the sms conversations between you and your family. -
Help needed for grouping.
Hi,
Help needed .
I have an internal table having 6 .
Ex :
f1 f2 f3 f4 f5 f6
a aa 11 p1 10 10
a aa 12 p1 20 20
b aa 11 p2 30 30
b aa 12 p2 40 30
Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
To Display :
f1 f2 f3 f4 f5 f6
a aa 11 p1 30 30.
b aa 11 p2 70 60.
can anyone help me.How to do this..?
ThanksHere you go
DATA:
BEGIN OF cur_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(2) TYPE c,
f6(2) TYPE n,
END OF cur_tab.
DATA:
BEGIN OF sum_tab OCCURS 0,
f1 TYPE c,
f4(2) TYPE c,
f5 TYPE p,
f6 TYPE p,
END OF sum_tab.
DATA:
BEGIN OF final_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(5) TYPE c,
f6(5) TYPE c,
END OF final_tab.
START-OF-SELECTION.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '10'.
cur_tab-f6 = '10'.
APPEND cur_tab.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '20'.
cur_tab-f6 = '20'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '30'.
cur_tab-f6 = '30'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '40'.
cur_tab-f6 = '30'.
APPEND cur_tab.
LOOP AT cur_tab.
MOVE-CORRESPONDING cur_tab TO sum_tab.
COLLECT sum_tab.
ENDLOOP.
LOOP AT sum_tab.
READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
f4 = sum_tab-f4.
IF sy-subrc NE 0.
WRITE:/ 'Something went very wrong'.
CONTINUE.
ENDIF.
MOVE-CORRESPONDING cur_tab TO final_tab.
MOVE-CORRESPONDING sum_tab TO final_tab.
APPEND final_tab.
ENDLOOP.
LOOP AT final_tab.
WRITE:/1 final_tab-f1,
AT 5 final_tab-f2,
AT 10 final_tab-f3,
AT 15 final_tab-f4,
AT 20 final_tab-f5,
AT 25 final_tab-f6.
ENDLOOP.
and the output
a aa 11 p1 30 30
b aa 11 p2 70 60 -
hello ,
I am a beginner in terms of writing sql queries. I hope some body can help me out.
I have two tables
mysql> desc user_group_t;
---------------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
---------------------------------------------------+
| userAccountId | char(8) | | PRI | | |
| groupId | char(8) | | PRI | | |
---------------------------------------------------+
2 rows in set (0.00 sec)
mysql> desc group_t;
---------------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
---------------------------------------------------+
| id | char(8) | | PRI | | |
| name | char(50) | YES | | NULL | |
| email | char(100) | YES | | NULL | |
| description | char(254) | YES | | NULL | |
| parentId | char(8) | YES | | NULL | |
| creatorId | char(8) | YES | | NULL | |
| createDate | char(20) | YES | | NULL | |
| updateDate | char(20) | YES | | NULL | |
| updatorId | char(8) | YES | | NULL | |
---------------------------------------------------+
9 rows in set (0.00 sec)
what I want is list of all groups with id,name and #of members(which is the # of rows in the user_group_t for any given id). Importantly I need the groups with 0 members also to be listed. In short my output should contain exactly the same number of rows as in group_t table with an additional column indicating # of members for that group.
Any help would be greatly appreciated.
Thanks in Advance.
-VasanthThanks Donald,
Actually I figured it out, with the following query:
select id,name,sum(if(groupid is not null,1,0)) as members from group_t left join user_group_t on id=groupid group by id;
I tried your solution, but mysql says there is an error at '+' . Anyway I modified your solution to the one below and it worked.
select a.id, a.name, count(b.groupid) from group_t a left join user_group_t b on a.id=b.groupid group by a.id, a.name;
I tried that before but then I used Count(*) instead of count on groupid. Your solution is elagant and I will go with yours.
Thanks again.
Vasanth
Maybe you are looking for
-
I am getting the following error. My Site creation failure for user DOMAIN\userxyz Microsoft.SharePoint.SPException: User cannot be found. Am alse getting the following value "SPSSITEERROR" in the "Personal site" field for each user profile The setu
-
I have a lot of photo prints taken on old-fashioned film, before the days of digital. I have an HP Photosmart 5520 scanner/printer which has an option for Photo Preset. The default 'Resolution' setting is 200ppi. There are other options for 75,100,30
-
SOAP to FILE using BPM to catch exception and save error into the table
Hi All My scenario SOAP to FILE using BPB is working fine but now I have a requirement to catch an exception if something wrong happened on a runtime and save it into the tracking table, is that possible, if it is please point me to the similar step
-
Hi, I'm using JDeveloper 11.1.1.0.2, trying to create a table with a read only VO and the using lazy content delivery. The table is inside a region and DisplayRow is set to selected Every time I select a row the table "*flash*". It does a partial ren
-
Hello, I am having trouble with MODBUS TCP communication. I am trying to read the input registers on a master.vi after a slave.vi has written to it. Attached you will find my slave and master vi's. I have made sure I had the correct IP address, sa