Report for update of Material with deletion Flag from R/3 to SRM

Hi All,
           Is any report for Updating material in SRM with deletion indicator for those  deletion flag set in R/3...

Check material status
  IF mat_mmsta EQ '--'.
    lv_msgv1 = iv_ordered_prod.
    CALL FUNCTION 'BBP_PD_MSG_ADD'
      EXPORTING
        i_msgty       = c_msgty_e
        i_msgid       = 'BBP_PD'
        i_msgno       = 426
        i_msgv1       = lv_msgv1
      EXCEPTIONS
        log_not_found = 1
        OTHERS        = 2.
    IF sy-subrc <> 0.
      PERFORM abort.
    ENDIF.
    IF c_on = c_off.
      MESSAGE e426(bbp_pd) WITH lv_msgv1.
    ENDIF.
  ENDIF.
  if not mat_lvorm is initial.
    lv_msgv1 = iv_ordered_prod.
    call function 'BBP_PD_MSG_ADD'
program name LBBP_PDIGPF2R
Check material in backend
  CALL FUNCTION 'META_MATERIAL_READ'
    EXPORTING
      i_mtcom        = ls_mtcom_eci
      logical_system = iv_log_system
    IMPORTING
      e_mmsta        = mat_mmsta
      e_lvorm        = mat_lvorm
    EXCEPTIONS
      mat_not_found  = 1
      OTHERS         = 2.
  IF sy-subrc <> 0.
    lv_msgv1 = iv_ordered_prod.
    lv_msgv2 = iv_plant.
    CALL FUNCTION 'BBP_PD_MSG_ADD'
      EXPORTING
        i_msgty       = c_msgty_e
        i_msgid       = 'BBP_PD'
        i_msgno       = 275
        i_msgv1       = lv_msgv1
        i_msgv2       = lv_msgv2
      EXCEPTIONS
        log_not_found = 1
        OTHERS        = 2.
    IF sy-subrc <> 0.
      PERFORM abort.
    ENDIF.
    IF c_on = c_off.
      MESSAGE e275(bbp_pd) WITH lv_msgv1 lv_msgv2.
    ENDIF.
  ENDIF.
      EXPORTING
        i_msgty       = c_msgty_e
        i_msgid       = 'BBP_PD'
        i_msgno       = 345
      EXCEPTIONS
        log_not_found = 1
        others        = 2.
    if sy-subrc <> 0.
      perform abort.
    endif.
    if c_on = c_off.
IN SRM PROGRAM LBBP_PDIGPF2R BBP_PD 345 throws message "product x is designed for deletion"
but it is validationg from fm 'META_MATERIAL_READ'
please close this thread
br
muthu

Similar Messages

  • I AM DEVELOPING THE Z-REPORT FOR SHELF AGEING MATERIAL

    HI
    USER WANTS Z-REPORT FOR SHELF AGEING MATERIAL WITH STOCK QTY AND STOCK VALUE.
    I WANT TABLE NAME FOR SHELF AGEING MATERIAL REPORT.
    SPECIALLY, FOR DAYS (REMAINING SHELF LIFE PERIOD FOR  MATERIAL IN DYAS)

    Hi,
    Ask the abaper to write an query from the table S032 there you can find the option of last good receipt date and the last goods issue issue date.
    consider the various good mvt in between these dates calcuate the diffence betwee the current date and the last good issue date, so that you can abel to get the stock list that is not moving for more than 60 days,120 days etc
    You can also use MC46, MC50,  MB5M - expiration date list . In case if that does not solve their requirement then you need take logic from client and you need to develop own report
    pherasath

  • Filtering records with deletion flag in Query report

    Dear Friends,
    We are using ECC6.00 (EHP4) for one of our QM requirement, i have created a query in SQ01 with the tables QMEL,AUFK,AFKO,QMFE etc., to get the details of production order and notification.
    The report will list out the production scheduler wise, order wise, defect wise quantity with the notification number also in the display.
    For notifications which are created wrongly, the users set deletion flag. The same i.e., notifications with deletion flag should not appear in the report and hence i have called the field and filtered the value in the output (i.e., field value not equal to X where X is for deletion flag set records).
    Everything works fine upto this, but when users (to carry out analysis) send the data to the spread sheet, the filter values are removed and all records are populated in the excel sheet (even records with deletion flag).
    To select and display only records without deletion flag, i want to introduce coding in the query. Kindly tell me whether this is possible, if so where and what code should be written to meet my requirement.
    The records with the deletion flag (notifications) should be eliminated from the selection and display.
    Experts help required.
    Regards,
    M.M

    Dear Raymond Giuseppi,
    Thank you for your reply. The code syntax had been corrected based on your information. Unfortunately the code doesn't filter the records. On further investigation , it was observed that the field KZLOESCH doesn't get updated and hence a field had been created in the infoset wherein the following  coding is written
    clear : w_dlfl.
    data : w_inact type char1.
    select single inact into w_inact from jest
    where objnr = qmel-objnr
       and stat = 'I0076'
       and inact ne 'X'.
    if sy-subrc = 0 .
      w_dlfl = 'X'.
    else.
      w_dlfl = ''.
    endif.
    The field name is W_dlfl.
    In the above condition how and where should i include the code given by you. Since the field KZLOESCH is not updated how should we get the data from the field w_dlfl be exempted from selection?
    Kindly provide solution.
    Regards,
    M.M

  • Marked with Deletion Flag reflecting in reports...

    Hi All,
    We have created many reports and sqvi querys,  After marked deletion flag for material it is reflecting in reports and queries. What will be reason and how it will be avoid in reports.
    Yusuf

    Hi,
    This is just one of the problems with writing custom reports. They have to consider things like deletion flags, delivery completed flags, special stocks etc.
    There is no simple answer other than to correct the custom reports and get them to check all relevant flags.
    Better still, try to use std SAP reports wherever possible, avoid creating new reports just to reformat the data slightly or to produce reports that are "nice to have" rather than actually required  (I am not saying this is what you have done)
    Steve B

  • Processing of materials with deletion flags

    Hi,
    I have 2 questions.
    1) I want the materials with deletion flags blocked for use in PO or in any goods movement. How could I do that to restrict all processes for these materials?
    2) I have a Purchasing Request and a RFQ for this. After I create a PO for this request and rfq, I could still open another PO regarding this RFQ. Is this normal?  How could I prevent this?
    1 RFQ will be used only for one PO unless there is an agreement for purchase?
    Thanks
    Irem

    hi,
    you can use the X-plant material status to procurement at different levels...
    the same indicator you can find in the material master records in the BASIC data, Puchasing and MRP tab...
    To use the RFQ for One PO only, make the message which you get while making the PO as error message, then no one make another message later...
    make settings here:
    SPRO >> MM >> puchasing >> env. data >> define system messages >> here check for your message as per its no..and make it as "E"
    Regards
    Priyanka.P

  • ABR complete delta with deletion flag via delta queue (cube compartible)

    Hello
    DS 2LIS_04_P_COMP is delta enabled with ABR complete delta with deletion flag via delta queue (cube compartible)
    Is it possible to use this type of delta for ods? If yes , what kind of changes are required
    Thanks

    Hi
    ABR means
    A - After Image
    B - Before Image
    R - Reverse Image
    Since updating DSO is usually in overwrite mode it requires After Image.
    So u can use the data source with ABR delta to load into DSO (ODS).
    Cheers.

  • Report for Comparison of Material Qty

    Hi All,
    I need to Develop an Interactive report for Comparison of Material Qty. ordered through Purchase requisition, ordered material through PO and corresponding Material Receipt report.
    Can Someone Give a brief description about this & fields tcode & tables regarding this report.A sample code would be much appreciated.
    Thanks & regards,
    Ravi S

    To get the material number combined with the PO text you will need the help of an ABAP programmer.  The programmer can create a report for you using the function module READ_TEXT in the function group STXD.  The tables to use are:
    STXH - STXD SAPscript text file header
    STXL - STXD SAPscript text file lines
    The selection screen should have at least the following:
    OBJECT - STXH-TDOBJECT
    NAME - STXH-TDNAME
    LANGUAGE - STXH-TDSPRAS
    TEXTID - STXH-TDID
    You find the information for these fields by going to the PO text entry screen and displaying the header information under Goto -> Header.  For materials, the object is MATERIAL, the name is "material number", the language is "EN", and the text ID is BEST.  You can use this program to get long text in lots of places like information records, purchase order texts, etc.
    Hope this helps.

  • Error occuring in SELECT statement FOR UPDATE when using WITH cluase

    Hi,
    Iam using oracle 11g version
    Iam having a query with fetch records for update insid with cluase as
    cursor c1 is
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    for update of <col1> skip locked
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    if i add "for update of <col1> skip locked" this cluase
    iam getting error ORA-00907: missing right parenthesis
    when i remove "for update of <col1> skip locked" the block is working fine..
    can i know why error is occuring i

    Hi, first of all, your placing of "for update" clause is wrong. It should be at the end like:
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    for update of <col1> skip locked;Second, if you try to compile it with this syntax then you will get a new error.
    ORA-01786:     FOR UPDATE of this query expression is not allowed
    Cause:     An attempt was made to use a FOR UPDATE clause on the result of a set expression involving GROUP BY, DISTINCT, UNION, INTERSECT, or MINUS.
    Action:     Check the syntax, remove the FOR UPDATE clause, and retry the statement.So, you will not be successful with the union clause in your query.

  • 'Missing select' error for update statement using WITH clause

    Hi,
    I am getting the below error for update statement using WITH clause
    SQL Error: ORA-00928: missing SELECT keyword
      UPDATE A
      set A.col1 = 'val1'
         where
      A.col2 IN (
      WITH D AS
      SELECT col2 FROM
      (SELECT col2, MIN(datecol) col3 FROM DS
      WHERE <conditions>
        GROUP BY PATIENT) D2
      WHERE
      <conditions on A.col4 and D2.col3>

    Hi,
    The format of a query using WITH is:
    WITH  d  AS
        SELECT  ...  -- sub_query
    SELECT  ...   -- main query
    You don't have a main query.  The keyword FROM has to come immediately after the right ')' that ends the last WITH clause sub-query.
    That explains the problem based on what you posted.  I can't tell if the real problem is in the conditions that you didn't post.
    I hope this answers your question.
    If not, post a complete test script that people can run to re-create the problem and test their ideas.  Include a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    In the case of a DML operation (such as UPDATE) the sample data should show what the tables are like before the DML, and the results will be the contents of the changed table(s) after the DML.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Consumption report for nn stockable material

    hi
    i want to see the consumption report for non stockable material like A,K,

    Hi
    Check it in MB51
    Thanks
    Regards,
    Raman

  • Urgent -Create  RFC for update the database and delete from the database

    Hi Guy's,
    Please help me how  to create the RFC for update to databse and delete from database(step-by-step) procedure.
    Thanks and Regards,
    Sai.

    Hi,
    Please go through the following link,
    reward if helps.
    [RFC Step By Step|https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728]
    regards,
    mahantesh

  • I have an old apple id that I don't use (and I don't remember the password) and it now won't let me log in for updates, how can I delete it

    I have an old apple id that I don't use (and I don't remember the password) and it now won't let me log in for updates, how can I delete it

    Click here and try resetting that account’s password.
    That Apple ID is stored inside each of those applications. If you can’t get back into it, you’ll need to delete and redownload all of them, which may require repurchasing paid ones.
    (115401)

  • I need the Log Report for the Data which i am uploading from SAP R/3.

    Hi All,
    I am BI 7.0 Platform with Support Patch 20.
    I need the Log Report for the Data which i am uploading from SAP R/3.
    I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item.   In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
    I capture the FS item from the Z table then update this FS item to Infobject FS item.
    Now i  need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
    Please suggest.
    Regards
    nilesh

    Hi.
    Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
    In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
    Regards
    Jacob

  • I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

  • Adobe creative cloud is asking for a serial number for updates - where do I get this from?

    Adobe Creative cloud is asking for a serial number for updates - where do I get this from
    we have recently Bought 5 x 1 year licences and been using this a month
    Michael

    Hi Mick,
    Please refer to the below link.
    http://helpx.adobe.com/creative-cloud/kb/ccm-prompt-serial-number.html
    Thanks

Maybe you are looking for

  • ORA-01722: invalid number error coming in Oracle 10g.

    Hi, We are getting the error "ORA-01722: invalid number" while opening a cursor using CURSOR FOR LOOP. This error has started coming only after we have migrated to Oracle 10g from Oracle 9i. Earlier the same code used to work properly. And also on Or

  • How can i transfer my purchased items to a new apple ID?

    I currently have an apple ID that i use for all my iMessages and everything else i do except for my app and itunes purchase. I know we don't have the option to merge 2 apple Id's yet so i was wondering if there is a way to transfer what I've already

  • Fireworks instead of Illustrator?

    Hi, we've been using Illustrator CS3 here for web page mock-ups for a while now. It initially was a bit buggy, but things have gotten better. Most people don't realize it has the same slicing capabilities of Image Ready. But we really use style sheet

  • Netflix on iPad vs. MacPro for display of movie

    I like to watch Netflix movies on my iPad 3 and I just got a Macbook Pro w/Retina and the movies are not as sharp on the Macbook as they are on the iPad.  Has anyone found a solution to this issue or is it that the Netflix app for iPad has solved the

  • How can I download Mozilla Firefox without getting Goonsearch?

    Everytime I download Mozilla Firefox something called Goonsearch keeps appearing in browser before I can go on.