Passing field data from a repeating subform to another repeating form

Hi all,
In my main form, I have a repeating subform which captures various customer demographics. It repeats up to 7 instances based on how many clients are associated to a particular account.
The form user clicks a button to add new instances then fills in the various fields.
What I have currently is another hidden subform which I need to then make visible, but I also need one new instance of that form, prefilled with selected fields, for each instance of the first subform.
I'm not sure how to go about doing this. Based on my searches, it appears I need some sort of script to resolve each node and associate it with the second subform instances but I'm really unclear how to do that.
Any advice will be greatly appreciated! TIA

Hi all,
I thought I found what I was looking for but still having problems getting it to work. Found this example on John Brinkman's blog...
var srcFields = Subform1.resolveNodes("$.#field[*]");
for (var i = 0; i < srcFields.length; i++) {
  var fieldName = srcFields.item(i).name;
  // if the same-named field exists in S2…
  if (Subform2.nodes.namedItem(fieldName)) {
     Subform2[fieldName].rawValue = srcFields.item(i).rawValue;
I created a simple form containing 2 flowed subforms, each with one text field (same name). I added a button to subform1 to add one instance of subform1 on each click. I placed the script above in the change event of the text field in subform1.
Nothing is happening at all in subform2. I can add my 3 instances, enter a name in the text field but nothing shows up in the text field of subform2.
Can anyone offer any suggestions? Very new to this stuff so I'm really at a standstill. TIA!

Similar Messages

  • Need to display data from one group while in another repeating group

    I have a repeating group in my .rft file which displays line level data that has a quote number in it.
    At the end of this repeating group I need to display the total for the quote number but these values are in another group that's within a differnt group higher up in the XML tree. Both of the groups have quote number so there is a link between the two. How do I do this? When I add the "higher up" repeating group within the current group I can't get any data to show. Any help would be appreciated.
    Kind Regards

    Here's the data, I do know how to to move up the tree like a file system but I think my problem is I need to move up the tree and repeat based on the value (quote number) of the lower node.
    For instance for each quote number in repeating group G_FORX_OPS_QTE_ORDER_LINES loop through the occurances of same quote number in G_OPPCAT_BREAKDOWN so I can get a total of the fields by quote number
    This is overly simplified but it would be like this
    <?for-each-group:G_FORX_OPS_QTE_ORDER_LINES;QUOTE_NUMBER?>
    quote number 1428
    various line level data....
    various line level data....
    etc....
    -- Open loop to get data from other group (Only get data for quote 1428!!)
    <?for-each-group:/FORX_AS_OPPOR/LIST_G_OPPORTUNITY_SHEET/G_OPPORTUNITY_ID/LIST_G_OPPCAT_BREAKDOWN/G_OPPCAT_BREAKDOWN;./QUOTE_NUMBER1?>
    Total For Quote 1428
    Billing Class
    BILLABLE: Billable total in dollars
    INTERNAL: Internal total in dollars
    <?end for-each-group?>
    <!-- Generated by Oracle Reports version 6.0.8.26.0
    -->
    - <FORX_AS_OPPOR>
    - <LIST_G_OPPORTUNITY_SHEET>
    - <G_OPPORTUNITY_ID>
    <COMMENTS1>Opportunity Includes Quote Number(s): 1428-2 1443-1 1444-1 Order Number(s): 159038-10 159044-3</COMMENTS1>
    <CUSTOMER_ID>1183</CUSTOMER_ID>
    <UPDATED_BY>CTYNER</UPDATED_BY>
    <DEPOSITS>5704.68</DEPOSITS>
    <OPPORTUNITY_ID>1000216</OPPORTUNITY_ID>
    <OPPORTUNITY_NAME>1000216:UAT DEMO</OPPORTUNITY_NAME>
    <CUSTOMER_NUMBER>103736</CUSTOMER_NUMBER>
    <ENTITY>FSG</ENTITY>
    <SOLD_TO>ALLSTATE INSURANCE COMPANY</SOLD_TO>
    <CONTRACT_ID>S620_N</CONTRACT_ID>
    <SALESREP_ID>2239</SALESREP_ID>
    <SALES_REP_NAME>Conley, Michael</SALES_REP_NAME>
    <ORDER_ACCEPTANCE>Skokie</ORDER_ACCEPTANCE>
    <BOOKED_COUNT>2</BOOKED_COUNT>
    <TERRITORY_NAME>Enterprise - Enterprise</TERRITORY_NAME>
    - <LIST_G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1> First Occurence of 1428
    <INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>5</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>151500.4</SUM_ITM_PRICE>
    <SUM_ITM_COST>1688</SUM_ITM_COST>
    <SUM_ITM_GPM>149812.4</SUM_ITM_GPM>
    <SUM_ITM_MARKUP>88.7514218009478672985781990521327014218</SUM_ITM_MARKUP>
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1> Second Occurence of 1428
    <INT_ITM_TYPES>INVOICE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>4</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>29.72</SUM_ITM_PRICE>
    <SUM_ITM_COST>0</SUM_ITM_COST>
    <SUM_ITM_GPM>29.72</SUM_ITM_GPM>
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1443</QUOTE_NUMBER1>
    <INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>5</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>2084</SUM_ITM_PRICE>
    <SUM_ITM_COST>1748</SUM_ITM_COST>
    <SUM_ITM_GPM>336</SUM_ITM_GPM>
    <SUM_ITM_MARKUP>.192219679633867276887871853546910755149</SUM_ITM_MARKUP>
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
    <INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>4</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>1500.4</SUM_ITM_PRICE>
    <SUM_ITM_COST>1364</SUM_ITM_COST>
    <SUM_ITM_GPM>136.4</SUM_ITM_GPM>
    <SUM_ITM_MARKUP>.1</SUM_ITM_MARKUP>
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
    <INT_ITM_TYPES>INVOICE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>4</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>66.28</SUM_ITM_PRICE>
    <SUM_ITM_COST>0</SUM_ITM_COST>
    <SUM_ITM_GPM>66.28</SUM_ITM_GPM>
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1>
    <INT_ITM_TYPES>EXPENSE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>1</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>0</SUM_ITM_PRICE>
    <SUM_ITM_COST>22.98</SUM_ITM_COST>
    <SUM_ITM_GPM />
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
    <INT_ITM_TYPES>EXPENSE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>1</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>0</SUM_ITM_PRICE>
    <SUM_ITM_COST>22.98</SUM_ITM_COST>
    <SUM_ITM_GPM />
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1>
    <INT_ITM_TYPES>REVENUE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>1</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>20</SUM_ITM_PRICE>
    <SUM_ITM_COST>101</SUM_ITM_COST>
    <SUM_ITM_GPM />
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    </LIST_G_OPPCAT_BREAKDOWN>
    - <LIST_G_FORX_OPS_QTE_ORDER_LINES>
    - <G_FORX_OPS_QTE_ORDER_LINES>
    <ORDER_ACCEPTANCE1>SKOKIE</ORDER_ACCEPTANCE1>
    <COMMITMENT />
    <COMMITMENT_APPLIED_AMOUNT />
    <PARTIAL_COMMENTS />
    <COMMENT_FOR_INVOICE />
    <QUOTE_DATE>07/13/2009 02:00:10PM</QUOTE_DATE>
    <LINE_NUMBER>1</LINE_NUMBER>
    <EXTD_SELLING_PRICE>880</EXTD_SELLING_PRICE>
    <ORDER_PAY_TERM>Automated Term Due in 44 Days</ORDER_PAY_TERM>
    <QUOTE_PAY_TERM />
    <ITEM_CATEGORIES>HARDWARE.MACHINE.SERVER.</ITEM_CATEGORIES>
    <QUOTE_STATUS>Order Submitted</QUOTE_STATUS>
    <QUOTE_USER>Tyner, Chris</QUOTE_USER>
    <OPPORTUNITY_ID1>1000216</OPPORTUNITY_ID1>
    <DATASOURCE>1</DATASOURCE>
    <HEADER_ID>398631</HEADER_ID>
    <LINE_ID>900897</LINE_ID>
    <LINE_TYPE_ID>1181</LINE_TYPE_ID>
    <ORDER_NUMBER>159038</ORDER_NUMBER>
    <ORDER_VERSION>10</ORDER_VERSION>
    <TEAM>IBM</TEAM>
    <OPPORTUNITY_NAME1 />
    <QUOTE_NAME>1000216:IBM:UAT DEMO</QUOTE_NAME>
    <QUOTE_NUMBER>1428</QUOTE_NUMBER>
    <QUOTE_VERSION>2</QUOTE_VERSION>
    <NEW_PARTIAL>0</NEW_PARTIAL>
    <COMMIT_DEL_DATE>13-JUL-09</COMMIT_DEL_DATE>
    <ORDERED_QUANTITY>1</ORDERED_QUANTITY>
    <PO_NUMBER>098534089</PO_NUMBER>
    <GROUP_NUM>1</GROUP_NUM>
    <INVENTORY_ITEM_ID>845256</INVENTORY_ITEM_ID>
    <ORDERED_ITEM>7978BDU</ORDERED_ITEM>
    <PRODUCT>7978BDU</PRODUCT>
    <ITEM_DESCRIPTION>X3550, XEON QUAD CORE E5430 80W 2.66GHZ/1333MHZ/12MB L2, 2X1GB CHK, O/BAY 2.5IN HS SAS, SR 8K-I, PCI-E RISER CARD, ULTRABAY ENHANCED DVD-ROM/CD-RW COMBO DRIVE, 670W P/S, RACK</ITEM_DESCRIPTION>
    <MANUFACTURER_DESCRIPTION>IBM</MANUFACTURER_DESCRIPTION>
    <TYPE />
    <EQUIPMENT_CODE>B</EQUIPMENT_CODE>
    <TAX_CLASS_CODE>HW</TAX_CLASS_CODE>
    <CLS />
    <SUBINVENTORY />
    <UNIT_LIST_PRICE>0</UNIT_LIST_PRICE>
    <ITEM_UNIT_COST>800</ITEM_UNIT_COST>
    <VENDOR_INVENTORY_RETURN />
    <SHIPPING_TYPE />
    <SHIPPING_ORG>DSP</SHIPPING_ORG>
    <SOLD_TO1>ALLSTATE INSURANCE COMPANY</SOLD_TO1>
    <SOLD_TO_ACCOUNT_NUMBER>103736</SOLD_TO_ACCOUNT_NUMBER>
    <INVOICE_TO_LOCATION>10110384</INVOICE_TO_LOCATION>
    <INVOICE_TO>ALLSTATE INSURANCE COMPANY</INVOICE_TO>
    <INVOICE_TO_ACCOUNT_NUMBER>103736</INVOICE_TO_ACCOUNT_NUMBER>
    <INVOICE_TO_ADDRESS1>2775 SANDERS RD</INVOICE_TO_ADDRESS1>
    <INVOICE_TO_ADDRESS2 />
    <INVOICE_TO_ADDRESS3 />
    <INVOICE_TO_ADDRESS4 />
    <INVOICE_TO_EMAIL />
    <INVOICE_TO_PHONE_NUMBER>847-402-0223</INVOICE_TO_PHONE_NUMBER>
    <INVOICE_TO_ADDRESS5>NORTHBROOK, IL, 60062-6110, US</INVOICE_TO_ADDRESS5>
    <INVOICE_TO_CONTACT>CRAIG SOCKEL</INVOICE_TO_CONTACT>
    <L_INVOICE_TO_LOCATION>10110384</L_INVOICE_TO_LOCATION>
    <L_INVOICE_TO_ACCOUNT_NUMBER>103736</L_INVOICE_TO_ACCOUNT_NUMBER>
    <L_INVOICE_TO>ALLSTATE INSURANCE COMPANY</L_INVOICE_TO>
    <L_INVOICE_TO_ADDRESS1>2775 SANDERS RD</L_INVOICE_TO_ADDRESS1>
    <L_INVOICE_TO_ADDRESS2 />
    <L_INVOICE_TO_ADDRESS3 />
    <L_INVOICE_TO_ADDRESS4 />
    <L_INVOICE_TO_EMAIL />
    <L_INVOICE_TO_PHONE_NUMBER>847-402-0223</L_INVOICE_TO_PHONE_NUMBER>
    <L_INVOICE_TO_ADDRESS5>NORTHBROOK, IL, 60062-6110, US</L_INVOICE_TO_ADDRESS5>
    <L_INVOICE_TO_CONTACT>CRAIG SOCKEL</L_INVOICE_TO_CONTACT>
    <SHIP_TO_ACCOUNT_NUMBER>103736</SHIP_TO_ACCOUNT_NUMBER>
    <SHIP_TO>ALLSTATE INSURANCE COMPANY</SHIP_TO>
    <SHIP_TO_LOCATION>10271260</SHIP_TO_LOCATION>
    <SHIP_TO_ADDRESS1>3075 SANDERS RD STE 12C</SHIP_TO_ADDRESS1>
    <SHIP_TO_ADDRESS2 />
    <SHIP_TO_ADDRESS3 />
    <SHIP_TO_ADDRESS4 />
    <SHIP_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</SHIP_TO_ADDRESS>
    <SHIP_EMAIL>[email protected]</SHIP_EMAIL>
    <SHIP_TO_PHONE_NUMBER>847-402-0223</SHIP_TO_PHONE_NUMBER>
    <SHIP_TO_CONTACT>ORLANDO LOPEZ</SHIP_TO_CONTACT>
    <L_SHIP_TO_ACCOUNT_NUMBER>103736</L_SHIP_TO_ACCOUNT_NUMBER>
    <L_SHIP_TO>ALLSTATE INSURANCE COMPANY</L_SHIP_TO>
    <L_SHIP_TO_LOCATION>10271260</L_SHIP_TO_LOCATION>
    <L_SHIP_TO_ADDRESS1>3075 SANDERS RD STE 12C</L_SHIP_TO_ADDRESS1>
    <L_SHIP_TO_ADDRESS2 />
    <L_SHIP_TO_ADDRESS3 />
    <L_SHIP_TO_ADDRESS4 />
    <L_SHIP_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</L_SHIP_TO_ADDRESS>
    <L_SHIP_EMAIL>[email protected]</L_SHIP_EMAIL>
    <L_SHIP_TO_PHONE_NUMBER>847-402-0223</L_SHIP_TO_PHONE_NUMBER>
    <L_SHIP_TO_CONTACT>ORLANDO LOPEZ</L_SHIP_TO_CONTACT>
    <DEL_TO_ACCOUNT_NUMBER>103736</DEL_TO_ACCOUNT_NUMBER>
    <DEL_TO>ALLSTATE INSURANCE COMPANY</DEL_TO>
    <DEL_TO_LOCATION>10110327</DEL_TO_LOCATION>
    <DEL_TO_ADDRESS1>3075 SANDERS RD</DEL_TO_ADDRESS1>
    <DEL_TO_ADDRESS2 />
    <DEL_TO_ADDRESS3 />
    <DEL_TO_ADDRESS4 />
    <DEL_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</DEL_TO_ADDRESS>
    <DEL_TO_EMAIL />
    <DEL_TO_PHONE_NUMBER>847-402-0223</DEL_TO_PHONE_NUMBER>
    <DEL_TO_CONTACT />
    <UNIT_SELLING_PRICE>880</UNIT_SELLING_PRICE>
    <BILL_TO_LAST_UPDATE>21/04/2009 02:25:18PM</BILL_TO_LAST_UPDATE>
    <SHIP_TO_LAST_UPDATE>13/07/2009 01:31:45PM</SHIP_TO_LAST_UPDATE>
    <BILL_TO_UPDATED_BY>SLUMPP</BILL_TO_UPDATED_BY>
    <SHIP_TO_UPDATED_BY>CTYNER</SHIP_TO_UPDATED_BY>
    <ORDER_QUOTE_USER>CTYNER</ORDER_QUOTE_USER>
    <PARTICIPANTS>Conley, Michael Order:159044 100% and Conley, Michael Order:159038 100% and Conley, Michael Quote:1443 50% and Jones, Maureen Quote:1443 50%</PARTICIPANTS>
    <ORDERED_DATE>07/13/2009 02:23:23PM</ORDERED_DATE>
    <BOOKED_DATE>07/13/2009 02:31:15PM</BOOKED_DATE>
    <ORDER_QUOTE_STATUS>BOOKED</ORDER_QUOTE_STATUS>
    <ORDER_USER_STATUS>RE-BOOK REQD</ORDER_USER_STATUS>
    <BUYER>Tyner, Chris</BUYER>
    <SERIAL_NUM>45784687</SERIAL_NUM>
    <INVOICE_HANDLING_FORMAT_VALUE />
    <INVOICE_HANDLING_FORMAT />
    <PRINT_TRADE_NAME_VALUE>No</PRINT_TRADE_NAME_VALUE>
    <ITEM_EXTD_COST>800</ITEM_EXTD_COST>
    <QUOTE_APPROVERS>Tyner, Chris</QUOTE_APPROVERS>
    </G_FORX_OPS_QTE_ORDER_LINES>

  • How to pass a data from child window to parent window

    Hi,
    I have a jsp page with two hidden fields and a button, On clicking the button a popup will come out. There are two combobox in the popup and a search button. After putting a value in the comboboxes,if I click the search button, I need the datas of the combobox to pass to the parent's hidden fields then I need to do a data base search with that values of hidden fields and display the result in the parent page.
    I could I solve this problem, Please help, Its urgent.
    Thanks and Regards
    Rajib Sharma

    I think that you can use the JavaScipt as follow to pass a data from child window to parent window
    <HEAD>
    <script>
    function passData(){
    opener.form1.test1.value=form2.test2.value; //pass the value of test2 to the parent's test1
    window.close();
    </script>
    </HEAD>
    <BODY>
    <form name=form2>
    <input name=test2 type=text>
    <input type=button onclick="passData()" value=CLOSE>
    </form>
    </BODY>

  • How to pass data from one internal session to another internal session

    hi all sap experts ,
    How to pass data from one internal session to another internal session and from oneExternal session to another external session.
    Except : Import and Export parameters and SPA/GPA parameters.
    Tell me the otherWay to pass data ..
    Plz
    Thanks in advance

    hi,
      abap memory management u will understand about this concept.
    the import /export parameter will help u that passing data between two internal sessions by using abap memory.
      for syntax
    Passing Data Between Programs
    There are two ways of passing data to a called program:
    Passing Data Using Internal Memory Areas
    There are two cross-program memory areas to which ABAP programs have access (refer to the diagram in Memory Structures of an ABAP Program) that you can use to pass data between programs.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens (see below).
    ABAP Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. For further information, refer to Data Clusters in ABAP Memory.
    Filling Input Fields on an Initial Screen
    Most programs that you call from other programs have their own initial screen that the user must fill with values. For an executable program, this is normally the selection screen. The SUBMIT statement has a series of additions that you can use to fill the input fields of the called program:
    Filling the Selection Screen of a Called Program
    You cannot fill the input fields of a screen using additions in the calling statement. Instead, you can use SPA/GPA parameters. For further information, refer to Filling an Initial Screen Using SPA/GPA Parameters.
    Message was edited by:
            sunil kumar
    Message was edited by:
            sunil kumar

  • How to pass data from one internal session to another

    Hi SAP Experts,
    How to pass data from one internal session to another and from One external session to another external session. I used import and export parmeter and SPA/GPA parameters. What is the other way to pass data?
    Please tel me urgently
    Thank you
    Basu

    Memory Structures of an ABAP Program
    In the Overview of the R/3 Basis System you have seen that each user can open up to six R/3 windows in a single SAPgui session. Each of these windows corresponds to a session on the application server with its own area of shared memory.
    The first application program that you start in a session opens an internal session within the main session. The internal session has a memory area that contains the ABAP program and its associated data. When the program calls external routines (methods, subroutines or function modules) their main program and working data are also loaded into the memory area of the internal session.
    Only one internal session is ever active. If the active application program calls a further application program, the system opens another internal session. Here, there are two possible cases: If the second program does not return control to the calling program when it has finished running, the called program replaces the calling program in the internal session. The contents of the memory of the calling program are deleted. If the second program does return control to the calling program when it has finished running, the session of the called program is not deleted. Instead, it becomes inactive, and its memory contents are placed on a stack.
    The memory area of each session contains an area called ABAP memory. ABAP memory is available to all internal sessions. ABAP programs can use the EXPORT and IMPORT statements to access it. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
    All ABAP programs can also access the SAP memory. This is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters are often used to preassign values to input fields. You can set them individually for users, or globally according to the flow of an application program. SAP memory is the only connection between the different sessions within a SAPgui.
    The following diagram shows how an application program accesses the different areas within shared memory:
    In the diagram, an ABAP program is active in the second internal session of the first main session. It can access the memory of its own internal session, ABAP memory and SAP memory. The program in the first internal session has called the program which is currently active, and its own data is currently inactive on the stack. If the program currently active calls another program but will itself carry on once that program has finished running, the new program will be activated in a third internal session.
    Data Clusters in ABAP Memory
    You can store data clusters in ABAP memory. ABAP memory is a memory area within the internal session (roll area) of an ABAP program and any other program called from it using CALL TRANSACTION or SUBMIT.
    ABAP memory is independent of the ABAP program or program module from which it was generated. In other words, an object saved in ABAP memory can be read from any other ABAP program in the same call chain. ABAP memory is not the same as the cross-transaction global SAP memory. For further information, refer to Passing Data Between Programs.
    This allows you to pass data from one module to another over several levels of the program hierarchy. For example, you can pass data
    From an executable program (report) to another executable program called using SUBMIT.
    From a transaction to an executable program (report).
    Between dialog modules.
    From a program to a function module.
    and so on.
    The contents of the memory are released when you leave the transaction.
    To save data objects in ABAP memory, use the statement EXPORT TO MEMORY.
    Saving Data Objects in Memory
    To read data objects from memory, use the statement IMPORT FROM MEMORY.
    Reading Data Objects from Memory
    To delete data clusters from memory, use the statement FREE MEMORY.
    Deleting Data Clusters from Memory
    please read this which provide more idea about memory
    Message was edited by:
            sunil kumar

  • How to pass the data from a input table to RFC data service?

    Hi,
    I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
    I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
    Thanks for your answer.

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • Not able pass the data from component to other component.

    Hello All
    I am not able pass the data from component to other component.
    I have done like this.
    1 Main Component (Parent component ) having below  two child components.Embeded as used components.
    2)     Search Component  and Details Component
    3)     In the Search Component having buttons,  Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
    4)     When I am clicking above button u201CXu201D raising the event to call the parent   business logic method, there I am getting  Structure with values and binded this structure to the node and Mapped this node to the Details component  interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
    5)     In the Details component node data is not coming mean empty.
    Thanks in Advance.
    Br-
    CW
    Edited by: CarlinWilliams on Jul 4, 2011 9:21 AM

    Hi,
    When you use input Ext. check that the parent component should not be used as used component in child component.
    Only in the parent component the child components should be used as used components and the usage has to be created for the
    Child Components and the binding of the Node should be done from comp. controller of parent component to child node
    by which you will be able to see double arrow against the node.This should work
    Thanks,
    Shailaja Ainala.

  • Pass the data from a form in workflow to z table

    Hi all,
    How can I pass the data from a form in workflow to z table?

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • Regarding how to pass the data from web dynpro to workflow

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Check this [thread|SAP_WAPI_START_WORKFLOW;

  • How to pass realtime data from a sub vi to a calling vi?

    I'm trying to pass some data from a called (sub) vi to the calling vi,
    while the sub vi is running. I've tried passing to a global, but the
    calling vi doesn't show the results until the sub vi has completed
    execution. I understand why this is happening, I'd like a method, if
    one exists, to work around it.
    Thanks!
    Bill

    You've done several things incorrectly. First, the subVI has a while loop that terminates with a front panel Boolean. Since you don't make the front panel of the subVI visible, the subVI just runs with no way to stop it. When you call a subVI, execution passes to the subVI and the calling VI is paused. Since the subVI has no way to stop and return to the main, the while loop in the main is not running and reading the global variable. If you were to drag the subVI outside the while loop, then you would see the global update. You still would need to make the subVI visible in order to be able to press it's stop button. Of course, with the subVI visible, it's front panel is showing the value getting updated and there's no reason to have a global in the main anyway.
    If you want to have a subVI remain hidden, you can't use a while loop with a front panel control that's needed to stop it. Well, you can but that gets kind of complicated. If you do have a subVI and want to update an indictor with a global, the reading of the globabl should be done in a separate while loop. To keep the update in the same loop, don't use a global. You can create a reference to a front panel indicator and pass that to the subVI. The subVI writes to the value property. Here's a real simple example of that in 7.0.
    Attachments:
    Reference.llb ‏23 KB

  • How to pass the data from web dynpro to workflow.

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Hi
    you can use function module
    data   ls_input_container  TYPE swr_cont.
    data   lt_input_container  TYPE TABLE OF  swr_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
        EXPORTING
          task            = ptask
        IMPORTING
          return_code     = lv_return_code
          new_status      = lv_new_status
        TABLES
          input_container = pinput_container
          message_lines   = lt_message_lines
          message_struct  = lt_message_struct.
    where you pass the data in imnternal table "pinput_container" as
      ls_input_container-element = 'KUNNR'.
      ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'CLUSER'.
      ls_input_container-value = lv_cluser.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'BUKRS'.
      ls_input_container-value = lv_bukrs. " youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VKORG'.
      ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VTWEG'.
      ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'SPART'.
      ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
    *Also Forgot to mention where ptask is your workflow ID *
    Regards,
    Arvind
    Edited by: Arvind Patel on May 14, 2010 7:38 AM

  • HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?

    HI,
    HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
    thanks,
    samba.

    By selection screen, what do you mean?   There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component?  Are you wanting to call a standard transaction via ITS - SAPGUI for HTML?  Please provide more details to your question.

  • How to pass the data from wa_itab to  fieldcatlog?

    how to pass the data from wa_itab to  fieldcatlog?

    Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related.  There are several other more general ABAP related forums.

  • Passing data from one bsp application to another

    Hi,
    I have few queries that most of you would have done in ur projects:
    1. I want to pass data from one bsp application to another:
    eg based upon selected row of table view which populates material no and descriprion to another application which open the entire material master data.
    Now, i have both the pages in diff bsp applications in place but unable to pass the selected material code to the second bsp application.
    Had it been two different pages of same application I was able to achieve it with set parameter()
    2. To stop the application from reprcessing the data:
    eg: Suppose I have a bsp page where user fill details of a customer and on submitinng the details a customer is created in background and the entire page is disabled by my code. Even now if the user press refresh (F5) button then another customer gets created in the background. So basically i want to avoid the reprocess of the onSubmit event
    Few lines of sample code would be very helpful.
    Best Regards,
    Saurabh Tripathi

    Hi,
    When I am writing the following code in appl1/page1:
            export abc from transactionID
            to data buffer lv_page_data.
            CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE
              EXPORTING
                NAME                  = 'TRANSACTIONID'
                APPLICATION_NAME      = RUNTIME->application_name
                APPLICATION_NAMESPACE = RUNTIME->application_namespace
                USERNAME              = ls_name
                SESSION_ID            = runtime->session_id
                DATA_VALUE            = lv_page_data
                DATA_NAME             = 'lv_page_data'
    and following code in appl2/page2:
      CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE
        EXPORTING
          NAME                  = 'TRANSACTIONID'
          APPLICATION_NAME      = RUNTIME->application_name
          APPLICATION_NAMESPACE = RUNTIME->application_namespace
          USERNAME              = ls_name
          SESSION_ID            = runtime->session_id
          DATA_NAME             = 'lv_page_data'
        CHANGING
          DATA_VALUE            = lv_page_data
       IF lv_page_data IS NOT INITIAL.
         IMPORT abc to transactionid
           FROM data buffer lv_page_data.
       ENDIF.
    still the code doesn't work. Please explain and guide
    Best Regards,
    Saurabh Tripathi

  • Copy Z field data from SO to Purchase Requestion

    Hi
    I am facing one problem
    I have created one Z-field in Sales Order and have created the same field in Purchase Requestion also.
    Now how i want to transfer Z-field data from SO to PR.
    What is the procedure and configuration i have to do OR what is the process in copy control for copying Z-field data from SO to Purchase Requestion.
    Pls confirm.
    Regards
    Vicky

    Hi
    Thanks for the reply
    I know there is no standrad procedure but how i can tranfer Z field data from Sales Order to Purchase Requestion.
    Pl help me
    Regards
    Vicky

Maybe you are looking for

  • I am trying to install Kodak printer ESP C310 but it says a firewall is blocking the installation. Can you help?

    I am trying to install Kodak printer ESP C310 but it says a firewall is blocking the installation. Can you help?I am using windows XP. I have searched port 5353 and this is enabling Bonjour.

  • Cost of subcontracting

    dear all:   I have a problem about subcontracting need help. before, these is no any material need subcontracting in our company,but now our company will produce new product whick its a component material need  subcontracting. We will:     1.we will

  • BPEL and httpbindings in SOA Suite

    Okay, I installed the soasuite, tried the SOAdemo, which works fine. Now I'm trying to get my 'old' BPELcode from BPEL 10.1.2 (or whatever, the earlier version) to get to work. Here I have a variation of the http-get-binding sample, where BPEL gets s

  • 6288 Memory Card file size problem...

    I have a Nokia 6288 which I recently purchased as part of a contract with `Three'. It's a great phone and so I purchased and installed a 1Gb mini-sd memory card to go with it. I wanted the memory card for storing and listening to downloaded .mp3 podc

  • UCCX Report - Zero Call Duration

    Hi, We are using UCCX 7.0  In Histrocial detailed CCDR report we able to get the report for outbound call also. But issue for the Outbound is calls which is not answred by the remote party also having some seconds duration in the report Because of th