Abap query regarding lsmw

hi ,friend  ,i am taking matnr vaue from user and check the value of matnr coming from flat file ,if both are same then i want to skip the row ,but whern i use skip_record it is just replacing the vaue of matnr by'/'in allthe recoreds ,not escaping that par row.
i want some sugg .
thanks

hi Andreas,
the code let i  am wr.
p_in ;value in flat flie.
w_matnr the value i have given.
if p_in = w_matnr.
skip_record.
endif.
matnr   mbrsh      mtart
/       s            03
/        p             04
it is doing in this way but i want if matnr is 20 in flat file and the value i have given  match , it should take that row ,but it is taking olny by replacing the value of matnr by '/'

Similar Messages

  • WD abap Query - Regarding Edit note

    Hi all,
    On click of one button on main screen, i need pop up screen where i can edit this prepopulate text.
    Assistant Manager (CSM) request/removal
    Organisation reference         : 50158579
    Add or Remove (A/R)           :
    Employee Full Name            :
    TOMI user ID (NOT password)   :
    Employee Personnel No         :
    Effective date                :
    Your Name                     :
    Your contact telephone number :
    Employee must appear on your timesheet before you can apply for them
    to have access. Allow 5 working days. The named employee will then
    be able to complete the timesheet on your behalf using a special
    link from TOMI headed EFORMS.
    User can edit this note and then he will click on Ok button to send this text as Email.
    I  tried to achieve this using text edit element  but not able to achieve this functionality.
    In module pool we can achieve this functionality using function module which call standard editor. But we could not call this in WD abap.
    CALL FUNCTION 'TXW_TEXTNOTE_EDIT'
           EXPORTING
                edit_mode = 'X'
           TABLES
                t_txwnote = note.

    >But we could not call this in WD abap.
    No, function modules that relie on the control framework, SAPGUI, or office integration of course can not be used within the browser only enviornment of Web Dynpro.
    >I tried to achieve this using text edit element but not able to achieve this functionality.
    Please elaborate. What about the TextEdit UI element did not meet your needs?  Do you want more editing/formatting functionality?  Or did you have some other problem. Please describe.

  • Query regarding LSMW.

    How can we update the purchasing Org.(KOMG-EKORG), Condition group with Vendor(KMOG-EKKOL)and price(KONP-KBETR) form an excel sheet to the condition type table A892 using LSMW?The transaction used is MEK2.

    HI,
    just check it is sufficient.....
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    and Iam giving the 13 steps document bellow
    Using Tcode MM01 -- Maintain the source fields are
    1) mara-amtnr char(18)
    2) mara-mbrsh char(1)
    3) mara-mtart char(4)
    4) makt-maktx char(40)
    5) mara-meins char(3)
    the flate file format is like this as follows
    MAT991,C,COUP,Srinivas material01,Kg
    MAT992,C,COUP,Srinivas material02,Kg
    AMT993,C,COUP,Srinivas material03,Kg
    MAT994,C,COUP,Srinivas material04,Kg
    MAT995,C,COUP,Srinivas material05,Kg
    goto Tcode LSMW
    give Project Name
    Subproject Name
    object Name
    Press Enter -
    Press Execute Button
    It gives 13 radio-Button Options
    do the following 13 steps as follows
    1) select radio-Button 1 and execute
    Maintain Object Attributes
    select Standard Batch/Direct Input
    give Object -- 0020
    Method -- 0000
    save & Come Back
    2) select radio-Button 2 and execute
    Maintain Source Structures
    select the source structure and got to click on create button
    give source structure name & Description
    save & Come Back
    3) select radio-Button 3 and execute
    Maintain Source Fields
    select the source structure and click on create button
    give
    first field
    field name matnr
    Field Label material Number
    Field Length 18
    Field Type C
    Second field
    field name mbrsh
    Field Label Industrial Sector
    Field Length 1
    Field Type C
    Third field
    field name mtart
    Field Label material type
    Field Length 4
    Field Type C
    fourth field
    field name maktx
    Field Label material description
    Field Length 40
    Field Type C
    fifth field
    field name meins
    Field Label base unit of measurement
    Field Length 3
    Field Type C
    save & come back
    4) select radio-Button 4 and execute
    Maintain Structure Relations
    go to blue lines
    select first blue line and click on create relationship button
    select Second blue line and click on create relationship button
    select Third blue line and click on create relationship button
    save & come back
    5) select radio-Button 5 and execute
    Maintain Field Mapping and Conversion Rules
    Select the Tcode and click on Rule button there you will select constant
    and press continue button
    give Transaction Code : MM01 and press Enter
    after that
    1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
    2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
    3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
    4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
    5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
    finally
    save & come back
    6) select radio-Button 6 and execute
    Maintain Fixed Values, Translations, User-Defined Routines
    Create FIXED VALUE Name & Description as MM01
    Create Translations Name & Description as MM01
    Create User-Defined Routines Name & Description as MM01
    after that delete all the above three just created in the 6th step
    FIXED VALUE --MM01
    Translations --MM01
    User-Defined Routines --MM01
    come back
    7) select radio-Button 7 and execute
    Specify Files
    select On the PC (Frontend) -- and click on Create button(f5)
    give the path of the file like "c:\material_data.txt"
    description : -
    separators as select comma radiao- button
    and press enter save & come back
    8) select radio-Button 8 and execute
    Assign Files
    Save & come back
    9) select radio-Button 9 and execute
    Read Files
    Execute
    come back
    come back
    10) select radio-Button 10 and execute
    Display Imported Data
    Execute and press enter
    come back
    Come back
    11) select radio-Button 11 and execute
    Convert Data
    Execute
    come back
    Come back
    12) select radio-Button 12 and execute
    Display Converted Data
    Execute & come back
    13) select radio-Button 13 and execute
    Start Direct Input Program
    select the Program
    select continue button
    go with via physical file
    give the lock mode as 'E'
    and execute
    KIshore...

  • Procedure of ABAP Query

    Hi Friends,
                                Can anybody convey how to create ABAP Query in detail...
    Regards,

    hi
    check following
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
    http://jelajahsap.files.wordpress.com/2008/01/abap-query.pdf
    http://www.esnips.com/doc/28ca0afc-4520-4ee7-8e6e-b633cb809aa8/ABAP-Query
    http://www.esnips.com/doc/28ca0afc-4520-4ee7-8e6e-b633cb809aa8/ABAP-Query
    hope it is enough to understand ABAP query
    regards
    KI

  • Reg:Radio button in ABAP Query

    Hi ABAPers ,
    I created radiobuttons in SQ02 there i have to write the coding for it ... what type of coding we have to write
    ALV coding wll work out or what type of coding we have to write can you guys plz suggest me
    Help me out from this problem i am not familiar with ABAP Query
    Regards,
    Y Ravichandra.

    Hi Ravichandra,
       You have to use at selection-screen output event for this purpose here is a sample code try it and you will get the logic.
    PARAMETERS :
       p_flight RADIOBUTTON GROUP r1 ,
       p_book RADIOBUTTON GROUP r1 .
    PARAMETERS :
      w_temp1 RADIOBUTTON GROUP r2 MODIF ID sc1 ,
      w_temp2 RADIOBUTTON GROUP r2 MODIF ID sc1 .
    SELECT-OPTIONS s_carrid FOR sflight-carrid MODIF ID sc1 .
                                           " Airline Code
    PARAMETERS :
    w_temp01 RADIOBUTTON GROUP r3 MODIF ID sc2 ,
    w_temp02 RADIOBUTTON GROUP r3 MODIF ID sc2 .
    SELECT-OPTIONS s_bookid FOR sbook-bookid MODIF ID sc2 .
                                           " Airline Code
    *                       AT SELECTION-SCREEN OUTPUT                    *
    AT SELECTION-SCREEN OUTPUT .
      IF p_flight = 'X'  .
        fl_flag = 1 .
        LOOP AT SCREEN.
          IF screen-group1 = 'SC2'.
            screen-active = 0 .
            MODIFY SCREEN .
          ENDIF.                           " IF SCREEN-GROUP1 = 'SC2'
        ENDLOOP.                           " LOOP AT SCREEN
      ELSEIF p_book = 'X' .
        fl_flag = 2 .
        LOOP AT SCREEN.
          IF screen-group1 = 'SC1'.
            screen-active = 0 .
            MODIFY SCREEN .
          ENDIF.                           " IF SCREEN-GROUP1 = 'SC1'
        ENDLOOP.                           " LOOP AT SCREEN
      ENDIF .                                " IF P_FLIGHT = 'X' .
    Here in this case, There are 2 radio buttons and 2 select options. On clicking the first radio button one of the select option is hidden. If you you just have a single radio button then you can avoid using at selection-screen output and just write your code start-of-selection.
    Much Regards,
    Amuktha

  • Duplicate Records in ABAP Query

    I have prepared ABAP query with tables KNA1, KNB1, BSID. I have mapped only BUKRS and KUNNR from BSID . as I don't have any condition to map the fields. I want only one record for considering  KUNNR and BUKRS in report . But in report It is displaying all entries from BSID considering BUKRS and KUNNR means for documents all line items.Kindly suggest as soon. How to avoid such duplicate records

    Hi,
    Duplicate Records in ABAP Query
    Regarding on your problem,
    Use these link, It will helps to your post
    ABAP Querry Duplicate entries
    Regards,
    Sekhar

  • Regarding ABAP query layout changes

    In 46C system, we have addon transaction ZXX created thru ABAP query displaying in ALV report
    layout fields in order A,B,C,D. But after upgrade to ECC5.0 we found the layout is changed to fields D,B,C,A.
    why its changed? Is it Patch problem or its SAP problem.
    However after upgrade we could manualy drag and drop the fields as per the 46C existing report layout
    it works fine.
    But we would like to know the reason why its happenning.?
    Could somebody give me suggestion.
    Regards
    Ambichan

    Hi Ambikumar,
    The ALV output layout is dependent on user settings.
    THe order of layout fields is changed bcz user has saved the new layout.
    In the output, check the ALV toolbar for CHANGE LAYOUT button. Click on it & check if anyone has saved any new layout. Delete the layout & you would alwyz get the fields in the same order as specified in the query.
    No need to modify the query using SQ01/SQ02.
    Simply execute the query & click button CHANGE LAYOUT.
    Best regards,
    Prashant

  • Regarding ABAP Query authorization group

    Hi Team,
    This is regarding ABAP Query!
    I have created one authorization group, for testing i have assigned my id in authorization group.
    After creation of ABAP query,standard program got generated. Now i have created one transaction code at the last for the ABAP Query.
    Now the isse is even though i have deleted my id from the authorization group. I am able to execute the query from SQ01 and with the Transaction code .
    It should not happen...i want who soever id is mapped to the transaction code ...that member should only be able to run that query, otherwise there is no use of authorization group.
    Please help me out in this case.
    Thanks & Regards,
    Anil Kumar Sahni

    Are you sure that you don't have access to that authorisation group? Execute report RSUSR002. In the 'Authorization Object 1' block inform  S_TABU_DIS in 'Auth.Object' and accept. Then inform Activity=03 and Auth.Gruop= your group.
    You will get a list of all the users which, theoretically, will be able to execute the query. If you press 'Roles' or 'Profiles' in the toolbar of the listing you will get to know why you have authorisation. May be you have the SAP_ALL profile.
    Also, one more thing to take into account: how have you created your transaction? Is it referring directly to the generated report? Then it is an error, you should execute program SAP_QUERY_CALL. Read this post: [Relate transaction to query;

  • Regarding layout of abap query

    hi all,
    i have an issue in the output of abap query. in output i have many columns with values, nw i have to insert two additional  colums in between of the existing output.how to do that???

    Thanks everyone,
    i have found out  how to add checkbox on selection screen of abap query.
    These are the steps:
    1.goto tcode sq02 (infoset)
    2.put it in change mode.
    3.Then click on 'extras' button on application toolbar.
    4.Then select 'code' tab and write your code there.

  • Regarding ABAP Query,

    How can we insert the Z Function module into Standard ABAP Query.
    Plz help me in this issue in step by stpe process.

    Hi Ambichan,
    Try this link.
    http://www.sappoint.com/abap/ab4query.pdf

  • Regarding ABAP query when using the LDB

    Hi Experts,
    Iam preparing one ABAP query by using LDB.
    And i added two more table VBPA and KNA1.
    When i add the VBPA table the system will automatically generate
    the sql query and we need to pass the where condition to thet query.
    system generated like this..
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                =
       AND POSNR                  =
       AND PARVW                 =
    but in the above query i need to pass the values to PARVW as 'AG' or 'SP'.
    how can i pass the two values to that query?
    rgds,
    Sruthi.

    HI,
    It is system generated....just we need to pass the values to where condition.
    in normal ABAP we can do like this...
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                = EKPO-ZZVBELN
       AND POSNR                  = EKPO-ZZPOSNR
       AND PARVW                in  ( 'AG' , 'SP').
    or
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                = EKPO-ZZVBELN
       AND POSNR                = EKPO-ZZPOSNR
       AND                             ( PARVW  =  'AG' or  PARVW  =  'SP' ).
    Rgds,
    Sruthi.

  • ABAP Query and ABAP Report

    Hi,
    1.What is the difference between ABAP Query and ABAP report?
    2.What are the advantages of LSMW over BDC?
    Regards,
    Ajit

    Hi,
    Please read the rules of engagement before you post.
    Step 1: Finding An Answer
    Rule number one: Try to find the answer first. There are tons of resources out there, show that you have tried to find the answer. A question that shows that the person is willing to try and help themselves is more likely to be answered than one which simply demands information. Tell us what you have done to try and solve the problem yourself - often we can learn from that too!
    Search the forums, the articles, the blog posts and the Frequently Asked Questions (FAQ) in the Wiki for your topic.

  • How to create an ABAP Query with OR logical expression in the select-where

    Hi,
    In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
    Please help me on this.. Points will be rewarded.
    Thanks a lot.
    Regards,
    Question Man

    Hi Bhupal, Shanthi, and Saipriya,
    Thanks for your replies. But that didn't answer my question.
    Bhupal,
    You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
    Shanthi,
    Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
    Saipriya,
    Like what I have said, this is a standard SAP code so we can't do your suggestion.
    I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
    Thanks a lot.
    Points will be rewarded.
    Regards,
    Question Man

  • Logical database of ABAP query

    Hi,
    Can anybody please let me know what is the Logical database for ETXDCI, ETXDCH & ETXDCJ (Tax tables) with any sales document tables? I need to develop one ABAP query for the users.
    I am a Functional person so I would like to know Can anybody please let me know how I can find out the Logical database?
    Your time and help will be really appreciate.
    Thanks & Regards,
    Niki Shah.

    Try the BRF logical database.
    I found it by searching in which programs the tables were used.
    It show program SAPDBBRF which is the program for logical database BRF.
    Kind regards,
    Arthur Parisius

  • Pnp- logical db in abap query

    hi.
    i need to create an ABAP/sap query. when i created the InfoSet i used logical db-pnp.
    if i want to get only the employees which entered my organization during the last month where should i add the ABAP code,  under which section => extras -> code. i have there several options - data, initialization, at selection-screen output etc, what to choose??????????
    thanks,
    Ami

    Hi
    Welcome to SDN forum
    query has got some limitatins compared to Reports which we write using SE38
    these queries are user specific and client specific and can't be transportable and you can't write your own code as you wish like reports
    see the doc
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    Regards
    Anji

Maybe you are looking for

  • Toggle Finder sort order with AppleScript under Lion 10.7?

    For years I've been using this AppleScript to toggle the sort order of a Finder window: if sort direction of column id size column of list view options of window 1 is normal then     set sort direction of column id size column of list view options of

  • Stuck in download folder

    I need help! whenever i try to download itunes 9.0.2 it just goes into the download folder and whenever we try to open it it says please close itunes when we already have! if this is any help we are trying to upload an ipod touch

  • Where is the library folder????

    Not sure why this is so difficult to locate, but I've spent 10 minutes trying already... Thanks for any help.

  • DataGrid Sort Clears HeaderRenderer Checkbox

    I have a datagrid that I defined a checkbox as the headerrenderer for one of the columns. It took me a while to track this down, but it seems like a re-sort on one of the columns (other than the checkbox headerrenderer column) clears the state of the

  • Merging cells in JTable...help

    Can someone give me some direction into how I can handle this....