Can we change the Record Group Type through Custom.pll

Hello All,
I have a small requirement on Changing the Record Group Dynamically.
Can i set the Record group type to 'Query' from 'Static'. i.e Can i change the Record group type dynamically through custom.pll. I know that we can dynamically change the Record group query.
Please help me its a bit urgent.
Thanks inadvance,
Amarnadh Js

you can control your record group runtime without create any recordgroup at design time..
1.static group
declare
   rg_name         VARCHAR2 (40)  := 'Global_Rgp_Menu';     --global record group name for menu use
   rg_id           recordgroup;                                            --global record group id
   gc_id           groupcolumn;                                     --global record group coulmn id
   errcode         NUMBER;                                                             --error code
   grp_row         PLS_INTEGER    := 0;                             --global record group row count
begin
  rg_id := FIND_GROUP (rg_name);
   IF NOT ID_NULL (rg_id)
   THEN
      DELETE_GROUP_ROW (rg_id, all_rows);
   ELSE
      rg_id := CREATE_GROUP (rg_name, global_scope);
      gc_id := ADD_GROUP_COLUMN (rg_id, 'menu_item', char_column, 100);
      gc_id := ADD_GROUP_COLUMN (rg_id, 'p_type', char_column, 100);
      gc_id := ADD_GROUP_COLUMN (rg_id, 'p_no', char_column, 100);    
   END IF;
  grp_row := 0;
  for 1 in 1..10 loop
       grp_row := grp_row + 1;
      ADD_GROUP_ROW (rg_id, grp_row);
      SET_GROUP_CHAR_CELL (rg_name || '.menu_item', grp_row, 'menu' || to_char(i) );
      /*type*/
      SET_GROUP_CHAR_CELL (rg_name || '.p_type', grp_row,  'type' || to_char(i) );
      /*program_no */
      SET_GROUP_CHAR_CELL (rg_name || '.p_no', grp_row,  'programno' || to_char(i) ); 
  end loop;
end;
2. query group
declare
   FACT_SQL VARCHAR2(500) :=NULL;
   rg_name1       VARCHAR2(40) := 'Global_Rgp_fact';
   rg_id1   RecordGroup;
   Error_Flag number:=0;
   group_error exception;
begin
   rg_id1 := Find_Group( rg_name1 ); IF NOT Id_Null(rg_id1) THEN Delete_Group( rg_id1 ); END IF;     
   FACT_SQL := ' SELECT *   FROM MYFACTORY  ' ;      
   rg_id1 := Create_Group_From_Query( rg_name1,FACT_SQL ,global_scope);
    Error_Flag := POPULATE_GROUP(rg_id1);
    IF Error_Flag <>0 THEN     
           error_msg:='Error while populating factory group';   
           raise group_error;
    END IF; 
exception
  when group_error then
     message(error_msg);
    raise;
end;Edited by: nolemlin on 2010/3/23 上午 7:50

Similar Messages

  • Changing the record group query in seeded forms

    Hi all,
    I need to change the record group query in one seeded form.
    Can it be done through custom pll or what is the correct approach to do that..
    Thanks,
    Devang

    you want to do that at runtime?

  • Can we change the payscale group text in V_T510?

    Hi All,
    Can we change the Payscale Group text which is stored in V_T510 field TRFGR?
    is there any other way that we can change them?
    Regards
    Rahul

    Hi,
    Yes if client want new description for the PS Group, you have to create new only and assign the wage types to them and so on..... you have to do all the configurations regarding the PS Group. Here the main point is be careful with the start date of the PS Group for newly created records and assignments.
    Best Regards.

  • How can we change the purchasing group which it is maintained in R/3?

    Hello All.
    In case of MM, purchasing group is assigned to material master.
    It means purchasing group is maintained based on material code.
    But SRM has different maintenance level.
    As you know that purchasing group has the responsibility based on material group (Product category).
    So we should change the purchasing group from R/3, when end user create shopping cart.
    How can we change the purchasing group which it is maintained in material master?
    Thank you,
    Best regards,
    SH.

    Hello So Hee,
    I am not a technical guy.
    But for your requirement i am building a logic.
    I am not sure whether it will work.
    You need to check with your ABAPER.
    It is as below:
    When the SC is approved and the other configuration is correct ,
    PR is created in ECC by the virtue of BAPI.
    You want that the pur grp should be populated on the base of matl code and not on matl grp.
    Hence in SC you will not fill up pur grp.
    In the programme for BBPSC01 i.e. SC creation you will add modification that it will call a custom FM.
    This custom FM will get the matl code from SC and will find the value of pur grp from R/3 MM01i.e. matl master(you may get in MARA).
    Now in the BAPI you need to incorporate this additional value of yr pur grp field.
    So the desired pur grp as per yr R/3 matl master will be populated in yr R/3 PR.
    Again: this is all hypothesis.
    That's all I can help you.
    BR
    Dinesh
    <b>Reward if helps</b>

  • I have installed Itunes on my laptop. However, the apple store opens in German language. I need it in English. How can i change the language for istore through the itunes?

    I have installed Itunes on my laptop. However, the apple store opens in German language. I need it in English. How can i change the language for istore through the itunes?

    Go to the bottom of the page, click the flag, then select your country.

  • Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?

    Want to change the 'default' extension for PL/SQL source to '*.prc'
    When navigating 'File' / 'Save As', and selecting the 'File Type' list box,
    The default 'File Type' for PL/SQL Source File is '*.pls'.
    Can I change the default 'File Type' for PL/SQL Source File to '*.prc' ?
    I have followed , 'Tools', 'Preferences' , 'File Types' and added '.prc' as 'Sql Script' file type, because (PL/SQL Source) is not present in the list.

    You can certainly overwrite the 'Save As' extension as you are saving the file. I have added an ER for more control over this functionality.
    sue

  • Anyone solve the "you can't change the record's entity name" issue

    Been getting the following in my system.log.  I have noticed it was posted before but no replies on how to solve it.  Hoping to get some traction on the issue.
    This is on a Intel Duel Core running 10.8.4
    Thanks,
    Ron
    Aug 24 11:35:48 enterprise iCalExternalSync[6112]: [0x7ff3f8c0e4e0] |Miscellaneous|Error| SyncServices precondition failure in [ISyncConcreteSession pushChangesFromRecord:withIdentifier:]: you can't change the record's entity name from com.apple.calendars.DisplayAlarm to com.apple.calendars.AudioAlarm in {
                  "com.apple.ical.sound" = Basso;
                  "com.apple.syncservices.RecordEntityName" = "com.apple.calendars.AudioAlarm";
                  owner =     (
                      "Event/p76"
                  sound = Basso;
                  triggerduration = "-54000";
    Aug 24 11:35:48 enterprise iCalExternalSync[6112]: [ICalExternalSync ]Encountered exception: [ISyncConcreteSession pushChangesFromRecord:withIdentifier:]: you can't change the record's entity name from com.apple.calendars.DisplayAlarm to com.apple.calendars.AudioAlarm in {
                  "com.apple.ical.sound" = Basso;
                  "com.apple.syncservices.RecordEntityName" = "com.apple.calendars.AudioAlarm";
                  owner =     (
                      "Event/p76"
                  sound = Basso;
                  triggerduration = "-54000";
              } withStack: (
                        0   iCalExternalSync                    0x000000010afd0a60 iCalExternalSync + 125536
                        1   iCalExternalSync                    0x000000010afbfac9 iCalExternalSync + 56009
                        2   iCalExternalSync                    0x000000010afcf694 iCalExternalSync + 120468
                        3   libdyld.dylib                       0x00007fff8a46d7e1 start + 0
                        4   ???                                 0x0000000000000007 0x0 + 7
    Aug 24 11:35:48 enterprise iCalExternalSync[6112]: [ICalExternalSync ]NSException name:ISyncInvalidArgumentsException reason:[ISyncConcreteSession pushChangesFromRecord:withIdentifier:]: you can't change the record's entity name from com.apple.calendars.DisplayAlarm to com.apple.calendars.AudioAlarm in {
                  "com.apple.ical.sound" = Basso;
                  "com.apple.syncservices.RecordEntityName" = "com.apple.calendars.AudioAlarm";
                  owner =     (
                      "Event/p76"
                  sound = Basso;
                  triggerduration = "-54000";
    Aug 24 11:35:48 enterprise SyncServer[6084]: [0x7fa1b940be70] |Server|Warning| lost connection 0x7fa1ba226f40 to com.apple.iCal

    The same I guess as if your work won't let you do anything - not a lot
    I would hold fire at the moment as I think its too early to be changing router security - I have no inside information but like many I suspect its a combination of firmware updates to routers and a patch needed on the iPad. If solely the latter then it will be fine for you, but if for example, the work routers are using Cisco Clean Connect, then there will be little you can do - it will be up to work I'm afraid.

  • I can't change the font in Firefox4 through options

    I just downloaded Firefox4 (I have done the Cleartype thing) and for some reason the font looks like this
    http://yfrog.com/h0uyn0j
    Which makes it very hard to read things, I have tried changing the font in the options multiple times but it doesn't work.

    Hi thanks for the reply
    I have tried both replies, but either work.
    My computer already has Cleartype working, It is just I can't change the font through the options and on some websites it is very hard to view the text.

  • How can i change the record selection criteria via SDK?

    Hi,
    I wanna change the record selection criteria  in rpt file in java program, What API is required?
    Thanks.
    Forest

    Hi,
    You can use RAS API to change record selection formula at runtime. Go to
    https://www.sdn.sap.com/irj/boc/index?rid=/webcontent/uuid/f0aea666-5384-2b10-ffb0-a6facef1d5e5
    and look for Report Application Server Java SDK Feature Samples. It contains the record selection change code.
    Thanks
    Aasavari

  • How to change the account group of a customer master?

    Would like to change Ship-to's to Sold-to's.  I know the transaction XD07, but when trying to promote a SH to SP, I receive the error
    The planned change is not allowed as the following field groups would be masked by the new account group.
    Below the error the table displays Group Name PO Box City and Address.
    How do i bypass this and successfully change the ship-to to a sold-to?

    Hi ,
        Chek out ur new account group for Sold to party ,whether all the fields in address tab is marked either optional /required. It should not be in display /supress mode then only u can successfully change ur SH account to SP account.
          I think , Number ranges should be same.
    if itz not  da same number range system will give the message ,but it will allow to change the account group.
    As I successfully worked in this issue earlier.
    As we all know, we only change the account group from lower to heigher,
    ie. sh,bp,py to SP only not viceversa.
    *rewards if it helps

  • Can I change the record an EJB points to from within the bean?

    I have a problem which I hope someone can help with.
    I'm programming an EJB application which references several 'price list' type tables. An order will contain several option selections, which reference options, which each have an associated price. A system administrator is going to have to change and update these prices as tim egoes on, and may want to remove options etc. In order to ensure that existing orders don't have their values changed as a result of this we've decided that, when options have their price changed, we actually create a new option record, setting an end_date on the old option record to signify that it's no longer valid for new orders being raised. In the option Beans set cost method, I set the end_date property of the bean and call the create method of the options own home interface.
    My problem is this: At the moment I return the newly created option as a return value of the setCost method but I feel this is a little graceless. Ideally I'ld like to change the bean to point at the new record as part of the set method itself, that way, to the client it would appear as if tey were still looking at the same bean but with an updated price, which is what you'ld normally expect from a set method. Can this be done?

    Um, yeah - graceless is a good word. Essentially, you've stuck business logic into the EntityBean (I'm guess that's what you're using for data persistence). What you need to do is move the Option.create() method out of the EntityBean and use a StatelessSessionBean to execute the logic: update the old Option record, create the new one, then return the result.
    As an aside, it's considered Not Very Good Practice to have client applications directly accessing EntityBeans: serializable DataObjects (e.g. JavaBeans, not EJB) or ValueObjects (non-"changeable" DOs) are better at passing data back and forth between client applications and application container. Ideally, this flow is like this:
    client <- VO -> SSB <- DO -> EntB
    This lets the EntityBean just worry about getting data in/out of storage, the (business) logic resides in the StatelessSessionBean and the client interacts/shows the data.

  • How can I change the default "file type" in the open file dialog when using Firefox on certain web pages?

    I work for a bankruptcy attorney. We use the Court's file upload to file our documents. When I am on the Court's site and I have to pick a file to upload, the "open file" dialog box pops up. In Firefox, the default "file type" is always "image" files. I need it to be "all files". How can I change this setting?

    Two observations.
    First — "Tools-> ...." is specific to Acrobat X and XI. It did not exist prior to Acrobat X.
    Second — Acrobat 9 Pro / Standard (nor earlier release) does not support viewing a PDF page containing a scanned image and performing a right-click  ... Save Image As. 
    The context menu provided by Acrobat 9 Pro with a right-click on a scanned image is:
    The context menu,from a right-click with the TouchUp Object tool selected, for Acrobat 9 Pro is:
    So, to paraphrase what Paul Harvey used to say ... What's the rest of the story?
    Be well...

  • In IOS7.1.2 how can I change the size of type for Photo Album?

    I want to change the size of the type of a name of a Photo Album to match the size of earlier albums.  How can I do this?

    I am not sure, if this Will work on the title page:
    Edit text on a page
    Tap Projects, and tap the photo book to open it.
    Double-tap the page containing the text you want to work with.
    Do the following:
    Align the text: Tap the text box, and choose an alignment style from the menu that appears directly above the text box.
    Choose the font size: Tap the text box, and tap the font size you want.
    Make changes to the text: Double-tap the text box, and type.
    You may need to change the Book Theme to have a different title font size.

  • How can I change the material group in purchase order?

    Hello,
    I' ve changed the group of material and is not updated in the purchase order created. Is there any way you see the new material groupl in purchase order?
    Thanks,

    Sorry for the late answer.
    Jeyakanthan A's suggestion may be good in case of few items.
    You can also mass maintain purchase order material groups (EKPO-MATKL) in transaction MEMASSPO, though they are only in display mode in the purchase order transactions. If it doesn't work, you'll get a reason why.

  • Can I change the default paper type for a printer?

    I have a client that prints off a lot of paperwork from an insurance company. They have barcodes that go pretty much to the end of the page that are nessesary for fileing. The default print setup cuts off the barcode and a few code numbers.
    If I manually change the default paper size from 8.5x11 to 8.5x11 borderless, it works! However I can't seem to get that setting to stick using profiles or the System Preferences.
    The profiles change everything but the paper size. And the System Preferences have the top level sizes (8.1x11) but not the more specific borderless versions of it.
    Any ideas?

    Taking Firefox (or even iTunes) as example, click File>Page Setup. In the resulting window, select the paper size setting and then in Settings, choose Save as Default. In Safari it's a bit different, but there too you get an option to "save current settings as preset", whereby you can name that setting, save it and select it, to be used the next time you print.

Maybe you are looking for

  • Append data into the file in application server

    Hi Friends, I have an issue where i have a job which has three different stepst for same program. If i run the job the program will create a file in the application server and append the other two steps in the same file without overwriting the file o

  • Problem regarding f-32

    Hi all,          i have problem related to FI transaction (f-32). in this transaction we clear the customer accounts on receipt of  payment . presently i m facing the problem in some customer accounts ,many customer account having no such type of pro

  • HT204088 I have put in two iTunes gift cards and a visa pre-paid giftcard

    the visa is out and i cant change my billing info. I cannot re-redeem my iTunes cards and i cleared my billing numbers and that hasnt worked. What do I do?

  • HT4235 Having trouble syncing itunes playlist to ipod

    I am having trouble syncing my itunes playlist to the ipod touch. When I connect the ipod to the computer and open itunes, the ipod shows that it is in the sync process. However, the playlist does not show up. The Diagnostic Test shows "no ipod found

  • SQL Developer 1.1 Crash on connecting

    Hello, I have a TNS type connection defined which uses the default role and a connect identifier rather than a network alias. When I click test I get a success message but when I click connect then SQL developer waits for a few seconds and then crash