BD10 returning all data in segments (MARC, MVKE)inspite of filtered data of BD64

In BD64, Under MATMAS Data filtration is set on Sales Org and Distribution Channel. When I am sending material from BD10 , I need to get these values ( Sale Org / Distribu Channel ). B'cos on the basis of these values I need to fetch PLANT from MVKE table by passing SOrg and Dchl .
I got Sale org and Dis Chl but now the issue I am getting  all info from MARA, MVKE and MARC for the material rather I need filtered value only..
I have attached one image where it shows filtered Sale org and Dist Chl, but when i executing BD10 , it is returning data of respective material of all plant , sale org and distribution channel..
Ref Post : BD64 Filtering Value (Sale org/ Distri Channel) need to get in EXIT_SAPLMV01_002
Please suggest.
Regards
Ankesh

Hi,
if suppose if youb want to replace the earlier segment fields  then update the MARC segment after reading the MVKE segment .
example code  some thing like below
tables: ,E1MVKEM,E1MARCM
loop at  EDIDD INTO WA1 WHERE  SEGNAM = ' E1MVKEM'.
E1MVKEM = WA1-SDATA.
READ TABLE EDIDD INTO WA2 WHERE SEGNAM = 'É1MARCM'
IF SY-SUBRC = 0.
E1MARCM = WA2-SDATA.
SELECT SINGLE DWERK FROM MVKE INTO E1MARCM-WERKS WHERE
MATNR = E1MVKEM-MATNR
VKORG = E1MVKEM-VKORG
VTWEG = E1MVKEM-VTWEG.
WA2-SDATA  = E1MARCM.
MODIFY   EDIDD FROM WA2 INDEX SY-TABIX transporting sdata.
ENDIF.
endloop.
Regards,
Venkat

Similar Messages

  • XL Reporter Parameter that returns all data if not used

    Is there a way to use a parameter on a field, but if the user doesn't select a value, return all rows? I have a report that returns a bunch of data about items. I would like one report where if the use chooses to narrow it down to a specific item they can, but if they choose not to narrow it down, it would return all items. I can only get it to do one or the other, but not both in one report.
    Thanks

    I have a parameter setup for the ItemCode and I tried to assign it * for its default value, but it returns nothing. If I enter a valid item code it works, but it seems as if I put an * in, it looks specifically for that rather than treating it like a wildcard. If I remove the parameter and put the *, it returns all. I want the parameter available, but if they don't want to use it I would like to return all records.

  • CAML Query returning all items with date condition

    HI,
    I have a problem doing a query with CAML over the elements of a calendar in SharePoint 2013
    I just want to retrieve all items, which have been modified on a particular date. But below query returns all items from the Calendar.
    Any suggestion how to get specific items from the calendar. The same issue exists for start date  and end date.
      var oWebsite = clientContext.get_web();
        this.collList = oWebsite.get_lists();
        var camlQuery1 = new SP.CamlQuery();
       camlQuery1.set_viewXml(
       '<query><Where>'+
          '<Eq>'+
             '<FieldRef Name=\'Modified\'  IncludeTimeValue=\'TRUE\'/>' +
             '<Value Type=\'DateTime\'>2014-02-24T12:00:00Z</Value>'+
          '</Eq>'+
       '</Where></query>');
        this.collListItem1 = oList.getItems(camlQuery1);
        clientContext.load(collListItem1);

    Firstly try to make this change in your query and see if that helps
    camlQuery1.set_viewXml(
    '<View><Query><Where>'+
    '<Eq>'+
    '<FieldRef Name=\'Modified\' IncludeTimeValue=\'TRUE\'/>' +
    '<Value Type=\'DateTime\'>2014-02-24T12:00:00Z</Value>'+
    '</Eq>'+
    '</Where></Query></View>');
    Geetanjali Arora | My blogs |

  • Return all data without selecting any value in query filter

    Hi,
    I created a document with query filters(prompt, LOV). But sometimes users don't want to select any value and just want to return all data in the report.
    I can't find a way to achieve this. Does anyone know how to implement this ?
    Thanks.

    Hi,
    you can modify the "select" statement for your LOV and add an additionaly keyword like "ALL" in your list of values. Then you can modify your where-clause to handle the "ALL" keyword.
    E.g. (<your condition>=@prompt(....) or 'ALL'=@prompt(......) )
    Regards,
    Stratos

  • Query to return ALL rows even those with zero counts

    Hi,
    The following query will return only those rows that have a non zero count value:
    select c.id, a.name, count(*) as XYZ from CON c, CUST a
    where c.help !='1' and (c.id = a.id) group by c.id, a.name order by c.id;
    The results are:
    1 ME 3
    3 YOU 4
    What i want is to return all rows in CUST and the count, XYZ, that correspond to each row in CUST that matches the whare condition above, even if the count is zero.
    ie
    1 ME 3
    2 WE 0
    3 YOU 4
    Can this be done?

    You may want to get the counts then do the outer join. If you simply count with an outer join you will get 1 for 'WE' because there is a row in the cust table with 'WE'. This may work for you;
    with
      cust as (
       select 1 id, 'ME' name from dual union all
       select 2 id, 'YOU' name from dual union all
       select 3 id, 'WE' name from dual),
      con as (
       select 1 id, '2' help from dual union all
       select 1 id, '2' help from dual union all
       select 1 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual)
    -- end of test data 
    select a.id, a.name, nvl(c.cnt,0) xyz
    from cust a, 
       (select id, help, count(*) cnt
       from con
       where help !='1'
       group by id, help) c
    where a.id = c.id(+)

  • Return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST

    Hi,
    How to return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST?
    For example : if the row has 3 columns then after selecting the particular row, the RETURN_TAB internal table should contain all the three column values.
    Regards,
    Raghu

    Hi,
       Try the following...
    DATA : it_fields like help_value occurs 1 with header line.
    data: begin of w_vbap,
            vbeln      like vbap-vbeln,    
            posnr      like vbap-posnr,   
            werks      like vbap-werks,  
          end of w_vbap.
    data: i_vbap   like w_vbap   occurs 0 with header line,
             w_fields type help_value,
          i_dfies type table of dfies,
          i_return_tab type table of ddshretval with header line,
          i_field  type dfies.
      select vbeln posnr werks
          from vbap into table i_vbap up to 5 rows.
    if sy-subrc = 0.
       sort i_vbap by vbeln.
    endif.
      clear it_fields[] , it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'VBELN'.
      it_fields-selectflag = c_on.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'POSNR'.
      it_fields-selectflag = space.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'WERKS'.
      it_fields-selectflag = space.
      append it_fields.
      loop at it_fields into w_fields.
        i_field-tabname   = w_fields-tabname.
        i_field-fieldname = w_fields-fieldname.
        i_field-keyflag   = w_fields-selectflag.
        append i_field to i_dfies.
      endloop.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield               = 'VBELN'
         window_title           = 'Select'
        tables
          value_tab              = i_vbap
          field_tab                = i_dfies
          return_tab             = i_return_tab
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      read table i_return_tab into w_return_tab index 1.
      if sy-subrc = 0.
      endif.
    Regards,
    Srini.

  • Error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element

    Hi All,
    I am facing below mentioned error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element
    Error: 1 (Field level error)
      SegmentID: NTE
      Position in TS: 70
      Data Element ID: NTE02
      Position in Segment: 2
      Data Value:
      3: Too many data elements
    For Eg: NTE*GEN*My Text *goes here
    Here, NTE02 should be My Text *goes here. So, how can I use "*" here without changing anything in the EDI message?
    Can it be done?
    Thanks.

    Sorry, no.
    X12 does not support an escape character so whatever is used for delimiters become reserved characters.
    If you want to allow '*' in the data, you will have to chooser a different Element delimiter.  The receiver should read the from this from the ISA Segment so it's supposed to be dynamic but that's not always the case in practice.

  • Regular Report Not Returning All Rows

    Greetings,
    On APEX version 4.1.1.00.23 Using latest versions of Chrome and IE. I found some threads that discussed this aspect some, but not to the extent that is helpful to my situation.
    I know it is crazy to have APEX return 40K+ rows on a report, but I have a need to do so. I need to return that many rows from a table so that an APEX page can be opened via Excel and then have an Excel macro run over the report results and import all 40K+ rows into a worksheet. As I said, that's crazy, but the decision isn't mine. :-) We have the macro working and it passes parameters to the APEX page and imports data from the APEX page.
    Also, the report has 14 columns on it, not that many.
    Given the requirement above I have a regular report page that only has the report and 2 page items on it. The page items contain values that are passed via Excel and are then used in the WHERE condition of the report. Using the same WHERE condition, when I run the SQL for the report outside of APEX it returns 46,840 rows. I have the both the Number of Rows and Maximum Row Count settings set to 50000. And, I have the Pagination Scheme set to Row Ranges X to Y of Z (with pagination).
    When I run the page and enter the selection criteria the report only returns 15,500 rows. Yes, that's a lot rows. And, it takes about 5 minutes to populate. But, it doesn't return ALL of the rows. Also, the pagination suggests that all rows were returned because it reads - row(s) 1 to 15500 of 15500. I have changed the pagination and max rows settings a lot to see of it's just a matter of having the correct report setting. I've yet to find a setting that will cause the whole 46840 result set to be returned.
    It may end up that the report selection needs to change in order to return fewer rows. But, regardless of that why isn't APEX returning the complete result set now? And, is there a way to force it to return the complete result set regardless of the size?
    Any suggestions are appreciated.
    Thanks, Tony

    cloaked wrote:
    Thanks for the response. Yup, you're correct. Downloading to a CSV might be better. I've set reports up that way many, many times. I have even developed pages that import from a CSV into APEX using PL/SQL, years before it was an APEX feature. I initially set the report up to allow it to be downloaded, but the user doesn't want it to work that way.
    The worksheet will be used by a lot of people in our accounting department and they want the process to be as simple as possible. Right now Excel opens up the APEX page, logs into the application, passes parameters to it for the month and company, hits the Select button, waits on the report to build, then automatically imports it, and finally closes the page. It is quite slick. Yes, it takes 5 minutes to run, but the user is OK with that given what the automation provides.
    So, in order for the automated import to work properly all 45K rows need to display on one page, without pagination. I currently have pagination on the page simply to determine if APEX is returning all of the rows.A process of this nature might work better using an export: XML or export: CSV report template, which won't go anywhere near pagination. When a page containing a report using these templates is requested APEX sends the report results in XML or CSV format rather than rendering the page. This should be faster, avoid complications with pagination, and be easier to parse in Excel.
    Previous thread along similar lines: +{thread:id=2285213}+

  • Loop Not Returning All Rows

    I finally need to turn to the forum after trying for a few days to resolve my problem I decide to turn to the Oracle people for help.
    The following code below does two things:
    1. If I have the get_menu_label in side of it's own loop it never returns
    2. If I take the get_menu_label out side of it's own loop it returns but does not return all the data.
    DECLARE
    -- GETTING THE DATABASE NAME
    CURSOR get_db_name
    IS
    SELECT DATABASE
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY DATABASE
    ORDER BY DATABASE ASC;
    -- GETTING THE OBJECT_ID FOR EACH DATABASE
    CURSOR get_object_id_db (l_db_name VARCHAR2)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_db_name;
    -- GETTING THE GROUP NAME
    CURSOR get_gp_name
    IS
    SELECT group_name
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY group_name
    ORDER BY group_name ASC;
    -- GETTING THE OBJECT_ID FOR GROUP WITH GP NAME AND DATABASE
    CURSOR get_object_id_gp (l_gp_name VARCHAR2, db_id NUMBER)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_gp_name AND parent_object_id = db_id;
    -- GETTING MENU LABEL
    CURSOR get_menu_label (l_db_name VARCHAR2, l_gp_name VARCHAR2)
    IS
    SELECT menu_label
    FROM uaf_mfgp_menus_and_groups_vm
    WHERE DATABASE = l_db_name AND group_name = l_gp_name;
    got_object_id_db NUMBER (20);
    got_object_id_gp NUMBER (20);
    got_db VARCHAR2 (100);
    got_menu_label VARCHAR2 (200);
    BEGIN
    FOR c1 IN get_db_name
    LOOP
    FOR c2 IN get_gp_name
    LOOP
    OPEN get_object_id_db (c1.DATABASE);
    FETCH get_object_id_db
    INTO got_object_id_db;
    OPEN get_object_id_gp (c2.group_name, got_object_id_db);
    FETCH get_object_id_gp
    INTO got_object_id_gp;
              CLOSE get_object_id_db;
    CLOSE get_object_id_gp;
    OPEN get_menu_label (c1.DATABASE, c2.group_name);
    LOOP
    FETCH get_menu_label
    INTO got_menu_label;
    END LOOP;
    CLOSE get_menu_label;
    DBMS_OUTPUT.put_line ( 'GP_OBJECT_ID= '
    || got_object_id_gp
    || ' '
    || 'MENU_LABEL= '
    || got_menu_label
    END LOOP;
    END LOOP;
    END;
    /

    Javier, this the wrong way to use PL/SQL. Oracle SQL can do all this for you using JOINs.
    This code, even if it did work, would be terrible slow - unable to scale with data volumes.
    This code breaks a few fundamental Oracle rules:
    - row-by-row processing using PL/SQL
    - huge number of context swicthes per PL/SQL loop iteration
    - not maximizing SQL and minimizing PL/SQL
    I suggest you trash this code and write a SQL JOIN instead.

  • Parameter not returning all values

    I have a crystal report built off an oracle DB.  For one parameter it is not returning all values.  I can display data or the entire table it shows me all values, but when i build a parameter it only shows me through August.  It is a date/time field.

    check the following thread
    [Dynamic Parameter only showing 1000 records when Crystal report is run.;
    regards,
    Raghavendra.G

  • Georaster return all values in array

    Hello,
    I want to return all values of the raster in a array, to display it in a web page.
    Is there a function which return that values in one query ?
    Thanks

    So far, there isn't a function which returns cell values in an array, but you can call SDO_GEOR.getRasterSubset(*)  to get raster data in a blob, and then using functions defined in the dbms_lob package to get raster data.

  • How to return efficiently filtered data

    Dear all,
    I have a database ( SQL server 2012) which is based from AW sample db where I took some sample table design to cover my issues.
    My database will host a big list of product organized in category and sub category. From my client application I will provide a FIlter UI where user can defined filter criteria like Price, category name, sub category, name for instance.
    I need to build a querry based on given criteria in order to return filter data in an efficient way. In order to get correct data back, based on db structure I will have to handle quite many joins.
    What is the proper way to get filtering data out ?
    -should I handle it from a single store procs and return the list of matching product ?
    -should I handle separate view for each criteria and merge them all in a single view ?
    - Any build in feature in SQL ?
    I have never use such efficient criteria constraint that I need to implement, thanks for help
    regards

    I think you need read Erland's great article
    http://www.sommarskog.se/dyn-search-2008.html
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Tuning code to return results for EVERY DAYS even if there is no data.

    Hi,
    SELECT a,b,c,DAY (some days aren't in the results because the is no data for this day)This code returns all days of the month
    SELECT DAYS_OF_MONTH FROM DUAL....How can I use both queries together so that the result returns data for all days (if no data it will write 0)
    Someone said a union would do the trick. I was unable to make it work.
    Regards,
    THKKK
    Edited by: The Hong Kong King Kong on May 4, 2010 7:36 AM

    Hi,
    So this is what I've got and it does not compute. ( It's giving ORA-00904 DAYSOFMONTH NOT VALID IDENTIFIER --> DAYS_OF_MONTH = SERV1.DAY(+)
    WITH all_days AS
    SELECT
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'DD') *DAYSOFMONTH*
    FROM DUAL
    CONNECT BY LEVEL <= TO_NUMBER(TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-1)),'DD'))
    SELECT *all_days.DAYSOFMONTH*, nvl(SERV1.DAY,'TOTAL MONTH:') DAY,
             nvl(SUM(SERV1.GOOD),0) GOOD1,
             nvl(SUM(SERV1.WRONG),0) WRONG1,
             nvl(SUM(SERV2.GOOD),0) GOOD2,
             nvl(SUM(SERV2.WRONG),0) WRONG2,
             nvl(SUM(SERV3.GOOD),0) GOOD3,
             nvl(SUM(SERV3.WRONG),0) WRONG3,
             (nvl(SUM(SERV1.GOOD),0)+nvl(SUM(SERV2.GOOD),0)+nvl(SUM(SERV3.GOOD),0)) TOTAL_GOOD,
             (nvl(SUM(SERV1.WRONG),0)+nvl(SUM(SERV2.WRONG),0)+nvl(SUM(SERV3.WRONG),0)) TOTAL_WRONG
        FROM  (SELECT   TO_CHAR(FINISHED, 'dd') DAY,
                       SUM(CASE
                               WHEN STATUS_CODE IN (4, 12) THEN 1
                               ELSE 0
                            END) GOOD,
                       SUM(CASE
                               WHEN STATUS_CODE NOT IN (4, 12) THEN 1
                               ELSE 0
                            END) WRONG
                  FROM my_table
                 WHERE SERVER_NAME = 'somename1'
                 GROUP BY TO_CHAR (FINISHED, 'dd')) Serv1, 
              (SELECT   TO_CHAR (FINISHED, 'dd') DAY,
                       SUM(CASE
                               WHEN STATUS_CODE IN (4, 12) THEN 1
                               ELSE 0
                            END) GOOD,
                      SUM(CASE
                               WHEN STATUS_CODE NOT IN (4, 12) THEN 1
                               ELSE 0
                            END) WRONG
                  FROM MY_TABLE
                 WHERE SERVER_NAME = 'somename2'
                               GROUP BY TO_CHAR (FINISHED, 'dd')) Serv2,
              (SELECT   TO_CHAR (FINISHED, 'dd') DAY,
                       SUM(CASE
                               WHEN STATUS_CODE IN (4, 12) THEN 1
                               ELSE 0
                            END) GOOD,
                       SUM(CASE
                               WHEN STATUS_CODE NOT IN (4, 12) THEN 1
                               ELSE 0
                            END) WRONG
                  FROM my_table
                 WHERE NOM_SERVEUR_RAPP <> 'somename1'
                   AND NOM_SERVEUR_RAPP <> 'somename2'
                 GROUP BY TO_CHAR (FINISHED, 'dd')) SERV3
    WHERE Serv1.JOUR = Serv2.DAY(+)
    AND Serv2.JOUR = Serv3.DAY(+)
    *AND JOURS_DU_MOIS = SERV1.DAY (+)*
    GROUP BY ROLLUP (SERV1.DAY)
    ORDER BY 1;Also, the LEFT OUTER JOIN cannot be used along with (+).
    Please help!

  • Web service to return all employees

    Hi I am new to PeopleSoft but have managed to get the OVM template up and running now in virtual box and have the web services working again CI_CI_PERSONAL_DATA.  This returns data for a single employee.  How would I go about creating a web service to return all employee data in one response so that we and sync firstname, lastname etc with an external system?  Thanks

    Thanks Hakan,  I'm trying to create a web service for the find operation but each time the wsdl created starts with "wsdl:description"
    <?xml version="1.0"?>
    <wsdl:description name="CI_CI_PERSONAL_DATA.2" targetNamespace=
    instead "wsdl:definitions" as with the original one I created for the get operation.
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:M477757.V1
    SoapUI is not happy about the new wsdl format.  Any ideas what I've done wrong?

  • Need UCM service which has  to return all the files in the Folder

    HI,
    I need a webservice which has to return all the images/text files in the folder. I ll pass folder name has a input parameter..once i got all the files i have to shown those images in the web page.
    Do we have any service with this requirement?? Or
    i have to use 'Seach' service ,Which has return all the files meta info ...with this info do i have to use GetFile service for displaying data??
    Any suggestions??
    Thanks

    Hi Jiri,
    I dont know abt folios..I ll go thru it now..
    When coming to the option a)
    When we are calling Search service it will return resultset which contains meta data(Filename,File Id,URL,etc.....) for list of files in the folder. Now what i do to display image is , using this URL i ll bulid image object using this URL and i ll display it on the webpage(This web page contains Silver light component to display these images.)
    I m assuming problem with this one is every time when i m building image i m hitting the the server to construct the image. Instead im trying to get the all the images in one shot when i pass folder name??
    I doubt myself wether my assumtion is correct or not...
    any suggestions plz..
    Thanks

Maybe you are looking for

  • "File does not exist: /etc/apache2/htdocs/ABC/script" why?

    Hey all, on Linux error.log I go: "File does not exist: /etc/apache2/htdocs/ABC/script" when I try to use the browser connecting to system. Why? Any help is fine. Thanks a lot in advance and best regards Michael

  • ...would like to use your current location

    Every application I've installed that features location services prompts me to use my current location. Despite the claims that these messages are supposed to disappear after pressing "Okay" twice, each program continues to ask. It seems like an unne

  • Incorrect Result by SQL Query

    Dear All, When I run the following query it should return 55 but its returning 24 instead of 55. select TO_CHAR (TO_DATE('25-APR-2009', 'DD-MON-YYYY'),'DD') - TO_CHAR (TO_DATE('01-MAR-2009', 'DD-MON-YYYY'),'DD') DAYS FROM DUAL; Can any one help on th

  • Where can i find my sequence file?

    i made a new action with a script i wrote from within acrobat, where can i find it in the acrobat folder on disk?

  • Create Masters out of Previews?

    Hello, I have been using Aperture since it's launch.  Unfortuantely, my libraries got very disorganized over the years... While trying to sort it all out I realized that there are many pictures that are trying to connect to reference files that no lo