Query: automatic po?

Hi Gurus,
In PR, i m mentioning material description, qty, etc.
Is automatic po possible w.r.t this PO?
thanks in advance..

Please follow the steps
1) Material Master purchasing view tick automatic PO check box
2) Vendor Master purchasing view tick automatic PO check box.
3) Maintain Source list for Vendor & Material.(ME01)
4) Maintain Purchase Info Record.(ME11)
5) Create a Purchase Requisition.(ME51)
6) Use T.Code: ME59 & execute for PR for vendor, you will be able to create automatic PO.
During creation of PR , select check box of Source Determination in the 1st screen of ME51 /ME51N
Ensure that Purchase Info Record should be there.
If you have more than one vendor then fixes only one vendor in source list.
Hope this will help you

Similar Messages

  • How to execute the output of the below query automatically

    Hi All,
    I want to execute the output of the below query automatically, instead of manually copying it and execute.
    select 'alter database ['+name+'] set recovery simple' from master.sys.databases where database_id > 4 and state_desc = 'online'
    Please provide me a script to do this.
    ThanK
    Kate

    EXEC sp_MSforeachdb N'ALTER DATABASE [?] SET recovery simple';--- This will set the recovery model for all the system database.The query provided by Vikash16, meets my requirement. Thank you.

  • Oracle Discoverer Plus - Don't run query automatically

    I have, in the Options tab in Oracle Discoverer Plus, a check mark next to not run a query automatically. This is not working when I have several worksheets in my report. After I run one worksheet and click on the next (tab) worksheet it automatically runs that report with the old parameter values thereby providing ambiguous results.

    Hi,
    Try editing the parameter and selecting "Allow a different value in each sheet".
    Rod West

  • Detail blocks in tab pages not queried automatically

    Hi
    I have some generated forms with the following layout:
    - in the content canvas top, the master block
    - below the master block (in the same content canvas), a tab canvas with 2 (or more) pages with detail blocks
    When I query the master block, the detail blocks are not automatically queried, the user must navigate to them to make the automatic query work.
    I found out that it is something related to the blocks not being in the same canvas. But visually, they are in the same canvas, I would like that the detail blocks were queried automatically.
    Is this possible? I think this layout is very common and useful, I am sure Designer has some way to do this.
    Thanks
    Luis Cabral

    Hi
    I found it - I just set BSCSCP preference correctly, and now it works fine!

  • How to query automatically in quickQuery component

    Hi,
    I have a quickQuery component and a table in the page. On entering the page initially, I would like to query automatically to show all data in the table. Currently, no data is shown in the table until doing a search in the quickQuery component. I know that for query component (not quickQuery) we can check the "Query Automatically" box in the UI Hints of the Named View Criteria. However, for quickQuery, it is based on All Query Attributes. So where can we set to query automatically?
    Please advise.
    Thanks.
    -Mina

    Here is the code snipplet:
    <af:panelHeader text="Workforce Relations" id="ph2">
    <af:quickQuery label="Search" searchDesc="Search" id="qryId2"
    value="#{bindings.ImplicitViewCriteriaQuery.quickQueryDescriptor}"
    model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}">
    <f:facet name="end">
    <af:commandLink text="Advanced" rendered="false" id="cl1"/>
    </f:facet>
    </af:quickQuery>
    <af:table value="#{bindings.ItasResourceRelationsVO1.collectionModel}"
    var="row"
    rows="#{bindings.ItasResourceRelationsVO1.rangeSize}"
    emptyText="#{bindings.ItasResourceRelationsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.ItasResourceRelationsVO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.ItasResourceRelationsVOCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.ItasResourceRelationsVOCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.ItasResourceRelationsVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasResourceRelationsVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="resId1" width="100%"
    columnStretching="column:resId1c1"
    editingMode="clickToEdit"
    partialTriggers="::cb1 ::cb2 ::cb3 ::cb4 ::cb5 :::qryId2">
    </af:table>
    </af:panelHeader>
    If I removed the <af:quickQuery> component in the page, then the table renders with data on the first load of the page. But if <af:quickQuery> is added, then no data is rendered in the table until a search is performed. So how can the page still renders with data on the first load of the page when <af:quickQuery> exists?
    Any advice is appreciated.
    Thanks.
    -Mina

  • Multiple sheets with the same query automaticly

    Hi gurus,
    I want to create a workbook with one query and one input variable.
    The input variable is the 0PLANT. And I want to execute the same query so many times as  0PLANPLANTs has the 0PLANT and each 0PLANPLANT appear in different sheets.
    There are different 0PLANTs with 4,5,6,... 0PLANPLANTs and the workbook has to be valid to all 0PLANT and automaticly generate 4,5,6,... sheets depending of the number of 0PLANPLANTs has the 0PLANT.
    Any idea?
    Best regards

    But, what macros? I don´t have idea over macros excel´s.
    Thanks for your answer.

  • Master Detail Query automatic query ..Urgent help

    In my last question, I asked about how to automatically query a form based on table or master detail and gota good answer. What I actually need to do is also query on the detail, for example
    select a.user_id, b.week_ending,b.mon_hrs,b.tues_hrs
    from emp_profile a, time_reporting_week b
    where user_id = portal30.wwctx_api.get_user
    and week_ending = '02-JAN-02'
    and a.user_id = b.user_id
    So I know that I can query on master table which is emp profile, but I also need to query on week ending which is in detail. Do I change the clause in my form pacjage?Or should I change something in Additional Pl/sql ??

    There are two ways to achieve this. Both methods have some drawbacks, so please go through them and choose the one that suits you.
    Method 1:
    =========
    This method does not require altering the form package.
    Assumptions : The detail table has a column named WEEK_ENDING.
    Steps :-
    1> Edit the form and select the query button in the left frame of the master section.
    2> For the pl/sql button event handler, choose the action as Query and replace the default code with the following :-
    declare
    l_where varchar2(4000);
    l_where_pre varchar2(4000);
    l_where_post varchar2(4000);
    l_where_pos integer;
    l_week_ending varchar2(4000);
    l_lang varchar2(4000);
    begin
    p_session.get_shadow_value(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_WEEK_ENDING',
    p_index => 1,
    p_value => l_week_ending,
    p_language => l_lang);
    doQuery;
    if l_week_ending is not null then
    l_where := p_session.get_value_as_varchar2(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_DETAIL_WHERE_CLAUSE',
    p_index => 1
    l_where_pos := instr(l_where,' WHERE ');
    l_where_pre := substr(l_where,1,l_where_pos+6);
    l_where_post := substr(l_where,l_where_pos+7);
    l_where_post := 'week_ending = '||l_week_ending||' and '||l_where_post;
    l_where := l_where_pre || l_where_post;
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_DETAIL_WHERE_CLAUSE',
    p_value => l_where,
    p_index => 1);
    QueryDetail(
    p_mode => 'QUERY' ,
    p_session => p_session);
    end if;
    end;
    3> Click on OK to finish editing the form.
    4> Run the form - enter query criteria for the master fields and enter the week-ending criterion in the 1st detail
    field under Week Ending. Click the Query button.
    Advantage:
    You will not lose your changes even if you edit the form later on.
    Drawback:
    In this method, the querying process will be bit slow as we are querying for the detail records twice.
    Once through onQuery and the second time after constructing the new where clause with the additional conditon
    for the detail rows.
    Method 2
    ========
    This method requires altering the form generated package.
    Steps :-
    1> In the form package, you will find a onQuery procedure. Towards the end of the procedure, you will find a statement like
    "_detail_where_cond" := "_detail_where_cond" || ' WHERE ' || ...
    2> As the name of the variable suggests, this where condition will be used while querying the detail block. You need to
    add a new clause to this for the week_ending column. Prior to that you need to fetch the shadow value for A_WEEK_ENDING.
    3> Your altered code should look something like :-
    p_session.get_shadow_value(
    p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_WEEK_ENDING',
    p_index => 1,
    p_value => l_week_ending,
    p_language => l_lang);
    if l_week_ending is not null then
    "_detail_where_cond" := "_detail_where_cond" || ' WHERE WEEK_ENDING = ' || l_week_ending || ' AND ' || --existing code
    else
    --- use the original code here
    "_detail_where_cond" := "_detail_where_cond" || ' WHERE ' || ...
    end if;
    4> Compile the package body and run the form.
    Advantage:
    In this method we will be querying the detail rows just once. Unlike in method 1.
    Disadvantage:
    You will lose your alterations once you create a new version of the form by editing it. You need to recompile the package
    after re-introducing your changes.

  • SuPM - Data from SAP BW Query(Automatic) and Manual not displayed in KPI

    Dear Forum,
    I am also, currently working on a project implementing BO SuPM Version 1.0. Landscape is ECC -> BI -> SuPM dashboards.
    I have created a KPI in SuPM dashboard.
    Case 1 : Automatic data collection - This KPI is marked for Automatic data collection. So, maintained Scripts with Connectivity and SAP BW Query name. I save this KPI and include in a new report and Run it. There are no records displayed.
    Case 2: Manual data collection - This KPI is marked for manual data collection. So, maintained values in SuPM portal itself. I save this KPI and include in a new report and Run it. There are no records displayed.
    Could you please help me how KPI in SuPM be filled manually and automatically ( from BW Query)?
    Thanks,
    Best Regards
    PhaniRaj

    Dear Phani,
    First of All, you should have a framework created and assign the Core KPI to that framework and specify the frequency of the framework (Say Monthly) and Activate it.
    Upon Activation, if it is a Manual Data Collection, then you should perform Role Assignment ie specifyinfwho would be the Business Contributor & Approver for ur Manual KPI.
    After this, you have to run this program [/SRCORE/DATAREQUEST] in SE38 in the backend system which wil create a data request,
    Later you should login as Business Contributor and go to MY Data Requests and then provide the data for the Month specified. Then login as Approver and under Approvals option, you should Approve the data. Now, you should go to SuPM application and select that Month in the dimension and KPI and then RUN the Report.
    For Automated Data Collection, you should have to initially creata a Query (SAP/ BW) and specify the name of the query in SPRO--> Sustainability Performance Management --> Automated Data Collection --> Maintain Queries (SAP/ BW) -->  Specify that Query name and the Connector ID (SM59).
    Now go for KPI creation and specify the Query name in the KPI and then Assign the KPI to the framework and activate it.
    Upon Activation, You should RUN the program /SRCORE/AUTO_DATA_COLLECT. Now, select this KPI in the report and RUN the report.
    If you perform these actions, you will get the values in the report.
    It can be checked in the backend application, either by checking the Process chain[RSPC] or by checking the Infocube if the data is loaded into the Infocube or not.
    Let me know if you face any problems...
    Regards,
    Raghu

  • Unable to setup Power Query automatic refresh in Power BI Sharepoint Portal as per instructions

    Followed all instructions to setup a PowerQuery connected data source for automated refresh but no luck. Keeps giving the following error message. A connection could not be made to the data source with the Name of 'TestConnection' when trying to test the
    connection.
    Here are the exhaustive steps.
    1. Created an excel file that uses power query to connect to an On Prem database
    2. Created a powerview against the resulting data set (stored in data model/powerpivot)
    3. Setup a data management gateway on O365 Power BI Admin center
    4. Installed Data Management Gateway and associated keys on the On Prem server (established connection handshake successfully)
    5. Created a data source in Power BI Admin center, specified Power Query as the data source, copied and pasted Power Query connection string from excel file, validated tested connection for data source
    6. Uploaded the report file to Power BI site
    7. Now, when trying to setup the automatic refresh, it pulls the information for the associated connections in the file correctly. However when trying to test the connection, constantly just returns with the following message
    A connection could not be made to the data source with the Name of 'TestConnection'. Correlation ID: c3d2a19b-f03d-4b14-8d5e-8fe0ed103238
    It looks like the DMG based update is still half baked. What is missing here since all of the data connection validation and handshake steps for gateway and data source works correctly. Why is it that the Powerquery based excel file is unable to leverage
    the DMG and datasource to connect and pull data?
    Any thoughts or guidance, much appreciated.

    Everything,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to generate a query automatically?

    Hello,
    I set up a PreparedStatment pstmt = conn.prepareStatment(" select distinct ? from table ")
    and then
    pstmt.setString(1, "country")
    and I use ResultSet rs = pstmt.executeQuery()
    but the result is not what I expect.. It only returns "country"
    if I change it to stmt = conn.createStatement("select distinct country from table")
    it works
    So, how can I generate a query like this automatically?
    Thanks!

    The query you posted means "return the first argument once for every row in the table called 'table'." What is it you are trying to do?
    And, you may want to post this on the JDBC forum rather than here.

  • Query-Automatic assignment of Record type to Book of Business-Pls help me

    I have a query about Automatic assignment of record in Book of Business.
    Using 5 record types & 50 regions as a part of Book of Business. You can say 50 sub-books.
    I want to assign these 5 record type to particular Book when to create & modify.
    Eg. When I create new account it should be automatically assigned to Book 1 & later I modify this account for reassignment to new user then it should be automatically added to the new user’s book.
    I need to create workflow for this as Assign to book criteria for both when new record saved & when modified record saved.
    I have tried this & its working; however problem is with the creation of two many workflows.
    50 region (Books) x 5 record types * 2 - Create/modify flow = 500 workflows for one country!
    If I am right then I can assign 1 record type with action as create or modify in 1 book only.
    How to reduce these no. of workflows?
    Pls help me out in this regard.
    Regards
    Mangesh

    Mangesh,
    I am sorry to tell you that there is no quick answer to this but i will say that maybe you need to rethink your book structure and their requirements here.
    I have 4 types and 7 regions so you need to create books to allocate all these on create and also modify. Customers have raised concerns with this to Oracle and they are looking into it but they are along way from completing this. Sorry to spoil your day but i would strongly ask you to consider your books structure before you complete this.
    Otherwise if you are using webservices you could assisgn the book when the record is piped into the CRM and then you only need to complete the modify workflows.

  • Workbook doesn't pick up latest version of query automatically

    Hi all
    has anyone come across the problem in BI7 where an alteration to a query already existing in a workbook is not automatically picked up.
    My workbook continues to use the old version of the query, unless I remove it and respecify it within the workbook.
    Is there something I should be doing to tell the workbook to pick up the latest version?
    Thanks
    Hayley

    Hayley,
    No worries - when you select Properties you should get a dialogue box with four tabs. Display - Interaction - Column Width and Information. Select the Interaction one, looks like the Return to Global Definition on refresh is not selected (which is the default).
    If you select it, save your workbook and then refresh your query - you should see the current version of your query in the workbook.
    Regards
    Gill

  • Caching HQL query automatically?

    Hi,
    Is it possible with tangosol to cache the result set of the Hibernate Query Language automatically?
    For example:
    List result = Session.createQuery (“select items from ItemTable items�?).list ();
    The above query fetches me around 20 records. Is there a way to cache all those records automatically?
    If possible then what are the configuration changes I need to make in hibernate and tangosol and if you dont mind please provide me related document link.
    Regards,
    Hiisi

    Hi Hiisi,
    Please take a look at Section 19.2, “The Second Level Cache and Using Coherence and Hibernate.
    Regards,
    Dimitri

  • PROBLEM refresh query automatically

    Hi
    We want to do a analytic dashboard with the web application designer.
    our problem is that we want the query to refresh automatically, for example every 2 minutes, due to the constant changes of the information.
    Does someone know if with the bw 7.1 it is possible to refresh the model periodically without returning to execute the query?
    thanks and best regards.

    thanks for the reply, there is an option in the iviews called "Cache Validity Period" but they dont want the portal, only bex to acces the information.
    thanks again

  • Stop from executing Query automatically

    Hi all
    I have the problem, that in a reports region the query start automatically after entry in the page. On that page there exists an item which is used to insert a search string. Now at entry to the page the search item is NULL and therefore the automatically started query brings 'no data found'.
    I only want the query run when the user presses the go button.
    Thanks in advance
    Best regards
    Martin

    Hi martin,
    Take a look at (the bottom of) thread Tabular Form
    Fred.

Maybe you are looking for

  • Printing a multipage document (7 pg) only prints 1 page windows 7

    Printing a multipage document (7 pg) only prints 1 page windows 7. The original document shows 7 pages but when going to print preview only show pg 1 of 1

  • Help in FI-AR report

    hi gurus, i have a requirnment wherein i need to calculate wtd.average days..for tis i need to subtract current day - net due date which are chars..how can i achieve tis..have sap exit for current day but how do i use it....help will be appreciated t

  • Menu in ALV grid output

    Hi all, Iam in need of a code that may help me out to get my cuztomized menu for my alv grid output. Please give your suggestions, Thanks, Rajesh.

  • HTTP Response File not Found

    Hi, I have been working on this for days and could not get it resolved. I am using UCCX 8.5 Pre to receive an http trigger and send response with some parameters and variables mapping. I followed the scripting guide to create the html template and do

  • Camera turns dark

    Hi everybody. I have my iPhone4 for about 5 weeks now and I really like it. But at times I have a bit of a problem using the camera. The camera works fine but suddenly the cam turns dark. Restarting the camera app doesn't help. When I move the camera