Change transaction using BDC-problem for large number of lines on screen

Hi All,
I am developing BAPI (using BDC) which creates quality notification in SAP which is entered via front end web application. Structure p_qmsm contain 3 lines of task in notification. The code is as given below. To avoid problem of large no of lines on screen,code lines starting with * is used. This actually for pagedown after entering every 2 lines and creates new line. so that 2 lines always push up on screen and there will not be problem for creating large no of lines on screen
perform bdc_dynpro using 'SAPLIQS0' '7200'.
perform bdc_field using 'BDC_OKCODE' '=10\TAB11'.
LOOP AT p_qmsm INTO wa_qmsm.
*IF wa_qmsm_cntr > 2.
       wa_qmsm_cntr = 2.
       perform bdc_dynpro  using 'SAPLIQS0'                   '7204'.
       perform bdc_field   using 'BDC_OKCODE'                 '=PEND'.
ENDIF.
perform bdc_dynpro using 'SAPLIQS0' '7204'.
perform bdc_field using 'BDC_OKCODE' '/00'.
CONCATENATE 'VIQMSM-QSMNUM(' wa_qmsm_cntr ')' INTO wm_qmsm_qsmnum.
CONCATENATE 'VIQMSM-MNGRP(' wa_qmsm_cntr ')' INTO wm_qmsm_mngrp.
CONCATENATE 'VIQMSM-MNCOD(' wa_qmsm_cntr ')' INTO wm_qmsm_mncod.
CONCATENATE 'VIQMSM-MATXT(' wa_qmsm_cntr ')' INTO wm_qmsm_matxt.
perform bdc_field using wm_qmsm_qsmnum wa_qmsm-qsmnum.
perform bdc_field using wm_qmsm_mngrp wa_qmsm-mngrp.
perform bdc_field using wm_qmsm_mncod wa_qmsm-mncod.
perform bdc_field using wm_qmsm_matxt wa_qmsm-matxt.
wa_qmsm_cntr = wa_qmsm_cntr + 01.
ENDLOOP.
CALL TRANSACTION 'IQS2' USING wt_bdc
MODE 'N' UPDATE 'A'  MESSAGES INTO P_MESSTAB.
The same code is used in modify mode also. web application is sending all 3 lines in modify mode even if single line is modified. It is already decided to send all rows back from web application to SAP in same sequence. It is working fine if i comment 5 lines which is starting with *. But in modify mode, how can i ensure that correct row is modified? and how can i achieve problem of large no of lines on screen?Please suggest?

Hi yogesh,
how can i ensure that correct row is modified?
1. For this we need to know two things ;
   a) the database table in which the entries are already stored
   b) the sequence in which they are displayed in the transaction.
2. So before changing any line, we need to compare (the primary key values / important values)
   a) as per the database table and as per the incoming data from web application (using bapi)
  b) if the match is ok, it means that particular row was not modified, else modified.
how can i achieve problem of large no of lines on screen?
1. For this I am  not sure about the transaction and its screen. Manytimes for appending row on the screen,
  there is a PLUS + button on the grid toolbar. So for every entry, (inspite of some empty/filled rows already visible on the screen), we should use the + button, and this new row always appears on the top i.e. row number 1.
hope this helps.
regards,
amit m.

Similar Messages

  • How to change Org Unit for larg number of emplyees

    Dear Guru's,
    My client has uploaded wrong Org Units while hiring, now that has to be changed for larg number of employees.
    Can any one suggest me how can we do this for larg number of employees?
    Thanks in advance for your kind suggestions.
    Regards,
    Srinivas

    Hello Srinivas;
    By saying uploaded wrong organizational units, do you mean that organizational structure in PPOME is wrong or employee - position assignment is wrong?
    If employee - position assignment is wrong then I suggest you to use batch input program or use LSMW as you have to change it via personnel action - PA40
    If organizational structure is wrong, then do you have correct organizational structure in another system like test or qa?
    If you have correct organizational structure then you can directly transport it from one system to other but if you don't then you first need to correct the organizational structure and then run LSMW or batch input.
    Regards;
    Okan

  • How to uploade multiple flatfiles for single transaction using BDC?

    How to uploade multiple flatfiles for single transaction using BDC?

    Hi,
    You need to upload all data files into an internal table first either using OPEN DATASET (application server files) or GUI_UPLOAD (PC files).
    Then loop at the internal table and call BDC transaction to process the data.
    Regards,
    Ferry Lianto

  • How to save long text for IA01 Transaction using BDC

    Hi All,
    In my requirement I have to create a Task List Equipment and Task List Functional Location using BDC.Here I need to upload the long text for both IA01 and IA11 transactions.I am using SAVE_TEXT function module to save the text and COMMIT_TEXT also after save text.But I am not able to see the text in IA12 and IA02 transactions.But using READ_TEXT I am able to get the text what updated using SAVE_TEXT.
    Please answer for this if any one worked on this requirement <Priority normalized by moderator>
    Thanks,
    Satya.
    Edited by: Vinod Kumar on Jan 2, 2012 9:02 PM

    Hi Satya,
    There is a simple way to update the long text. There is  direct input object in the LSMW for long text.
    Object            : 0001
    Method          : 0001
    Program type : D
    SImply go and create the LSMW with first option and follow the steps. No need to call the function modules separately. This standard program will take care of every thing.
    If you have multiple lines to populate in the equipment master at the header level then you need two set of files. Then key will be equipment number with leading zeros if it will not be alpha numeric.
    1) First file with field EQUNR.
    2) Second file will be
    EQUNR                          C(018)    Technical identification number
    TXPARGRAPH                     C(002)    Tag column
    TXLINE                         C(072)    Text editor text line
    TEXT_MARK                      C(001)    Description Indicator for RIIBIP00 (IBIP) Processing
    Please let me know if you need more in detail.
    Thanks,
    Satheesh

  • BDC Problem for FF67

    Hi All,
    I have developed BDC for FF67 transaction ,
    Am having a problem in that , My problem is that the second screen number, where we enter line items, is different in development server and different in production server.
    In development am having second screen number as 8001 and in production server am having screen number as 8000.
    I want to know why the screen number is different in two servers.
    Regards,
    Bharat.
    Edited by: bharat tambat on Nov 6, 2008 3:21 PM
    am waiting for reply...
    Edited by: bharat tambat on Nov 7, 2008 6:23 AM

    Hi Bharat
    Probably too late for an advice but always try using a BAPI for SAP posting.
    Go for BDC only if one is not available !!
    Re: Regd : BAPI might interest you.
    Neeraj

  • Call transaction using bdc tab and also skip first screen??

    Hi,
    Please help.
    I want to call transaction PA30 fill it with values which are determined only at runtime and then skip first screen.
    The screen doesn't have parameter fields so i cannot use 'set parameter id'.
    I also cannot create a transaction with parameters as I only have these at runtime.
    Anyone done anything like this???

    hi,
      you might be populateing the itab bdc_tab with the corresponding values fronm the recording.
    while doing the recording go until to the screen wher u want to finsih.
    and populate the bdc_tab wit the ok code,screen number and the value.
    this will do.
    for eg see the code below.
    METHOD analyze_log.
      DATA : wrk_extid TYPE balhdr-extnumber.
      DATA : wrk_date(10) TYPE c.
      DATA : it_rspar TYPE TABLE OF rsparams .
      DATA : wa_rspar TYPE rsparams.
      DATA: it_bdcdata TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
      DATA: params TYPE ctu_params.
      CONSTANTS : object TYPE balhdr-object VALUE 'ZKIV_LOG'.
      IF wa_kopf-vertr_nr IS NOT INITIAL.
        CONCATENATE wa_kopf-vertr_nr '/' wa_kopf-nachtr_nr  INTO wrk_extid.
        wrk_date = '01.09.2006'.
        SET PARAMETER ID 'BALOBJ' FIELD object .
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
        wa_rspar-selname = 'ALDATE'.
        wa_rspar-sign = 'I'.
        wa_rspar-kind = 'P'.
        wa_rspar-option = 'EQ'.
        wa_rspar-low = wrk_date.
        APPEND wa_rspar TO it_rspar.
      ELSE.
        CLEAR wrk_extid.
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
      ENDIF.
    Update BDC tab
    --Call SLG1 using BDC--&
      params-dismode = 'E'. "Show errors only
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_CURSOR'.
      wa_bdcdata-fval = 'BALHDR-ALDATE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BALHDR-ALDATE'.
      wa_bdcdata-fval = wrk_date.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=SELE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=&F03'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_SUBSCR'.
      wa_bdcdata-fval = 'SAPLSBAL_DISPLAY                        0101SUBSCREEN'.
      APPEND wa_bdcdata TO it_bdcdata.
      CALL TRANSACTION 'SLG1' USING it_bdcdata OPTIONS FROM params.
    --End of BDC--&
    ENDMETHOD.
    here wat i m doing is that i dont want the subscreen 101 to be displayed..
    Message was edited by:
            Sandeep S

  • Cannot change Transaction Type (COBL-RMVCT) for posted documents. (FB02)

    Hi guys,
    I'm encountering some problems with Document Change Rules. I already configured in SPRO the line item change rules for Transaction Type (COBL-RMVCT).  I already set it to "Field can be changed" but the system still does not allow changes. I also set it for all account types and company code, but still no luck. I hope somebody can assist me since we require that the transaction type be editable for posted documents. Thanks!

    Hi
    I am not sure about the reason for why the "changing" is not working.
    However, thought I should give my experience and opinion on this.
    I have not seen a system that allows "Transaction type" to be changed. If allowed, in my opinon it is similar to allowing the cost assignment field such as cost centre, profit centre or an order being allowed to changed. Thus should not be changed once posted. Further is these are allowed to be changed the imact to the prevous reported data will have to be estimated. E.g. if the transaction types are used for consolidation what is the impact of changing previous month data.

  • Af:table Scroll bars not displayed in IE11 for large number of rows

    Hi. I'm using JDeveloper 11.1.2.4.0.
    The requirements of our application are to display a table potentially displaying very large numbers of rows (sometimes in excess 3 million). While the user does not need to scroll through this many rows, the QBE facility allows drill-down into specific information in the rowset. We moved up to JDeveloper 11.1.2.4.0 primarily so IE11 could be used instead of IE8 to overcome input latency in ADF forms.
    However, it seems that IE11 does not enable the vertical or horizontal scroll bars for the af:table component when the table contains greater than (approx) 650,000 rows. This is not the case when the Chrome browser is used. Nor was this the case on IE8 previously (using JDev 11.1.2.1.0).
    When the table is filtered using the QBE (to a subset < 650,000 rows), the scroll bars are displayed correctly.
    In the code the af:table component is surrounded by an af:panelCollection component which is itself surrounded by an af:panelStretchLayout component.
    Does anyone have any suggestions as to how this behaviour can be corrected? Is it purely a browser problem, or might there be a programmatic workaround in ADF?
    Thanks for your help.

    Thanks for your response. That's no longer an option for us though...
    Some further investigation into the generated HTML has yielded the following information...
    The missing scroll bars appear to be as a consequence of the setting of a style for the horizontal and vertical scroll bars (referenced as vscroller and hscroller in the HTML).  The height of the scrollbar appears to be computed by multiplying the estimated number of rows in the iterator on which the table is based by 16 to give a scrollbar size proportional to the amount of data in the table, although it is not obvious why that should be done for the horizontal scroller.  If this number is greater than or equal to 10737424 pixels then the scroll bars do not display in IE11.
    It would seem better to be setting this height to a sensible limiting number of pixels for a large number of rows?
    Alternatively, is it possible to find where this calculation is taking place and override its behaviour?
    Thanks.

  • BDC problem for Schedule Agreement

    Hi,
    We are facing a problem in BDC for Schedule Agreement - Tick on Delivery Completed.
    In SA line items are like this..
    10.............AAAAA..................10.....NOS
    20.............BBBBB..................20.....NOS
    30.............CCCCC...................5......NOS
    60.............DDDDD..................40.....NOS
    We want update Delivery Completed indicator in line items 10 & 60.
    Our Flat File is like...
    5500004556.......10
    5500004556.......60
    During BDC, this updates the line item 10 successfully, but when going for updating line item 60, not picking related item (means 60..DDDDD..40..NOS), it is going on line item 60 of the SA (means it is counting line item 40 inplace of 60, but in SA there is no 40 line item)..
    Regards..

    Thanks Dear..
    Please let me know, where I can change in my code...
    Code of Line Item
    PERFORM bdc_field       USING 'RM06E-EBELP'        wa-ebelp.
    CASE wa-ebelp.
    WHEN 10.
    PERFORM bdc_field       USING 'RM06E-TCSELFLAG(01)'                                 'X'.
    WHEN 20.
    PERFORM bdc_field       USING 'RM06E-TCSELFLAG(02)'                                  'X'.
    WHEN 30.
    PERFORM bdc_field       USING 'RM06E-TCSELFLAG(03)'                                   'X'.
    WHEN 40.
    PERFORM bdc_field       USING 'RM06E-TCSELFLAG(04)'                                   'X'.
    WHEN 50.
    PERFORM bdc_field       USING 'RM06E-TCSELFLAG(05)'                                    'X'.
    WHEN 60.
    PERFORM bdc_field       USING 'RM06E-TCSELFLAG(06)'                                    'X'.
    ENDCASE.
    Code of Line Item
    please guide..

  • Problems syncing large number of photos while choosing all photos option

    I have 17,800 photos and have experienced problems with trying to sync in iTunes since release day 1.
    If I choose to sync using the all photos option, the iPad will reboot during synch and appears to finish. Ipad will become unresponsive and hang with the apple logo on screen and a hard reset will then be required.
    Then when trying to launch photo app in iPad it displays "updating library" for a minute or 2 and then photo app crashes back to home screen.
    Have tried many options in trying to solve this including restore iPad software, deleting photo cache in iTunes, rebuilding iTunes library, etc.
    Only solution I have found was to break down my 17,800 photos into events and choose to synch events instead of the all photos option and that works, getting all 17,800 photos into iPad. Photos take about 5.8 gb of storage.
    There is definitely a problem with iTunes here in synching large number of photos using the all photos option and I have reported this to AppleCare support via two support calls. There does not appear to be a awareness of this issue in tech supports knowledge base and I am surprised to that there are not a large number of incidents reported as there are a few discussions started here on the issues of photo sync.
    Hopefully this post will help others with the same issue.
    Message was edited by: amfca

    Solved problem of synching iPad with desktop containing large photo library (20,000 photos): In summary, solution was to rename, copy and live iPHoto Library to XHD and reduce size of library on home (desktop) drive.
    In the home directory, rename "iPhoto Library" to "iPhoto Global" (or any other name you want), and copy into an external hard drive via simple drag and drop method.
    Then, go back to the newly renamed iPhoto Global and rename it again, to iPhoto 2010. Now, open iPhoto by holding down the Alt/Option key and opening iPhoto. This provides option to choose library iPhoto 2010. Open the library, and eliminate every photo before 2010. This got us down to a few thousand photos and a much smaller library. Synch this smaller library with the iPad.
    Finally, I suggest downloading a program "iPhoto Library Manager" and using this to organize and access the two libraries you now have (which could be 2, 10 or however many different libraries you want to use.) The iPhoto program doesn't want you to naturally have more than one library, but a download called iPhoto Library Manager allows user to segregate libraries for different purposes (eg. personal, work, 2008, 2009, etc.). Google iPhoto Library Manager, download, and look for links to video tutorials which were very helpful.
    I did not experience any problems w/ iPhoto sequencing so can't address that concern.
    Good luck!

  • Problem fetch large number of records

    Hi
    I want to fetch large number of record from database.and I use secondary index database for improve performance for example my database has 100000 records and query fetch 10000 number of records from this database .I use secondary database as index and move to secondary database until fetch all of the information that match for my condition.but when I move to this loop performance terrible.
    I know when I use DB_MULTIPLE fetch all of the information and performance improves but
    I read that I can not use this flag when I use secondary database for index.
    please help me and say me the flag or implement that fetch all of the information all to gether and I can manage this data to my language
    thanks alot
    regards
    saeed

    Hi Saeed,
    Could you post here your source code, that is compiled and ready to be executed, so we can take a look at the loop section ?
    You won't be able to do bulk fetch, that is retrieval with DB_MULTIPLE given the fact that the records in the primary are unordered by master (you don't have 40K consecutive records with master='master1'). So the only way to do things in this situation would be to position with a cursor in the secondary, on the first record with the secondary key 'master1' retrieve all the duplicate data (primary keys in the primary db) one by one, and do the corresponding gets in the primary database based on the retrieved keys.
    Though, there may be another option that should be taken into consideration, if you are willing to handle more work in your source code, that is, having a database that acts as a secondary, in which you'll update the records manually, with regard to the modifications performed in the primary db, without ever associating it with the primary database. This "secondary" would have <master> as key, and <std_id>, <name> (and other fields if you want to) as data. Note that for every modification that your perform on the std_info database you'll have to perform the corresponding modification on this database as well. You'll then be able to do the DBC->c_get() calls on this database with the DB_MULTIPLE flag specified.
    I have other question.is there any way that fetch information with number of record?
    for example fetch information that located third record of my database.I guess you're refering to logical record numbers, like the relational database's ROW_ID. Since your databases are organized as BTrees (without the DB_RECNUM flag specified) this is not possible directly.You could perform this if use a cursor and iterate through the records, and stop on the record whose number is the one you want (using an incrementing counter to keep track of the position). If your database could have operated with logical record numbers (BTree with DB_RECNUM, Queue or Recno) this would have been possible directly:
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/logrec.html
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/renumber.html
    Regards,
    Andrei

  • Inserting multiple payment transactions using BDC

    Hi all,
    Using BDC i displayed   '5'  payment transactions(xk01)
    for banking details.
    But i am not able to insert more than  '5'  payment transactions
    i.e. if i entered 6th and 7th details means then 4th and 5th
    payment transactions r overwritten.
    So tell me how to display the all more than 5 details...

    >
    cranjith kumar wrote:
    > Hi all,
    > Using BDC i displayed   '5'  payment transactions(xk01)
    > for banking details.
    > But i am not able to insert more than  '5'  payment transactions
    > i.e. if i entered 6th and 7th details means then 4th and 5th
    > payment transactions r overwritten.
    > So tell me how to display the all more than 5 details...
    This is not a Web Dynpro ABAP related question.  Please post to the correct forum.

  • Purchase Info Record Change (ME12) using BDC

    Hi All,
    We are trying to change the Purchase Info Records using BDCs. We have about 20 condition records to change. Not all condition records change all the time. How can we use page control to identify the particular condition records that we want to change.
    Thanks
    Hari

    Hi Krishna,
    The BDC that we are trying to build will have the changes. For ex: When we created the info record (using a BDC) we had 15 condition records. This is coming from an external source.
    Now, there has been a change in the pricing (outside the system). This is communicated from the external system. We need to pinpoint which condition types to update in SAP, based on the values in the external system through the BDC.
    Regards
    Hari

  • SQL Developer paste problem for large text in Linux

    Hello,
    I have a problem. I cannot paste large text (> 5000 lines) into the editor of a clob column. Pasting in general works. I mean I can paste the whole content e.g. to gedit or I can paste partially the text into the sql developer editor but not as a whole.
    Colleagues on a Mac can paste the text into the editor. So it should not be about DB settings.
    Can anyone tell me which setting I have to change? 
    SPECS:
    Ubuntu 13.10
    java version "1.7.0_25"
    OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4ubuntu3)
    OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
    Info
    Oracle SQL Developer 3.2.20.09
    Version 3.2.20.09
    Build MAIN-09.87
    Copyright © 2005, 2012 Oracle. All Rights Reserved. Alle Rechte vorbehalten.
    IDE Version: 11.1.1.4.37.59.48
    Product ID: oracle.sqldeveloper
    Product Version: 11.2.0.09.87
    Version
    Komponente    Version
    ==========    =======
    Java(TM)-Plattform    1.7.0_25
    Oracle-IDE    3.2.20.09.87
    Versionierungsunterstützung    3.2.20.09.87

    I've the same problem and posted it under: 'SQL Dev 2.1 RC1 - "scan defines" doesn't work in opened *.sql files '
    I seems, that it doesn't work now, though it worked in SQLDEV 1.5.5
    @Chris

  • BDC problem for PFCG generation.

    Dear Experts,
    In PFCG transation for Role pushing when I press generate button manually it does all processing successfully in background but if I do it using BDC recording it just come out without processing anything with success message. Please help.
    wait for the reply.
    Thanks in advance.

    HI,
    Try to use code below instead of using BDC.
    Enqueue
      CALL FUNCTION 'PRGN_ACTIVITY_GROUP_ENQUEUE'
        EXPORTING
          activity_group          = i_agr_name
        EXCEPTIONS
          foreign_lock            = 1
          transport_check_problem = 2
          OTHERS                  = 3.
      IF sy-subrc NE 0.
        exit.
      ENDIF.
      CALL FUNCTION 'PRGN_RFC_CREATE_ACTIVITY_GROUP'
        EXPORTING
          ACTIVITY_GROUP                      = i_agr_name
         ACTIVITY_GROUP_TEXT                 = i_agr_text
      COMMENT_TEXT_LINE_1                 = ' '
      COMMENT_TEXT_LINE_2                 = ' '
      COMMENT_TEXT_LINE_3                 = ' '
      COMMENT_TEXT_LINE_4                 = ' '
         PROFILE_NAME                        = i_profile
      PROFILE_TEXT                        = ' '
         ORG_LEVELS_WITH_STAR                = ''
         NO_DIALOG                           = 'X'
      UNMAINTAINED_FIELDS_WITH_STAR       = ''
       TEMPLATE                            = ''
      ONLY_TCODE_ASSIGNMENT               = ' '
    TABLES
      TCODES                              =
      HIERARCHY_NODES                     =
      HIERARCHY_TEXTS                     =
    EXCEPTIONS
      ACTIVITY_GROUP_ALREADY_EXISTS       = 1
      ACTIVITY_GROUP_ENQUEUED             = 2
      NAMESPACE_PROBLEM                   = 3
      ILLEGAL_CHARACTERS                  = 4
      ERROR_WHEN_CREATING_ACTGROUP        = 5
      PROFILE_NAME_EXISTS                 = 6
      PROFILE_NOT_IN_NAMESPACE            = 7
      NO_AUTH_DATA_SELECTED               = 8
      ILLEGAL_TCODES                      = 9
      NOT_AUTHORIZED                      = 10
      PROFGEN_TABLES_NOT_UPDATED          = 11
      ERROR_WHEN_GENERATING_PROFILE       = 12
      OTHERS                              = 13
      IF SY-SUBRC <> 0.
        exit.
      ENDIF.
      ls_auth_data-object = 'S_RS_AUTH'.
      ls_auth_data-field = 'BIAUTH'.
      ls_auth_data-low = i_bi_auth.
      ls_auth_data-modifier = 'U'.
      append ls_auth_data to lt_auth_data.
      CALL FUNCTION 'SUPRN_DARK_MANIPULATE_PROFILE'
        EXPORTING
          ACTIVITY_GROUP                      = i_agr_name
          PROFILE_NAME                        = i_profile
         USE_EXTERNAL_TEMPLATE_DATA          = 'X'
      AUTH_TEMPLATE_TO_ADD                = ' '
      FILL_ORGS_WITH_STAR                 = ' '
      FILL_FIELDS_WITH_STAR               = 'X'
          NO_DIALOG                           = 'X'
      REBUILD_AUTH_DATA                   = 'X'
      GENERATE_PROFILE                    = 'X'
    IMPORTING
      PROFILE_TORSO                       =
       TABLES
      TCODES                              =
         EXTERNAL_TEMPLATE_DATA              = lt_auth_data
    EXCEPTIONS
      PROFILE_NOT_IN_NAMESPACE            = 1
      PROFILE_NAME_EXISTS                 = 2
      NO_AUTH_FOR_ROLE_CHANGE             = 3
      NO_AUTH_FOR_PROF_CREATION           = 4
      NO_AUTH_FOR_AUTH_MAINT              = 5
      NO_AUTH_FOR_GEN                     = 6
      NO_AUTHS                            = 7
      OPEN_AUTHS                          = 8
      TOO_MANY_AUTHS                      = 9
      ERROR_WHEN_GENERATING_PROFILE       = 10
      OTHERS                              = 11
      IF SY-SUBRC <> 0.
        exit.
      ENDIF.
      Dequeue
      CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE'
        EXPORTING
          activity_group = i_agr_name.
      e_ok = 'X'.
    This will create role. To save authorisation use  FM "RSEC_MODIFY_AUTH".
    Srikanth.

Maybe you are looking for

  • SSIS Expression to get yesterday's date

    Hi , I used the following expression to get yesterday's date : (DT_WSTR,4)YEAR(GETDATE()) + RIGHT("0"+(DT_WSTR, 2) MONTH(GETDATE()) ,2) + RIGHT("0"+(DT_WSTR, 2) DAY(DATEADD("dd", -1, GETDATE())) ,2) It returns correct date but fails on last day of th

  • Iphone stuck in recovery mode and can't recover because "This device isn't eligible for the requested build"

    I have an iPhone 4S and it has been stuck in recovery mode for whatever reason. I have tried using data recovery software that can turn my phone to normal mode but when it tries all my phone does in turn off and then on again, back into recovery mode

  • Unique FireWire problem...

    I have an odd problem. I have a Macbook Pro that is about two years old which went through a bit of a rough patch. Let's just say the keyboard and screen are not working. But the hard drive is still in good shape. Obviously, it's totally useless to m

  • Any reason I Shouldn't...

    Use a wall power charger that came with a 4th gen. iPod to charge my Touch? This charger has a firewire port, but I have the correct cable for it. TIA, Scott

  • Converting XML Message to EDI

    Hi Experts, I need a tool to convert XML message to EDI.