How to exculde a material in DTP Filter

Hi experts,
How to exculde a material in DTP filter. Exclude from selection is not working in DTP. please help me in solving the issue.
Regards,
Pradeep

Hi,
chk the following thread,it has the same issue as yours...
DTP filter: Exclusion
Sriram

Similar Messages

  • Abap Routine in DTP Filter with selection in a table

    Hi guys,
    I need help please.
    I'm trying include a abap routine in a DTP filter, for this case I need to make a select in a dso table and return a list of criterias.
    Example: for this characteristic 0GL_ACCOUNT i need in a fiter 20 or more 0GL_ACCOUNT of table  "/BIC/DSO_XXX".
    How can I select more than one 0GL_ACCOUNT in a tranparency table  "/BIC/DSO_XXX"... and put in a DTP Fiter.
    DTP FILTER ROUTINE.
    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'GL ACCOUNT'.
              l_idx = sy-tabix.
              if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.

    Try this:
    DATA: lv_rows TYPE n LENGTH 10,
            it_zbw_pl_proj LIKE STANDARD TABLE OF /BIC/DSO_XXX 
            lw_zbw_pl_proj LIKE LINE OF it_zbw_pl_proj .
      SELECT COUNT(*) INTO lv_rows FROM  /BIC/DSO_XXX Where <your condition> .
    SELECT * INTO TABLE it_zbw_pl_proj FROM zbw_pl_proj where <your condition>
      IF lv_rows <> 0.
        LOOP AT it_zbw_pl_proj INTO lw_zbw_pl_proj  .
          l_t_range-iobjnm = '/BI0/GL_ACCOUNT'.
          l_t_range-fieldname = 'GL_ACCOUNT'.
          l_t_range-sign = 'I'.
          l_t_range-option = 'BT'.
          l_t_range-low = lw_zbw_pl_proj-GL_ACCOUNT.
          l_t_range-high = lw_zbw_pl_proj-GL_ACCOUNT.
          APPEND l_t_range.
        ENDLOOP.
      ELSE.
        " No data found for Current Forecast Version.
        p_subrc = 4.
      ENDIF.
    I just copied this data from a DTP routine where i am fetching Versions from a DB table zbw_pl_proj. You may need to change the naming convention and performance tune the code ( like defining internal table only to hold GL_account and then only selecting GL_Account from ODS).
    Hope this helps!
    Regards
    Amandeep Sharma
    Edited by: AmanSharma123 on Jul 14, 2011 2:42 PM

  • DTP Filter to exlclude Blank Materials

    Hi, I have a Direct (no psa) Flat File Data Load via DTP into my InfoCube.  Now I want to filter out any records with Blank Materials.  When I go to set the filter in the DTP it seems it only allows me to INCLUDE selections and not EXCLUDE selections.
    Any ideas how I can EXCLUDE Blank Materials from my Direct Flat File Load using the DTP?  Or any other ideas?
    Thanks!

    hello,
    In the DTP filter, you have the option of writing a routine to perfom some logic...
    u can try to exclude some materialks there..
    for the sample code check:
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = '/BIC/ZEMPNAME'.
    l_idx = sy-tabix.
    l_t_range-iobjnm = 'ZEMPNAME'.
    l_t_range-FIELDNAME = '/BIC/ZEMPNAME'.
    l_t_range-sign = 'I'.
    L_T_RANGE-OPTION = 'EQ'.
    l_t_range-LOW = 'RAJ'.
    l_t_range-HIGH = 'RAJ'.
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    Reagrds,
    Dhanya

  • Read current DTP filter value in Transformation via ABAP

    Hi guys!
    Here's the case.
    In DTP filter there is an OLAP variable, which value depends a lot on where the DTP was started from and what starting parameters are.
    We need to read the value of this variable in order to write some ABAP routines in Transformation.
    How can we read the current value of our OLAP variable?
    Thanks a lot for you help!

    Hi Vadim,
    I think this is what you are looking for...
    [/people/shlomi.weiss2/blog/2010/11/10/how-to-get-selection-criteria-in-transformations-routines|/people/shlomi.weiss2/blog/2010/11/10/how-to-get-selection-criteria-in-transformations-routines]
    Hope it helps...
    Regards, Federico

  • How to block a material that not to creation of service notification thru-IW51

    Hi All,
    I have tried in all over areas ( MM02 level and MM06 level ) to block a material that not to create service notification with that material but didn't get a solution.If any one knows solution for this kindly provide me.
    "How to block a material that not to create a service notifcation thru IW51?"
    Best Regards,
    Narendra Konnipati

    Narendra,
    1. I do not see any possibility without using this exit. It is a very simple and effective thing for your ABAPer and you too.
    2. In case of many Materials-Notification type combinations, you can maintain similar code by joining several elseif s.
    3. Alternatively, you can maintain a Z Table as under:
    QMART
    MATNR
    S3
    10000000099999
    S3
    10000000099988
    S1
    10000000088988
    S2
    12000000088988
    Means, for every Notification type there will be one or more prohibited materials. The coding will not be difficult, but will have around 15/20 lines.Finally, if you have to get your issue resolved, I feel this is the way and also easy way through your ABAPer.
    Tell me in case of any further opinions.
    Best of Luck
    KJogeswaraRao

  • CIN: How to check the material document posted without excise invoice

    Hi Guru,
    Please advise how to check the material document posted without excise invoice.
    I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
    But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
    At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
    Best regards,
    Pakorn

    Hi,
    Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
    Check these threads how to create Query.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
    http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
    Regards
    Binoy

  • How to Print a material document .

    How to Print a material document . W#hat all configs/settings do i have to make .
    I did the following ....
    1. Maintain the Printer Name in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Printer Setting
    2. Ensure that in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for GI/Transfer Posting Documents
    5. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the foll:
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Tr medium is 1
    b. Print Parameter is 7
    6. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Pr Det by Pl/StoLoc, maintain the Output device for all your Plants
    7. Go to MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.
    Now the settings are ready for Printing Material doc
    8. While doing MIGO, ensure that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    Then i went to MB90 and did the following ...
    n MB90 output type is maintained as WE01
    Transmission medium as 1
    sort order as 01
    procesing mode as 1
    Material document year 2009
    Material document 50xxxxxxxx
    Excecute
    system says
    No messages for initial processing exist
    Message no. VN108
    Then i select the print icon
    enter the output device
    press enter
    System throws a message " Formatting set to 'X_65_80'"
    Sysytem comes to Spool request : Information screen
    When i display spool request
    The system says list contains no data .
    What is missing??
    Pls let me know ..
    Regards
    Anis
    Regards

    Hi Anis,
    For step - 4
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain
    Print Indicator for GI/Transfer Posting Documents
    As your posting a GR, you need to maintain the settings in :
    SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for Goods Receipt Documents
    for 101 movement as 1.
    Now post GR & go to MB03, select your document & check in messages tab if the message is generated.
    Check & revert.
    Regards,
    Vivek

  • Please help me how to check a material does existed group code in system (w

    Hi all,
    Please help me...
    I have inputted quantity for  tx MC 94  but when I input them into  tx MC94, I met  a message " Structure  not yet maintained for  this conbination characterstics". Step by step to show a error message as below:
    Step 1: Launch MC 94
    step 2: Enter Planning
    Step 3: Enter  Prod.Code. Material (ex: enter material code :0101010260008, this code is existed  Prod.Code )
    Step 4: Click on "Inactive Version " button
    ==> A error message is showed.
    Please help me how to check a material does existed group code in system (which table to  check  it)?
    How to record the message" Structure  not yet maintained for  this conbination characterstics" to catch up it in my program?
    Thank in advance.

    Karenloria,
    1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
    2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
    You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
    Regards,
    Prasobh

  • How to enter a material on SO without a Material Master Record?

    Hi guys,
    Pls help me 2 flowing problem:
    1. How to enter a material on SO without a Material Master Record? And all case need to enter a material on SO without a Material Master Record.
    2. How to use customer material number if there isn't Master Data
    Thanks

    Hi Friend,
    I dont think we can go with a sales order with a material without material master record.
    But there are some cases where in we can create a sales order by entering a material which does not have a material master.
    1. Through material determination
    You can create a material determination for a material (1234) which exists in sap by a material(XYZ) which does not; For example in VB11 you can create a material determination for a material 1234 ( exists in sap) through a material XYZ which does not exists in sap.
    While creating the sales order when you enter the material XYZ is not give any error and automatically determine the material 1234 which exists.
    2. Text material
    We can create a order/quote by directly entering a text in the material description and without entering the material. This the case for text material wherein text item category will be determined.
    Please let me know if this help you. Else kindly elaborate the scenario.  
    Abhishek

  • How to maintain the material master data in plant

    Hi all,
    while creating BOM I am getting an error "no material master data in plant' can some one help me how to maintain the material master data in plant
    Regards,
    Balu

    Check the material available in MARC table in SE11 transaction against your plant.If it is not available please maintain through MM01 transaction.

  • How to get shadow version of DTP in BI 7.0

    How to get shadow version of DTP in BI 7.0..
    while activating DTP i got error as :
    "Shadow DTP_7KU3789XP6HX9XP3NS6PZ7XAP object can not be resolved - Chain inconsistent"
    Please can you suggest me

    Check if this note is applicable :
    Note 1044054 - Correction: Shadow DTP with DataSource cannot be displayed

  • How to ignore the material with error in costing run ck40n

    Hi
    Pls, advice how to ignore parent material form costing run if the components of that material have errors. I need to run the costing run excluding erroneous parent item. Is any configuration on this..
    Pls help..
    K

    Hi Kesharika Goona... 
    If you want to exclude any material from Costing Run, there are two ways...
    1. Go to Material Master, Costing1 view, take the check box "Do Not Cost". If you opt for this check box, the system will not consider this material for costing.
    2. Where you run the standard cost estimate in CK40N, once you save you costing run with the parameters like Costing Variant etc, When you select the "Parameters" agains the Flow step of "Selection", you will be asked to give the inputs like Material Number, Plant etc.
    There, against the Material Number, on the extrem right side, you will see a arrow, press that arrow, and there you can see a tab "Exclude Single Values". There you have to give the material number which you want to exclude from the costing run press "Execute" icon on the botoom-left corner of that pop-up window..
    If you still face problem, pls revert back
    Srikanth Munnaluri

  • Help requeried in populating DTP filter through ABAP routine.

    Hi experts,
    I have written the following routine in my DTP filter.
    While debugging , the values are getting populated fine , but selections are not getting pupulated in the DTP. Thus, filter is not working.
              DATA: l_idx like sy-tabix ,
              w_dt(2) type n ,
          *Previous month
              w_pvmon(2) type n,
    Current month
              w_mon(2) type n,
    Year
              w_yr(4) type n,
    Start date of previous month and Start date of current month
              w_sdt1 LIKE sy-datum ,
              w_sdt2 LIKE sy-datum.
      Read table l_t_range with key
           fieldname = '/BIC/ZUPDDATE'.
      l_idx = sy-tabix.
      w_dt = sy-datum+6(2).
      w_mon = sy-datum+4(2) .
      w_yr = sy-datum+0(4).
    ****If first week of the month then start date = first day of previous
    *month
      If w_dt <= 07.
        IF w_mon = 01 .
          w_pvmon = 12.
          w_yr = w_yr - 1.
        else.
          w_pvmon = w_mon - 1.
        ENDIF.
        CONCATENATE w_yr w_pvmon '01' into w_sdt1.
        l_t_range-iobjnm = '/BIC/ZUPDDATE'.
        l_t_range-sign = 'I'.
        l_t_range-option = 'EQ'.
        l_t_range-fieldname = '/BIC/OIZUPDDATE'.
        l_t_range-low = w_sdt1.
        l_t_range-high = sy-datum.
        append l_t_range.
      else .
    After first week of the month ,  start date = first day of current
    *month
        CONCATENATE w_yr w_mon '01' into w_sdt2.
        l_t_range-iobjnm = '/BIC/ZUPDDATE'.
        l_t_range-sign = 'I'.
        l_t_range-option = 'EQ'.
        l_t_range-fieldname = '/BIC/OIZUPDDATE'.
        l_t_range-low = w_sdt2.
        l_t_range-high = sy-datum.
       " modify l_t_range index l_idx.
       append l_t_range.
        p_subrc = 0.
    endif.
    clear:w_dt ,w_pvmon ,w_mon ,w_sdt1,w_sdt2 ,w_yr.
    I have tried different fieldname values as well.
    Please share your inputs.
    Regards,
    Taru
    Edited by: Taru Dhawan on Feb 23, 2012 12:59 PM

    Hi
    What Alexandre said is right
    fieldname must be '/BIC/ZUPDDATE'
    and the iobjnm must be  'ZUPDDATE'.
    This should work.
    If no, just try
    fieldname = 'ZUPDDATE'.
    and iobjnm = '/BIC/ZUPDDATE'
    One of this will definitely work.
    Regards,
    Joe

  • How to know if implementation with a filter value exist for a BAdI in code?

    Hi all,
    Scenario:
    I created a BAdI. There will be a button on the UI to call its implementation(s); while if there is no implementation with specified filter value, this button needs to be hidden. Thus I need to know if the implementation exist before calling it.
    Question:
    In the ABAP code, how to get whether implementation with specified filter value exists for a BAdI?
    If it's possible, please help provide code.
    Thanks and regards,
    Said

    Problem solved:
    data: r_badi type ref to YOUR_BADI,
              badi_impl_num type i.
      get badi r_badi
        filters
          flt_name = fit_val.
      badi_impl_num = cl_badi_query=>number_of_implementations( badi = r_badi ).
      if badi_impl_num > 0.
        "there are badi implementation(s)
      endif.

  • How to send multiple material in our own message type

    Dear All,
    Any idea about how to send multiple material in our own message type,In my outbound i have created a message type but able to send only one material through program. If i give range of material its in error status 26 in WE02 and failed to send.
    Help me ASAP.
    Thanks & Regards,
    Arun.

    hi Gordon,
    I want to receive the IDOC data for message type WPUUMS from a java server. Currently i am working on sample values for segments
    E1WPU01
    E1WPU02
    E1WPU03
    E1WPU04
    E1WPU05
    E1WXX01
    I am facing problems in passing the correct values .
    Its throwing a error message status 51.(Application document not posted) IDoc not fully processed.
    can you help me with some dummy data for all the fields in the above segments.
    reply ASAP
    regards
    arun
    Edited by: Arun Kumaran on Aug 22, 2008 3:33 PM

Maybe you are looking for

  • How to *really* disable Color Management in PSE 7 Organizer?

    After much experimenting with old versions of PSE (2 and 3 specifically) and my Canon MP530 inkjet, I have found I get the best results by disabling PSE Color Management and using the Canon printer driver to manage colors. (Even when using the suppli

  • SQL 2008 Full Text CONTAINSTABLE is VERY SLOW

    Hello,  I am running SQL Server 2008 SP3. I know I am not the only to have SQL Server CONTAINSTABLE query performances issues. However I think mine is very strange because it appears that the SAME IDENTICAL query produces completely different executi

  • Adobe Muse license

    Hi. Two quick question. Am I allowed to use web site created in Adobe Muse for commercial purposes. And am I allowed to use this website after my subscription expires. I have a single-app Creative Cloud membership. Thank you in advance for reply. Reg

  • Index isn't used when specifying IS NULL

    Hello, I'm using Oracle 10.2.0.4. When I run this statement, the explain plan shows that a composite index is used which is expected. select * from isis.cour_off where orga_# = 4 However, when I run the following statement, the explain plan shows FUL

  • My mail is crashing with the upgrade

    how can i fix my mail because is crashing with the new yosemite upgrade.