How to handle Views in MM02 for corresponding materials

Hi,
  I got an requirment in MM02, here view is changing depending on the materials, how can i handel this.
Reply fast plz. i have to finish today.
Sample codings also
Regards
Justin Jayaraj

1) u  make  the condition type  based  on material type.
using select query.
2)do the recording for  all view.
3)now  for perticular material type.
make x for view field come  in recording for perticular material type.
suppose one material type required 3 view.u can write cond like
if mat_type = 'RAW'.
bdc code....
make  x to the view  which are required...
othervise better option is   lsmw .

Similar Messages

  • How to handle views in material master while doing BDC

    Hi,
    I am doing BDC for three material types and the views are different for all the three types. Please anyone tell me how to handle the views for all these three material types.
    Thanks in advance.

    Hi,
    Refer following code which i have used for MRP 1-2-3-4 view selection
                CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
                  EXPORTING
                    MATERIAL                  = IT_UPLOAD-MATNR  " Material number
                    MATERIALART               = GI_MARA-MTART          " Material Type
                    SELECTION                 = 'D'              " PSTAT(maintenance status) value for MRP.
                    TCODE                     = 'MM01'           " Tcode where view's are called.
                  TABLES
                    BTCI_D0070                = IT_BDCDATA_VIEW
                  EXCEPTIONS
                    MATERIAL_NOT_FOUND        = 1
                    MATERIAL_NUMBER_MISSING   = 2
                    MATERIAL_TYPE_MISSING     = 3
                    MATERIAL_TYPE_NOT_FOUND   = 4
                    NO_ACTIVE_DYNPRO_SELECTED = 5
                    NO_AUTHORITY              = 6
                    OTHERS                    = 7.
                READ TABLE IT_BDCDATA_VIEW WITH KEY FVAL  = 'X'.
                IF SY-SUBRC = 0.
                  V_SELECTION = IT_BDCDATA_VIEW-FNAM.
                  VAR = IT_BDCDATA_VIEW-FNAM+17(2).
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(12)'
                                                'X'.
                  VAR = VAR + 1.
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(13)'
                                               'X'.
                  VAR = VAR + 1.
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(14)'
                                                'X'.
                  VAR = VAR + 1.
                  CONCATENATE 'MSICHTAUSW-KZSEL(' VAR ')' INTO VAR1."MRP1
                  PERFORM BDC_FIELD       USING VAR1 "'MSICHTAUSW-KZSEL(15)'
                                                'X'.
    Regards,
    Pritish

  • How can i view 10 descriptions for a member in a web form

    Hi can some one help me with this
    How can i add 10 descriptions for a member in a web form usually, if it is one description i can add that in alias
    ACNT ACNT-DESCRIPTION
    12345 communication cost
    but how can i get that if i had 10 descriptions

    Hi Abhi,
    Are you saying you want ten different aliases for a given account?
    e.g.
    Member name: Profit
    alias 1: profits
    alias 2: excess cash
    alias 3: прибыль
    alias 4: ganancia
    alias 5: Gewinn
    alias 6: hagnaður
    alias 7: Winnings
    alias 8: The Take
    alias 9: Bail out money we didn't spend
    alias 10: My big fat bonus
    There is an option in the web form definition to show alias, but not 10 of them, and AFAIK you can't add an alias via a web form.

  • How to get/view document number for KP06 Planning upload

    Hi,
    I have uploaded excel for Cost center/cost element Planning in KP06 using exccel planning.Now i want the document number which for which i have posted in KP06-Plan values using excel upload.
    Kindly advice me how to get the document number for CO-OM(Cost center/Cost element planning) in KP06?
    Thanks
    Supriya

    Hello,
    Please execute report KSBL. It should be useful.
    Regards,
    Ravi

  • ProC semantic checking without db connection, how to handle views.....

    Hello!
    We would like to run ProC with sqlcheck=semantics without connecting to a database..
    To do this we insert an
    EXEC SQL INCLUDE definitions.pc;
    in each of our source files containing embedded sql. The file definitions.pc contains
    a set of statements of the form "EXEC SQL DECLARE xxx TABLE ( .... );". This file
    is generated from another file containing "CREATE TABLE" statements.
    This seems to work, if our embedded SQL does not agree with the table definitions in definitions.pc then ProC complains.
    We would now like to get semantic checking for embedded SQL that refers to views
    but are unsure how to achieve this. There does not seem to be a statement "EXEC SQL DECLARE xxxx VIEW".
    One way to "cheat" would be to add "EXEC SQL DECLARE xxx TABLE" statements to definitions.pc for each view in the database. Writing a tool that translate a set of
    "CREATE TABLE" into a set of "EXEC SQL DECLARE TABLE" is easy, but translating
    "CREATE VIEW" into a corresponding faked "EXEX SQL DECLARE xxx TABLE" seems much harder.
    Is there a way to achieve semantic checking without connecting to a database or
    without writing a tool that parses full "create view" statements?
    Thanks,
    Lars

    There is a forum for OCI and OCCI. Please post your questions where they are on-topic.

  • How to handle goup sub total for each group in oracle query ?

    hi,
    i want to handle one complex thing in oracle query.
    i have a grouping in my oracle query.
    i want to do sub total for each group in query and after that i want to subtract one group sub total from previous group subtotal ?
    so how can i handle this in oracle query ?
    any help is greatly appreciated.
    thanks.

    Hello
    Interesting requirement.
    I wonder why are you not using these calculation during the display time. If it is acceptable then you can try using the custom formula with the running total combination in crystral report to achieve to get the required results.
    Best regards
    Ali Hadi

  • How SBO handles a Sale Price for a customer?

    Hi,
    I know that SBO has list prices, special prices per customer, volume discount prices, season temporary discounts, etc. How these are handled?, I know that first SBO looks for a item special price for the customer,  but after that is not clear to me what SBO does, Does SBO Looks for a volume discount or a Item Group Discount?, What are the priorities?
    Does anyone knows where I can find a work flow diagram or a step by step guide that shows the way the sale prices are handled in SBO?
    Thanks

    This is from the Help in SBO, hope this explains.
    Automatic Price Calculation
    When you enter a business transaction, such as an outgoing invoice or a purchase order, the system calculates the price for an item automatically. The system proceeds as follows here:
    The system first checks whether a special price has been defined for the item for this particular business partner. This special price could also be based on a particular date or quantity.
    If no special price has been defined, the system checks whether a discount group has been defined for the business partner that can be applied to the item.
    If no special price has been defined, the system checks whether a special price has been defined for the item (for the price list entered in the master record of the business partner), which once again can be based on a particular date or quantity.
    If no special price has been defined, the system copies the price for the item from the price list entered in the master record of the business partner.
    If a discount has been granted because of a special price, the discount is indicated in the detailed information of a line in the purchasing or sales document in the Discount % field.

  • How to handle Multiple date formats for the same date field in SQL*Loader

    Dear All,
    I got a requirement where I need to get data from a text file and insert the same into oracle table.
    I am using SQL*Loader to populate the data from the text file into my table.
    The file has one field where I am expecting date date data in multiple formats, like dd/mon/yyyy, yyyy/dd/mon, yyyy/mon/dd, ,mm/dd/yyyy, mon/dd/yyyy.
    While using SQL*Loader, I can see Loading is failing for records where we have formats like yyyy/dd/mon, yyyy/mon/dd, mon/dd/yyyy.
    Is there any way in SQL*Loader where we can mention all these date formats so that this date data should go smoothly into the underlying date column in the table.
    Appreciate your response on this.
    Thanks,
    Madhu K.

    The point being made was, are you sure that you can uniquely identify a date format from the value you receieve? Are you sure that the data stored is only of a particular limited set of formats?
    e.g. if you had a value of '07/08/03' how do you know what format that is?
    It could be...
    7th August 2003 (thus assuming it's DD/MM/RR format)
    or
    8th July 2003 (thus assuming it's MM/DD/RR format)
    or
    3rd August 2007 (thus assuming it's RR/MM/DD format)
    or
    8th March 2007 (thus assuming it's RR/DD/MM format)
    or even more obscurely...
    3rd July 2008 (MM/RR/DD)
    or
    7th March 2008 (DD/RR/MM)
    Do you have any information to tell you what formats are valid that would allow you to be specific and know what date format is meant?
    This is a classic example of why dates should be stored on the database using DATE datatype and not VARCHAR2. It can lead to corruption of data, especially if the date can be entered in any format a user wishes.

  • How can I view the code for a routine in an update rule

    on loading data for 0PLANT_ATTR, I am getting an error for No Local Currency found in Plant 1000 and SAles Org 6000. 
    in looking at the update rules for this, I see that there is a routine for the update of the local currency:
    Perform GET_LOCCURRCY_FOR_PLANT
    USING COMM_STRUCTURE-PLANT
    COMM_STRUCTURE-SALESORG
    CHANGING hlp_monitor
    RESULT
    hlp_subrc.
    How do I see the code behind this?  I want to make sure that I understand everything that needs to be populated in Master Data so that I can ask my functional consultant to update all the necessary fields.
    Thanks
    JP

    Hi Riccardo,
    When I double click on it, I get a message at the bottom that says program reindexed. 
    After looking again, I found that when I double clicked on the comm structure, then the routine, I was able to see it.
    Thanks
    JP

  • How to create view on dates for a given month for matrix

    hi all
    i have the following 2 tables
    Task_Master
    Task_ID
    Task_Name
    Task_Details
    Task_ID
    Task_Date
    Task_Count
    Both the tables are linked through primary and foreign keys...just want to create a view where i will provide only month and it will return the days like 1-Oct....2-Oct....3-Oct....4-Oct.....5-Oct.... and the Task_Count value under it ..INPUT IS AS FOLLOWS
    01/01/2010 How many ATM's issued Today 20
    01/02/2010 How many cheque books issued Today 50
    01/03/2010 How many cross cheques Today 50
    Result required
    Task.....................1-Jan..........2-Jan..........3-Jan.........4-Jan........31-Jan
    Atms Issued ..........20..............20..............10..............50..............1
    Chequebooks.........34..............56................67.............0................67

    Hi,
    That's called a Pivot , and here's one way to do it:
    WITH     start_date     AS
         SELECT     TO_DATE ( '01-Jan-2010'
                   , 'DD-Mon-YYYY'
                   )     AS start_date
         FROM     dual
    SELECT       m.task_name
    ,       SUM (CASE WHEN TO_CHAR (d.task_date, 'DD') = '01' THEN 1 END)     AS Day_1
    ,       SUM (CASE WHEN TO_CHAR (d.task_date, 'DD') = '02' THEN 1 END)     AS Day_2
    ,       SUM (CASE WHEN TO_CHAR (d.task_date, 'DD') = '03' THEN 1 END)     AS Day_3
    ,       SUM (CASE WHEN TO_CHAR (d.task_date, 'DD') = '31' THEN 1 END)     AS Day_31
    FROM       task_master     m
    JOIN       task_detail     d     ON     m.task_id     = d.task_id
    JOIN       start_date     s     ON     d.task_date     >=            s.start_date
                        AND     d.task_date     < ADD_MONTHS (s.start_date, 1)
    GROUP BY  m.task_name
    ;As posted, this woirks is Oracle 9 (and up).
    Starting in Oracle 11, you can also use the SELECT ... PIVOT feature, which is better.

  • Regarding ssis - how to handle new files in for each file enumerator

    Hi,
    I have one folder with 5 file text files by using for each file enumerator we store the files in to one folder but suddenly tomorrow one file add to that folder how to
    store the file into same destination?

    Inside foreach loop add a script task to check if file exists in destination folder. if exists set a boolean flag variable to True. Then link it to file system task you've using a conditional precedence constraint (Expression And Constraint). Set constraint
    as OnSuccess and expression as below
    @FlagVariable == False
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to handle multiple SOAP requests for ArrayCollection initialization?

    Hello.
    I want to initialize some ArrayCollection with objects, which receive field values via SOAP requests (in getUdfValuePrj function).
    for (var i:int=0; i < data.length; i++)
      var task:Task=new Task();
      task.laborio = getUdfValuePrj(data[i].id, LABORIOUSNESS);
    tempTaskArray.addItem(task);
    Here is my WebService:
    private function initWebServices(wsdl:String):void
      _udfWs = new WebService();
      _udfWs.wsdl = wsdl;
      _udfWs.getTaskUDFValue.addEventListener("result",
      getTaskUDFValueResult);
      _udfWs.getTaskUDFValue.addEventListener("fault", handleFault);
      _udfWs.loadWSDL();
    The question is, how functions getUdfValuePrj and getTaskUDFValueResult should look like?
    I think that is no good:
    private function getTaskUDFValueResult(event:ResultEvent):String
      _udfValue = event.result as String;
    private function getUdfValuePrj (taskId:String, udfCaption:String):String
      _udfValue = "Loading...";
      _udfWs.getTaskUDFValue (taskId,udfCaption);
      while (_udfValue == "Loading...")
      return _udfValue;

    There is no any ideas, or may be you don't understand me?

  • How to enable viewing of payload for receiver RFC adapter in RWB

    HI All,
    We can see the payload of all adapters in RWB by clicking on the message link under component >> adapter monitoirng. However when i click on message link for receiver RFC adapter, it does not show any payload. How can I enable this payload?
    Regards

    Hey
    Sync messages are Cached rather than persisted in RWB to save memory.
    You need to change the following parameter in Visual admin to see sync messages in RWB
    Service SAP XI AF Messaging:
    messaging.syncMessageRemover.removeBody = false
    its set to True by default hence it does not stores the messages.
    You may have to restart the Java stack after the changes (but first try without restarting the Java stack).
    Thanks
    Aamir
    Pl:You will see the sync messages in Message Monitoring in RWB (not sure if it will show up in Communication channel monitoring as well)

  • How osb handle end point offline for long time

    Hi all,
    In my project, the messages will be sent real time to distributed client, each client is only have one end point, so there is no load balancing could be applied. I already set the retry count, iteration interval and also offline endpoint URIs setting. Will it sufficient, in case the client hang or offline in long time, 2 hours or longer?
    How osb keep the message, will the frequent retry process causing performance issue?
    Any suggestion for proper configuration in this case?
    Really thanks in advanced.
    Regards,
    Mr.K

    only have one end point, so there is no load balancing could be applied. I already set the retry count, iteration interval and also offline endpoint URIs settingYes rety retry count is efficient when the interval are low..2 hrs or longer is little longer for stateless routing which OSB does.
    How osb keep the message, will the frequent retry process causing performance issue?Yes. I guess... OSB will be doing some thing like RequestThread.sleep(...).Again this will be transport to transport related
    Any suggestion for proper configuration in this case?Using such long intervals might not scale up
    Manoj
    Edited by: Manoj Neelapu on May 19, 2010 4:02 PM

  • How to handle too many songs for disk space?

    I have a limited collection of fongs on my primary hard drive; most of my collection - about 500GB - is kept on network attached storage. When I install iTunes it copies the music files in My Music to its iTunes Media folder. That's OK for the limited size of My Music - I have enough room on the primary hard drive for the copies. But there is no way I can store a copy of all the files on the NAS. So how do I 'catalog' those files, as well as those on my primary hard drive?

    OK, I follow this - except that I read elsewhere (in this forum if memory serves me correctly) that one reason to use the option to copy media to iTunes was so that iTunes would not create duplicate entries - which it seems very fond of doing, no matter how many times I delete them.
    If this is not the purpose of the Media folder, then what purpose does it have?
    Assuming that I elect to stop this copying, what is the recommended way of removing all the files in the media folder: blunt force with Windows Explorer, or is there an implicit/explicit command somewhere in iTunes that I haven't understood?
    And is iTunes limited to just the 1 location for 'sources' of music - or is that what the 'add folder to Library' is meant to do?

Maybe you are looking for

  • Where are the simple drum loops in garageband

    the old version had rock 1 2 3etc and counrry 1 2 3 etc now when you go to loops counrtry or rock there are no drum loops I had jamapack drums but theyt dont work in latest garageb and HELP !

  • Letter of Credit Updation

    Hi, I have an issue with Letter of Credit. I have created an LC using financial document and processed the order and PGI is done. Now the LC value is not getting updated. Even if the order value is greater than the LC value it is getting processed wi

  • Reading  huge xml files in OSB11gR1(11.1.1.6.0)

    Hi, I want to read a huge xml file of size 1GB in OSB(11.1.1.6.0)? I will be creating a (JCA)file adapter in jdeveloper and importing artifacts to OSB. Please let me know the maximum file size that could be handled in OSB? Thanks in advance. Regards,

  • Select Query Results to a .csv file????

    Hello All, I have a question in Oracle, if anyone knows how to do this. Please help me. How can I get the results of select query in Oracle loaded into a Excel file (.csv) file. Thanks in Advance, Sarada.

  • Missing iPhone BT Headset Charge Level on main Lock Screen since 1.1.1

    Hi prior to 1.1.1 the phone used to show the BT headset charging status on the mainscreen along with the phone's charge level... However since I installed 1.1.1 i don't get this here, but I will see the charge level in the main title bars when they a