Copy Multi block field value in single field

HI!
I have a multi block text item i want to copy its contents in single filed text item.
1. I am using Forms 6i.
Thanks & Regards!

Hi,
Try this code.
DECLARE
     Str_Field                VARCHAR2(3000);
     Num_Total_Records NUMBER;
     Num_Loop_I                     NUMBER;
BEGIN
     :<master_block_name>.<field_name> := '';
     FIRST_RECORD;
     LAST_RECORD;
     Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
     FIRST_RECORD;
     FOR Num_Loop_I IN 1..Num_Total_Records LOOP
          Str_Field := Str_Field || ',' || :<detail_block_name>.<field_name>;
          NEXT_RECORD;
     END LOOP;
     :<master_block_name>.<field_name> := SUBSTR(Str_Field, 2, LENGTH(Str_Field)-1);
END;Regards,
Manu.

Similar Messages

  • How to display 7 values of  single field in row wise.

    hi,
    how to display 7 values of  single field in row wise.
    thankx in advance.

    hi ,
    do it like this :
    1 Place ur UI element in tranparent container with Layout as Row Data and Layout Data as Row Head Data
    2 Ur first  UI , which contains the first value as Row Head Data ,
    3 Others as Row Data
    u can do it with Matrix Data as well
    if u want to give space , u can use HORIZONTAL GUTTER and set its width to medium / large / Xlarge
    also there is a UI element "INVISIBLE ELEMENT" ,
    1 u can use this UI element to provide space between ur other UI elements in the view
    2 u can insert a text element as well , and in the Text property of the element press ALT + 0160.
    u can give the space bw UIs as desired.
    regards,
    amit

  • To populate values into single field in an internal table

    Hi Friends,
    How we need to populate values into single field in an internal table.
    E.g itab consits of single field ( name)
           i need to assign values to this field name .like
          peter,
          john,
          abrahm,
          daneyal
    Pls tell me i how i need to code for this
    Thanks ,
    Parnith

    Hi,
    Please look at the below code :
    DATA : BEGIN OF itab OCCURS 0 ,
             name(20) TYPE c,
           END OF itab.
    START-OF-SELECTION.
      itab-name = 'Peter'.
      APPEND itab.
      CLEAR itab.
      itab-name = 'John'.
      APPEND itab.
      CLEAR itab.
      itab-name = 'Abrahm'.
      APPEND itab.
      CLEAR itab.
      itab-name = 'Daneyal'.
      APPEND itab.
      CLEAR itab.
      LOOP AT itab.
        WRITE : / itab.
      ENDLOOP.
    Thanks,
    Sriram Ponna.

  • Pass Multiple values of single field to ITS url

    Hi ,
    I have one transaction code(YW37P),
    I that have one field(Order No) in the selection screen, which has capable to accept multiple values (i.e multiple single values) and excute the t code.
    Now my question is how to pass this multiple values of one single field to the ITS url and by pass the selection screen.
    I have gone through the blogs which explains about how to pass only one single value of single field to ITS url and by pass the selection screen
    please provide some solution for this
    Regards
    Srinivas

    Hello Srinivas,
    How do you enter multiple order numbers in the field usually?  Is there a space or comma separating the numbers?  If so you will probably need to encode the space or comma, ie if a comma %2C.  The easiest way to figure it out is to use a tool like HTTPwatch and capture the POST data to see the value that is normally sent by the transaction. 
    Edgar

  • Pass javascript field value to  ABAP field value

    Hi all,
          how can i Pass javascript field value to  ABAP field value  and utilise that value within layout.

    since you are new here, may i suggest you to search the forum, before posting a question. This has been discussed many times here.
    to set a js variable value to a ABAP variable value, you cannot do it on the client side, your page has to go for a server rountrip so that the value can be set into a ABAP variable.
    for this we generally follow the approach of setting the js variable value to a hidden html element (input type=hidden) and submit the form, and then in oninputprcessing retrieve the value from the form field and set it to a ABAP variable.
    Regards
    Raja

  • Can JVM security policy be modified to access field values of private field

    Can JVM security policy be modified to access field values of "private" field in a Class?

    See http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html#ReflectPermission.
    Note that you will have to use reflection to access the fields once the security policy allows you to supress the access controls.
    Chuck

  • Need to assign a multi datatype struct to a single field in Unicode system

    Hi all,
    I had posted an earlier question related to this to understand what the issue is. Few responses helped. Then now I have gone thru the conversion rules in Unicode systems related to assigning a structure (with different data types) to a single field and looking for a solution for my case. The current code written in 4.6 says
    l_bapiparex-valuepart1 = l_bape_vbap
    where
    l_bape_vbap is a structure of type bape_vbap and
    l_bapiparex of type bapiparex.
    So according to the rules, when I do this kind of an assignment in ECC , the first field's length (i.e. VBELN) must be min 240 characters long. Only then this assignment will be error free, am I right ?
    Or Is this an inadmissable assignment situation ?
    If not then is there any other way how I can achieve the same result by fixing this issue ? I am not able to think of any !! Has any one come across this kind of an issue during upgrade? Please do suggest.
    Just for your reference I have pasted the rule details from SAP help..
    Conversion in Unicode Programs
    The following rules apply in Unicode programs when converting a flat structure to a single field and vice versa:
    If a structure is purely character-like, it is processed during conversion like a data object of the type c (Casting). The single field can have any elementary data type.
    If the structure is not purely character-like, the single field must have the type c and the structure must begin with a character-like fragment that is at least as long as the single field. The assignment takes place only between this fragment and the single field. The character-like fragment of the structure is treated like a data object of the type c (Casting) in the assignment. If the structure is the target field, the remaining character-like fragments are filled with blanks and all other components with the initial value that corresponds to their type.
    No conversion rule is defined for any other cases, so that assignment is not possible.
    Note
    If a syntax error occurs due to an inadmissible assignment between flat structures and single fields, you can display the fragment view of the corresponding structure when displaying the syntax error in the ABAP Editor by choosing the pushbutton with the information icon.
    thanks

    Try this way
          call method cl_abap_container_utilities=>fill_container_c
            exporting
              im_value               = l_bape_vbap
            importing
              ex_container           = l_bapiparex-valuepart1
            exceptions
              illegal_parameter_type = 1
              others                 = 2.

  • Multiple values for single field

    hi
    In order to upload Purchase order details, how you handle multiple values for a single field? 
          Eg: Item field may contain no. of values for a record

    Hi,
    It is generally taken care using BDC's by Table Control, and if you are using BAPI's then there are tables for ITEMS.
    Regards,
    Atish

  • Send Multiple field values to Single Target field in Message Mapping

    Hi,
    My  Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
    We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
    Regards,
    Madhu

    >>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    I don't think it's complex but  just that it occupies more mapping area
    Just write a simple UDF - a one line code and pass all your input variables.
    return var1+var2+var3+var4+...+var15;

  • Accessing the field values in different fields for calculation

    Hi,
    I am creating a report in which I have used breaks for grouping the  customers by their category. I have used summary on the amount field to calculate the sum in the individual category and also for total amount.
    Now, I also want to add an column which could display the percentages of individual contributions.
    So, its like I have to write a query accessing the total percentage, categorized percentage and individual amount.
    My question: How can I access the various fields values in the query of some other field specifically sum and total sum( because it shows the sum([Amount]) for category sum and total sum both)
    -BOBJuser

    Hmmm, I assume you are talking about WebIntelligence here...
    Ok, so let's go: you can access every "object" in the report simply by it's name. Every cell contains either a constant value (e.g. some text) or a formula, the simplest one can be just the value of an "object" from the query.
    There is a formula bar on top which you can activate, where you can easily see the content of a specific cell and also copy/paste the formula from the cell, as well as access all the built-in functions.
    WebI has a built-in calculator which works very similar to a "micro" olap engine, so you can access every sort of aggregate (of a measure) via a correspondig formula, irrelevant in which cell you are using it.
    Nevertheless, there is a "computation context" which depends on the place where you put the formula, e.g. summary row, detail row, etc.
    for more info: see the manual )
    hth, Walter

  • Setting field value from antother field

    I am having problems setting the value of a field depending on the entry of a previous drop down field.
    I am creating some wizard pages. On one page i wish a drop down list to populate another field. The drop downlist is unbound. (I have tried doing this with bound field aswell). To do this I have the Depends on Item of the target field to depend on the dropdown list field, so that the appropriate values are updated. (i have tried with the target field being bound and unbound aswell not that it should matter).
    I have then updated the VO (view object) adding transient fields when the fields are unbound. Then i updated the view row class. The setter of the drop down field was used to set the value of the target field. (Using the setter of target field). I added system.out.println and the fields are called and set accordingly. ie getters and setters are correct.
    However when i run the screens the target field value is not set with the value within the getter of target field.
    Could you advice if this is a bug or whether i should be coding this in a different manner. (if it is a bug and you tell me when it is likely to be fixed and any alternative work arounds).
    Cheers
    Alan

    Alan,
    Not really a bug, but "missing functionality". The problem is that ADF Faces will only refresh a UI Component value from the underlying model binding value when you submit the request with immediate="false", OR when you explicitly call resetValue() on the component.
    We have added a new boolean item-level property "Clear/Refresh Item When Depends-On-Item Changes" in the latest build.That property will do the trick for you: it will clear the value and call resetValue on the UI Components of the dependent items, BEFORE the depends-on-item model value is updated. So, in your case, the setter method of your depends-on-item attribute will update your dependent item after JHS cleared the item, and you will see the new value right away because UIComponent.resetValue() was called as well.
    Steven Davelaar,
    JHeadstart Team.

  • Copying a Calculated Field Value to another Field in the same List

    Hello! I have a calculated field that uses an if statement to determine a score. IE A field called Downtime Score contains this calculate:  IF Downtime Minutes =10, 100.  (not correct formatting, just basic to get point across)
    I simply want to use a workflow to copy the calculated value in Downtime Score (100) to another field called Final Downtime Score.
    In the workflow, I current have the following:  Set FinalDowntimeScore to CurrentItem:Downtime Score
    When I log both to workflow history, they both show 0 in history.  Nothing is copying.
    The calculated field is a number and I tried both number and text fields for FinalDowntimeScore.
    This is within SharePoint 2013 and using SharePoint Designer 2013.
    Any help would be appreciated!

    Ok, I did the same test as you and it failed.  I still return a 0 when I should see a 100.
    Not sure if this helps but when even though we are using sharepoint designer 2013, we only have "SharePoint 2010 Workflow" available in Platform type when creating workflows.
    Could you test again using SharePoint 2010 workflow as your platform type and see if you return the same results?
    Thanks!

  • Copy a field value to another field using scripting

    Iam trying to capture a ALV grid fieldss using the scripting.
    we have a ALV grid in my R/3 program and in that there are 2 date fields VALUTL and VALUTP with 2 rows. Now if the date is blank in any of the field then value that exist in the corresponding field should be copeid.
    Do i need to loop the grid values ?
    Could any one you help me in corecting the below code.
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell 0,"VALUTP","19.04.2011"
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell 0,"VALUTL","06.06.2011"
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").currentCellColumn = ""
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").selectedRows = "0"
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
    Thanks,

    Iam missing something in the below code.Not able to update the date in the feild that was empty.Could some check
    Set GRID = session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell")
    RowCT = GRID.RowCount
    For Row = 0 To RowCT - 1
    GRID.setCurrentCell Row, "VALUTL"
    GRID.selectedRows = CStr(Row)
    cell = GRID.getcellvalue(Row, "VALUTL")
    cell1 = GRID.getcellvalue(Row, "VALUTP")
    If cell <> "" And cell1 <> "" Then
        GoTo 50
    End If
    Next
    50 For Row = 0 To RowCT - 1
        GRID.setCurrentCell Row, "VALUTL"
        GRID.selectedRows = CStr(Row)
        valu = GRID.getcellvalue(Row, "VALUTL")
        valp = GRID.getcellvalue(Row, "VALUTP")
        If valu = "" Then
           session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell Row, "VALUTL", cell
           session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
           session.findById("wnd[1]/tbar[0]/btn[0]").press
        ElseIf valp = "" Then
            session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell Row, "VALUTP", cell1
            session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
            session.findById("wnd[1]/tbar[0]/btn[0]").press
        ElseIf RowCT = GRID.RowCount Then
            'session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
       'session.findById("wnd[1]/tbar[0]/btn[0]").press
        End If
       Next

  • Mapping Query.. Hardcoding many values to single field.!!

    Hi ,
    The structure looks like below..
    E1EDK14 ..              0..12
            QUALF            0..1
            ORGID ..           0..1     
    The values which i need to hardcode are below.
    E1EDK14-QUALF    = 006
    E1EDK14-ORGID     = 10
    E1EDK14-QUALF   = 007
    E1EDK14-ORGID    = 12
    E1EDK14-QUALF   = 008
    E1EDK14-ORGID    = 210  
    I need to hardcode the values to the above Idoc fields(QUALF and ORGID).All the above 6 values has to appear in the Idoc structure. (ie. E1EDk14 segment will repeat for 3 times)
    I do not know how we can hardcode three values.
    Can one pls suggest me how i can acheive it??
    Waiting for your answer..!!
    Note : There  is no condition as If QUALF = "XX" then ORGID = "YY". My Situation is i need to hardcode evything.
    Regards
    Deepthi.

    Deepthi,
    The soln is simple. In the mapping right click on the node E1EDK14 and select "Repeat Node" or "Duplicate node". I forgot the exact menu name.
    Once you do this. you can see the node E1EDK14 2 times in target. Now just map 006 to QUALF of 1st E1EDK14 and 007 of 2nd E1EDK14 node. Repeat this till you get the desired result.
    P.S: Make sure you map the E1EDK14 nodes with a empty constant.
    Regards,
    Jai Shankar

  • SQL Join help for multiple values in single field.

    Hello All,
    I need a help, I have two tables T1 and T2
    Content of T2 will be like
    T2. ID | T2.USERNAME
    ID1 | John
    ID2 | Peter
    ID3 | Mark
    Content of T1 is like
    T1.ID
    ID1 ID2 ID3
    ID2
    ID1 ID3
    I need to join these two tables and replace the T1.ID values with T2.USERNAME, for eg. Row one of T1 should be changed as John Peter Mark.
    Note: ID1 ID2 ID3 is a single value.
    Thanks for your help.
    Sathish.

    At Volder: I have made a slight enhancement. It's the same thing but the other way around as last week's regular expression thread. Remember the "and then the bird flew away"? ;-)
    SQL> create table t1
      2  as
      3  select 'ID1 ID2 ID3' id from dual union all
      4  select 'ID2' from dual union all
      5  select 'ID1 ID3' from dual union all
      6  select 'ID11 ID2' from dual
      7  /
    Tabel is aangemaakt.
    SQL> create table t2
      2  as
      3  select 'ID1' id, 'John' username from dual union all
      4  select 'ID2', 'Peter' from dual union all
      5  select 'ID3', 'Mark' from dual union all
      6  select 'ID11', 'Volder' from dual
      7  /
    Tabel is aangemaakt.
    SQL> select * from t1
      2   model
      3    reference r on (select t2.*, rownum rn from t2)
      4     dimension by (rn)
      5     measures(id, username)
      6    main m
      7     dimension by (id)
      8     measures(cast(id as varchar(200)) str)
      9     rules iterate(100) until (r.id[iteration_number+1] is null)
    10      (str[any] = replace(str[CV()], r.id[iteration_number+1],r.username[iteration_number+1]))
    11  /
    ID          STR
    ID1 ID2 ID3 John Peter Mark
    ID2         Peter
    ID1 ID3     John Mark
    ID11 ID2    John1 Peter
    4 rijen zijn geselecteerd.
    SQL> select id
      2       , str
      3    from t1
      4   model
      5         reference r on (select id,username,rownum rn from t2)
      6           dimension by (rn)
      7           measures (id, username)
      8         main m
      9           dimension by (id)
    10           measures (cast(' ' || id || ' ' as varchar2(200)) str)
    11           rules iterate(1000) until (r.id[iteration_number+1] is null)
    12           ( str[any] = replace
    13             ( str[cv()]
    14             , ' ' || r.id[iteration_number+1] || ' '
    15             , ' ' || r.username[iteration_number+1] || ' '
    16             )
    17           )
    18  /
    ID          STR
    ID1 ID2 ID3  John Peter Mark
    ID2          Peter
    ID1 ID3      John Mark
    ID11 ID2     Volder Peter
    4 rijen zijn geselecteerd.At Sathish: just look at the queries we have to come up with to do such a simple thing. As said many times before, I would also encourage you to change the design instead of executing the queries presented by Volder and me.
    Regards,
    Rob.
    Message was edited by:
    Rob van Wijk
    Just noticed I missed a final TRIM function around "str", so please add this.

Maybe you are looking for

  • One form for multiple tables

    Hey, I'm Pretty new to Access, as I've been given units to cover for my college course.  Unfortunately my tutor has had this dumped on him too (so he's kinda self teaching as he goes as well).... My issue is that I am trying to create a single form t

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

  • Migo & Miro Check

    Hi all, My client requirement is to check the pending Miro at the time of Migo. The flow is when end user doing migo, if there is any miro pending for any migo at plant level then the system should propose an error. is it possible in standard or i ha

  • BAPI executing examlpe

    Hi Friends, i am trying to develop a java application and i need to fetch data from backend. I understand, we can use JCo, JAVA RESOURCE ADAPTER, ENTERPRISE CONNECTOR, J2EE CONNECTOR. Can you please let me know which is better suited for a stand-alon

  • Make changes to a spry menu bar

    I have used a spry menu bar 2.0 widget with the adobe widget browser by David Powers in my web site, and its working really well but now I have found I need a new sub menu, off an existing sub menu, I have read the instructions to try and put it in,