Collect statment in ABAP

how to use collect statement.
Moderator Message: F1
Edited by: kishan P on Apr 8, 2011 3:49 PM

Hi Arun,
Use SELECT-OPTIONS with the addition NO-DISPLAY , then you can use it same as RANGES.
Refer to the sample code.
REPORT  zztest_select.
DATA : g_matnr TYPE  mara-matnr.
*-- NO-DISPLAY makes SELECT-OPTION not to be dispalyed and
*-- you can use the SELECT-OPTION as RANGES
SELECT-OPTIONS : s_matnr FOR  g_matnr NO-DISPLAY.
CLEAR : s_matnr,
        s_matnr[]
s_matnr-sign   = 'I'.
s_matnr-option = 'BT'.
s_matnr-low    = 'MATERIAL10'.
s_matnr-high   = 'MATERIAL99'.
APPEND s_matnr.
<b>AS</b>

Similar Messages

  • ALV Grid Collect Statment for SUM the data.

    Hellow Experts,
    i am new to ABAP i have on programme which output is coming like ,
    Prod.ID   ... .... ... Qnty in Date1 .. Qnty in  Date2... Qnty in Date3........Qnty in Date31.
    0001                       12.1               0.00               10.1
    0001                       12.1               0.00               10.1
    I need the summestion of qnty against that date , and prodId should not repate my Output should be like this,
    Prod.ID   ... .... ... Qnty in Date1 .. Qnty in  Date2... Qnty in Date3........Qnty in Date31.
    0001                       24.2               0.00               20.2
    0002                       12.1               0.00               10.1
    I wrote collect statment but its not working , plz help me for this, and one more thing that i am passing the data to gt_data.
    My code is here,
    TABLES: AFRU,AUFK,VBAK,KNA1,VBAP,VBKD.
    DATA: BEGIN OF i_alv OCCURS 0,
          ARBID TYPE AFRU-ARBID,
          BUDAT TYPE AFRU-BUDAT,
          WERKS TYPE AFRU-WERKS,
          LMNGA TYPE AFRU-LMNGA,
          AUFNR TYPE AFRU-AUFNR,
          KDAUF TYPE AUFK-KDAUF,
          KDPOS TYPE AUFK-KDPOS,
          VBELN TYPE VBAK-VBELN,
          KUNNR TYPE VBAK-KUNNR,
          NAME1 TYPE KNA1-NAME1,
          MATNR TYPE VBAP-MATNR,
          KDKG1 TYPE VBKD-KDKG1,
      end of i_alv.
    TYPES: BEGIN OF ty_data,
             lmnga TYPE AFRU-LMNGA,
             BUDAT TYPE AFRU-BUDAT,
             ARBID TYPE AFRU-ARBID,
             aufnr TYPE AFRU-AUFNR,
             kdauf TYPE AUFK-KDAUF,
             name1 TYPE KNA1-NAME1,
             matnr TYPE VBAP-MATNR,
             kdkg1 TYPE VBKD-KDKG1,
           END OF ty_data,
           tt_data TYPE STANDARD TABLE OF ty_data,
           BEGIN OF ty_dyn1,                                    "#EC NEEDED
             ARBID TYPE AFRU-ARBID,
             aufnr TYPE AFRU-AUFNR,
             kdauf TYPE AUFK-KDAUF,
             name1 TYPE KNA1-NAME1,
             matnr TYPE VBAP-MATNR,
             kdkg1 TYPE VBKD-KDKG1,
           END OF ty_dyn1,
           BEGIN OF ty_dyn2,                                    "#EC NEEDED
             date  TYPE AFRU-LMNGA,
           END OF ty_dyn2,
           BEGIN OF ty_cols,
             date TYPE BUDAT,
           END OF ty_cols,
           tt_cols TYPE SORTED TABLE OF ty_cols WITH UNIQUE KEY date.
    DATA: gt_data TYPE tt_data,
          gt_data2 type tt_data,
          gt_cols TYPE tt_cols,
          gs_col  TYPE ty_cols.
    DATA: go_sdescr     TYPE REF TO cl_abap_structdescr,
          go_sdescr_new TYPE REF TO cl_abap_structdescr,
          go_tdescr     TYPE REF TO cl_abap_tabledescr,
          gdo_handle    TYPE REF TO data,
          gs_component  TYPE abap_compdescr,
          gs_comp       TYPE abap_componentdescr,
          gt_components TYPE abap_component_tab,
          gr_data       TYPE REF TO cl_salv_table,
          gr_funct      TYPE REF TO cl_salv_functions,
          gr_columns    TYPE REF TO cl_salv_columns_table,
          gr_column     TYPE REF TO cl_salv_column_table,
          g_col         TYPE lvc_fname,
          g_txt         TYPE scrtext_l.
    FIELD-SYMBOLS: <t_data> TYPE ANY TABLE,
                   <s_data> TYPE any,
                   <c> TYPE any,
                   <d> TYPE ty_data.
    DATA:  pono TYPE ztecerti-pono,
           jobno TYPE ztecerti-jobno,
           sdk TYPE string,
           insert TYPE c,
           ok_code LIKE sy-ucomm.
    CALL SCREEN 100.
    START-OF-SELECTION.
    * Populate test data
    FORM get_data.
      SELECT A~ARBID
             A~BUDAT
             A~WERKS
             A~LMNGA
             A~AUFNR
             B~KDAUF
             B~KDPOS
             C~VBELN
             C~KUNNR
             D~NAME1
             E~MATNR
             F~KDKG1
        INTO CORRESPONDING FIELDS OF TABLE  gt_data
                   FROM AFRU AS A INNER JOIN AUFK AS B ON A~AUFNR EQ B~AUFNR
                                  INNER JOIN VBAK AS C ON B~KDAUF = C~VBELN
                                  INNER JOIN KNA1 AS D ON C~KUNNR = D~KUNNR
                                  INNER JOIN VBAP AS E ON B~KDAUF = E~VBELN
                                  INNER JOIN VBKD AS F ON B~KDAUF = F~VBELN
      WHERE   A~ARBID = '10000181' AND  A~BUDAT BETWEEN  PONO AND jobno
      GROUP BY A~ARBID A~LMNGA  A~BUDAT A~WERKS  A~AUFNR B~KDAUF   F~KDKG1   E~MATNR  D~NAME1 C~KUNNR   C~VBELN  B~KDPOS
    ORDER BY B~KDPOS.
    *collect gt_data into gt_data2.
    *gt_data
    *LOOP AT gt_data ASSIGNING <d>.
    ENDFORM.
    Thanking you i realy need it badly

    Answer is fully given here: Re: alv grid Cross Tab Issue....
    m.

  • Problem  in using COLLECT statment

    Hi experts,
    getting problem in using COLLECT statement.  attaching my code below.
    LOOP AT it_final1 INTO wa_final1.
         LOOP AT it_final INTO wa_final WHERE vagrp = wa_final1-vagrp AND verwmerkm = wa_final1-verwmerkm.
           wa_final1-anzwertg = wa_final-anzwertg.
           COLLECT wa_final1 INTO it_final1.
         ENDLOOP.
         CLEAR: wa_final1, wa_final.
       ENDLOOP.
    here , i want to use collect statement only for  "anzwertg" field from internal table. but 2 more fields also getting  compressed .
    attaching screen shot
    here, original_input and max fields also getting compressed.
    could anybody please help me out in this.
    Thanks in advance.
    Regards
    satish

    Hi satish....
    collect statement works based on char fields..
    by default it will taken char fields as a key fields .........
    if any char field is repeated then corresponding numc values will be added....
    other wise it will act as a APPEND statement......
    Here in ur code there is no char field then how it will caliculate that values...
    just check it once..
    Regards,
    Vamsi....

  • How to convert the Ranges statment in  ABAP program ?

    Dear All,
    I need to remove the ranges statements in my ABAP program. Becaz I found the Ranges statements are obsolete from SLIN results.
    thanks,
    Arunachalam S

    Hi Arun,
    Use SELECT-OPTIONS with the addition NO-DISPLAY , then you can use it same as RANGES.
    Refer to the sample code.
    REPORT  zztest_select.
    DATA : g_matnr TYPE  mara-matnr.
    *-- NO-DISPLAY makes SELECT-OPTION not to be dispalyed and
    *-- you can use the SELECT-OPTION as RANGES
    SELECT-OPTIONS : s_matnr FOR  g_matnr NO-DISPLAY.
    CLEAR : s_matnr,
            s_matnr[]
    s_matnr-sign   = 'I'.
    s_matnr-option = 'BT'.
    s_matnr-low    = 'MATERIAL10'.
    s_matnr-high   = 'MATERIAL99'.
    APPEND s_matnr.
    <b>AS</b>

  • Collect Statment

    Hi all,
    I have an internal table with two fields
    data : begin of itab occurs 0,
    field1(10) type c,
    field(5) type n,
    end of itab.
    Itab-field1 = 'Field1'.
    itab-field2 = 10.
    collect itab.
    Itab-field1 = 'Field1'.
    itab-field2 = 20.
    collect itab.
    I expected the output to be
    field1 30
    but instead it gives me an output
    field1 10
    field1 20
    But the collect def is
    if non numeric fields are same then it add the numeric fields
    I know it works if i use type i instead type n
    Let me know
    Thanks

    kajol,
    Your issue is in the definiton of the table.  Collect will compair Alpha or Numeric fields to be equal before the summation is done.
    In your case your field2 is defined as N (Numeric) which is a character type field.  Change the type to I or P and it will work fine.
    This example worked
    DATA : BEGIN OF itab OCCURS 0,
    field1(10) TYPE c,
    field2(5) TYPE i,
    END OF itab.
    itab-field1 = 'Field1'.
    itab-field2 = 10.
    COLLECT itab.
    itab-field1 = 'Field1'.
    itab-field2 = 20.
    COLLECT itab.
    LOOP AT itab.
      WRITE:/ itab-field1, itab-field2.
    ENDLOOP.

  • Collecting ABAP's into Transport Request

    Guru's
    I have about 100 ABAP Programs that start with ZC* these are all transported into Q system. But now due to technical reasons we are collecting Individual objects into different Transport requests to import into our Q & P systems respectively... Collecting  Infoareas,DSO's,Cubes, and etc.,. had been quite easy.
    Now the issue : Is their a possibility that I can collect all the ABAP's in one shot and these should include the dependencies (Tables;FuMo's) etc.,
    A tip in this regard would be highly appreciated.
    Regards
    BVPK

    Hi BVPK
    I think there isn`t such a easy way you want to go.
    But I`ve got a little work around to make it easier (I hope)
    Call TA: SE03 --> select "search for requests --> press F8
    Next screen, pres F8 again --> select/create a transport request  -> press (Ctrl+F11) "include objects"
    select "free choosen Objects" (sorry, it`s a german language system here)  and enter.
    --> now tyoe in the paket, your allready transported objects are assigned to --> F8
    Now you got a stuctured list with all your components. You can mark (F6) every single entry you need and include all the marked in your selected transport request.
    Hope this helps a little bit
    Greets
    TOM

  • Export statement in ABAP Objects

    Hi All,
    I am using A Statment like this a BADI.
    EXPORT XXXXX TO MEMORY ID 'YYY'.
    But this statement is not supported in ABAP Objects can any one please let me know how i can use export statment is abap objects?
    Thanks in advance.

    I have pass a structure to the memory.
    Here is my structure : ztest.
    And i am using like this
    EXPORT ZTEST TO MEMORY ID 'HK'.
    Its not supporting in ABAP Objects.
    Can you please more clear with your answer?
    Thanks

  • Suggestions thread for ABAP FAQ sticky

    See these threads for "online collections" in the ABAP Development forums =>
    FAQ's, intros and memorable discussions in the ABAP General Forum
    FAQ's, intros and memorable discussions in the ABAP Data Dictionary Forum
    FAQ's, intros and memorable discussions in the ABAP UI Programming Forum
    FAQ's, intros and memorable discussions in the ABAP Form Printing Forum
    FAQ's, intros and memorable discussions in the Enhancements & Modifications
    FAQ's, intros and memorable discussions in the Performance and Tuning Forum
    FAQ's, intros and memorable discussions in the Data Transfers Forum
    FAQ's, intros and memorable discussions in the ABAP Objects Forum
    Edited by: Julius Bussche on Apr 21, 2009 5:22 PM

    ABAP General
    Subtotals in alv list.   => Subtotals in ALV    <= Added and moved to UI programming
    Can we modify a sub-total in ALV => Subtotals text in ALV /Modification of Subtotals in ALV   <= Moved down to new thread.
    cl_salv_table - Save Layout =>  ALV OM Save layout option <= Moved down to new thread.
    Report with page break.   => ALV Report with page break. <= Moved down to new thread.
    ALV Sorting Not Working after Adding Checkbox to ALV => ALV Sorting and Group Functionality working with Checkbox <= Moved down to new thread.
    Calculating Total with Checkbox in ALV Grid => Calculating Total with Checkbox in ALV Grid  <= Moved down to new thread.
    DUMP WHILE SUMMATION IN ALV  => General Fieldcatalog error.  <= Moved down to new thread.
    Problems with REUSE_ALV_FIELDCATALOG_MERGE =>Problems with REUSE_ALV_FIELDCATALOG_MERGE   <= Moved down to new thread.
    Must i_structure_name for LVC_FIELDCATALOG_MERGE be pre-defined in dict?   => Converting SLIS fieldcatalog to LVC fieldcatalog  <= Moved down to new thread.
    Capture Checkbox Value in ALV Grid   => Capturing the editable fields values in ALV   <= Moved down to new thread.
    how to refresh table display using slis and 'reuse_alv_grid_display method. => Refreshing the ALV Display  <= Moved down to new thread.
    fetch data in edittable field in alv using REUSE_ALV_GRID_DISPLAY_LVC FM => Reading the editable values for ALV LVC function  <= Moved down to new thread.
    Radibutton in ALV Report output => Radio buttons in ALV report  <= Moved down to new thread.
    Edit rows in ALV => Usage of Styles in ALV for disable/enable input option  <= Moved down to new thread.
    how to copy/delete file => executing Unix commands <= Hmmm... c-calling the 'system' does not work in my systems during normal operations. See system param 'rdisp/call_system' which can be disabled, then the code dumps. Is there a different thread with DATASET commands? SXPG?
    express CR_LF => ABAP char Utilities CR_LF use , replace '##' in a application server <= Ahhh yes, I remember this series. This is one of the nicer threads from it... Added.
    String Operations which contain the special character '#' in BDC Session => ABAP char Utilities Horizontal_tab use , replace '#' in application server file <= Sufficiently covered by the next thread.
    Problem with statement "find all occurences of ..." => ABAP char utilites Newline, replace '#' in application server in end of line <= Added.
    How to Send Email to Outlook? =>sending mails to outlook <= Added.
    FM for uploading Image to SAP => upload image to mime repository <= Added.
    Passing an Internal Table to a Report executed through 'Submit' => use of Import and export refer Rich Heilman's code  <= Added.
    Create a parameter to enter a password => Selection parameter password behaviour  <= Added.
    ABAP Dictionary
    =>
    Form Printing
    Exporting Graphics from SAP =>Download Logo from SE78 <= Okay, added... but the thread is rather old and ws_download is obsolete now, isn't it?
    BDC for SE78 Transaction  => Upload Logo programatically <= Hmmm... external performs and guests. I would like more opinions on this one before adding.
    UI Programming
    [Top of page in OO ALV|TOP_OF_PAGE in ALV  Using CL_GUI_ALV_GRID ]=> Top of page in OO ALV <= I understand that this blog was very helpfull, but it is full of email addresses. Hmmm.. tough call Is there another example (thread) without any "here is my mail address" comments. We want to avoid those.
    [Top of page Alignments in Normal ALV|Alignment of  Data in TOP-OF-PAGE in ALV GRID] =>  Top of page in normal ALV <= this is more wiki material in a blog, but again often asked... Hmm.. lets go through the others first and come back to this one.
    To display URL as a hyperlink (along with simple text) in dialog program   => URL display using HTML Viewer  <= Added.
    select-option on dynpro => Select-options usage in Module pool programming  <= Added.
    New! =>
    Enhancements and Modifications
    =>
    ABAP Performance and Tuning
    =>
    Data Transfers
    =>
    ABAP Objects
    =>
    Edited by: Julius Bussche on Oct 3, 2008 10:31 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:34 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:38 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:43 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:55 PM
    Edited by: Julius Bussche on Oct 4, 2008 12:06 AM
    Edited by: Julius Bussche on Oct 4, 2008 12:40 AM
    Edited by: Julius Bussche on Oct 4, 2008 12:57 AM
    Edited by: Julius Bussche on Oct 4, 2008 1:23 AM
    Edited by: Julius Bussche on Oct 4, 2008 3:27 PM
    Edited by: Julius Bussche on Oct 4, 2008 3:39 PM
    Edited by: Julius Bussche on Oct 4, 2008 5:40 PM
    Edited by: Julius Bussche on Oct 4, 2008 5:59 PM
    Edited by: Julius Bussche on Oct 4, 2008 7:17 PM

  • Little abap mapping sample

    Hi everyone.
    I'm a two years old abap programmer and i would like to understand how abap mapping works.
    I've read a sap document with a code sample but i don't understand it very well.
    I've defined a message type containing 2 fields, name and age. This structure has cardinality of 1..unbounded.
    I want to make and abap mapping and have one outbound estructure containing the result of the 'collect' instruction' in abap. the output structure is the same as the input one.
    Thanks for the help.

    inigo,
    I have seen many of your posts and you did not assign  points to the folks who answered.
    I request you to reward the people who have replied to your posts. IF you consider that the replies have helped u , assign
    2 points -- helpful
    6 points -- very helpful
    10 points -- problem solved..
    If u are not able to see the assign point s button refer to this thread...
    Unable to award points
    People in the forum spend their valuable time answering questions. It is courtesy to do so.
    regards
    Shravan

  • Help with a COLLECT statement.

    I had to make changes to some code and these changes required me to add some fields to an internal table.  Below is what the table looked like before I made any changes:
    DATA : BEGIN OF t_frgroup OCCURS 0,
        BEGIN CHANGE 02/11/03
            hazmat       TYPE c,
        END CHANGE 02/11/03
            mfrgr        LIKE lips-mfrgr,
            brgew        LIKE lips-brgew,
            lfimg        LIKE lips-lfimg,
            qtypal       LIKE w_nbr_palletsx,
            qtypce       LIKE w_nbr_palletsx,
            vstel        LIKE likp-vstel,
            no_cnvrt     TYPE c,
    END OF t_frgroup.
    This is what it looked like after I made the changes:
    DATA : BEGIN OF t_frgroup OCCURS 0,
        BEGIN CHANGE 02/11/03
            hazmat       TYPE c,
        END CHANGE 02/11/03
            mfrgr        LIKE lips-mfrgr,
            brgew        LIKE lips-brgew,
            lfimg        LIKE lips-lfimg,
            qtypal       LIKE w_nbr_palletsx,
            qtypce       LIKE w_nbr_palletsx,
            vstel        LIKE likp-vstel,
            no_cnvrt     TYPE c,
            matnr        TYPE lips-matnr,
            vbeln        TYPE lips-vbeln,
            posnr        TYPE lips-posnr,
            qty          LIKE vblkp-lfimg,
            vrkme        LIKE lips-vrkme,
            converted(1) TYPE c VALUE 'N',
    END OF t_frgroup.
    My issue is, after adding those fields, my collect statement no longer works:
          LOOP AT t_lips.
            MOVE-CORRESPONDING t_lips TO t_frgroup.
            COLLECT t_frgroup.
          ENDLOOP.
    I need it to collect with the key being mfrgr.  How can I do this?  After adding the fields the collect statement now acts as an insert (I assume that matnr is now acting as the key) instead of collect. 
    Regards,
    Aaron

    Hi Aaron,
    1. Define the table keys while defining your internal table.
    2. The order of the fields in the structure should be that the key fields come first , then the quantity fields and amount fields next.
    3. Sort the table by the key fields before the loop.
    The collect statment is creating news entries because If the system finds an entry with the key fields , the numeric fields that are not part of the table key are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead. Clearly the system is unable to find the existing entry because the key fields are not defined in your internal table or the fields are are out of order.
    Hope this helps.
    A simple example depicting this is as follows :
    TYPES: BEGIN OF COMPANY,
            NAME(20) TYPE C,
            SALES    TYPE I,
          END OF COMPANY.
    DATA: COMP    TYPE COMPANY,
          COMPTAB TYPE HASHED TABLE OF COMPANY
                                    WITH UNIQUE KEY NAME.
    COMP-NAME = 'Duck'.  COMP-SALES = 10. COLLECT COMP INTO COMPTAB.
    COMP-NAME = 'Tiger'. COMP-SALES = 20. COLLECT COMP INTO COMPTAB.
    COMP-NAME = 'Duck'.  COMP-SALES = 30. COLLECT COMP INTO COMPTAB.
    regards,
    Advait Gode.
    Edited by: Advait Gode on Mar 28, 2008 3:50 PM

  • Multiple user mapping challenge, without an AD.

    Dear IdM gurus,
    I have a challenging situation here and was wondering whether anyone else has made experiences with it.
    We have the usual collection of ERP ABAP systems + BW + BI Portal + some non-SAP systems which we want to connect to a central IdM. There is however no HR nor org structure data available, nor any legacy CUA used.
    Now the bugger is that there is no AD in this network either... The closest thing to it is a Novel directory server for a subset of the users to access their own mails. The rest are authenticated only physically and via their UID + PWD credentials in the local systems.
    As a result of this, there are people who have a multiple of different user ID names in each system. Each of them are impacted by at least 2 different UID names. Some of them might even have 5 different UID names for 5 different systems. There is no central system which contains a full set of all UIDs.
    A good dose of data cleansing would be the best... but for the ABAP systems and other workflow type of topics and time pressure this would be rather disruptive to the running systems.
    What I have seen discussed before is creating an "AccountName" ATTRIBUTE for each of the respositories and then overwriting the IdM MSKEYVALUE with it (if found) when provisioning a role or password to that repository.
    I have however not been able to find any documented solutions relating to this, nor any API available for it either?
    I am also wondering what the "gotchas" are, from anyone who had done this already? (Like delta jobsfor loading new data from managed systems, or subsequent unique UIDs whose names might collide with the AccountName attribute of an old UID, or impacts later on for SAML 2.0 Single-Sign-On, etc).
    Cheers,
    Julius

    Hello Julius,
    <br/><br/>
    that is quite a challenge you got there. But there a several things you can do.
    How many systems (including different clients) do you have? Maybe you could also start with a subset of the ABAP-systems, too.
    <br/><br/>
    First of all is the question, what is the leading system for the creation of users by now. If possible, put the IdM in charge of that in the future. Hopefully everyone agrees on that.<br/>
    So you have done the Initial Load and there a several tables in the database with all users and their UIDs of each system. You need now to figure out how the persons and their users in the IdM shall be created and how the individual accounts of each persons will be consolidated. <br/>
    If possible, make an Excel list of persons with their usernames in all systems. OK, it would be sure annoying to everybody, to fill out excel list, but that would be the easiest way for you, and the savest. Even if you could only gather 50% of all employees that's quite a bunch then.<br/>
    If this is not or only partly possible, figure out how at least, let's say, 99% can be merged correctly. Firstname, lastname, mail is a good start. More attributes can be cost center personal number, company address, telefon number not to forget.
    Then I would write me a script or better an sql statment for a view, which tries to merge the user accounts into one person each. Not easy and time consuming in additon, but I guess that's worth it.<br/><br/>
    Then create the users. The ACCOUT<system name> atributes, which are created in the ToIdentityStore passes of each Initial Load of each target system hold all account names of a person. Thee will no need to change these. What you need to do for the MSKEYVALUE of the IdM to ensure that there are no problem, is as follows. Define a hierarchy of all systems. You mentioned the edirectory. I would place it in the first position. Then descending depending on the importance in the company and/or number of users.<br/>
    Why you need this? Well, assume there is a user named millera in ERP and one in BW, but they are not the same person. If your hierarchy says ERP before BW, the millera of the ERP will be the MSKEYVALUE of that person. The MSKEYVALUE of the other millera has to be set to a different username. For this, you have to detect if the BW millera has another username avaliable, if so, check if this can be the one for the MSKEYVALUE. The fallback strategy for the initial creation of the MSKEYVALUE of all existing users in the IdM as well as of the MSKEYVALUE of all future person would be like: Built a view upon all user tables AND the SENTRIES (and OENTRIES if you want to cover all "deleted" persons) view MSKEYVALUEs (of persons, requests for persons, pendings on persons, etc.). In this view there are now all usernames. Combine them, in that view, with the repository. During the initial writing of users in the Identity Store use this view to check the names.<br/><br/><br/>
    A wee bit easier is the creation of completly new employees. Use a rule (script-based!) to create the username, with a combination of surname, givenname and middlename and if needed numbers, or whatever comes to your mind. During the creation script do a check on the view created. If that username already exists continue the script. Oh, and take care of lastnames of nobels like "von, van, del, dos, ..." or double names, wtc. Not to mention umlaute, graves, accents or even chinese, cyrillic or other nice things which can mess up the creation of users in the target systems.<br/><br/>
    One last hint: Use the test mode check box in the ToIdentityStore pass(es) to avoid creation of users, etc. in the Identity Store until everything is fine.<br/>
    I do not know if anyone found a better solution, but that should be a good plan to start upon.<br/><br/>
    Best regards<br/><br/>
    Dominik
    Edited by: Domink Trui on Dec 19, 2009 4:49 PM
    Since when do we need to use < br / > to insert a new line?

  • Cumulative balance

    Where we can see the Cumulative balance option in the line item reports for GL, vendor and Customer.
    Thanks in advance
    Edited by: Nagi Reddy V. on Jan 25, 2008 4:58 AM

    using
    "Collect
    statment  .
    Girish

  • Spool to pdf

    I am having two different formats of spool:</b>
    <i><b>1. OTF  (Generated from smartforms/SAP Scripts)
    2. ABAP List  (Using write statments in ABAP)</b></i>
    Requirement is to merge them together first and then convert into pdf. user doesn't want to see individual files. Function modules are there to convert each into pdf format individually but how do I combine them together & generate 1 pdf file itself in ABAP.
    Thanks.

    The function module CONVERT_ABAPSPOOLJOB_2_PDF will generate one pdf & the function module CONVERT_OTFSPOOLJOB_2_PDF will generate another pdf. Its fine till here. It is from here that the problem arises. I am not able to merge them together into one file and download the complete pdf file(having both in it). (Note : Appending one into another only downloads the last one )
    I re-opened another post because the previous post was answered in a complete different direction and it wld be difficult for anyone to understand what I am trying to say, though I strssed enogh on the fact of different formats into one pdf file. Anyways I will close it.
    Thank you.
    Shiv

  • Sum in internal table issue

    Dear Experts,
    I have a Qty field which needs to be summed up when material no, po no and size are same in my internal table
    Eg: PO no     Mat no     Size      Qty
          111          001          L          10
          111          001          L          20
    needs to be shown as
          111          001          L          30
    I have tried using the collect statement in several ways but unfortunately ddnt work out. Any suggestions?

    Although Farid's sugegestion of looping and over two tables and summing would work I don't there is any reason to desist with your original approach of using the collect statement. The collect statment is designed exactly for this purpose and would be more efficient than two nested loops. As described before the folloiwng code should work the correct data elements inserted instead of the descriptions
    types: BEGIN OF tys_structure,
             po_num type po_num,
             mat_no type mat_no,
             size type sizw,
             qty type qty,
            END OF tys_structure.
    data: lt_table type standard table of tys_structure
               with non-unique key matnr, po_no, size,
             ls_workarea type type_structure.
    collect ls_workarea into lt_table.
    One additional note, It would probably be better to use a unique key of a sorted or hashed table if you only want the results to be aggreagted by material no, po no and size. I suggested a non-unique key of a standard table here because it is more flexible and i don't know what elese you might want to do with this table in your code. 

  • System definition in SLD

    Hi all
    I have an IDES EP 6.0 system along with BW 3.5 in the same system.
    Now when i logon to the sld home page through http://localhost:50000/sld, i need to see the technical description of the BW system
    Will i be able to see that?
    Pls help.
    Thanks in advance
    Krishna Chaitanya

    Well, there are technical system type: ABAP AS for your BW system. so it will not contain any special information.
    BW system is just one client of your SAP system. you can define a business system for BW.
    SM59,  Modify TCP/IP Connection: SAPSLDAPI and LCRSAPRFC
    You can use t-code  sldapicust to configure SLD for your ABAP system,  run t-code SLDCHECK  to have a test.
    RZ70, collect data.
    SLD will collect information from ABAP system automatically.
    Edited by: Shen Peng on May 4, 2008 5:27 PM

Maybe you are looking for

  • Can't save jpeg as jpeg, saves as eps instead. CS6 Please help!

    I have Photoshop CS6 installed on my Macbook pro, os x lion, I read the other threads saying to delete plug ins from older versions of PS or third party softwares and I'm pretty sure I got them all but the problem persists. Any way to find the files

  • Upload survey details in Activities

    Hi, Could Any one let me know how to Upload Survey details in Activities(Ref tab 'Questionnaire' in Activity)? We tried the function module CRM_SURVEY_MAINTAIN_MULTI_OW,which expects XML data. Is there any alternative for this?

  • Maximum record limit in BW ?

    Hi,       Is there any maximum limit for the number of records that can be scheduled in BW from the source system in one <b>Initialization/Full Update</b>. Any help would be appreciated. Thanks & Regards Hari

  • Pictures that are edited are not updated to iweb/web gallery..uses original

    Need some help...when i edit a picture and save it to iphoto, the new picture will not upload to iweb or web gallery.. it uses the original picture. Any ideas how to solve this issue?! thanks

  • Reg: Report Output

    Hi all, My requirement was to display the output in list. Once the user selects the push button sort on the list, it has to display the screen with all the fields, there he can enter the sorting No's in Ascending order staring from 1, Here My questio