How to give a value in Token when Conc prog method registered as pl/sql typ

Hi
We have a report which will generate invoices for a given Operating Unit at one time.i.e Conc Prog1
We have a customised pl/sql package which submits the above report conc prog for all Operating Units with the required parameters for the report.i.e Conc Prog2
When i saw the conc prog2 somehow values has been entered TOKEN field eventhough the conc prog method is pl/sql.this was done earlier than me who developed this intially.
Now i need to include one parameter to this concprog2.when i try to include a parameter to it the TOKEN filed is grayed out(not updatable/eneterable a value).
So could anyone please tell me how i can add a parameter with token value for pl/sql type method conc progs.
Thanks,
Malla

Hi parag,
You mean to say i have to write like this :--
if (pageContext.getParameter("apply")!=null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject accountsViewObject =
(OAViewObject)am.findViewObject("ArBusPurAllVO");
if (accountsViewObject!=null)
OARow row = (OARow) accountsViewObject.getCurrentRow();
if (row.getAttribute("GlIdRev") == null || row.getAttribute("GlIdRev").equals(""))
//call your function here and say row.setaatribbute= revenue_acct_id from your function.
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String revenuenum = resultset.getString(1);
row.setaatribbute(revenuenum) ;
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
if (row.getAttribute("GlIdRec") == null || row.getAttribute("GlIdRec").equals(""))
//call your function here and say row.setaatribbute=rec_acct_id from your function.
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String receivablenum = resultset.getString(1);
row.setaatribbute(receivablenum) ;
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
super.processFormRequest(pageContext, webBean);
Am I, correct parag please tell me, if this works i will send u mail again that it is working fine .
my mail id is [email protected]

Similar Messages

  • How to give input parameter to Bapi when executing a method.

    Hi All,
    I have 1 input field and 1 button.I've defined a model node and inside that model attribute in my view.If I enter something in the Input field the value should go to the particular model attribute I defined.How to pass that input parameter.I have a action like this....
    public void onActionGetDateDetails(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionGetDateDetails(ServerEvent)
        wdThis.wdGetGetDateDetailsCustController().execute_Bapi_Get_Date_Details("");
    // while executing the above method I have to pass the input parameter typed in the input field.
    Structure of my context :
    Bapi_Date_Details
    >Network List(Model Node)
                                          |
                                          -->Network (Model Attribute)
         //@@end
    Help me to solve this.
    Thankx in advance.
    Regards,
    Karthick.K.E

    Hi Karthick,
    You can associate an input field's value to a BAPI in two ways:
    1) binding the input UI element's 'value' directly to the BAPI's input attribute that you want to set. This is the methos Noufal suggested. In this method, make sure you initialize the attribute through the following lines of code in the doInit() method, else, the input field will be disabled.
    <b><Bapi_name>Input input = new <Bapi_name>Input();
    input.set<Attribute_name>(new <dataType>);</b>
    2) The second method is settting the input's 'value' to some other attribute(say 'abc') and giving this value to the input parameter just before calling the RFC.
    input.set<Attribute_name>(wdContext.currentContextElement.getAbc());
    Hope this helps,
    Best Regards,
    Nibu

  • How to pass the value to "Assignment" when submit the program RFITEMGL?

    Hello friends,
    I want to submit program RFITEMGL  (t-code FBL3N) with some screen fields, some fields are OK to fill such as u201COpen at key dateu201D, u201CG/L accountu201D and u201CCompany codeu201D。 But for the field "Assignment" (It will appear after cilck Dynamic Selection), I don't know how to pass value to it.
    Could you help me about how to pass the value to "Assignment" when submit the program RFITEMGL  (t-code FBL3N) ?
    Thanks a lot!

    Hi,
    Well you can create a small BDC.
    Regards,
    Harsh Bansal

  • How to give a value an Hyper link attribute

    Hi,
    I am pulling some data from the database and displaying on a report. One of the feilds in that report is the DATA. How can I give Hyperlink to that data value and then when I click on that DATA one of the SQL or PL/SQL script needs to be triggered and then an Summery sheet needs to displayed.
    My question is
    1) how to create an hper link on that perticuler column value DATA and how to make it action according to my requirement mentioned above when user clicked on that value.
    Cheers,
    Krishna.

    Hi Rene,
    The following is a comment that I posted into the wrong thread but hopefully explains how this works:
    You can specify the value from any column for use in the link by using #columnname#.
    In the example, linked to above, the column link text is: Show employees for #ENAME#
    I have a hidden item on the page called P39_MGR. The link branches back to the same page (in this case, page 39) and sets the value of P39_MGR to #MGR# (the column that contains the manager's ID).
    The second report then has a filter:
    SELECT fieldnames
    FROM EMP
    WHERE MGR = :P39_MGR
    Regards
    Andy

  • How to give level value 'unknown'

    Hi there,
    When creating a dimension with OWB, we get for every level also a row with empty values voor de levels underneath.
    E.g.: Dimension customer: Level Total, level customer group, level customer.
    I get:
    =====================================
    Level_total customer_group customer
    Total NULL NULL
    Total Group1 NULL
    Total Group2 NULL
    =====================================
    This is generated by OWB automatically.
    Anybody any idea how to fill in 'Unknown' instead having it blank? I've looked if i can fill somewhere a property, but could not find.
    Any help is appreciated.
    Thanks
    Sandra

    hii vishal,
    this selct option i already taking from database.
    only i want to give constant value to this field ..
    u mean to write selection-screen  select-option in coding part of query/infoset?
    for this field?
    n give const value in this code/.?

  • How to give manual font path location when document opening?

    Hi,
    I want to know how to give manual path location for fonts when document opening like LinoType FontExplorerX, Font Book, UTS. Please Help me its very urgent
    Thanks

    Hi, I am doing the code likthis,please give the solution.
    SQL> create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
    2 insCtx DBMS_XMLSave.ctxType;
    3 l_ctx dbms_xmlsave.ctxtype;
    4 rows number;
    5 begin
    6 insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    7 rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    8 DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    9 end;
    10 /
    Procedure created.
    SQL> begin
    2 insProc('/usr/tmp/ROWSET.xml', 'emp');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:
    Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 7
    ORA-06512: at line 2
    Kishore B

  • Can we give where condition while db polling, if yes how to give the value

    Hi,
    We are polling a db table, can we give where condition in polling query. If we can give this then where to pass the value for the condition.
    eg:
    select * from xxtable wherexxname=#xxname;
    If above is the db polling query then how to pass #xxname value to db adapter.
    After polling we are deleting the row in the table.
    Thanks,
    Ra

    You can add where condition , but the value should be passed while configuring DB Adapter itself. You can't pass dynamic values to it as it is polling and gets activated once the process is deployed.
    Thanks,
    Satish
    http://soadiscovery.blogspot.com

  • How to give two values of same field in read Statment

    Hi,
    Please Tell me how to give the two values of same field in read statements Condition.
    i.e
      Read table it_tab with key matnr = '1' or matnr = '2'.
    With Regards
    Kesavaperumal

    Hi Kesavaperumal,
    <li>You can not use OR operator with READ TABLE statement.
    <li>You have to use different fields of the internal table in where condition.
    <li>If you want to compare with two values, you need to use LOOP statement.
    LOOP AT it_mara WHERE matnr = '1' or matnr = '2'.
    "Write code
    ENDLOOP.
    Thanks
    Venkat.O

  • How to give a value range in export parameter (global class)

    hi all,
    I have created a class-method called get_po_date. In this i had export parameter as qmfe-qmnum. If i give qmfe-qmnum in import parameter in class, i am able to give only one value at one time, but i need a range of values at a time. Instead of qmfe-qmnum in associated type, i have given 'LXHME_RANGE_C12' ( a range table for char 12 ). the thing is i wanted to select this range in select-options. but still iam getting <b>not type compatible syntax error</b>. can any body solve my problem,
    feel free to ask if any confusion with my question.
    Best Regards,
    abhilash.

    Hello Abhilash
    Instead of using a specific range (where field LOW and HIGH are of type QMNUM) you can use a <b>generic </b>select option (of type <b>RSDSSELOPT</b>). Have a look at the following sample report <b>ZUS_SDN_SELOPTIONS</b>.
    *& Report  ZUS_SDN_SELOPTIONS
    REPORT  zus_sdn_seloptions.
    TABLES: qmfe.
    DATA:
      gt_data          TYPE STANDARD TABLE OF qmfe,
      gt_data_x        TYPE STANDARD TABLE OF qmfe,
      gt_selopt        TYPE rseloption,  " generic table type for selopts
      gs_selopt        TYPE rsdsselopt.
    START-OF-SELECTION.
      SELECT        * FROM  qmfe INTO TABLE gt_data
             WHERE ( qmnum BETWEEN '000000000001' AND '000000000500' ).
      gs_selopt-sign   = 'I'.
      gs_selopt-option = 'BT'.
      gs_selopt-low    = '000000000001'.
      gs_selopt-high   = '000000000500'.
      APPEND gs_selopt TO gt_selopt.
      SELECT * FROM qmfe INTO TABLE gt_data_x
        WHERE ( qmnum IN gt_selopt ).
      IF ( gt_data = gt_data_x ).
        WRITE: 'Selected data are equal.'.
      ELSE.
        WRITE: 'Selected data are NOT equal.'.
      ENDIF.
    END-OF-SELECTION.
    Since RSDSSELOPT and RSELOPTION are global DDIC objects they can be used in <i>public </i>methods.
    Regards
      Uwe

  • How to get the value incremented only when the loop is true?

    Hi,
       From the snapshot attached, i want to increment the value of number indicator only once when its true and should increment the value again when the loop is true..i mean i want to get the number of times the loop is true.
    But in this vi i am getting the value incremented many number of times when the loop is true because the while loop is running continuously. 
    Attachments:
    labview.docx ‏54 KB

    muralicgowda wrote:    From the snapshot attached, i want to increment the value of number indicator only once when its true and should increment the value again when the loop is true..i mean i want to get the number of times the loop is true.
    But in this vi i am getting the value incremented many number of times when the loop is true because the while loop is running continuously. 
    A loop is a structure and not a boolean, so it cannot be false or true and thus I don't understand the question!
    Why don't you attach the actual VI instead of a word document? Your code is very difficult to understand because it seems to suffer from severe localitis, and some of the few visible terminals don't show a label. What's in the other cases of the case structures?
    Incrementing a value is better done in a shift register or feedback node. What's the purpose of the "absolute value" function. As long as you make sure you don't start with a negative value, it should not be needed. If you are looking for a off-on transition, try "implies" with the current and previous value of the boolean. (For an example, have a look at this post and the quoted example in it.)
    Message Edited by altenbach on 01-21-2010 08:47 AM
    LabVIEW Champion . Do more with less code and in less time .

  • WAD: how to give selection values all together then execute report

    Hi,
    I have to made web report in BI 7. I am using 4 drop down box for Plant, Dist_chann, Year, Period.
    When I change any single value of any drop down box, query gets refreshed.
    But I want to give all selection values all together then if can provide a button "Go", so that query will be refreshed for those set of values. This will save time in execution.
    I tried with selection screen. Here I can give any set of values before execution.
    But Selection screen comes as a seperate screen. can I provide same selection screen in the same page of dash board, somewhere Top of dash board.
    Useful answers will definitely get full marks !!!
    Regards,
    Saurabh

    See the following document - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0cb1cf2-6e84-2a10-c189-aafa2f04ac81
    This is an integrated planning document but it explains a way how query can be called only after values in dropdowns have been selected.

  • How to show a value in column when condition is true?

    Assume I have the following simplified SELECT statement:
    SELECT a, b, ???
    FROM tab;
    In the third column a value of "yes" should appear when the following condition is true:
    tab.c = tab.d
    Otherwise the value should be "no" (or even blank).
    How can I achieve this?
    The solution should be more general for situation if many tabs are involved,....
    Peter

    How can I achieve this?
    The solution should be more general for situation if many tabs are involved,....So do you expect a generalized SQL statement that handles are arbitrary number of tables with arbitrary column names?
    It would be helpful if you provided DDL (CREATE TABLE ...) for tables involved.
    It would be helpful if you provided DML (INSERT INTO ...) for test data.
    It would be helpful if you provided expected/desired results & a detailed explanation how & why the test data gets transformed or organized.

  • Urgent!!! How to give a value to a BEx variable in the planning fuction?

    Hi all,
    does anybody know how can set variable's value in the palnning fuction (type exit) in IP?
    The two function modules in BPS which make this job don't work in the IP.
    thanks very much for any proposal.
    hongwei

    Hi,
    Reg the first part of the question, can you please explain how do you want to capture the variable for the custom planning function? Because, when I look at standard functions delivered by SAP, in the FROM CHANGE and TO CHANGE(for example copy function), we can select the BI variables or create new variables also.
    To pass the values to this variable from BEx Analyzer, we need to use the command range in BEx Analyzer and capture the values.
    I have used this approach to capture the BEx variable values into a FOX function using VARV function, but Im not pretty sure how to pass it to a custom planning function.
    Regarding the second part of the question can you pls look at FM :   RSPLSSE_PLSEQ_EXECUTE. I think you need to embedd your planning function into a sequence and call it with the above FM.
    You can also have a look at the ABAP program that is used to trigger a planning sequence by placing a breakpoint in any of the planning functions : "RSPLS_PLSEQ_EXECUTE" wherein you can pass the sequence name in the variant.
    Rgds
    Shyam

  • How to show old value in webui when user press NO button on popup button.

    Hi Experts,
    As per requirement I have created custom field with dropbox and with popup box to cofirm user decision if value from field changes.
    Now on Popup when user press Yes then its Ok as no need to change the current value in the field.
    but when user press the NO button I want to display the old value on Web UI so now I am able to catch the old value and pass it into the field at backend but I am not able to make the change on the web page.
    Please reply if anyone have solution for it.
    BR
    Gaurav    

    Hi Gaurav,
    First of all when all this is happening in UI why you need to pass the selected value to backend. I didnt get this.
    I believe, this is only ui related and the old value which you got can be set in the IMPL class global variable and  trigger method set_on_close_event, say here 'CONFIRM_POPUP_CLOSED' as shown below:
      gr_popup->set_on_close_event( iv_event_name = 'CONFIRM_POPUP_CLOSED'
                                        iv_view = me ).
    Retrive the answer as per selection from popup in method 'CONFIRM_POPUP_CLOSED'
    by using:
      lv_answer = gr_popup->get_fired_outbound_plug( ).
    if lv_answer is NO, then put back the globally stored old value back to dropdown attribute, using:
    set_property_by_value method(   iv_attr_name = 'dropdown attr' iv_value = 'old value' )
    Thats it. No need to do anything.
    Regards,
    Bhushan

  • How to give range value and different value in headerof alv report

    Hi All,
    If User is giving range value 10 to 20 and also wants 25 28 30 and these all values should be displayed in Alv header.How is it possible.I have tried by using if variable-option eq 'BT'
                          elseif variable-option eq 'EQ'.then individually it is running fine but if user is giving both the option then differnt code is to be executed.
    Can you please suggest me how it can be possible.
    in header it should display as
    Values: 10-20,25,28,30.
    Edited by: RahulP5 on Dec 27, 2011 2:57 PM

    Hi Rahul,
    define the ALV grid for the maximum possible columns. Populate internal table as per selection requirements. Before displaying, set all empty columns to TECHNICAL = 'X'.
    You may use this routine to do it as fast as possible:
    *&      Form alv_fcat_tech_initial
    *       mark initial columns as tech
    FORM alv_fcat_tech_initial
      USING    pt_list                        TYPE table
      CHANGING pt_fieldcat                    TYPE slis_t_fieldcat_alv.
      FIELD-SYMBOLS:
        <rec>                                 TYPE ANY,
        <fld>                                 TYPE ANY,
        <fcat>                                TYPE LINE OF slis_t_fieldcat_alv,
        <name>                                TYPE fieldname.
      DATA:
        lt_fieldname                          TYPE SORTED TABLE OF fieldname
          WITH UNIQUE KEY table_line.
    * get fields
      LOOP AT pt_fieldcat ASSIGNING <fcat>.
        INSERT <fcat>-fieldname INTO TABLE lt_fieldname.
      ENDLOOP." at pt_fieldcat assigning <fcat>.
    * scan table
      LOOP AT pt_list ASSIGNING <rec>.
        LOOP AT lt_fieldname ASSIGNING <name>.
          ASSIGN COMPONENT <name> OF STRUCTURE <rec> TO <fld>.
          CHECK NOT <fld> IS INITIAL.
          DELETE lt_fieldname.
        ENDLOOP." at lt_fieldname assigning <name>.
      ENDLOOP." at pt_list assigning <rec>.
      LOOP AT pt_fieldcat ASSIGNING <fcat>.
        READ TABLE lt_fieldname TRANSPORTING NO FIELDS
          WITH TABLE KEY table_line           = <fcat>-fieldname.
        CHECK sy-subrc                        = 0.
        <fcat>-tech                           = gc_true.
      ENDLOOP." at pt_fieldcat assigning <fcat>.
    ENDFORM.                    "alv_fcat_tech_initial
    Regards,
    Clemens

Maybe you are looking for

  • Can't send or receive pictures on iphone 5/ sprint, please help!

    Was on the phone for over 3 hours last night with Apple and Sprint and I'm beyond frustrated.  I just started using my iPhone 5 on the Sprint network a few days ago.  I did the 6.0.2 update.  I can't send or recieve picture messages!  Regular text me

  • QT Issue in Keynote!!!! Please help, urgent

    I am having serious issues with both '06 and '08 Keynote, I am trying to export a simple keynote that has a QT video in it, with 15 sec. transitions as a self-playing movie. I cannot get it anywhere near 15 sec. it always comes in betw. 24 and 30 sec

  • Download error message for AW

    I have just moved data from a G3 iMac to a G4 iMac with 10.4.9 installed. Much of what I moved was written in AW. The G3 has AW 6.04 installed on it but I can't burn a CD to move it to the G4. It will no longer be used on the G3. I downloaded the upd

  • Unable to find the Add-on SAP_BS_FND Keep with Vendor Key

    I am upgrading from EHPI Support Pack Stack 3 to Stack4, I am now stuck at the Configuration stage of the roadmap phase IS_SELECT - Keep the present version of the add-on (Keep (with vendor key)). I wanted to keep the add-on SAP_BS_FOUNDATION with St

  • ICloud account password

    I have an iCloud account that I have forgotten the password.  When I go to "appleid.com" I don't remember the password and when I select send to an email I never receive the email thus maybe don't have the correct email.  Also when I use the secret q