How to identify the current lead selection is child or parent in rec node

Hi
I am using a recursive node to populate a table with TreeByNestingTableColumn as master column. Now my problem is how do I identify if the current selected row in the table is a child or parent? When I get the lead selection value, I find that its the same for the parent and the child. I am setting the isLeaf and hasChildren boolean properties appropriately as false and true for parent and true and false for child. But since the lead selection is returning the same the below rsTableElement always gives me the parent, I always get those parameter values as that of parent. I am writing this inside the onleadSelect event of the table.
IRsTableElement rsTableElement = (IRsTableElement) wdContext.nodeRsTable().getElementAt(wdContext.nodeRsTable().getLeadSelection());
In this scenario how do I know if the current selection is made on a child?
Appreciate for all help and any code snippets.
Thanks,
KN.

Hi KN,
I guess you want to check if the node that you selected is parent or child.. This can be achieved by using getTreeSelection() method of IWDNode.
If you write following code in your lead selection action, you can determine the if it is a parent or child node.
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeRsTable().getTreeSelection() +"");
the output will be something like
<ViewName>.RsTable.0.ChildRsTable.1.ChildRsTable.0.. depending upon which node you have selected.
That way you can find out if it is a parent or child node.
Abhinav

Similar Messages

  • How to display the current value selected in DDLB of another screen

    hi Experts
    I need some info regarding the dropdownlist in BSP.
    I have two screens . One screen contains the table view which contains a set of records.Each record has two columns.
    Second screen contains 2 drop down list.
    When i select one record and then press the submit button in the first screen .Then i want that the selected value of the selected record will display in the DDLB of the second screen. And then i can again select the value from the drop down list.
    For example:
    1st screen:
    record 1.
    col 1     col 2
    record 2
    col 1     col 2
    2nd screen
    ddlb1...........
    ddlb2...........
    So when i select the record1, then the current value of col1 and col2 should visible on the ddlbs of second screen first time. Then i choose other value from the ddlbs.....
    My Question is how to do the following
    "when i select the record1, then the current value of col1 and col2 should visible on the ddlbs of second screen".
    please provide some suggestions...
    Thanks.

    Hi,
    You can use form with post method
    like
    <htmlb:form method = "post"
                      action = "page2.htm"
                      target = "coding" >
    <htmlb:dropdownListBox id             = "labelAlignment"
                                               selection      = "<%= me->labelAlignment %>"
                                               onClientSelect = "document.forms[0].submit();" >
                          <htmlb:listBoxItem key   = "LEFT"
                                             value = "LEFT" />
                          <htmlb:listBoxItem key   = "RIGHT"
                                             value = "RIGHT" />
                        </htmlb:dropdownListBox>
    So once you select col1 and col2 in your case its value is in page attribute say hold, this attributes needs to be defined in page2.htm also with auto checked. You can get the val selected in page1.htm
    If helpful rewards point.
    Regards,
    Albert

  • How to identify the current display configuration from registry?

    I wanted to read the current configuration of display from registry. Suppose, a dual output system is configured with "Extended these displays" settings then i want to know where in registry this information will be stored?
    I tried to get the info from 
    1. HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\VIDEO which gives only the display devices being registered in the system.
    2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video which has multiple guid tags and then multiple subkeys.
    3. HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO which has multiple subkeys.
    Unable to get the right registry for this case. when multiple displays connected, then i want to know whether it is configured as extended/duplicate. 
    Please guide me if it is possible.

    There is no direct way for getting the monitor count. we need to code for each graphic card separately. 
    i found a way like below, for those of you interested in getting the exact monitor count:
    int ComputerInfo::GetRegistryValue( CSString regPath, CSString valueName, int cntIndex )
    int monCount = 0;
    BYTE pBuffer[1024];
    DWORD nMaxLength;
    CSString szSubKey = regPath;
    szSubKey = szSubKey.substr(18);
    CSString szValueName = valueName;
    DWORD rc;
    DWORD dwType;
    HKEY hOpenedKey;
    LOG_INFO ( "Registry key " << szSubKey << "\\" << szValueName );
    if( ERROR_SUCCESS == RegOpenKeyEx (
    HKEY_LOCAL_MACHINE, // handle of open key
    szSubKey, // address of name of subkey to open
    0, // reserved
    KEY_READ, // security access mask
    &hOpenedKey // address of handle of open key
    rc = RegQueryValueEx(
    hOpenedKey,
    (const char*)szValueName,
    0,
    &dwType,
    (LPBYTE)pBuffer,
    &nMaxLength );
    if( rc != ERROR_SUCCESS )
    LOG_INFO ( "Registry key " << valueName << " not found." );
    monCount = 0;
    else
    LOG_INFO ( "Monitor Count: " << CSString(pBuffer[cntIndex]) );
    monCount = pBuffer[cntIndex];
    RegCloseKey( hOpenedKey );
    else
    monCount = 0;
    return monCount;
    int ComputerInfo::GetMonitorCount()
    int fResult;
    fResult = GetSystemMetrics(SM_CMONITORS);
    LOG_INFO( "Video Output Count from System: " << fResult );
    if ( fResult == 1 )
    // I need to get the address of a few multi-monitor functions
    HMODULE user32 = GetModuleHandle ("User32.DLL");
    typedef BOOL WINAPI tEnumDisplayDevices (void*, DWORD, DISPLAY_DEVICE*, DWORD);
    tEnumDisplayDevices* fEnumDisplayDevices = (tEnumDisplayDevices*) GetProcAddress (user32, "EnumDisplayDevicesA");
    if (fEnumDisplayDevices == NULL) return false;
    // count the number of monitors attached to the system
    DISPLAY_DEVICE dd; dd.cb = sizeof(dd);
    for (DWORD dev=0; fEnumDisplayDevices (NULL, dev, &dd, 0); ++dev)
    LOG_INFO ("Device: " << dd.cb << ", " << dd.DeviceID << ", " << dd.DeviceKey << ", " << dd.DeviceName << ", " << dd.DeviceString << ", " << dd.StateFlags );
    CSString devName = dd.DeviceName;
    DISPLAY_DEVICE dd1; dd1.cb = sizeof(dd1);
    // after second call DispDev.DeviceString contains monitor's name
    EnumDisplayDevices(devName, 0, &dd1, 0);
    LOG_INFO ("Device: " << dd1.cb << ", " << dd1.DeviceID << ", " << dd1.DeviceKey << ", " << dd1.DeviceName << ", " << dd1.DeviceString << ", " << dd1.StateFlags );
    if (dd.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER)
    LOG_INFO ("Device: " << dd.DeviceName << " is a mirroring driver device. " );
    continue;
    if (dd.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP)
    LOG_INFO ("Device: " << dd.DeviceName << " is attached to the desktop. " );
    if ( StringUtils::StartsWith( dd.DeviceString, "Matrox", false ) )
    return GetRegistryValue(dd.DeviceKey, "ContextItem.Config", 40);
    else if ( StringUtils::StartsWith( dd.DeviceString, "NVIDIA", false ) )
    if ( !StringUtils::StartsWith( dd.DeviceString, "NVIDIA ION", false ) )
    return GetRegistryValue(dd.DeviceKey, "NV_TargetData", 0);
    else
    return GetSystemMetrics(SM_CMONITORS);
    else if ( StringUtils::StartsWith( dd.DeviceString, "Intel", false ) )
    return GetRegistryValue(dd.DeviceKey, "CurrentState", 0);
    else
    return GetSystemMetrics(SM_CMONITORS);
    else
    LOG_INFO ("Device: " << dd.DeviceName << " is not attached. " );
    LOG_INFO ( "No Devices found." );
    return 0;
    else
    LOG_INFO( "Considered Video Output Count from System. " << fResult );
    return fResult;

  • How to Identify the current step in execution

    Hi,
    My merge query takes a long time to run. I monitored the session and it was doing a full table scan and it registered as a long-operation. Now thats finished and it goes off to do whatever else it needs to do.
    How do I know whats its executing at any given point in time? I want to know what it scans / writes next and what object its scanning. In other words, I want to know which step of the execution plan is it currently executing.
    Is there a way of identifying this? Any V$ views which provide this information?
    Thanks in advance,
    K

    Will tracing the session tell me where it is
    currently?Tracing the session generates a file on disk with all the various waits in it. Generally, you would analyze that trace file at the end of the process to see where the time was spent. In theory, I suppose that it may be possible to watch that trace file and deduce what step the query was on. It's far from obvious to me, though, that this would be particularly practical-- the trace file grows pretty quickly and isn't particularly trivial to read, particularly in real time.
    Justin

  • How to identify the current displaying card in CardLayout

    hi all,
    i have a CardLayout() containing some "cards" that are JPanels...i know i could "flip through" the "cards" by using those previous(), next(), etc...but how do i get the "name" of the card the is currently showing...
    i guess i need a function that is the reverse of show(Container parent, String name)...this show() gets the parent and the "name" of the card as parameters and show the card out...what i want to do is...to get the "name" of the card that is currently shown...
    any ideas?
    thank you very much!

    This is just a shot in the dark, but you could write a method that goes through the JPanels that are in the CardLayout calling the JPanel.isShowing() method. This may tell you whether or not the JPanel is visible. You could then link it back to the name with a corresponding string array.
    Just a thought.
    Good luck!
    Cardwell

  • How to get the "current date" in the BEx?

    Hi all,
    I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
    Thanks

    1. Create a  New Formula in Key Figures structure
    2. Give tech name and description and Select "New variable" option
    3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
    4. in next screene  select the date characteristic that represents the first date to use in the calculation (From Date)
    5. In the next  screen select Key in the Replace Variable with field. Leave all the other options as they are
    6. In the next Currencies and Units screen select Date as the Dimension ID.
    6. Save variable
    repeate the Above steps to create another variable (To Date)
    and now you can use these two new replacement path variables in your new formula.
    Dev

  • How to get the current tree element (node/childnode/childnode/...) ?

    Hello!
    I'm trying to create a kind of a navigation tree for my application.
    It should represent some elements of an XML structure and some other nodes for other options.
    The binding with the context is not a problem, I can create the tree up to all the levels I want to.
    The problem now is, that I don't know, how to get the "current tree element", when there is any action.
    For example:
    public void onActionSelect(...) {
    String test = wdContext.currentTreeNodeElement().getText();
    wdThis.wdGetContext().currentContextElement().setSelectedElement(test);
    With this method I can get the text of the "first level nodes". If I want to get the "second level node", I can do
    String test = wdContext.currentTreeNodeElement().currentChildElement.getText();
    ..and for the next levels so on.
    Isn't there any general method to get the information of the selected element without knowing before, whether it is a nodeElement or a nodeElement.currentChildElement or a nodeElement.currentChildElement.currentChildElement, ...?
    Greetings,
    Ramó

    Hi,
    if you following that pdf ,
    i think your not implemented the below code in DomodifyView method
    if (firstTime) {
          IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TheNode");
          /* The following line is necessary to create parameter mapping from parameter "path" to parameter "selectedElement".
    Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
    that raised the onAction event. Parameter "selectedElement" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
    that handles the onAction. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
    be accessed within the event handler
          treeNode.mappingOfOnAction().addSourceMapping("path", "selectedElement");
          /* The following line is necessary to create parameter mapping from parameter "path" to parameter "element".
    Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
    that raised the onLoadChildren event. Parameter "element" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
    that handles the onLoadChildren. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
    be accessed within the event handler
          treeNode.mappingOfOnLoadChildren().addSourceMapping("path", "element");
    please cross check once.
    Thanks,
    Ramesh

  • How to get the current slide Index or Id?

    I can get the selected slide of presentation use blow method.
    Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange, function (asyncResult) {
    if (asyncResult.status == Office.AsyncResultStatus.Failed) {
    write('Action failed. Error: ' + asyncResult.error.message);
    else {
    write('Selected slides: ' + JSON.stringify(asyncResult.value.slides));
    But, How can I get the executor slide?

    ​Hi,
    >> How to get the current slide Index or Id?
    In my option, when you select a slide, it change to current slide. So, you could use the getSelectedDataAsync method to get the current slide, and then get the index or id by using the Slice object. You could refer the link below for Slice Object.
    # Slice.index property (JavaScript API for Office)https://msdn.microsoft.com/EN-US/library/office/jj715285.aspx?f=255&MSPPError=-2147217396
    Some key code as below:
    <script>
    function getText() {
    Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,
    { valueFormat: "unformatted", filterType: "all" },
    function (asyncResult) {
    var error = asyncResult.error;
    if (asyncResult.status === Office.AsyncResultStatus.Failed) {
    write(error.name + ": " + error.message);
    else {
    // Get selected data.
    var dataValue = asyncResult.value;
    write('Selected data is ' + dataValue.slides[0].index);
    // Function that writes to a div with id='message' on the page.
    function write(message) {
    document.getElementById('message').innerText += message;
    </script>
    >> How can I get the executor slide?
    What do you mean by this? Is this a new issue which is different from the above issue? If so, I will recommend you post a new thread for this issue and share us more information about this.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • KDMAT need to be included in the current VA01 selection screen or list when

    Hello SAP SD Consultants,
    Please help me with below requirement or what user exit should we use to implement below requirement.  I have discussed with with ABAP and gave some User exits that has related description, however, ABAP confirmed that none of below UE suits the requirement.
    1. AD010002 - Delimit selection and/or filter data that is determined
    2. CLCLRS01 - Additional Fields on the Result Screen
    3. CLCLRS02 - Fill the Additional Fields on the Result Screen
    4. V60P0001 - Data provision for additional fields for display in lists
    5. WVLB0001 - Display additional data in subscreen for simulation list
    Thus, kindly help us on how we can proceed with this.
    000----
    Requirement:
    The field  u201CCustomer-material numberu201D or field name KDMAT need to be included in the current VA01 selection screen or list when creating sales orders with reference from a contract.
    Currently, customer have its own description or material code to classify or define the product they want to order  which are sometimes not exactly the same as the material number maintained in the system or the product / material code used by the Company for sales. These material descriptions were manually entered in the system thru the use of customer-material number field or KDMAT. When sales orders or contracts are created for certain or specific customers, the user or the person who creates that contract / order manually inputs the description in the customer-material number field.
    The said entry should also be seen in the Selection List for Reference Document. The transaction to be modified is VA01 under program screen SAPMV45A specific to screen number 4413.
    Test Data used:
    Reference Transaction: VA41 (create contract), VA43 (display contract)
    Order Type: ZCQ (example)
    Contract No. 40000040
    Transaction: VA01
    Order type: ZOR (example)
    Contract No. 40000040
    a. Go to tcode VA01, input the order type ZOR, click the button CREATE with REFERENCE.
    b. Input the reference contract document, since our reference doc is a contract, go to tab CONTRACT and input the contract no..
    Expected output:
    Upon inputing the contract no. in the contract tab, click u201CSelection Listu201D.
    The customer-material number or KDMAT should be included as one of the field and should be displayed in the Selection List for Reference Document window.
    Edited by: ria sumagaysay on Mar 26, 2010 11:30 AM

    Hello,
    Thank you for the responce.
    The reason why they want to reflect KDMAT in the selection list is that, during order creation, not all materials or KDMAT will be ordered by that customer, only specific materials. However, during order processing, the customer only gives the details of the KDMAT. Thus, if there are around hundreds of items inside that contract, the sales personnel who creates the order needs to exclude those material not included in the customer order list manually via checking table VBAP and compare the material code from the selection list.
    This is very tedious on their part and commonly caused human error, however, when the KDMAT field is available, although the process has manual intervention, it will serve them well and lessen the burden.

  • How to identify the trailing spaces in a column

    Hi,
    How to identify the trailing spaces in a column.
    for ex: empno char(5) and i enter 333 then there will be 2 spaces remaining. How to identify that two spaces

    One method...
    ME_XE?create table test1 (some_char char(5));
    Table created.
    Elapsed: 00:00:00.11
    ME_XE?
    ME_XE?insert into test1 values ('HI');
    1 row created.
    Elapsed: 00:00:00.07
    ME_XE?insert into test1 values ('HI HO');
    1 row created.
    Elapsed: 00:00:00.07
    ME_XE?select * from test1 where trim(some_char) <> some_char;
    SOME_CHAR
    HI
    1 row selected.
    Elapsed: 00:00:00.14
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Using PHP to identify the current page - by David Powers

    Hi There,
    I'm trying to write a script so I can identify the sub-pages under "Gallery" in my website
    Under Gallery I have more than hundred pages describing the photos but I want to identify them as the "Gallery" page.
    How do I achieve that?
    It would be tedious to write the "PHP if" statement for each photo link.
    I trust there is a simpler solution.
    In PHP solutions by David Powers, Ch.4 "Using PHP to identify the current page"
    The script is:
    <?php $currentPage = basename($_SERVER['SCRIPT_NAME']); ?>
    <ul id="nav">
      <li><a href="index.php" <?php if ($currentPage == 'index02.php') {echo 'id="here"';} ?>>Home</a></li>
      <li><a href="journal.php" <?php if ($currentPage == 'journal.php') {echo 'id="here"';} ?>>Journal</a></li>
      <li><a href="gallery.php" <?php if ($currentPage == 'gallery.php') {echo 'id="here"';} ?>>Gallery</a></li>
      <li><a href="contact.php" <?php if ($currentPage == 'contact.php') {echo 'id="here"';} ?>>Contact</a></li>
    </ul>
    Let's say that the gallery pages contains hundreds of links gallery like gallery/photos1.php, gallery/photos2.php, gallery/photos3.php, gallery/photos4.php, gallery/photos5.php, gallery/photos6.php, gallery/photos7.php etc...
    How would I identify the sub-pages so when we are there Gallery is highlighted?
    Thank you!
    Best,

    Hello Siddhardha,
    To get the details of a process you need to use Locator class from BPEL api. You can locate your process by listInstances method which accepts WhereCondition parameter used to build a query on process instances. Once you've found the process you were looking for you can use getAuditTrail method to retrieve audit trail of a given instance. You can also use setStatus() method from a BPELX java exec tag within your process and later retrieve it from instance handle by getStatus method.
    A sample snippet to retrieve instance handles to all child processes of a given process:
    StringBuffer sb = new StringBuffer();
    Locator locator = new Locator(domain,domainpassword);
    WhereCondition wc = new WhereCondition();
    String query = sb.append(SQLDefs.AL_ci_root_id).append(" = ? ").toString();
    wc.append(query);
    wc.setLong(1,parentInstance);
    IInstanceHandle[] ih = locator.listInstances(wc);
    You can read more about querying processes on http://blogs.oracle.com/matt/2006/06/27?print-friendly=true
    Radoslaw

  • How to identify the right extractor

    hi all,
    i have a custom extractor(ABAP report) to pull the Std cost info into BW from R/3. I would like to remove this custom extractor and go for a generic one. Can anyone provide me the steps on how to identify the appropriate generic extractor.
    i know the underlying tables names....eg KEKO, KEPH etc

    Hi Vinod,
    There will no appropriate generic extractor as such. Generic Extration itself means creating a custom extractor. All you need to do is
    1.Goto RSO2, select the type of datasource(i.e transaction or Masterdata)
      and click on create
    2. Specify the table name, ( if you are pulling data from two tables then you have to create a view at Tcode se11, then you need specify that view here)
    3. click on generate
    This will generate the datasource
    You can refer the following doc for further assistance,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Thanks
    Vj

  • How to identify the locks in oracle db objects? i dont have access to check

    How to identify the locks in oracle db objects? i dont have access to check the v$lock or v$ objects. i dont have dba access. what are the symptoms for table, row or objects lock? how v guess it would be lock?
    Thanks in advance friends..

    I believe you will have to call your DBA on the phone in that case.
    You can query something with a select ... for update nowait.
    If it raises an exception you can handle it within a when section.
    -- Running in one session
    SQL> create table t1 as select 1 col1 from dual;
    Table created
    SQL> select * from t1 for update nowait;
          COL1
             1
    SQL>
    -- now running in a different session
    SQL> select * from t1 for update nowait;
    select * from t1 for update nowait
    ORA-00054: resource busy and acquire with NOWAIT specified
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2    CURSOR cur1 IS
      3      SELECT col1 FROM t1 FOR UPDATE NOWAIT;
      4    v_col1 NUMBER;
      5    locking_error EXCEPTION;
      6    PRAGMA EXCEPTION_INIT(locking_error, -00054);
      7  BEGIN
      8    OPEN cur1;
      9  EXCEPTION
    10    WHEN locking_error THEN
    11      dbms_output.put_line('Busted locking my rows!');
    12  END;
    13  /
    Busted locking my rows!
    PL/SQL procedure successfully completed
    SQL> Now, surely you won't be able to tell anything else other than there was something locked there.
    But none of the details you would find in the views.

  • How to find the current line in the table control in module pool ?

    How to find the current line in the table control in module pool ?
    This is an urgent requirement? please do help me.

    refer to this example
    REPORT demo_dynpro_tabcont_loop_at.
    CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
    DATA: cols LIKE LINE OF flights-cols,
    lines TYPE i.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    DATA: itab TYPE TABLE OF demo_conn.
          TABLES demo_conn.
    SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
    LOOP AT flights-cols INTO cols WHERE index GT 2.
      cols-screen-input = '0'.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
    ENDLOOP.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    DESCRIBE TABLE itab LINES lines.
    flights-lines = lines.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE read_table_control INPUT.
      MODIFY itab FROM demo_conn INDEX<b> flights-current_line.</b>
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'TOGGLE'.
          LOOP AT flights-cols INTO cols WHERE index GT 2.
            IF  cols-screen-input = '0'.
              cols-screen-input = '1'.
            ELSEIF  cols-screen-input = '1'.
              cols-screen-input = '0'.
          ENDIF.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
    ENDLOOP.
        WHEN 'SORT_UP'.
          READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
          IF sy-subrc = 0.
            SORT itab STABLE BY (cols-screen-name+10) ASCENDING.
            cols-selected = ' '.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDIF.
        WHEN 'SORT_DOWN'.
          READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
          IF sy-subrc = 0.
            SORT itab STABLE BY (cols-screen-name+10) DESCENDING.
            cols-selected = ' '.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDIF.
        WHEN 'DELETE'.
          READ TABLE flights-cols INTO cols
                                  WITH KEY screen-input = '1'.
          IF sy-subrc = 0.
            LOOP AT itab INTO demo_conn WHERE mark = 'X'.
              DELETE itab.
    ENDLOOP.
          ENDIF.
    ENDCASE.
    ENDMODULE.

  • How to identify the bill-to-site location for a customer

    Hi All,
    How to identify the bill-to-site location for a customer.
    I want to determine the language output of the AR invoice report based on the bill-to site address.
    If the bill-to site is located in Sweden, the document should be in Swedish. If the bill-to site is located outside of Sweden, the document should be in English.
    I have defined a query but not able to identify from which column I can identify the bill-site-location.
    select --a_bill.org_id,party_name,account_number,a_bill.CUST_ACCT_SITE_ID
    from
    apps.hz_parties party
    ,apps.hz_party_sites party_site
    ,apps.hz_cust_accounts b
    ,apps.hz_cust_acct_sites_All a_bill,
    apps.hz_locations loc,
    apps.hz_cust_site_uses_all u_bill,
    apps.ra_customer_trx_all trx
    where party.party_id=party_site.party_id
    AND a_bill.party_site_id = party_site.party_site_id
    AND b.party_id = party.party_id
    AND loc.location_id = party_site.location_id
    AND u_bill.cust_acct_site_id = a_bill.cust_acct_site_id
    AND trx.bill_to_customer_id = b.cust_account_id
    AND trx.bill_to_site_use_id = u_bill.site_use_id
    Thanks,
    Joohi

    Hi ,
    Check this apps.hz_cust_site_uses_all here site_use_code will be there , you can find Bill_To Ship_to , from there you can find the site_use_id and location Id
    Thanks
    Shagul

Maybe you are looking for