AdobeHCM P&F-Able to fill positions dropdown,unable to display values-EP3

All,
I am able to populate the positions in drop down . I am seeing the all the positions, now when my form load I have to select one position and populate the rest of the DISPLAY values based on position. E.g. Company code, text , job key , job text . I have generic service which have all the fields . I added them on my form , but when I am choosing position from dropdown , nothing is populating .. I`ve used operation "GET_COMPANY_CODE_FOR_POSITION" . Any clue why ?
I exactly did the following , I am calling script event USER_EVENT_CHECK on CHECK .
But nothing is coming up .
Note : I donu2019t have any button , all I have is dropdown for positions
Re: HCM forms and Processes - Adobe
Please Advice.
Thanks,
Khan

Still NOT WORKING ...........!!!
Yes , it was easy and a smart way to trigger event .  I always knew you are smart guy
Here is what I`ve done
1- Populate dropdown for position via standard service "S_MGRS_POSITIONS" , bind this with SAP_PA with the same name I0001_PLANS.
2- Yaaaay! I can see the position in dropdown great -- Next step
3- Based on the position selected from drop down , I have populate and display 12 fields with their text from OM side .
4- I have created a generic service "ZS_POS_ATTRIBUTES" , import all the fields with their names e.g company code,job key , org unit , cost center , etc etc .. Including "effective date" .
5 - Per you reply I have drop button from ISR library which created all code for me and I commented the script for visible & invisible on FORMREADY. ( Able to hide button )
6- Copy mouse down / click ISR code  and plug that in on change EVENT of my dropdown
//Set ISR_EVENT for BAdI processing in backend
$record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_CHECK"
//Trigger call to backend for BAdI user command processing
ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
7- I have a user event called "USER_EVENT_CHECK "  which have all the fields for display including Action , effective date ( thanks a lot for your blog ) help  me a lot  to understand USER EVENT
8 - Now When I am loading my form via MSS  After picking position , it is not doing any thing ( I also put break point for my custom back end service , but it is not stopping at all )
9 - Humm, I thought , lets execute HRASR_TEST_PROCESS to make sure it is populating position F4_HELP value. Guess what , after hitting "F8" Execute , I didnu2019t see any positions F4 , but the moment  I clicked "CHECK" , it not only triggers my custom backend service but also come back with positions . I choose one position out of 7 positions and it again went to debugging mode .
Why I am unable to see the values for the slected positions 
Please advice .

Similar Messages

  • Using Webservice through RFC Func Mod Can I able to fill dropdown field

    Hi,
    I am going to develop offline interactive form using Webservice through RFC Function module.
    There are dropdown list fields in my adobe form. Then how can I able to fill these dropdown fields in my form, I mean how to bind the values to dropdown fields.
    Thanks & Regards,
    nspkumar.

    Hi,
    Option 1:
    If the form is designed in transaction SFP, which has a form interface (transaction SFI), then below solution will work:
    For example consider the data node name as 'COUNTRY' . Select drop down UI element and go to 'Object' properties tab. Select 'Binding' tab, on the top right hand side of this tab there is small icon, select the icon and enable the option 'Show Dynamic Properties'. Once this option is enabled in the 'Binding' tab you can click on the link 'Specify Item Values'. A popup will open, here specify the binding value as 
    $record.sap-vhlist.COUNTRY.item[*]
    Refer to link:
    [Drop down list binding|http://help.sap.com/erp2005_ehp_06/helpdata/en/43/7a667df4ad6fc9e10000000a1553f6/frameset.htm]
    Option 2:
    If the data connection is directly to the webservice then binding needs to be done similar to option 1 except one change. While binding the value in dynamic properties based on XML schema binding needs to be changed.
    As you can see in option 1, for dynamic property binding 
    $record.sap-vhlist.COUNTRY.item[*]
    , there is a value called sap-vhlist. This 'sap-vhlist' gets generated when form is designed in transaction SFP with form interface. So in your case if data connection is from webservice value sap-vhlist needs to changed to the value as per XML schema definition.
    Regards
    Srikanth KV

  • BW HR Reporting Issue- Vacant Position & Filled Position

    Hi All,
    I am using the standard extractor 0hr_pa_os_1, it brings up two records for a position one with no pernr & with pernr. Loaded in the same way to cube.
    In my report I am  trying to display number of filled position and number of vacant positions. When I run the query it displays two entries for a position one with employee ID and the other with '#' sign. I tried to exclude the '#' employee from the report but it also removes the position which is vacant.
    Example,
    Position | Employee | Filled | Vacant |
    1002 | 7009 | 1 | 0 |
    1002 | # | 1 | 0 |
    1003 | # | 0 | 1 |
    Total shows as filled = 2 & vacant = 1. which is incorrect filled should show only 1, as the records in the query displayed twice I am getting the total as 2.
    when I exclude '#' from employee, it removes the position 1003 from the report and I am not able report on vacant position.
    Pls let me know is there a way to solve this.
    Regards,
    Anand

    Hi,
    looking at the data example, there could be couple of options.
    1) Exceptional aggregation on Position
    Create a formulae KF on the top of base KF with exceptional aggregation with reference to position to show unique count of position.
    2) Restricted KF
    Create 2 separate restricted KFs one each for filled and vacant. For filled, set a fillter condition of pernr ne '#' and for vacant the condition would be pernr eq '#'.
    Hope this helps?
    Thanks.

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • I have an editable pdf made in Acrobat. Viewing it Adobe Reader Mobile (Android) and I can fill it fine. I want to be able to fill the form but it keeps autosaving. I just want to email the form and then it goes back to an unfilled form. How do i do that?

    I have an editable pdf made in Acrobat. Viewing it Adobe Reader Mobile (Android) and I can fill it fine. I want to be able to fill the form but it keeps autosaving. I just want to email the form and then it goes back to an unfilled form. How do i do that?

    Currently, Adobe Reader for Android does not provide an option to disable auto-save.
    In the Reader home screen (where your files are displayed), you can make a copy of the original PDF document, open the copy (instead of opening the original document), make changes to the copy.  Once you email the copy, you can delete it.
    For more information, please see Help > How To... > Copy, edit, delete, manage.
    Although it is not the most convenient way to accomplish the task, that's the only feasible workaround that is available in Adobe Reader for Android right now.

  • Hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP!!!

    hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP!
    does anybody know how to solve this problem? thx!

    If you want to try to clear even more disk space see https://discussions.apple.com/thread/5872318?tstart=0

  • Filling the Sales Order Header - Source for filling the dropdown boxes

    Hi,
    I am trying to design the User Interface for Creation of sales order using the WebDynpro's. I want to know, what are all those BAPI's i need to use to fill the following drop down boxes.
    1. Order Type
    2. Sales Organization
    3. Distribution Channel
    4. Division
    As i am new to ABAP., and i am from Java background, i dont know much about the BAPIs used to get the above data.
    Could anyone let me know the source to fill those dropdown boxes. Thanks in advance.
    Thanks,
    Raghavendra

    Ah,my bad.
    Hmmm,i haven't found a BAPI's for filling all your dropdown-boxes with the valid values.
    What about using the FM "RFC_READ_TABLE" to read the values for your drowdown-boxes.(only if you don't want to write a Z*-Function).
    For examlpe for the dropdownbox "Sales Orgs",you can can start this FM for the table TVKOT.
    Is that a possilbe solution for you?
    Greetings
    Frank Brackmann

  • Code to fill the dropdown by index from model

    I am new to WDJ.
    I am trying to fill the dropdown(index) frm model. I have called RFC in the model ,added it to the used model and
    mapped view context elements to the custom controller context elements.
    The project was built with no errors.
    But i am getting the 500 internal server error while running the application.
    Here am giving the code which i wrote to fill up the dropdwon.
    Can anybodly please guide me is the following code correct ? am missing something ?
    Controller's method :
    public void ExecuteSales_Document( )
        //@@begin ExecuteSales_Document()
        IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
        wdContext.currentSales_DocuemntElement().modelObject().execute();
        wdContext.nodeOutput().invalidate();
        catch(WDDynamicRFCExecuteException e)
          manager.reportException(e.getMessage(),
              false);
    IWDAttributeInfo attributeInfo = wdContext.nodeOutput().getNodeInfo().getAttribute("vbeln");
    ISimpleTypeModifiable attrType = attributeInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet valueSet = attrType.getSVServices().getModifiableSimpleValueSet();
    int size = wdContext.nodeOutput().size();
         for(int i=0;i<size;i++)
              valueSet.put(wdContext.nodeOutput().nodeSalesdocument().getSalesdocumentElementAt(i).getVbeln(),wdContext.nodeSalesdocument().getSalesdocumentElementAt(i).getVbeln());
        //@@end

    Hi Armin,
      This is default trace file.
    #1.5#0011258F6E960072000000660002AC0C0004534A769C3497#1217479189546#com.sap.tc.webdynpro.sessionmanagement#sap.com/tcwddispwda#com.sap.tc.webdynpro.sessionmanagement.ExceptionHandler.handleThrowable#Guest#0####b08b73825eba11dd88cb0011258f6e96#SAPEngine_Application_Thread[impl:3]_49##0#0#Error#1#/System/UserInterface#Java###Exception occured during processing of Web Dynpro application . The causing exception is nested.
    [EXCEPTION]
    #2#local/Adaptive_RFC/Adaptive_RFC#com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type extern:com.sap.rfc.sales.types.RFC_SalesDocument:com.sap.rfc.sales.types.Zlt_Vbeln could not be loaded: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:305)
         at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:234)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:707)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:90)
         at com.sap.dictionary.runtime.ProviderFactory.internalResolveLogicalNameToJCODestination(ProviderFactory.java:377)
         at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:322)
         at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:181)
         at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:146)
         at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:97)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:79)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:48)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
         at com.sap.dictionary.runtime.DdBroker.getStructure(DdBroker.java:180)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:303)
         ... 38 more
    Caused by: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:152)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:178)
         at com.sap.tc.webdynpro.services.sal.sl.core.SystemLandscapeInternal.getJCOClientConnectionUnMapped(SystemLandscapeInternal.java:62)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:77)
         ... 48 more
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve JCO destination name 'WD_RFC_METADATA_SalesDocument_DEST' in the SLD. No such JCO destination is defined in the SLD.
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:467)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:233)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:218)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:129)
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150)
         ... 51 more
    Thanks & regards
    Sireesha.

  • Reader 8.1.2 - OpenSuse 10.2, not able to fill forms and crashes

    Since I have updated to version 8.1.2 I am not longer able to fill in data in pdf forms. The same pdf works fine under windows. Under linux (opensuse 10.2) the reader crashes some times when I try to fill in data. The only fields working are the checkboxes.
    Any ideas??
    Thanx
    Tom

    Yes, not being able to input öäüßÖÜÄ is indeed the same
    problem as discussed in
    http://bugzilla.novell.com/show_bug.cgi?id=370330
    If acroread is started like this:
    env -i XMODIFIERS=@im=local GTK_IM_MODULE=xim LANG=de_DE HOME=/home/mfabian DISPLAY=:0 acroread editable-file.pdf
    input of öäüßÖÄÜ works, if started like this:
    env -i XMODIFIERS=@im=local GTK_IM_MODULE=xim LANG=de_DE.UTF-8 HOME=/home/mfabian DISPLAY=:0 acroread editable-file.pdf
    it does *not* work.
    I.e. this is indeed the same problem as reported in
    the above mentioned Novell bug.
    To test this I removed the workaround I added to /usr/bin/acroread
    temporarily.
    The acroread package for openSUSE Factory (upcoming 11.0)
    contains this workaround in /usr/bin/acroread:
    # Workaround for https://bugzilla.novell.com/show_bug.cgi?id=370330
    if [ "$GTK_IM_MODULE" == "xim" ] ; then
    for lc in LANG LC_ALL LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY
    LC_MESSAGES LC_PAPER LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
    do
    eval val="\$$lc"
    case "$val" in
    *.UTF-8*)
    eval $lc=\${val%%[.@]*}
    esac
    done
    fi
    Unfortunately this has not yet been released for older openSUSE versions.

  • I am not able to fill up my output table

    I'm fresher to ABAP.
    I am  not able to fill up my output internal table. please help in correcting my select statements.
    Please help me.
    I am pasting my code here.
    DATA: BEGIN OF marc_tab OCCURS 0,
           matnr LIKE marc-matnr,    " Material Number
           eislo LIKE marc-eislo,    " Minimum Safety Stock
           mabst LIKE marc-mabst,    " Maximum stock level
           eisbe LIKE marc-eisbe,    " Safety stock
           werks LIKE marc-werks,    " Plant
           ekgrp LIKE marc-ekgrp,    " Purchasing group
           dispo LIKE marc-dispo,    " MRP controller
    END OF marc_tab.
    DATA: BEGIN OF mard_tab OCCURS 0,
           lgort LIKE mard-lgort,     " Storage Location
           speme LIKE mard-speme,    " Blocked stock
           umlme LIKE mard-umlme,    " Stock in transfer
           insme LIKE mard-insme,    " Stock in quality inspection
           retme LIKE mard-retme,    " Blocked Stock Returns
           labst LIKE mard-labst,    " Valuated stock with unrestricted use
          END OF mard_tab.
    DATA: mard_tab1 LIKE STANDARD TABLE OF mard_tab WITH HEADER
    LINE.
    Material and description
    DATA: BEGIN OF mara_makt_tab OCCURS 0,
          matnr LIKE mara-matnr,   "Material number
          maktx LIKE makt-maktx,   "Material description
          END OF mara_makt_tab.
    DATA: BEGIN OF eord_lfa1_tab OCCURS 0,
          matnr LIKE eord-matnr,  "Material number
          ebeln LIKE eord-ebeln,  "Scheduling Agreement
          lifnr LIKE eord-lifnr,  "Vendor's account number
          name1 LIKE lfa1-name1,                                "Name 1
          END OF eord_lfa1_tab.
    DATA: BEGIN OF mseg_mkpf_tab OCCURS 0,
          budat LIKE mkpf-budat,    "Posting date in the document
          mblnr LIKE mkpf-mblnr,    "Number of material document
          werks LIKE mseg-werks,
          mjahr LIKE mseg-mjahr,     "Material doc. year
          menge LIKE mseg-menge,     "Quantity
          lgort LIKE mseg-lgort,     "Storage location
          bwart1 LIKE mseg-bwart,     " Movement type (inventory management)
          bwart2 LIKE mseg-bwart,    
          lifnr LIKE mseg-lifnr,
          END OF mseg_mkpf_tab.
    DATA: mseg_mkpf_tab1 LIKE STANDARD TABLE OF mseg_mkpf_tab WITH HEADER
    LINE.
    DATA: BEGIN OF mkol_tab OCCURS 0,
          seinm LIKE mkol-seinm,      " Restricted-use consignment stock
          slabs LIKE mkol-slabs,     " Unrestricted-use consignment stock
          sobkz  LIKE mkol-sobkz,     " Special stock indicator         
          END OF mkol_tab.
    DATA: BEGIN OF t_werks OCCURS 0,
          werks LIKE t001w-werks,    " plant
          END OF  t_werks.
    **DATA: BEGIN OF mkpf_tab OCCURS 0,
         budat LIKE mkpf-budat,    "Posting date in the document
         mblnr LIKE mkpf-mblnr,    "Number of material document
         END OF  mkpf_tab.
    DATA: BEGIN OF zresult_tab OCCURS 0,
           matnr LIKE marc-matnr,    " Material Number
           maktx LIKE makt-maktx,   "Material description
           rev_lvl TYPE c,           " Revision level
           ebeln LIKE eord-ebeln,  "Scheduling Agreement
           ekgrp LIKE marc-ekgrp,    " Purchasing group
           dispo LIKE marc-dispo,    " MRP controller
           lifnr LIKE eord-lifnr,  "Vendor's account number
           name1 LIKE lfa1-name1,                               "Name 1
           eislo LIKE marc-eislo,    " Minimum Safety Stock
           mabst LIKE marc-mabst,    " Maximum stock level
           eisbe LIKE marc-eisbe,    " Safety stock
           werks LIKE marc-werks,    " Plant
           bwart LIKE mseg-bwart,     " Movement type (inventory management)
           slabs LIKE mkol-slabs,    " Unrestricted-use consignment stock
           labst LIKE mard-labst,    " Valuated stock with unrestricted use
           speme LIKE mard-speme,    " Blocked stock
           umlme LIKE mard-umlme,    " Stock in transfer
           insme LIKE mard-insme,    " Stock in quality inspection
          retme LIKE mard-retme,    " Blocked Stock Returns /added
         seinm LIKE mkol-seinm,    " Restricted-use consignment stock
         sobkz LIKE mkol-sobkz,   " Special stock indicator         
         lgort LIKE mseg-lgort,     "Storage location
           END OF zresult_tab.
    *DATA: zresult_tab1 LIKE STANDARD TABLE OF zresult_tab WITH HEADER LINE.
    DATA: BEGIN OF zresult_tab1 OCCURS 0,
           matnr LIKE marc-matnr,    " Material Number
           maktx LIKE makt-maktx,   "Material description
           ebeln LIKE eord-ebeln,  "Scheduling Agreement
           ekgrp LIKE marc-ekgrp,    " Purchasing group
           dispo LIKE marc-dispo,    " MRP controller
           lifnr LIKE eord-lifnr,  "Vendor's account number
           name1 LIKE lfa1-name1,                               "Name 1
           eislo LIKE marc-eislo,    " Minimum Safety Stock
           mabst LIKE marc-mabst,    " Maximum stock level
           eisbe LIKE marc-eisbe,    " Safety stock
           werks LIKE marc-werks,    " Plant
           bwart LIKE mseg-bwart,     " Movement type (inventory management)
           menge LIKE mseg-menge,   
           slabs LIKE mkol-slabs,    " Unrestricted-use consignment stock
           labst LIKE mard-labst,    " Valuated stock with unrestricted use
           speme LIKE mard-speme,    " Blocked stock
           umlme LIKE mard-umlme,    " Stock in transfer
           insme LIKE mard-insme,    " Stock in quality inspection
           lgort LIKE mard-lgort,    
          retme LIKE mard-retme,    " Blocked Stock Returns
           END OF zresult_tab1.
    *DATA : begin of zresult_tab1 occurs 0,
    *include zresult_tab LIKE zresult_tab.
    *end of itab.
    and the select statements are like this:
      SELECT matnr
                FROM mara
                    INTO  TABLE zresult_tab
                    WHERE matnr IN s_matnr.
                   and werks in s_werks.
      SELECT mkpfbudat mkpfmblnr
             msegmblnr msegmjahr mseg~menge
             mseglgort msegbwart
            FROM mseg INNER JOIN mkpf
              ON  mkpfmblnr = msegmblnr
                AND  mkpfmjahr = msegmjahr
               INTO CORRESPONDING FIELDS OF
                TABLE mseg_mkpf_tab
                WHERE
                mseg~werks IN s_werks
                AND lgort IN s_lgort1
                AND lgort IN s_lgort2
                AND bwart IN s_bwart1
                AND bwart IN s_bwart2.
              AND budat IN s_usgpid.
      IF sy-subrc EQ 0.
    special stocks from vendor/Vendor consignment stock
        SELECT seinm slabs sobkz
                FROM  mkol
                  INTO CORRESPONDING FIELDS OF
                  TABLE mkol_tab
                  FOR ALL ENTRIES IN mseg_mkpf_tab
                 WHERE matnr IN s_matnr
                AND werks = mseg_mkpf_tab-werks
              AND lifnr in s_lifnr
                AND sobkz  = 'K'.
      ENDIF.
      SELECT lgort speme umlme insme retme labst
       FROM mard INTO TABLE mard_tab
       WHERE matnr = zresult_tab-matnr
                AND werks IN s_werks
                AND lgort IN s_lgort1
                AND lgort IN s_lgort2.
      IF sy-subrc NE 0.
        MESSAGE i000 WITH 'no data populated!!!'.
      ENDIF.
    SELECT matnr ebeln lifnr
                        FROM eord
                            INTO CORRESPONDING FIELDS OF
                            TABLE eord_lfa1_tab
                            WHERE matnr IN s_matnr
                           AND werks IN s_werks.
      IF sy-subrc NE 0.
        MESSAGE i000 WITH 'fgdf'.  ENDIF
      SELECT matnr ebeln lifnr
                    FROM eord
                        INTO CORRESPONDING FIELDS OF
                        TABLE eord_lfa1_tab
                        WHERE lifnr IN  s_lifnr
                        AND werks IN s_werks
      IF sy-subrc NE 0.
        MESSAGE i000 WITH 'No  matching material found'.
      ENDIF.
      IF NOT p_endstk  IS INITIAL.
        CLEAR zresult_tab1.
        LOOP AT mard_tab.
          READ TABLE zresult_tab1 WITH KEY lgort = s_lgort1.
          IF sy-subrc EQ 0.
            COLLECT mard_tab INTO mard_tab1.
          ENDIF.
          MOVE mard_tab1-speme TO zresult_tab-speme.
          MOVE mard_tab1-umlme TO zresult_tab-umlme.
          MOVE mard_tab1-insme TO zresult_tab-insme.
          MOVE mard_tab1-retme TO zresult_tab-retme.
          MOVE mard_tab1-labst TO zresult_tab-labst.
          APPEND zresult_tab.
        ENDLOOP.
      ENDIF.
      IF NOT p_otrstk  IS INITIAL.
        CLEAR zresult_tab1.
        LOOP AT mard_tab.
         READ TABLE zresult_tab1 WITH KEY lgort = s_lgort1 lgort = s_lgort2
          IF sy-subrc EQ 0.
            COLLECT mard_tab INTO mard_tab1.
          ENDIF.
          MOVE mard_tab1-speme TO zresult_tab-speme.
          MOVE mard_tab1-umlme TO zresult_tab-umlme.
          MOVE mard_tab1-insme TO zresult_tab-insme.
          MOVE mard_tab1-retme TO zresult_tab-retme.
        move mard_tab1-labst to zresult_tab-labst.
          APPEND zresult_tab.
        ENDLOOP.
      ENDIF.
      IF NOT p_chk IS INITIAL.
        CLEAR :mseg_mkpf_tab,mseg_mkpf_tab1.
        LOOP AT zresult_tab1.
          READ TABLE mseg_mkpf_tab WITH KEY bwart1 = s_bwart1
          lifnr =  s_lifnr budat = s_usgpid.
          IF sy-subrc EQ 0.
            COLLECT mseg_mkpf_tab INTO mseg_mkpf_tab1.
          ENDIF.
          MOVE mseg_mkpf_tab1-menge TO zresult_tab1-menge.
          APPEND zresult_tab1.
        ENDLOOP.
      ENDIF.
    and filling the zresult _tab like this:
      LOOP AT zresult_tab1.
        READ TABLE mseg_mkpf_tab.
        IF sy-subrc EQ 0.
          zresult_tab1-bwart = mseg_mkpf_tab-bwart1.
          MODIFY  zresult_tab1.
        ENDIF.
      ENDLOOP.
      LOOP AT zresult_tab1.
        READ TABLE mkol_tab.
        IF sy-subrc EQ 0.
          zresult_tab1-slabs = mkol_tab-slabs.
        ENDIF.
        MODIFY zresult_tab1.
      ENDLOOP.
      LOOP AT zresult_tab1.
        READ TABLE marc_tab.
        IF sy-subrc EQ 0.
          zresult_tab1-eislo = marc_tab-eislo.
          zresult_tab1-mabst = marc_tab-mabst.
          zresult_tab1-eisbe = marc_tab-eisbe.
          zresult_tab1-werks = marc_tab-werks.
          zresult_tab1-ekgrp = marc_tab-ekgrp.
          zresult_tab1-dispo = marc_tab-dispo.
        ENDIF.
        MODIFY zresult_tab1.
      ENDLOOP.
      LOOP AT zresult_tab1.
        READ TABLE mard_tab.
        IF sy-subrc EQ 0.
          zresult_tab1-labst = mard_tab-labst.
          zresult_tab1-lgort = mard_tab-lgort.
          zresult_tab1-speme = mard_tab-speme.
          zresult_tab1-umlme = mard_tab-umlme.
          zresult_tab1-insme = mard_tab-insme.
        ENDIF.
        MODIFY zresult_tab1.
      ENDLOOP.
    Thanks
    Alekhya

    Some comments on your code ---
    SELECT lgort speme umlme insme retme labst
    FROM mard INTO TABLE mard_tab
    WHERE matnr = zresult_tab-matnr
    AND werks IN s_werks
    AND lgort IN s_lgort1
    AND lgort IN s_lgort2.
    ---> instead of using zresult_tab-matnr u should be using s_matnr...to populate the mard_tab internal table with the records for all material otherwise it would just do it for the last record of zresult_tab-matnr.
    IF NOT p_endstk IS INITIAL.
    CLEAR zresult_tab1.
    LOOP AT mard_tab.
    READ TABLE zresult_tab1 WITH KEY lgort = s_lgort1.
    IF sy-subrc EQ 0.
    COLLECT mard_tab INTO mard_tab1.
    ENDIF.
    MOVE mard_tab1-speme TO zresult_tab-speme.
    MOVE mard_tab1-umlme TO zresult_tab-umlme.
    MOVE mard_tab1-insme TO zresult_tab-insme.
    MOVE mard_tab1-retme TO zresult_tab-retme.
    MOVE mard_tab1-labst TO zresult_tab-labst.
    APPEND zresult_tab.
    ENDLOOP.
    ENDIF.
    --> I am quiet puzzled with the above code you are trying to read zresult_tab1 and appending data into zresult_tab. Also, for the read to be successful you should try and fill more key columns otherwise it would just fetch the first record.
    --> Also in the final bit of code you are appending and modifying zresult_tab1 table and expecting result in zresult_tab table ?? Can you please check on the code with that respect.
    Regards
    Anurag

  • Do you know why I cannot access the scheduling and rescheduling features of onetoone? This is over several days.  Either I am not able to fill in the ID/password boxes from an Apple email appointment reminder, or if I go through Apple onetoone via Safari,

    Do you know why I cannot access the scheduling and rescheduling features of onetoone? This is over several days.  Either I am not able to fill in the ID/password boxes from an Apple email appointment reminder, or if I go through Apple onetoone via Safari, I get perpetual spinning after I fill in and click. Help! Thanks.

    Call the store in question:
    http://www.apple.com/retail/
    Extension 5 in the stores in my area has usually led me to getting ahold of a real person.  It may differ by store.

  • Not able to fill setup tables of purchasing

    hi gurus,
    I'm not able to fill setup tables of purchasing errors raised as following:-
    Enter rate INR /  rate type M for 12.04.2005 in the system settings
    what to do pls guide me step by step process
    ponts promised

    hi pls tell me the step by step solution to the problem
    . i need to enter the exchange rate for that particular date or just make the new entry or wat else
    re
    rubane

  • How to set a dropdown display value

    I know how to access the current value of a dropdown box. But how can I set it?
    I have a dropdown box and one of the choices is 'Other'. When 'Other' is selected, a text box is enabled so the user can describe what they mean by 'Other'. Now, I want to make the dropdown more robust where if after selecting 'Other' and providing a comment the user willingly or not makes a different selection, the user is warned that the 'Other' description will be deleted with a choice to proceed or not. If the user proceeds the description is deleted and the text box disabled; if the user doesn't want to proceed with the deletion the text box is left enabled with its value untouched and the dropdown value is reset to 'Other'. This is the part that I can't figure out: how do I reset the display value of the dropdown?
    Thanks for the help!
    Marc

    Ok, thanks Malcolm. Yes, you were correct about using the rawValue property to reset the selected value of the dropdown.
    Why I got so confused is because all my scripting, including trying to reset the newly selected value, was done in the Change event of the dropdown. The rawValue property 'appears' to behave differently here I think because of the order of the events, where it holds the original value through the whole selection process. So essentially, the rawValue during the Change event doesn't hold the newly selected value and will not hold it until the Change event is fully completed.
    So I was able to reset the selected value through the Exit event by using a form variable whose value I set in the Change event. So my Change event uses this line at the right location in my script:
    cancelDDSelection.value = "yes";
    and my Exit event uses the following;
    if (cancelDDSelection.value == "yes") //if the Change event reset this form variable to 'yes'
    this.rawValue = "Other"; //reset the selected value to 'Other'
    cancelDDSelection.value = "no"; //reset the form variable to its default value
    Not sure if there's a better to do this, but all works as I wanted it to now.
    Marc

  • Sales Order form error  "Not able to retrieve Display values for Service"

    Hi,
    Few of our orders flash the below error message when the order is queried
    "Not able to retrieve Display values for Service"
    Below are the points I observed
    1.The orders I am referring to are imported order via EDI interface.
    2.The service reference type code has value of ORDER, however no other service related fields (like service reference line id) have any values.
    3. The item is not a service item (service tab in Item setup is disabled)
    4. Same item when imported with value of "Customer Ordered" in "service reference type code" field, does not throw an error.
    5. If I update "service reference type code" with value null or change it to CUSTOMER_PRODUCT, the error disappears.
    Can someone explain the significance of this column value and what could have been causing this error message?
    May be there are some dependent fields/setups which must have a value when service reference type code =ORDER.
    Thanks in advance,
    JC
    Edited by: user10174990 on Oct 25, 2012 10:58 AM

    Hi,
    Maintain the dafault values using Tcode OISF with respective to Planning Plant you have to maintain the following values like Order Type, Main Work Center, Maint. Plant,Group,Group Counter,Business Area & Task List type.
    or
    Apply these OSS note 150732 / 195993.
    regards,
    Venkatesan Anandan

  • Why doesn't yahoo page fill my new 20 inch display?

    I have used and loved firefox for about two years, have just bought a new computer with a larger 20 inch monitor and the content of my yahoo homepage only fills about 60% of the display. It is centered, just not large enough. This was never an issue with my previous 17 inch monitor.
    When viewed via IE, it fills the screen to about 85%.
    PLEASE tell me there is an easy adjustment I am missing. I can't stand the empty void on both sides of my viewing field

    You can use this extension to set a default font size and page zoom on web pages:
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/

Maybe you are looking for