How to populate the value of 1 field in subtabs.

Guys,
Need your help.
In one of the standard page there are multiple subtabs. So, I have requirement if users enter a value for a field in 1st subtab then the same value should automatically get populated to the second subtab field .
Please help me in this.
Is it possible through personalization or we need to extend the CO.
Standard Page :- /oracle/apps/ap/payments/psr/webui/PsrPG
This is a form in 11i but in R12 it is OAF page.

Hi,
As per my understanding, you have to extend your controller class:
1) Set PPR event on tab/field
2) Catch the PPR event in PFR method.
3) Get handle to AM and then VO and set attributes of the VO of 2nd tab.
--Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to print the value of a field of  type FLTP

    hi experts,
    pls tell me how to print the value of a field of  type FLTP. i.e in decimal format not in exponential format.
    thankyou.
    krishna

    Hi ,
    I dont think in Floating point u can able to go for the decimal point display as it is for the minimum precission display..
    Define the variable as the 'packed' type and then u can able to define the decimal point...
    Cheers,
    SImha.

  • How to populate the data for additional fields in custom report of fbl5n tr

    hallo friends,
    i ha ve to add some fields to the output of custome report of transaction FBL5N.
    Till now i have only added the fields to the output.
    Now i have to write the code to populate the data for those fields in the program.
    1.     Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
    2.     Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
    3.     Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
    4.     Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
    5.     Risk Category: (Table: KNKK; Field Name: CTLPC)
    6.     Credit Info Number: (Table: KNKK; Field Name: KRAUS)
    7.     Rating: (Table: KNKK; Field Name: DBRTG)
    8.     Payment Index: (Table: KNKK; Field Name: DBPAY)
    9.     Credit control area: (Table: KNKK; Field Name: KKBER)
    10.     Company code: (Table: KNB1; Field Name: BUKRS)
    11.     Sales Organization: (Table: KNVV; Field Name: VKORG)
    These are al fields i have to populate in the program..
    MY ATTEMPTS:
    I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
    And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
    Can anybody tell me how should i proceed..
    thanks in advance.

    Thnx Andreas,
    i have following doubts again..
    I have to add sales organisation field to the selection screen...(this is given in the req.)
    now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
    And what about the KNVV-VKORG ,because the KNVV is not present in the LDB.

  • How to read the value of a field belonging to a different context node in GET_I method during runtime

    I want the read the value of a field,'LCSTATUS' belonging to context node 'BTADMINH' in the GET_I method of the field, 'ZZFLD000008' belonging to context node,'ZBTACTIVITYH'.
    In the context node class of context node 'ZBTACTIVITYH',I have created an instance attribute,GR_OWNER type ref to context class.
    I get the following error in the line - lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ).
    'An exception (CX_CRM_CIC_PARAMETER_ERROR) occurred Message no. TPDA430'
    I have used the below code.
    method GET_I_ZZFLD000008.
         DATA: current TYPE REF TO if_bol_bo_property_access,
               lv_act_status TYPE string.
         DATA:lr_entity TYPE REF TO cl_crm_bol_entity,
               lr_current TYPE REF TO if_bol_bo_property_access,
              lr_parent TYPE REF TO cl_crm_bol_entity.
         rv_disabled = 'TRUE'.
         if iterator is bound.
           current = iterator->get_current( ).
         else.
           current = collection_wrapper->get_current( ).
         endif.
    CHECK gr_owner IS BOUND.
    lr_entity ?= gr_owner->btadminh->collection_wrapper->get_current( ).
    CHECK  lr_entity  IS BOUND.
    lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ). "error states that lcstatus can't be used here.
       TRY.
             IF current->is_property_readonly(
                           'ZZFLD000008' ) = abap_false. "#EC NOTEXT
               rv_disabled = 'FALSE'.
             ENDIF.
         CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
               cx_crm_genil_model_error.
           RETURN.
       ENDTRY.
    endmethod.

    Hi,
    LCSTATUS is not an attribute of the BTADMINH structure. It is read using the relation to the status object
    BTADMINH-> BTHeaderStatusSet-> BTStatusHCurrent-> ACT_STATUS.
    Try reading the ACT_STATUS of object BTStatus as given below.
            data: coll   type ref to if_bol_entity_col.
           data: entity type ref to cl_crm_bol_entity,
                         lv_act_status TYPE string.
           entity ?= current.                                                               "BTADMINH entity.
           coll = entity->get_related_entities(
                    iv_relation_name = 'BTHeaderStatusSet' ).    "#EC NOTEXT
           current = coll->get_current( ).
            entity ?= current.
           coll = entity->get_related_entities(
                    iv_relation_name = 'BTStatusHCurrent' ).     "#EC NOTEXT
           current = coll->get_current( ).
            try.
           lv_act_status = current->if_bol_bo_property_access~GET_PROPERTY_AS_STRING(  'ACT_STATUS' ).
             catch cx_crm_cic_parameter_error.
           endtry.
    Regards JP

  • How to access the value of a field of a field symbol.

    Hello All,
    i need to access the value of a field in a field symbol. But when i am trying to get the value like <FS>-POSNR, it's showing that that the <FS> has no structure.
    In my program, the field itself that i need to check should be dynamic. ie i'll get the field in a variable and i need to find the value of that field.
    Am pasting my code below, please tell me what needs to be done.
    here in my sample code i am moving the entry of the <FS> into a work area structure. But in my actual program, i gets the structure as a parameter. So is there any way i can declare a work area dynamically...
    FUNCTION z_39181_dyn_fs_60758.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(PARAMETER) TYPE  VBELN
    *"  TABLES
    *"      DATA_TAB
      BREAK-POINT.
      FIELD-SYMBOLS <fs> TYPE ANY.
      FIELD-SYMBOLS <fs1> TYPE ANY.
      FIELD-SYMBOLS <fstab> TYPE ANY TABLE.
      DATA name(5) VALUE 'POSNR'.
      FIELD-SYMBOLS <f> TYPE ANY.
      DATA: dref TYPE REF TO data,
            dref1 TYPE REF TO data,
            dref2 TYPE REF TO data.
      DATA: lv_lips TYPE string.
      DATA: lv_lipsfld TYPE string,
                lv_fld TYPE string,
                lw_lips TYPE lips.
                lv_lips = 'LIPS'.
                lv_fld = 'LW_lips-POSNR'.
      CREATE DATA dref1 TYPE (lv_lips).
      CREATE DATA dref TYPE STANDARD TABLE OF (lv_lips).
      CREATE DATA dref2 LIKE LINE OF data_tab.
      ASSIGN dref->* TO <fstab>.
      ASSIGN dref1->* TO <fs>.
    assign dref2->* to <fs
      <fstab> = data_tab[].
      LOOP AT <fstab> INTO <fs>.
        lw_lips = <fs>.
        WRITE lw_lips-vbeln.
        ASSIGN (lv_fld) TO <fs1>.
       write <fs>
      ENDLOOP.
    Helpful answers will be rewarded...

    Use syntax
    ASSIGN COMPONENT name OF STRUCTURE struc TO <fs>.

  • DATASET_WRITE_ERROR :How to know the value of a field at the time of error?

    Hi All,
    I have an ABAP code that write some records to a  flat file. Am getting a DATASET_WRITE_ERROR when this program is run.
    in ST22 i checked for any info that could be of help.
    The Error Text is: "No Space left on device"
    Error code: 28.
    Now i want to know after writing how many records did the program threw the error.
    I have a counter named WRITE_CTR. <b>Is there any way in the debug mode I can check for the value of WRITE-CTR just before the program terminated ?</b> checking the value of counter each time a record is written is not practical as there are almost 40k records in total.
    In ST22 i checked the section "Chosen Variables". unfortunately this counter's value is not listed there.
    Please let me know if there is any way i can see the contents of a field just before a short dump is generated.
    Otherwise is there any option during debug that i can set a breakpoint on a statement when the field WRITE-CTR=<some value> say when WRITE-CTR = 30000 ?
    Thanks in advance,
    Rit

    Ok. Havent used Try..Catch in ABAP. I'll try using that. That should be a better way. Thanks.
    I think it throws the error only after 20 or 30000 records are written. So its not possible to set a breakpoint where it writes to file and check which all records are written.
    I wanted to know if there's any way to know the value of a filed just before the error is thrown. In the 'Watch' feature i saw an option to select a field and then give a comparison operator and all. Do you know how to use that ? Will that help me to break the execution when a field value equals a limit ? Just wondering what the Watch option is for!!
    Regrads,
    rit

  • How to populate Initial value of a field from another item value

    Hi
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?
    Thank you.

    Hi,
    user622444 wrote:
    In my expense report entry screen I have justification and description fields. My description field is getting value from the database. I want justification field also get the value same as what description has. Could you guide me on how to achieve this via personalization?---Copy the viewAttribute name of the description
    ---Paste it in Justification view Attribite property.
    Regards
    Mehar Irk

  • How to populate the values based on different selections in Dashboard Promp

    Hi,
    I have a group prompt, which has 2 drop downs. The DropDown1 decides the values of DropDown2.
    I have used a SQL query in the "Show" values which will populate the dropdowns.
    When a value is 'selected" from DropDown1, the selected value decided the values of DropDown2 which is again a SQL query.
    But I see that when a new value is selected from DropDown1, the values in DropDown2 will not change until I click on GO.Even after clicking GO, the previously selcted value is retained.
    As an illustration:
    animals,plants are the choices in the first drop down, which if, animal is selected would populate the dropdown2 with cow,sheep, tiger.
    Assume animal is selected. The second drop down now is populated with cow,sheep and tiger. Assume you chose sheep.This resulted in display of sheep related info on the BI page.
    Now if I go back to the first dropdown and select plants, I would expect the second drop down to be populated with fig, palm, coconut.
    However in my case I see only the proviously popluated animals in the DropDown2.
    If I click on Go, I see that the DropDown2 is populated with Sheep,,fig, palm, coconut. Ideally I should not have seen the prevously selected value in DropDown2.
    Here there are 2 problems stated for a group promt having 2 DropDowns where item chosen from one decides the values of the other dropdown
    1. On selecting an item from DropDown1, is not populating with the corresponding values in DropDown2
    2. When 'Go' is clicked, DropDown2 is populated with the corresponding values for DropDown1 + the previously selected value in DropDown2 is retained.
    Any input to get out of this problem will help
    thanks
    Shubha

    Hi
    I am using group prompt and has 4 drop downs.
    Value of one decides the other. Values for the dropdowns will be populated by SQL results.
    'Constrain' will not be available for sql results..
    How to go about this?
    thanks
    Shubha

  • How to watch the value of a field

    Hi,
    I've a Variable Form with a field of the Drop-Down List type. I'd like to be able to read the content of this field when I deploy my project.
    For example, when I don't choose any value for this field, the content of this field should be null or  ' ' but, I don't really which is the content of the value. How can I know exactly the content?
    Thanks in advance.
    Regards.

    Hi,
    Check the empty field condition with ISNULL conditional operator. i.e.
    =ISNULL(@field)
    and check the spaces with " " i.e.
    =@field ==" "
    when user enters multiple spaces then you can trim and and check i.e.
    = TRIM(@field)==""
    if you want to check the both then...
    =IF(ISNULL(@field) OR field==" ", "true condition", "false condition")

  • How to populate the values in the drop down list form the xml file ?

    I want to populate the drop down list values from a seperate xml file called ReferenceData. I created this file, which consists of a mapping entry in the form of ( key,value ) pair. Am mapping this xml file in to form by using rule named as getAppReferenceData.
    But the values are not getting populated in the form. And I have a doubt of, where should we keep that xml file? (under which path / folder ).

    what would help is if you showed what you do in the rule, either the code or a express trace of the rule.
    The other thing you need to know is where you want to get the file from. Yes java can read a file from anywhere on the system but there is a security layer in there which might prevent the file being opened. Have you allowed acces to the file via the security policy settings via java.io.FilePermission?
    WilfredS

  • How to Populate the Values in Custom Ztable

    Hello, I created the table In SE11 ZPRP, now how to populate this table with data ,
    like
    <b>1. i want to make entries in table please help how to do that.</b>
    <b>2.</b> I want to know if there is any way I can link this table ZPRP to pick up all enties from anoth custom table which has entries since both tables have exact similar structure.
    Thanks
    Regards
    Soniya Kapoor

    Hi,
    1) In SE11 -> Delivery and Maintenance tab, select 'X', Display/maintenanace allowed...
    Activate the table..
    Then in the menu bar , Utilities->Table contents -> create entries...
    Using this u can create new entries into ur table..
    2) Use an ABAP code to download the table data.. and then upload the same to   other table..
    Select * from Z*** into table g_itab.
    if sy-subrc =0.
    Insert ZPRP from g_itab..
    endif..
    Thanks
    Rajiv

  • How to set the values to a field?

    I have created a page which is used to create the records by using "Add Another Row" button.
    If i click on "Add Another Row",a blank row will be created.
    The requirement is,after clicking the "Add Another Row" , a default value should be set to one of the fields of the blank row.
    Can anybody help me !!!!.
    Thanks,
    Srinivas

    In processFormRequest write the below code
    if("addRows".equals(eventName) && "<AdvancedTabldID>".equals(pageContext.getParameter("source"))){
    am.invokeMethod("populateValues");
    In AMImpl write the below code:
    public void populateValues(){
    XyzVOImpl vo = getXyzVO();
    XyzVORowImpl row = (XyzVORowImpl ) vo.first();
    while ( row != null )
    if( identify the new ly added row here using some unique id or someother condition etc..)
    row.setFieldxyzvalue("set the value here");
    row = (XyzVORowImpl ) vo.next();
    }

  • How to update the value inside a field symbol ?

    ASSIGN COMPONENT 'MENGE' OF STRUCTURE <fs_line> TO <fs_field>.
    <fs_field> = itab_stpo-menge.
    COLLECT <fs_line> INTO <fs_table>.
    .processing some code......
    ASSIGN COMPONENT 'MENGE' OF STRUCTURE <fs_line> TO  <fs_field>.
    <fs_field> = ( itab_stpo-menge * itab_plpo-vgw03 ).
    COLLECT <fs_line> INTO <fs_table>.
    Hi, guys,
    May i know is there a way to update the value in inside a field symbol?
    I feel hard to figure out the way to solve this situation. Kindly give me some help or perhaos tell me other altenative way to do it also can.
    Thanks in advance.
    Edited by: Jiansi Lim on Apr 25, 2008 8:09 PM

    hi check this...
    For a structured data object s, you can use the statement
    ASSIGN COMPONENT comp OF STRUCTURE s TO FS.
    Here the comp is the component name or its index number in the structure.
    Find the following sample code -
    DATA: BEGIN OF LINE,
    COL1 TYPE I VALUE '11',
    COL2 TYPE I VALUE '22',
    COL3 TYPE I VALUE '33',
    END OF LINE.
    DATA COMP(5) VALUE 'COL3'.
    FIELD-SYMBOLS: <F1>, <F2>, <F3>.
    ASSIGN LINE TO <F1>.
    ASSIGN COMP TO <F2>.
    DO 3 TIMES.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
    WRITE <F3>.
    ENDDO.
    ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
    WRITE / <F3>.
    The output is:
    11 22 33
    33
    I need to update one field in Internal table
    regards,
    venkat

  • How to populate the value of SHUTTLE item from MULTISELECT item

    Hi,
    I am have following 2 items
    P1_TEXT1 - multiselect
    P1_TEXT2 - shuttle
    I have populated the value of P1_TEXT1(multiselect) and then want to assign the same value to P1_TEXT12 (shuttle)
    I am using following Javascript function to assign the value of P1_TEXT1 to P1_TEXT2 but it's not working??
    $x('P1_TEXT2').value = $x('P1_TEXT1').valuethanks,
    Deepak
    Edited by: Deepak_J on Dec 4, 2009 3:28 PM

    Hi Jari,
    I modified the earlier script as shown below. It's working perfectly fine as per my requirement.
    Pl let me know if these changes are fine OR is there is any modification we need.
    <script>
          var ob  = $x('P1_TEXT1');
          var ob2 = $x('P1_TEXT2_LEFT');
          var ob3 = $x('P1_TEXT2_RIGHT');
          // added this piece as per your suggestion..
          var g_myShuttle = null;
          if(!flowSelectArray){
            var flowSelectArray = [];
          flowSelectArray[flowSelectArray.length] = "P1_TEXT2_RIGHT";
          g_myShuttle = new dhtml_ShuttleObject 
          ("P132_HDWR_DEVCE_ID_LEFT","P1_TEXT2_RIGHT");
          // Remove all values
          g_myShuttle.remove_all();   
          // added this FOR LOOP, which will make every thing on the LEFT side unselected initially
          for (var j = 0; j < ob2.options.length; j++)
              ob2.options[j].selected = false;
          for (var i = 0; i < ob.options.length; i++)
                 for (var j = 0; j < ob2.options.length; j++)
                    if(ob2.options[j].value == ob.options.value)
    ob2.options[j].selected = true;
    var g_myShuttle = null;
    if(!flowSelectArray){
    var flowSelectArray = [];
    flowSelectArray[flowSelectArray.length] = "P1_TEXT2_RIGHT";
    g_myShuttle = new dhtml_ShuttleObject
    ("P1_TEXT2_LEFT","P1_TEXT2_RIGHT");
    g_myShuttle.move();
    </script>
    Thanks,
    Deepak                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Urgent: How to get the Value of Search Field

    Hello All,
    I want to get the value of <b>'Search Fiel</b>d' in my HTML file.
    Please help with this.
    Regards
    Vaib

    Hi Vaibav,
    It should be under the Script tag.
    You can refer this link for details.
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/55074155bcf26fe10000000a1550b0/frameset.htm
    Please reward points if my suggestion helped you.
    Thanks and regards
    Deepa

Maybe you are looking for

  • This installation package could not be opened. error

    Ok, so i just bought a new hard disk with better memory, speed etc, and i installed windows vista 64 bit version on it. i had a 32 bit version on another hard disk but the hard disk is so bad i cant acces it anymore. So i download java and then when

  • 3.1.2 Problems

    Hey there, I have recently upgraded my iPod Touch 2nd Gen 8gb to 3.1.2 and there has been lots of problems; My battery life has decreased, all of my apps stopped working, some of my music, videos and podcasts dont show up There are many more but let

  • Branch Office - Mobile Server connection problem

    Branch Office is successfully installed on a XP-PC inclusive the services are started, Mobile -Server is installed on a remote Server. After login with user and password in http://localhost/webtogo/ "Branch Office Web" it takes a while (we think in c

  • Xsl: line breaks in pdf output

    Hi i am using xsl to format the output. output is in pdf format. I have a column called notes which will be printed in a table row. it has multiple notes concatenated together. i am using a funtion a concatenate all the notes and printing it in a row

  • PE 7 - burn problem on DVD

    Hello, I have already burned DVD in the past with menus with PE7 but now when I try to do it, the program crashes before strating burning the DVD. I can export it to my computer but then I loose my menus. Anyone can help me please? Thanks in advance!