Get PO based on PartNumber

Does any body can help me to get the PO number based on a JOB Parameter
(Query)
Thks!

Hi Rao,
we can get Fiscal year period and quarter based on the calmonth and calweek using the field routine in transformation.
pls check below related links
Function module for deriving CALMONTH from CALWEEK
Function modules to convert Cal week in to Cal Mon,Cal Quar and Cal Year
Regards,
Malli.

Similar Messages

  • Can't get version based downloads to work

    I am new to JNLP and trying to get version based downloads to work. I have read everything I can find, but I still seem to be missing something. My setup:
    Tomcat 4.1.18 (running in JDK 1.4.0)
    Java WebStart 1.2
    Win 2k
    files in .war
    -launch.jnlp
    -+1.0
    |-testapp.jar
    |-version.xml
    -+images
    |-Save.gif
    -+META-INF
    |-MANIFEST.MF
    -+WEB-INF
    |-+lib
    | |-jnlp-servlet.jar
    |-web.xmllaunch.jnlp
    TS: 2002-04-23 19:21:05
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="$$codebase" href="$$name">
       <information>
          <title>ljtest 1</title>
          <vendor>Lance</vendor>
          <description>just an example</description>
          <icon href="images/Save.gif"/>
       </information>
       <resources>
          <j2se version="1.2+"/>
          <jar href="1.0/testapp.jar" version="1.0"/>
       </resources>
       <application-desc main-class="Main"/>
    </jnlp>version.xml
    <jnlp-versions>
       <resource>
          <pattern>
             <name>testapp.jar</name>
             <version-id>1.0</version-id>
          </pattern>
          <file>testapp.jar</file>
       </resource>
    </jnlp-versions>web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
      <web-app>
         <servlet>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
            <init-param>
               <param-name>logLevel</param-name>
               <param-value>DEBUG</param-value>
            </init-param>
         </servlet>
         <servlet-mapping>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <url-pattern>*.jnlp</url-pattern>
         </servlet-mapping>
      </web-app>Things I have discovered (possibly in error?):
    1) I do not need to include the jaxp.jar and parser.jar files because I am using JDK 1.4
    2) I do not need to change my testapp.jar to testapp_V1.0.jar because I have included the the version.xml file in the 1.0 directory
    I keep getting the following error in WebStart when I loadup the jnlp:
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)I can get everything to work without version based downloads. Does anyone have any clue what I am doing wrong?
    Lance

    I found my own error. After loading up sun's reference implementation server in NetBean's debugger I noticed that it was only handling .jnlp files. Going back to the "Packaging JNLP Applications in a Web Archive" document I found my mistake. My web.xml files should have looked like this.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
      <web-app>
         <servlet>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
            <init-param>
               <param-name>logLevel</param-name>
               <param-value>DEBUG</param-value>
            </init-param>
         </servlet>
         <servlet-mapping>
            <servlet-name>JnlpDownloadServlet</servlet-name>
            <url-pattern>*</url-pattern>
         </servlet-mapping>
      </web-app>The difference being the <url-pattern> tag. It now tells the web server to handle all files not just .jnlp.
    This allowed me to download version based jnlp entries. I still can't get jarDiff things to work, but I will keep banging my head against the wall till I figure that out.
    Lance

  • How to get PERNR based on user ID

    Hi All,
    How to get PERNR based on userid.
    please help me in resolving this.
    Thanks for the support.
    Regards,
    Dhananjaya R E

    hope this will help u
    DATA:   t_pernr LIKE pa0105-pernr,
              t_email LIKE pa0105-usrid_long.
    STEP 1 - Find personnel number for UNAME
       SELECT SINGLE pernr
                 INTO t_pernr
                 FROM pa0105
               WHERE subty = '0001'
              AND endda >= sy-datum
             AND begda <= sy-datum
             AND usrid = p_uname.
    Employee record found*
    IF sy-subrc = 0.
    STEP 2 - Find email address for personnel number*
    SELECT SINGLE usrid_long
             INTO t_email
             FROM pa0105
            WHERE pernr = t_pernr
              AND subty = '0022'
              AND endda >= sy-datum
              AND begda <= sy-datum.

  • PAM-KRB5: account:  unable to get host based service name for realm

    I want a custom service to authenticate via PAM with Microsoft Active Directory Services on Windows 2003. kinit appears to work:
    Myserver% klist
    Ticket cache: /tmp/krb5cc_200
    Default principal: [email protected]
    Valid starting Expires Service principal
    Tue 01 Aug 2006 10:42:23 AM CDT Tue 01 Aug 2006 08:42:23 PM CDT krbtgt/[email protected]
    renew until Tue 08 Aug 2006 10:42:23 AM CDT
    Running a sample PAM consumer using 'winsamp' as its service name complains that Kerberos doesn't know the user. syslog reports: PAM-KRB5: account: unable to get host based service name for realm 'EXAMPLE.COM'.
    I'm stuggling to get any additional logging out of either PAM or Kerberos. Any advice appreciated.
    /etc/pam.conf:
    winsamp auth required pam_krb5.so.1 debug
    winsamp password required pam_krb5.so.1 debug
    winsamp account required pam_krb5.so.1 debug
    winsamp session required pam_krb5.so.1 debug
    /etc/krb5/krb5.conf:
    [libdefaults]
    default_realm = EXAMPLE.COM
    default_tkt_enctypes = des-cbc-md5 ; or des-cbc-crc
    default_tgs_enctypes = des-cbc-md5 ; or des-cbc-crc
    [realms]
    EXAMPLE.COM = {
    kdc = mykdc.example.com:88
    admin_server = mykdc.example.com
    default_domain = EXAMPLE.COM
    [domain_realm]
    .example.com = EXAMPLE.COM
    [logging]
    default = FILE:/var/krb5/kdc.log
    kdc = FILE:/var/krb5/kdc.log
    kdc_rotate = {
    # How often to rotate kdc.log. Logs will get rotated no more
    # often than the period, and less often if the KDC is not used
    # frequently.
    period = 1d
    # how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)
    versions = 10
    [appdefaults]
    kinit = {
    renewable = true
    forwardable= true
    PAM sample application synopsis:
    pam_start("winsamp", "someuser", &conv, &pamh);
    err = pam_authenticate(pamh, 0);
    if (err == PAM_USER_UNKNOWN)
    printf("don't know that user\n"); // <-- we always arrive here
    logout();
    }

    Part of the problem was that the Sun server's domain was not an exact match for the ADS domain. One was XXXX.EXAMPLE.COM and the other was just EXAMPLE.COM. Adding the equiv. domains in krb5.conf improved that situation.
    The sample PAM application still doesn't behave the way I want. When pam.conf is configured to authenticate against /etc/passwd, it works. Not when authenticating against ADS alone. I've come to the conclusion that PAM is for authenticating ONLY access to Solaris accounts.
    My application does not need a Solaris account. Am I using the wrong authentication API?

  • SC-Sourcing getting contracts based on category_id? BADI-bbp_sos_Badi?

    Hi,
    In Shopping Cart-Sourcing, by default it is selecting contracts based on ORDERED_PROD,PRODUCT (material no).
    But I want to implement search logic to get contracts based on CATEGORY_ID.
    All the contracts related to this category_id I want to get that contracts.
    Can any one give idea how I can get this?
    I tried to implement BADI -BBP_SOS_BADI
    Method -BBP_SOS_SEARCH
    I tried to use the FM - BBP_PD_INDEX_FIND and pass the contracts to the BADI but it is not working.
    Did anyone worked on this method, please let me know how to get the complete contracts info and sending back to BADI?
    Thanks in advance.

    Hi,
    there is one open point for me in your question. Would you like to search:
    1) only for product category contracts (which don't have product ID)
    2) for contracts, which category equals to the category ID of the SC item (practically also contracts should appear, which have from the SC items product ID different product ID)
    For the first case you only need to modificate the coding in the form SOS_LOCAL_CALL_PD (LBBP_SC_APPF87):
    Kontext-Block                                          
      else.                                                
        clear ev_error.                                    
    *   Delete heade contract from the SOS                 
    Delete-Block                                           
        DELETE et_con_list WHERE ctr_item_number = space.  
    Insert-Block                                           
    *    DELETE et_con_list WHERE ctr_item_number = space. 
    With this change in addition to the ORDERED_PROD search also product category contracts will be found.
    Regards,
    Peter

  • SC-Sourcing getting contracts based on category_id?

    Hi,
    In SC-Sourcing, by default it is selecting contracts based on ORDERED_PROD,PRODUCT (material no).
    But I want to implement search logic to get contracts based on  CATEGORY_ID.
    All the contracts related to this category_id I want to get that contracts.
    Can any one give idea how I can get this?
    I tried to implement BADI -BBP_SOS_BADI
    Method -BBP_SOS_SEARCH
    I tried to use the FM - BBP_PD_INDEX_FIND and pass the contracts to the BADI but it is not working.
    Did anyone worked on this method, please let me know how to get the complete contracts info and sending back to BADI?
    Thanks in advance.

    Hi,
    please see the answer:
    SC-Sourcing getting contracts based on category_id? BADI-bbp_sos_Badi?
    Regards,
    Peter

  • Can 'Region' field gets defaulted based on owner of account?

    Hi
    Can 'Region' field in Account sales information gets defaulted based on owner of account?
    Owner belongs to 'West' region then account should get defaulted with same region.
    I have defined 'West' as territory for this owner.
    Do anybody has expression available for making field default ?
    Thanks
    Santosh

    Mahesh,
    Read-only is an option, but only if you never want users to change the values. If your users always work in the same Div, Region, and Sub-Region, then it would be reasonable to lock it so they don't feel like they have to update it. If,however, you have users that work in more than one sub-region, and they need to update it, then you wouldn't make it read-only.
    As far as workflow is concerned, you would need it to update the values when the ownership changes, if that is a requirement. If you choose not to update it, then it might not reflect the correct values for the new owner. Your decision on whether or not to implement the workflow would be based on whether or not your business rules require it. Most of the time, customers want the data to reflect the correct values for the current owner, but not always, so check with your customers and let the requirements drive the decision.
    Good Luck,
    Thom

  • How to get CHARG based on matnr

    Hi Experts,
              I want to get PO batch(CHARG) based upon matnr.I am using BAPI_PO_GETDETAIL and receiving PO details by providing purchase order number.The line item table there is no field called charg. ..
    So How to get Charg based upon matnr
    Thanks & Regards
    Mathi

    Hello,
    Get from the table
    MCHA - Batches
    Regards,
    Vasanth

  • Fields not getting rendered based on fire partial action

    Dear Friends
    I have req like based on the selected value in message choice input (UOM), the other values(BOX,EACH,VOLUME) in page sholud render .
    These are my codes in AM and CO.
    ******************************AM***********************
        public void xxcreaterow() {
            OAViewObject vo = getuomVO1();
            System.out.println("am is getting executed");
            //Number=null;
             Number val = 1;
                if (vo != null)
                  if (vo.getFetchedRowCount() == 0)
                   vo.setMaxFetchSize(0);
                   vo.executeQuery();
                   vo.insertRow(vo.createRow());
                   OARow row = (OARow)vo.first(); 
                    //  row.setAttribute("RowKey", new Number(1));
                      row.setAttribute("RowKey", val);
                      row.setAttribute("BoxAttr", Boolean.FALSE);
                      row.setAttribute("EachAttr", Boolean.FALSE);
                      row.setAttribute("VolumeAttr", Boolean.FALSE);
    ************************   CO *********************************
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
          OAApplicationModule am = pageContext.getApplicationModule(webBean);
          OAViewObject vo = (OAViewObject)am.findViewObject("uomVO");
          am.invokeMethod("xxcreaterow");
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
         OAApplicationModule am = pageContext.getApplicationModule(webBean);
         OAViewObject vo = (OAViewObject)am.findViewObject("uomVO1");
                 OARow row = (OARow)vo.getCurrentRow();
                      if ("HandleUom".equals(pageContext.getParameter(EVENT_PARAM)))
            if (pageContext.getParameter("UnitOfMeasure").equals("Box"))
             row.setAttribute("BoxAttr", Boolean.TRUE);
                row.setAttribute("EachAttr", Boolean.FALSE);
                row.setAttribute("VolumeAttr", Boolean.FALSE);
               else
                     row.setAttribute("BoxAttr", Boolean.FALSE);
               if (pageContext.getParameter("UnitOfMeasure").equals("Each"))
                row.setAttribute("BoxAttr", Boolean.FALSE);
                   row.setAttribute("EachAttr", Boolean.TRUE);
                   row.setAttribute("VolumeAttr", Boolean.FALSE);
               else
                     row.setAttribute("EachAttr", Boolean.FALSE);
               if (pageContext.getParameter("UnitOfMeasure").equals("Gallon"))
                row.setAttribute("BoxAttr", Boolean.FALSE);
                   row.setAttribute("EachAttr", Boolean.FALSE);
                   row.setAttribute("VolumeAttr", Boolean.TRUE);
               else
                     row.setAttribute("VolumeAttr", Boolean.FALSE);
    How to resolve this plz help.
    Thanks
    Aravinda

    Have a fire partial action event enabled on text field 2, capture the event in processFormRequest of CO, throw an exception using throw OAException when textfield1 < textfield 2 or your required condition is met. You don't need javascript for this. I don't recommend using javascript in OAF. You have most of the features available in OAF (except popup alerts though which can be achieved as mentioned above but no popup window).
    Thanks
    Shree

  • Get Rows based on  value of a certain Attribute

    Hi guys,
    i was trying to get all the rows from the cache as well as the Database for my VO
    For that i used getFilteredRows() as well as findByKey() method.
    But i could not get any rows.
    Also i had a doubt for the findByKey() method. Do we need to use Primary key as Key or do can we use any attribute as the Key?

    Hi Pradeep,
    I think getFilteredRows() works only after executeQuery() has brought the rows to cache. I do not know if getFilteredRows() runs executeQuery() implicitly. Maybe you can use a ViewCriteria object in order to create a criteria based on the attribute, and then find it by this criteria.
    As for your other question, findByKey acts upon all attributes of the view object that are marked as Key attribute. You can mark any attribute as key, whether or not it is a primary key constituent, by setting the Key Attribute Checkbox on the Attribute Definition, inside the View Object Wizard.
    Hope it helps,
    Thiago

  • Query to get values based on a date range.

    11g.
    Hi there,
    I have a simple requirement(hopefully).
    I have a parameter which is basically a count range which when I pass the sql query should fetch the values from a column falling in that range.
    My table is item details
    Item                  cost          
    item1                   1
    item2                   10
    item3                   20
    item4                   3
    .I have a parameter which I have to pass to this query where items are listed based on the cost.
    So I want to select items which cost between 0 -10, 11-20, 21-30 and 31-40
    Now I am using Apex to show the count report like
    0-10      11- 20    21- 30   31- 40
      3             2           0          0            
    The numbers are hyperlinked and I pass the parameters based on which another report shows the details. So if the user clicks on number 3 in the report. The underlying query would be something like
    select * from item_Details where cost between 0 and 10.So I was wondering how do pass the parameter to the sql in the best possible way to get the costs based on the range?
    Maybe the parameters should be some code which can be decoded in the SQL?
    Any help or suggestions please?
    Thanks,
    Ryan

    Hi,
    Try this to pass the parameter in the query...
    select * from item_Details where cost between to_number(substr('0-10',0,instr('0-10','-')-1)) and to_number(substr('0-10',instr('0-10','-')+1,length('0-10'));
    Regards,
    Niha

  • Warranty id not getting determined based on the warranty counter

    Hi,
    We are trying to determine the warranty id from the counter reading.
    Scenario:
    We are confirming the vehicle and the business partner and create a service order . We are entering the reading in the service order and want to get the warranty product determined based on the counter reading.
    First free service at counter reading of 5000 kms
    Second free service at counter reading of 10,000 kms
    We have followed the following steps:
    1. Warranty product with Warranty basis as Counter dependant and Warranty counter data with the value.
    2. For the Vehicle object in relationships we have assigned a counter id.
    However we are unable to determine the warranty id
    Is there something that we are missing. Would really appreciate a solution.

    Hi Ayan,
    Firstly, whlich version of SAP CRM you are working on?
    If it is CRM 5.0
    Apply Note 1009244 - 'Counter attribute' field missing in CRM 5.0.
    This note will get the counter attribute field in the Counter creation screen.
    Check these steps again:
    1.  Create a counter warranty. Ensure nothing is excluded.
    2. Create a counter  and assign it prouct master or installed base component.
    3. If you have assigned it to a product master, in the service transaction enter the reference data as well.
        Ensure that warranty check profile has been assigned
    4. Once you enter a service product your warranty must get determined.
    5. If not, check the log in the warranty tab, it shall give u the details.
    Wish it helps.
    Regards,
    Shalini Chauhan

  • Non cumulative key figure is not getting filled based on inflow and outflow

    hi,
    i have a non cumulative key figure which is having inflow and outflow.
    i have these three info objects in dso.
    as i know non *** key figure is calculated based on inflow and outflow.
    i am getting values for inflow and outflow so non *** should be calculated based on this values.
    <b>but the collumn is blank in the dso</b>
    in that non *** keyfigure i have added two info objects in inflow and outflow.
    is there any other setting i nedd to do?
    please sugest me.
    its urgent

    Hi Venkat,
    Have you followed the process right. First Filling the Initial Stocks and then Inflow and Out Flow and then Delta. If you follow the process correctly then you can able to view the Data in the Reporting Level.
    For Initial Stocks the Marker Should be set. For Inflow and Outflow the Marker should not be set.
    Hope This Helps,
    Regards,
    rik

  • Get pernr based on company code in logical databse

    Hi,
        When using the get pernr event, all the pernrs that I get are in the ascending order  I want them first grouped based on the company code and then on pernr.
    Any suggestions would be appreciated abd suitably rewarded.
    for ex: get pernr.
               write:/ pernr, bukrs.
             end-of-selection.
    result:   00000099 1001
              00000002 1003
    Regards
    Vick
    Message was edited by:
            vick vennav

    for ex: get pernr.
    write:/ pernr, bukrs.
    end-of-selection.
    result: 00000099 1001
    00000002 1003
    We are sending the payroll information to the 3rd party for pay check purposes, at my client side they have inserted a custom include in the standard program and populating the information in a flat file which needs to be sorted first based on company code and then on pernr. If I try to do it later,the code is becoming a mess, so I want to know is there a way to get pernr using logical database whose order is based on company code.
    Regards

  • Get Division based on Product

    I have created one material using COMMPRO1 transaction and i have assigned Division for it.
    Now i want to know where that division gets stored...so that i can retrieve the division based on product guid.
    I want the table name for fetching the division based on product..
    Poits are sure....

    Hi
    as per my knowledge Org data which contains division and Product hierchy should match otherwise mismatch or data in consistency between division and product hierarchy occus.
    So go to division or product field place mouse there F1 then go to technical data there you will find table name,label name,field name from table it is coming.
    reward if helpful
    regards

Maybe you are looking for

  • How do I merge 2 Apple IDs?

    Basically I have 2 Apple IDs. I have my primary one that I set up years ago with my Hotmail address & it has all my iTunes purchases & iPhone stuff associated with it. My other one was a mobileme account, that I have since "upgraded" to an iCloud acc

  • Concurrent Manager cannot find information for your conc req in FND_USER

    Dear All, Our customer is facing this issue while submitting conc requests. The requests end up in a Error with the following message in the Diagnostics. Concurrent Manager cannot find information for your concurrent request from FND_USER Cause: Conc

  • Is there any way to make your time line layers different colors ?

    Scrolling up & own the time line panel is a bit of a pain trying to find certain objects on the time line.i learn about doing th option click o why ever key it is that allows you to select the item on your stage which highlights the object on your ti

  • Solaris 2.6's compiler.

    I work in a O.S. Solaris 2.6 and when compiled a program with headerfile, the compiler show the following message: " ld: elf error: file 'path'/my_extern.h unknown type, unable to process using elf (3E) libraries.". Can you help me? Thanks.

  • Second DB Connection to the Standard R/3 Database in Open SQL?

    Is there any explicit way in Open SQL to open a second DB connection to standard R/3 database? I want to save some data to the database, but do not want to interrupt the connection and its transaction context. So I need to open a second DB connection