How to create a value sets for concurrent program?

Hi Friends,
I am creating a concurrent program with a parameter period...
In the value set for the parameter period, I am using the following query :
---where application_id = 101
and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
and closing_status IN ( 'O', 'F', 'C')
order by period_year, period_num' ----
In my cursor, i have a condition 'where set_of_books_id = ' ---
How can I pass the above set of books id into the cursor ?? it is not working when I am defining another parameter as Book and passing that value to the cursor....
I need that period parameter to return all the periods for the set of books where we are running the concurrent request from...I also need to get the set of books id for my cursor...
Hope I am making sense...All that I am trying is to have period parameter and also a SOB id in cursor condition...
Rgds,

Hi Vamsi /Nitin,
Let me explain the whole thing now.....
My plsql procedure is ......
CREATE OR REPLACE procedure GL_INT(
     perrbuff     out varchar2,
     pretcode     out varchar2,
pbook          in varchar2,
pperiod          in varchar2
     ) is
cursor cur1 (p_sdate in date, p_edate in date )is
select distinct group_id groupid,
user_je_source_name source
from gl_interface
     where accounting_date >= p_sdate
and accounting_date <= p_edate
and set_of_books_id = pbook;
cursor cur2 is
select distinct start_date sdate,
     end_date edate, period_name period
from gl_period_statuses
where      period_name = pperiod
     and set_of_books_id = pbook
     and application_id = 101;
i               cur1%rowtype;
j               cur2%rowtype;
begin
open cur2;
               fnd_file.put_line(fnd_file.output,'PERIOD'||'----'||'GROUPID'||
                                   '----'|| 'SOURCE');
          loop
               fetch cur2 into J;
exit when cur2%notfound;
               open cur1(J.sdate,J.edate);
               loop
          fetch cur1 into I;
                    exit when cur1%notfound;
          fnd_file.put_line(fnd_file.output, J.period||'----'||I.groupid||'----'||
                              I.source);
               end loop;
          end loop;
     Close cur1;
close cur2;
Exception when others then dbms_output.put_line(SQLERRM);     
end;
==================================================================================================
For SOB value set, I have passed the default value as vamsi suggested ($profiles$.gl_set_of_bks_id)....
For period value set, I have entered query as ..where application_id = 101
and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
and closing_status IN ( 'O', 'F', 'C')
order by period_year, period_num...................
It still doesn't work....I don't know how to derive those Periods based on the SOBs and at the same time pass SOB id into the cursors...
Please help...
Rgds,
Murali

Similar Messages

  • How to create a profile set for a campaign.

    HI  Friends,
    I am working on CRM 7.0.
    My requirement is to create a Batch program for  campaign creation and automation.
    i have used the class 'cl_crm_mktpl_appl_base' to copy the existing campaign .
    It copied the entire target groups,campaign  elements, profile sets.
    My requirement is for the created campaign id, i need to create a profile set in that i need to create target goups.
    Fm : BAPI_PROFILESET_CREATE is not helpful for me in my case.bacause it is asking parent guid ..etc...
    I have ony one guid ,ie. campaign guid . if i give this in parent guid it is thriwing error.
    can any suggest how to create a custom profile set.
    If any one  worked on this batch program please reply to this thread.
    Edited by: jagadheeswara raju on Feb 10, 2010 7:02 PM

    Hi,
    I have replied to the below thread mentioning the FM's to create Profile sets, profiles and also target groups. This may be helpful to you.
    Re: target group creation
    Regards,
    Priyanka

  • How can I get the responsibility for concurrent programs

    Guys,
    How can I get the responsibility for a list of concurrent programs. Is there a query that I can run to get the results?
    Thanks in advance,

    Refer to Note: 134036.1 - WHOCANRUN.SQL - List Responsibilities That Can Run a Given Concurrent Program
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=134036.1
    From the output of the query in the note referenced above, you can run "Users of a Responsibility" concurrent program then to find out the list of users who have access to a certain responsibility.

  • How to create second transport request for same programe

    Hello ,
    I created workbench transport request. The changes are done and still in development system.
    Now I have to do another change on the same program that has to be in different transport request,
    but whenever I  change something, and activate it, the changes are saved in first transport. How I can
    create another transport request for the same program without releasing the first one.
    Thanks

    Ask your basis team to provide you with a "Transport of Copies" request.
    Once you get it, add your object in this request and transport. your object will be transported and the original request will not be released. Do note that the changes will still be saved in the original request but you can still transport your object without releasing the original request.
    Edited by: Priyank Jain on Aug 12, 2010 4:12 AM

  • How to create a spool requset for 'z program'.

    Hi,
    Could anybody please tell me how to generate a spool request for a Z program. and how to check the spool request.
    Regards
    sathish

    Hi ,
    You can check the following code for reference
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          eventid                 = gd_eventid
          eventparm               = gd_eventparm
          external_program_active = gd_external_program_active
          jobcount                = gd_jobcount
          jobname                 = gd_jobname
          stepcount               = gd_stepcount
        EXCEPTIONS
          no_runtime_info         = 1
          OTHERS                  = 2.
    ENDFORM.                    " get_job_details
    *&      Form  obtain_spool_id
    To obtain the spool ID generated
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004 WITH gd_spool_nr.
      ELSE.
        MESSAGE s005.
      ENDIF.
    ENDFORM.                    " obtain_spool_id

  • FNDLOAD fail update parameter's value set in concurrent program

    I am try to update 1 parameter's value set from one enviorment to other using the following script but that parameter is still using old value set:
    FNDLOAD apps1/xxx 0 Y DOWNLOAD $FND_TOP/patch/115/import/xx_afcpprog.lct XXPN_PTLAIO.ldt PROGRAM APPLICATION_SHORT_NAME="XXPN" CONCURRENT_PROGRAM_NAME="XXPN_PTLAIO"
    FNDLOAD apps2/xxx 0 Y UPLOAD $FND_TOP/patch/115/import/xx_afcpprog.lct XXPN_PTOLAO.ldt
    Is there a situation parameter cannot be updated?
    Or should i use afffload.lct to load?
    My machine version:
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.3
    Edited by: 901005 on Apr 19, 2012 3:37 AM
    Edited by: 901005 on Apr 19, 2012 3:43 AM

    compare date and author of paramaters and value sets
    if date of parameter (or valueset) in ldt earlier than date of parameter (or valueset) in system than no update
    you can try to use CUSTOM_MODE=FORCE

  • How to create a new row for a VO based on values from another VO?

    Hi, experts.
    in jdev 11.1.2.3,
    How to create a new row for VO1 based on values from another VO2 in the same page?
    and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
    Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
    How-to declaratively create new table rows based on existing row content (20-NOV-2008)
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    I have tried:
    1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
    2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
    3.add: Create insertinside Createwithparams->Nameddata(amount),
    4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
    On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
    java.lang.NumberFormatException: For input string: "Amount"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    Can anyone give some suggestions?
    Thanks in advance.
    bao
    Edited by: user6715237 on 2013-4-19 下午9:29

    Hi,CM,
    I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
    My principal requirement is as follows:
    1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
    --so it's better to implement it in UI rather than in EO.
    2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
    --little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
    In order to get full information for the requirements of my use case, can take a check at:
    How to set default value for a VO query bind variable in a jspx page?
    (the end half of the thread: I have a more realworld requirement similar to the above requirement is:
    Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
    Regards
    bao
    Edited by: user6715237 on 2013-4-19 下午11:18
    JAVE->JAVA

  • How to give  Value set for model attribute?

    Hi all,
           How to give value set for model attribute?
           plz explain me with some sample code.
    Regards,
    Srinu

    Hi Srinivasulu,
    An attribute (of basic data types like integer , string etc) holds a single values.
    Please clarify by what you mean value set ?
    Also, share the structure of context.
    Regards,
    Kartikaye

  • How to set OEM alerts for concurrent programs

    Hi,
    We are using OEM 10g gridcontrol for monitoring.
    i am new to OEM, now i have a task to set up alerts for concurrent programs(which are running more than 30mins).
    can any one provide step by step process to setup alerts.
    Thanks,

    Here is how to enable your alerts.
    1. From the Mobile Email application, select the desired email account then press the center of the 5-way navigation pad to choose Select.
    If prompted enter the username and password,  then press the center of the 5-way navigation pad to choose Sign In.
    2. Press the right soft key to choose Options.
    3. Select Settings then press the center of the 5-way navigation pad to choose Select.
     For AOL / AIM select Preferences.
    4. Select the desired setting then press the right soft key to choose Save.
    To disable the email alerts:
    Select Disable or Never.
    To enable email alerts:
    Select Enable or Always.
    To receive email during a desired time interval:
    Select Only During then enter the desired time interval.
    This setting may not be available on all handsets or accounts. Hope this helps

  • How to change table value set using FND_LOAD

    Hi ,
    I need to change my existing " table valueset " tablename .
    As i know we cont change it from front end if it is created once. but i am trying to create same value set in other instance and uploading it using FND_LOAD .
    Is it Possible ?
    IF yes please guide ?
    I feel greate if any one helps me.
    Regards ,
    Azam.

    Hi,
    You could use FNDLOAD to download the values, and edit the ldt file before uploading it back using FNDLOAD.
    Search My Oracle Support for "FNDLOAD afffload.lct", you should get couple of hits which should be helpful.
    Note: 252853.1 - 11i AOL : How to Load Value Set Values When Using Fndload To Load A Concurrent Program
    Note: 274528.1 - How To Download Single Context Using FNDLOAD For Descriptive Flexfield
    Regards,
    Hussein

  • How to create a database table for educational details

    how to create table for this image. i have to develop a job portal website. i created all the tables that required. but i dont know how to store these fields in table. any one help me plz

    It would need following tables
    1. Employee table where EMpNo field would be included as an attribute. Other fields would be EmployeeName,Designation, ...
    It will have Primary Key as EmpID
    2. QualificationType table with QualificationCategoryID and QualificationCategory with values Highest Qualification Post Graduate etc
    QualificationCategoryID  is the primary key
    3. QUalificationTypeAttributes tables with fields as QUalificationTypeAttributeID,QUalificationTypeAttributeName
    QUalificationTypeAttributeID is primary key
    and QUalificationTypeAttributeName will have values Institute Name, Qualification Category etc
    4. EmpQualificationTypeValues table with fields
    QUalificationTypeValueID, QUalificationTypeAttributeID , QualificationCategoryID , EmpID, Value
    QUalificationTypeValueID would be the primary key
    for above case values would be like below
    Employee
    Emp ID EmpNo Name ...
    ID1 12345 xxxxxxx
    QualificationType
    QualificationCategoryID QualificationCategory
    CatID1 HIghest Qualification
    CatID2 Post Graduate
    QUalificationTypeAttributes
    QUalificationTypeAttributeID QUalificationTypeAttributeName
    QTAID1 Institute Name
    QTAID2 Qualification Category
    QTAID3 Year Of Passing
    QualificationTypeValues
    QUalificationTypeValueID QUalificationTypeAttributeID QualificationCategoryID EmpID Value
    QTVID1 QTAID1 CatID1 ID1 Your institute Value set from screen for highest qualification
    QTVID2 QTAID2 CatID1 ID1 Your qualification category Value set from screen for highest qualification
    QTVID3 QTAID3 CatID1 ID1 Your year of passing value set for highest qualification
    QTVID4 QTAID1 CatID2 ID1 Your institute Value set from screen for post graduate
    QTVID5 QTAID2 CatID2 ID1 Your qualification category Value set from screen for post graduate
    QTVID6 QTAID3 CatID2 ID1 Your year of passing value set for post graduate.....
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • How to create a custom measure for each level of a dimension

    Hi all!
    Can Anyone please explain me with an example, how to create a custom measure for each level for a dimension? I dont mine if you use
    one or more measures.
    thanks in advance
    hope someone helps me.

    For example:I create a dimension for product_dim witch has 4 levels:total, class, family and item:
    d_aben18
    n1_aben18
    n2_aben18
    n3_aben18
    n4_aben18
    herarchy:h_aben18
    cube:cubo_aben18
    measure:med_aben18
    I create this code to fetch the data to the dimension:
    TRAP ON CLEANUP
    SQL DECLARE c1 CURSOR FOR SELECT-
    total_product_id,1,'N1_ABEN18',total_product_dsc,-
    class_id,1,'N2_ABEN18',total_product_id,class_dsc,-
    family_id,1,'N3_ABEN18', class_id, family_dsc,-
    item_id,1,'N4_ABEN18',family_id,item_dsc-
    FROM PRODUCT_DIM
    "OPEN THE CURSOR
    SQL OPEN c1
    "FETCH THE DATA
    SQL FETCH c1 LOOP INTO-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N1_aben18_LEVELDEF,:D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N2_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N3_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N4_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    "SAVE THE CHANGES
    UPDATE
    COMMIT
    CLEANUP:
    SQL CLOSE c1
    SHOW 'KK2'
    Then I create a cube with use compression off, and in rules sum for example.
    After, I create a measure and I select Override the aggregation specification for the cube, in rules I put nonadditive and I would like to create aprogram to assign distinct values to each level of the dimension. For example, I put 1, 2 3, and 4 values, but at the end I would like to put count(distinct(values)).
    for that I create another program:
    VRB D_RETURN DECIMAL
    if D_ABEN18_N1_ABEN18_LEVELDEF eq 'N1_ABEN18'
    then D_RETURN = 1
    if D_ABEN18_N2_ABEN18_LEVELDEF eq 'N2_ABEN18'
    then D_RETURN = 2
    if D_ABEN18_N3_ABEN18_LEVELDEF eq 'N3_ABEN18'
    then D_RETURN = 3
    if D_ABEN18_N4_ABEN18_LEVELDEF eq 'N4_ABEN18'
    then D_RETURN = 4
    else d_return=26
    return d_return
    "SHOW D_RETURN
    cubo_aben18_med_aben18_stored=d_return
    but it doesnt work.I dont know how to put to assign or to see what I want.
    I report the measure, or I report the program, but then how can I see the values of the measure?
    thanks in advance

  • How to create an apple id for your child

    how to create an apple id for your child

    You can create an id without accredit card that might be what you want.  Ten use that ID for your child's iMessage and iCloud and use your ID for iTunes and App Store on both phones. That way you can control what is purchased.  I would set up restrictions on the kid's phone with a pun that you only know and durn off in app purchases

  • How to create a new field for Q3 - QM notification in Header and item level

    Dear All,
    l
               Sub: How to create a new field for Q3 - QM notification in Header and item level
    Ref. the link --> Quality Notification
    We want to create a new field in header level and item level.
    As per the thread the solution is given below.
    In the IMG Config: Quality Management -> Quality Notification -> Notification Types -> Define screen areas for notification types Then Choose 'Define screen areas' Then Click on 'New entries' button Now, select the relevant Notification Type and click in 'Enter'. Select the 'Iten Cases' register and remember to setup the Tabstrip Header, Icon, etc. Set the 'Tabstrip active' flag. Then Save.
    Quality Notification -> Notification Types -> Define screen areas for notification types
    WE ARE UNABLE TO FIND IN CUSTOMIZATION PATH --> DEFINE SCREEN AREAS FOR NOTIFICATION TYPES.
    Please help.
    Question No. 2 :
    THE REQUIREMENT IS GIVEN BELOW.
    We want to hide the field in Q3 - QM Notification
    In header --> Reference tab --> Item (sub heading) --> "DEFECT LOCATION" FIELD TO BE ELIMINATED (HIDE)
    Ref the link --> Quality notification
    The solutiion is given below.
    Hi Sami,
    We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
    Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
    Hope this will suffice your requirement.
    Kindly ask me if you need any other details.
    Thanks & Regards,
    Srinivas.D
    Hi Sami,
    We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
    Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
    Hope this will suffice your requirement.
    Kindly ask me if you need any other details.
    Thanks & Regards,
    Srinivas.D
    By double clicking the "DEFECTIVE QUANTITY (EXTERNAL), WE COULD NOT GET --> field TXTCDOT .
    Plese do the needful.
    We are using ECC6.0 Ehp3 and Ehp4.
    With Best Regards,
    Raghu Sharma

    Dear Pushpa,
    Transaction Code :SHD0 is working fine.
    Please accept my sincere thanks for your sharing your Knowledge.
    I am able to fulfill my
    Regarding the enhancement, I have not tried.
    Once I will complete, I will award the fulll marks to you.
    With Best Regards,
    Raghu Sharma

Maybe you are looking for