Binding a module's width to the caller

I've been trying to bind a module's size to the caller's
container's size. How do I do this correctly? Should I create an
event listener in the module?
I have the following fragment in the app.
<mx:ModuleLoader id="myTrendChartModule"
url="modules/MyChart.swf"
width="{MyVBox.width}" height="350"
verticalScrollPolicy="off"/>
It does bind the width initially. But, it doesn't bind when I
resize the app. I have to add " resize="OnResize()" " in the
<mx:Application>. And, I have to call a chart function to
resize it there.

Plus, it wouldn't call my redraw chart functuion if I max or
resize the browser by using the browser button. I am kinda lost.
Can anyone give me some details behind?
I should treat the moduler as common componments on the
application. And, I should specify the following in the module:
<mx:Module .....
height="100%" width="100%"/>
And, it will automatically adjust itself, rite?
If I want to redraw my chart, the function should be called
during resize in the main app?

Similar Messages

  • Call BSP from a funtion module and use results of the BSP in the calling fm

    Hi BSP experts,
    I want to implement following scenario. But currently I've no idea how to realize step 4 of the process.
    1. An ABAP program calls a function module.
    2. The function module calls a BSP page.
    3. In the BSP users will fill out some fields (e.g. name).
    4. After pressing the submit button the BSP should transfer the values to the export parameters of the calling function module. 
    Thanks for your support & Regards

    within the FM code you should call a SAPGUI screen with embedded html viewer control, in which you will show the bsp page and user can enter value and hit submit. you can then collect the user entered value and set it as export value fo the FM. but why do you want to do this?
    Regards
    Raja

  • Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778.Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding.

    Hi, 
    I created a simple plugin and since i wanted to use Early Binding i added Xrm.cs file to my solution.After i tried registering the plugin (using the Plugin Registration Tool) the plugin does not gets registered and i get the below mentioned Exception.
    Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this
    operation may have been a portion of a longer timeout.
    Server stack trace: 
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity)
       at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
       at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
       at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e)
    Inner Exception: System.TimeoutException: The HTTP request to 'https://demoorg172.api.crm.dynamics.com/XRMServices/2011/Organization.svc' has exceeded the allotted timeout of 00:01:59.9430000. The time allotted to this operation may have been a portion of a
    longer timeout.
       at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
    Inner Exception: System.Net.WebException: The operation has timed out
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    And to my Surprise after i remove the Xrm.cs file from my solution the Plugin got registered!
    Not understanding what exactly is the issue.
    Any Suggestions are highly appreciated.
    Thanks,
    Shradha
      

    Hello Shardha,
                            I really appreciate that you have faced this issue.This is really very strange issue and basically it occurs because of big size of your early bound class and slow internet
    connection.
                            I would strictly recommend you to reduce the file size of your early bound class and then register.By default early bound class is created for all the entities which are
    present in CRM(System entities as well custom entities).Such kind of early bound classes takes lots of time to register on server and hence timeout exception comes.
                            There is some standard define to reduce the size of early bound class.Please follow the link to get rid from big size of early bound class.
    Create a new C# class library project in Visual Studio called SvcUtilFilter.
    In the project, add references to the following:
    CrmSvcUtil.exe(from sdk)   This exe has the interface we will implement.
    Microsoft.Xrm.Sdk.dll  (found in the CRM SDK).
    System.Runtime.Serialization.
      Add the following class to the project:
    using System;
    using System.Collections.Generic;
    using System.Xml.Linq;
    using Microsoft.Crm.Services.Utility;
    using Microsoft.Xrm.Sdk.Metadata;
    namespace SvcUtilFilter
        /// <summary>
        /// CodeWriterFilter for CrmSvcUtil that reads list of entities from an xml file to
        /// determine whether or not the entity class should be generated.
        /// </summary>
        public class CodeWriterFilter : ICodeWriterFilterService
            //list of entity names to generate classes for.
            private HashSet<string> _validEntities = new HashSet<string>();
            //reference to the default service.
            private ICodeWriterFilterService _defaultService = null;
            /// <summary>
            /// constructor
            /// </summary>
            /// <param name="defaultService">default
    implementation</param>
            public CodeWriterFilter( ICodeWriterFilterService defaultService )
                this._defaultService = defaultService;
                LoadFilterData();
            /// <summary>
            /// loads the entity filter data from the filter.xml file
            /// </summary>
            private void LoadFilterData()
                XElement xml = XElement.Load("filter.xml");
                XElement entitiesElement = xml.Element("entities");
                foreach (XElement entityElement in entitiesElement.Elements("entity"))
                    _validEntities.Add(entityElement.Value.ToLowerInvariant());
            /// <summary>
            /// /Use filter entity list to determine if the entity class should be generated.
            /// </summary>
            public bool GenerateEntity(EntityMetadata entityMetadata, IServiceProvider services)
                return (_validEntities.Contains(entityMetadata.LogicalName.ToLowerInvariant()));
            //All other methods just use default implementation:
            public bool GenerateAttribute(AttributeMetadata attributeMetadata, IServiceProvider services)
                return _defaultService.GenerateAttribute(attributeMetadata, services);
            public bool GenerateOption(OptionMetadata optionMetadata, IServiceProvider services)
                return _defaultService.GenerateOption(optionMetadata, services);
            public bool GenerateOptionSet(OptionSetMetadataBase optionSetMetadata, IServiceProvider services)
                return _defaultService.GenerateOptionSet(optionSetMetadata, services);
            public bool GenerateRelationship(RelationshipMetadataBase relationshipMetadata, EntityMetadata otherEntityMetadata, IServiceProviderservices)
                return _defaultService.GenerateRelationship(relationshipMetadata, otherEntityMetadata, services);
            public bool GenerateServiceContext(IServiceProvider services)
                return _defaultService.GenerateServiceContext(services);
    This class implements the ICodeWriterFilterService interface.  This interface is used by the class generation
    utility to determine which entities, attrributes, etc. should actually be generated.  The interface is very simple and just has seven methods that are passed metadata info and return a boolean indicating whether or not the metadata should be included
    in the generated code file.   
    For now I just want to be able to determine which entities are generated, so in the constructor I read from an XML
    file (filter.xml) that holds the list of entities to generate and put the list in a Hashset.  The format of the xml is this:
    <filter>
      <entities>
        <entity>systemuser</entity>
        <entity>team</entity>
        <entity>role</entity>
        <entity>businessunit</entity>
      </entities>
    </filter>
    Take a look at the methods in the class. In the GenerateEntity method, we can simply check the EntityMetadata parameter
    against our list of valid entities and return true if it's an entity that we want to generate.
    For all of the other methods we want to just do whatever the default implementation of the utility is.  Notice
    how the constructor of the class accepts a defaultService parameter.  We can just save a reference to this default service and use it whenever we want to stick with the default behavior.  All of the other methods in the class just call the default
    service.
    To use our extension when running the utility, we just have to make sure the compiled DLL and the filter.xml file
    are in the same folder as CrmSvcUtil.exe, and set the /codewriterfilter command-line argument when running the utility (as described in the SDK):
    crmsvcutil.exe /url:http://<server>/<org>/XrmServices/2011/Organization.svc /out:sdk.cs  /namespace:<namespace> /codewriterfilter:SvcUtilFilter.CodeWriterFilter,SvcUtilFilter
    /username:[email protected] /password:xxxx
    That's it! You now have a generated sdk.cs file that is only a few hundred kilobytes instead of 5MB. 
    One final note:  There is actually a lot more you can do with extensions to the code generation utility. 
    For example: if you return true in the GenerateOptionSet method, it will actually generated Enums for each CRM picklist (which it doesn't normally do by default).
    Also, the source code for this SvcUtilFilter example can be found here. 
    Use at your own risk, no warranties, etc. etc. 
    Please mark as a answer if this post is useful to you.

  • Modulating the width of the P70530 stepper drive output pulses

    I'm using a NI-PCI-7332 controller with a UMI-7772 and a P70530 drive to qualify a stepper motor (using LabVIEW 8.5). One of the test to perform is to lower the drive amplitude level until the motor stall.
    I'm controlling the drive input supply by GPIB (using an HP6032A system supply) but the problem is that the amplitude at wich the motor stall might be below the 20V specified lower limit of the P70530 (the motor lower drive value is specified at 23V).
    Using my actual hardware would there be a way to modulate the width of the drive pulses to the motor to get a lower RMS output (and will it work)? If not, do somebody has any suggestion of the hardware to use to perform this task?
    Thanks,
    Ben

    Hello ben64,
    You should use the software (via GPIB) to lower the drive’s current output to the motor. You can do this in real-time while the motor is running.
    However, if you decrease the power supply to the drive you may not get the point where the motor stalls but rather the point at which the drive fails/browns out/chokes.
    I hope this helps you out
    David G
    Sales Engineer - SE Michigan & N Ohio
    National Instruments

  • CLIENT_CREATE_FAILED error in the Call Adapter pipeline

    Hi, all.
      i think i've almost done the configuration of XI 3.0(CI + 2 DIs).
      SXI_CACHE, SLDCHECK, import of IR, ID objects ...etc. are O.K.
      But when i really run some scenarios of,
      File Adapter --> XI --> ABAP Proxy or
      ABAP Proxy --> XI --> Java Proxy, messages always got error in the "Call Adapter" pipeline of IS with the following message.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_CREATE_FAILED</SAP:Code>
      <SAP:P1>1</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Cannot register HTTP Client(Exception 1)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
      Any advice appreciated.
      Best Regards.

    Thanks, guys. Let me update my situation.
    i checked and rechecked dest:// ABAP Proxy : Error in Call Adapter step!
    For the error message of #3, i already attached message in my previous email.
    And following is the error message of #2. Please HELP!!!
    - Help
    !http://BSDEA03.darwin.denka.co.jp:50000/sap/public/icman/img/theme.jpg|alt=SAP|width=122 height=61 border=0 |src=http://BSDEA03.darwin.denka.co.jp:50000/sap/public/icman/img/theme.jpg!
    500 Internal Server Error
    Internal Server Error(-1)
    Error:
    -1
    Version:
    6040
    Component:
    ICM
    Date/Time:
    Tue Jul 26 15:40:19 2005
    Module:
    icxxthrio.c
    Line:
    538
    Server:
    BSDEA03_PDX_00
    Detail:
    internal error occured
    © 2001-2003, SAP AG
    </FONT></td></tr></table></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when receiving by HTTP (error code: 405, error text: ICM_HTTP_INTERNAL_ERROR)</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    Any advice appreciated.
    Best Regards.

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • Change the column width on the fly

    Dear all,
    I have a problem, i have a matrix report, the row is "the project name" and the column is "the items" using within each project, and the problem is the items are variable from time to time the report run for each project, so its exceeds the paper width.
    And the question is, is there any way to change the width of the column on the fly, i mean dynamiclly change the column width each time the report is called to make all items fit the paper width.
    Thank u

    i don't think that we can change the layout of the column in reports
    The simple solution for that problem is that u have to
    fix the horizontal and vertical layout of the text item
    better is to post this problem at reports forum
    Najeeb

  • How to open new form and exit from the calling form on dual/multi language?

    using form 10g 10.1.2.0.2.
    i have dual language application 1 english & 1 arabic and i created forms identically each respectedly to call and switch every forms when user choose any language it uses.
    say im in currently in english. how we can call the arabic module and exit totally in english module , vice versa?
    also the form system messages. how we can switch it between two language?

    NEW_FORM() will totally replace the calling module.
    Francois

  • How to get the report name from the call stack

    Hi,
    I have a question about how to get the caller information dynamically in a function module.
    For example.
    ZGET_CALLER_INFORAMTION,
    get the caller name -- how ??
    Thanks in advance
    Best Regards,
    Johnney

    Hi,
    You can use SY_CPROG -  caller in external procedures, bye using this u can get the progam name.
    Regards,
    kavitha.k

  • Credit Classification is null in the call to create credit request api

    Hi All,
    We are currently working on the implementation of Credit Management module. The plan is to integrate it with Orders Management. When an order is created above a specified credit limit for a customer, a credit review request is submitted. This is done from Order Management side through the seeded procedure OE_CREDIT_CHECK_ORDER_PVT. In this procedure, the call to the API, the credit classification is passed as null. As a result the credit application cannot be processed further. Is any Oracle Patch required to fix this issue. Morevover we cannot update the table with credit classification, since the credit application is in submitted state.
               AR_CMGT_CREDIT_REQUEST_API.Create_credit_request
               ( p_api_version           => 1.0
               , p_init_msg_list         => FND_API.G_FALSE
               , p_commit                => FND_API.G_FALSE
               , p_validation_level      => FND_API.G_VALID_LEVEL_FULL
               , x_return_status         => x_return_status
               , x_msg_count             => l_msg_count
               , x_msg_data              => l_msg_data
               , p_application_number    => NULL
               , p_application_date      => SYSDATE
               , p_requestor_type        => NULL
               , p_requestor_id          => fnd_global.employee_id
               , p_review_type           => 'ORDER_HOLD'
               , p_credit_classification => NULL
               , p_requested_amount      => l_total_exposure
               , p_requested_currency    => l_limit_curr_code
               , p_trx_amount            => g_order
               , p_trx_currency          => p_header_rec.transactional_curr_code
               , p_credit_type           => 'TRADE'
               , p_term_length           => NULL  --the unit is no of months
               , p_credit_check_rule_id  =>
                       p_credit_check_rule_rec.credit_check_rule_id
               , p_credit_request_status => 'SUBMIT'
               , p_party_id              => l_review_party_id --bug 5907331
               , p_cust_account_id       => l_customer_id
               , p_cust_acct_site_id     => NULL
               , p_site_use_id           => l_site_use_id
               , p_contact_party_id      => NULL --party_id of the pseudo party
               , p_notes                 => NULL  --contact relationship.
               , p_source_org_id         => l_source_org_id
               , p_source_user_id        => l_source_user_id
               , p_source_resp_id        => l_source_resp_id
               , p_source_appln_id       => l_source_appln_id
               , p_source_security_group_id => l_source_security_group_id
               , p_source_name           => 'OM'
               , p_source_column1        => p_header_rec.header_id
               , p_source_column2        => p_header_rec.order_number
               , p_source_column3        => 'ORDER'
               , p_credit_request_id     => l_request_id
    Please let me know the solution.
    Warm Regards,
    Vivek.

    Hello,
         MDM Version is 5.5.65.86
             Portal
             sap.com/SAP-JEECOR  7.00 SP18 (1000.7.00.18.0.20081123155626)  20091203155047 
             sap.com/SAP-JEE  7.00 SP18 (1000.7.00.18.0.20081123155510)  20091203154825 
             sap.com  MDM_JAVA_API  5.50 SP6 (1000.5.50.6.5.20100120101105)  SAP AG  SAP AG  20100204091131 
             sap.com  MDM_WEB_SERVICES  550 SP6 (1000.550.0.6.5.20100117165943)  SAP AG  MAIN_MDM55VA_C  20100204091208 
    this problem happened after our P system upgrade from 5.5.65.76 to 5.5.65.86,sometime when our MDM upgrade,SAP supply correspond WEBSERVICE jar, but this time ,SAP does not supply the correspond WEBSERVICE JAR file.we used WEBSERVICE JAR is the one that correspond with 5.5.65.76 may be this is the isuue causation

  • Need help in modifying the Calls by the Telemarketing agent

    Hi Group,
    I am facing issues while updating the calls using the Function module 'CRM_CLM_CALL_MODIFY'.
    the business requirement is as under:
    - a program needs to be built which will take the calls from all the Call lists from the Current week and has to update these
      calls by using by a certain field called 'CALL_RESULT' of the Sturucture 'CRMS_CLM_CALL'.
    - I have collected all the Calls but while using the Function module 'CRM_CLM_CALL_MODIFY', I was not getting any
      exceptions, but still could not the see the updation being done to the calls in the Call lists.
    In the CRM system also, there is no sign of this Function module being used and in the SAP Market place also I could not get  a proper answer/notes to this query.
    So please let me know your inputs on this to proceed further on the updation part.
    Thanks for the help in advance.
    Regards
    Vishnu.

    Hi Group,
    This can be resolved by creating the Implicit enhancement and adding the required functionality.
    Regards,
    Vishnu.

  • Skip Modules in Module Chain and change the SI,NS and CC in sender channel

    Hi Experts,
                      We have a module chain A, B and C in the sender file adapter. Is it possible for any customize module to by pass modules B and C based on some condition. Our requirement is to call module B and c in a particular condition and to ignore them for another condition.
    Also , can we change the Sender interface, Namespace and the Communication component of the message before sending it to the Pipeline, which will invoke some different interface depending on the condition.
    Thanks
    Ajay

    Hi Ajay,
    >>Is it possible for any customize module to by pass modules B and C based on some condition. Our requirement is to call module B and c in a particular condition and to ignore them for another condition.
    No it is not possible.. Advised will be to call first module and there in it decide whether to invoke B or C.. So you shoudl not have B and C as separate module in CC, instead the logic should be in A
    Regards
    Suraj

  • Search help - Need to read dynpro of the calling program

    Hello all,
    We have a requirement where we need to read the dynpro of the calling program of a search help.
    Say I have a screen (selection screen, module pool or ALV grid etc) where I have a field PARTNER with whom a custom search help is attached. But on this same screen there is another field RLTYP. What we want is that when an F4 is taken on PARTNER, the value of RLTYP should also be passed as value to the Search help exit.
    In short, we need to read the screen fields of the calling screen of a search help.
    Any ideas are appreciated.
    Regards
    Priyanka

    Check the sample code:
    FUNCTION F4IF_SHLP_EXIT_OFFRCONT.
    ""Local interface:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCT
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     VALUE(SHLP) TYPE  SHLP_DESCR
    *"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
      DATA : ws_flag(1) TYPE c,
             ws_rec(1)  TYPE c.
      DATA : i_dynpfields TYPE dynpread OCCURS 0 WITH HEADER LINE.
      DATA : ws_data TYPE ddshiface,
             i_data TYPE ddshifaces.
      ws_flag = 'X'.
      ws_rec = 'X'.
      IF ws_flag = 'X'.
        i_dynpfields-fieldname = 'P_CUST'.
        APPEND i_dynpfields.
        CALL FUNCTION 'DYNP_VALUES_READ'
          EXPORTING
            dyname               = sy-cprog
            dynumb               = '1000'
          TABLES
            dynpfields           = i_dynpfields
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            invalid_parameter    = 7
            undefind_error       = 8
            double_conversion    = 9
            stepl_not_found      = 10
            OTHERS               = 11.
        READ TABLE i_dynpfields WITH KEY fieldname = 'P_CUST'.
        ws_data-shlpfield = 'ZCUSTOMER'.
        ws_data-valfield = 'G_SIMFIELDS-FIELDNAME'.
        ws_data-value = i_dynpfields-fieldvalue.
        APPEND ws_data TO i_data.
        ws_data-shlpfield = 'ZOFFRCONT'.
        ws_data-valfield = 'P_CONT'.
        ws_data-f4field =     'X'.
        APPEND ws_data TO i_data.
        LOOP AT shlp_tab.
          IF ws_rec = 'X'.
            shlp_tab-interface[] = i_data[].
            APPEND shlp_tab.
            ws_rec = ' '.
          ENDIF.
        ENDLOOP.
        DELETE shlp_tab INDEX 1.
        ws_flag = ' '.
      ENDIF.
    ENDFUNCTION.
    Regards,
    Prakash.

  • How to identify that the call to a BAdI is coming from SAPGUI

    Hi All,
    In the current project involving SAPCRM 5.0 (both GUI and PCUI), we need to display a pop-up asking the user whether he would like to go ahead with the changes in both GUI and PCUI.
    The function module 'Popup-to-confirm'  was used in a BAdI implementation and it worked fine in GUI but caused problems in PCUI. So this code was commented out as of now.
    Could you let me know as to how should we differentiate the call being placed to a BAdI is from GUI or from PCUI so that we could ensure that the pop-up gets displaced in GUI atleast as of now and does not get populated/cause errors in PCUI as of now?
    Else please let me know what is the correct way of displaying a pop-up in both GUI and PCUI in CRM 5.0?
    Thanks,
    Ravi Kiran

    Hello All,
    I am moving this to another forum as I accidentally put it in this category.
    Thanks,
    Ravi Kiran

  • Function module to retrieve all the personnel numbers in the eval path

    Hi all,
    I want to retrieve all the personnel numbers that fall in the evaluation path.
    Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
    if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
    any help??
    regards
    Sam
    regards
    Sam

    Hi
    U can use FM  RH_STRUC_GET to get the pernr in the evaluation path
    data : IT_RESULT_TAB     TYPE STANDARD TABLE OF SWHACTOR .
                CALL FUNCTION 'RH_STRUC_GET'
                  EXPORTING
                    ACT_OTYPE  = C_OTYPE
                    ACT_OBJID  = W_POSIT
                    ACT_WEGID  = C_WEGID (relation B002 like )
                    ACT_BEGDA  = W_BEGDA
                    ACT_ENDDA  = W_BEGDA
                   ACT_TDEPTH = 1 ( depath 1, 2, etc )
                  TABLES
                    RESULT_TAB = IT_RESULT_TAB .
    Nb : Give points if it worths

Maybe you are looking for

  • How can I hide a field a table from SE16

    Hi all, I have an urgent requirement, can anyone help me? How can I hide or mask any field of a table from SE16. Also how can I restrict the user not to put a restriction on a particular field of a table so that this field should not be accessed for

  • Can't download iCloud to my new PC

    When I try to download the iCloud control panel on PC it tells me that there was an interuption in the process & to try again.

  • Issue after deployment of ADF App into Standalone server.

    Hi I was able to run my ADF App from Integrated server, but after deploying the same APP in standalone server and when we access the Page. I am getting the following error of " AM Definition not Found in the log". the exact log is below. Things are w

  • View Deleted Sales Order by material

    I need to know in that sales order has been a material because when we run MRP, system creates purchase requisition for requeriments of sales order, ok? But, after if user deletes sales order, the purchase requisition created is incorrect but purchas

  • PCI-6110 transient synchronous input noise

    I am trying to acquire transient voltage signals with a PCI-6110 board, sampling at 5MHz. When I examine one channel of an input signal (from an optical sensor, with its own internal op amps) using the sensor's BNC cable to high-impedance input of an