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

Similar Messages

  • How to give line items in flatfile while doing BDC for Table control

    Hi all,
    I am writing BDC for Multiple line items and Transaction  is : FSE5N.
    How do i give the data in the flat file. I mean how do we give the multiple line items in flat file , i.e for second line item again we have to header data or not ?
    ex:
    1015;ALL;demo;kr;INR;01;0001;3000172;100
    1015;ALL;demo;kr;INR;01;0001;3000172;200
    for first lineitem  : 3000172;100
    for 2nd line item : 3000172; 200.
    header data : 1015;ALL;demo;kr;INR;01;0001.
    Thanks in advance
    krupali

    Hii ,
    u can give in the same format as u have done in the example.
    A       B    C     D  E    F   G        H          I
    1015;ALL;demo;kr;INR;01;0001;3000172;100
    1015;ALL;demo;kr;INR;01;0001;3000172;200
    and while writing the loop u can give
    loop at it_head.
    loop at it_head where a = it_head-A and b = it_head-B ..........upto G = it_head-G.
      endloop.
    endloop.
    check this
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Neeraj

  • How to maintain translation of views in material master

    Hi,
    How we can maintain translation of views in material master
    E.g.
    Basic Data
    Classification
    Purchasing
    MRP1
    MRP2
    Ect…
    We want to maintain translations in different languages.
    Thanks
    Sudhir

    Dear Sudhir,
    Check this link may be help you.
    https://help.sap.com/saphelp_nw70/helpdata/en/ad/06dcf1c4be11d291c70000e8a5f6e6/content.htm
    Regards,
    PK.

  • How to remove any view from material master

    Hello guys,
       Actually we can attach the view to material master by MM01 and also by MM50.
       Now,consider this, in my company even we sale the semifinished material along with the finished material.So we have attached the sales view to semifinished material and finished material.Now my company has decided to not to sale the semifinished material.So there is no sense in keeping the sales view in material master of semifinished material.So we want to remove the sales view from the material master of semifinished material.
         So could you guys help me out to do this?

    Hi
    From the config for Material type attributes you can change the views relevant to Material type means you can unselect the sales views - that will definately take care of the new materials that will be created. But for the existing one's and the data is something you need to see and investigate
    I would advice you to check all the aspects in dev client and then take a decision.
    Thanks

  • Current period in Accounting 1 view of Material Master

    Dear Experts,
    In Accounting 1 view of Material Master there is a current period, now it is 12 2009.
    Is it possible to make it 11 2009, if yes how to do it.
    Please help if you have solution. it is very crucial for me.
    Thank you for your support.
    Regards,
    Zusen

    Hi,
    Please read the Solution part of  note 487381. There is still a few things need to be carry out before you can proceed
    with the initialization :
    Bear in mind that the initialization of a posting period has the
    following effects concerning the period stocks:
        o  The initialization of the posting period to a previous or to any
           posting period may lead to the loss of the information of the
           inventory balances of the previous periods.The book value of the
           current posting period is taken as the basis also for values of
           the previous period in this case.
           If you want to continue working with this new posting period, in
           addition you should execute report Z_DEL_HIST_ENTRIES attached so
           that history entries greater or equal to the new posting period
           will be deleted.
        o  If you have to briefly reset the posting period by one period
           (for example, postings must still be posted in a certain period)
           just to make a correction (and for a small number of postings),
           you should initialize the posting period back again to the old
           value so that the values of the previous period will not be lost
           (you should forbid postings when carrying out corrections).
           However, afterwards the values of the previous period or the
           history records (as of Release 4.5) of the materials posted in
           this case are inaccurate.
           You should NOT execute report Z_DEL_HIST_ENTRIES in this case.
        o  However, if the posting period is generally reset again to a
           previous posting period and if postings were made during this
           time, all information on the inventory balance of the previous
           periods is lost.
           As of Release 4.5a, you should use the cited correction report
        Z_DEL_HIST_ENTRIES in order to delete history records that are
        more current than the current posting period.Otherwise, it can
        result in deviations (inconsistencies) for the update of the
        history records.
    o  Important! If there are open physical inventory documents that
        have status 'counted' or for which indicator 'Freeze inventory
        balance' has been set, you should reject these if they refer to a
        previous period or have been created in the former previous
        period.The inventory difference to be posted can be determined
        from the current book value of the previous period and the book
        quantity frozen in the physical inventory document (ISEG-BUCHM)
        and does not match the inventory balance of the previous period
        that is currently valid.

  • Problem with *serial no. profile* in work sheduling view of material master

    Hi ! !
    I am here with a problem with serial no. profile in work sheduling view of material master.
    By mistake for some FHMI type ( PRODUCTION RESOURCE TOOLS )materials, serial no profile exist in 'work sheduling' view. Due to that we are facing problem in GRN.
    when I am trying to remove that with MM02. i m getting a message as Serial numbers already assigned to this material
    Please suggest how to remove serial no. profile.
    Thanks in advance,
    Prab

    Hi,
    go to MMBE and check the Current Serial number...for  FHMI type
    and go to IQ02 and close the Serial number range at the Current number range...
    Now you can assign this serial number range to another material type...
    Thx
    Raju

  • View in material master

    Hi Gurus,
    How to delete the view of material master say ex:storage location view for a material
    Regards,
    Subbu

    Hi Subbu,
    Views are dependent on the the material type.
    if u do not want a view for a material type then, u can go to tcode OMS2 and there u can deselect the view in the userdepartment. and save.
    Now that view wont be their for that material type.
    Hope it wud have answered ur question
    Reward if useful
    Shawn

  • PO creation without Purchasing view in material master

    Hi
    i am using 4.6 version
    system is allowing to create PO without purchasing view in material master.
    how it would be possible ?
    Regards
    Rahul

    Hi,
    i have checked with MARA for that material PSTAT value it is showing there "KDALBPCGV"
    please suggest
    regards
    rahul

  • What is the concept of  view in material master?

    Hello sap gurus
    Some quetions regarding Material Master
    what is  the concept of views in material master ?
    what is determined by specifying industry sector in material master ?
    To sell material which views are material are maintened in Material master?
    Regards
    Amit

    Hi,
    <b>Material master  for finished ggods is related with SD, MM & PP departments</b>. If you carefully go through the various screens in MM record you will realize the importance of the respective fields and the department to which they belong.
    <b>1.Suppose Base unit of measure</b> in Basic data 1 screen. The production people will keep the stock of the item using this UOM.
    <b>2. In Sales:Sales Org.1</b> screen we have sales unit in which we will sell the material.
    <b>3. Then we have the plant</b> data in which we enter the delivering plant. Also the taxes are determined from the plant so we have the settings for taxes also - whether this material is fully taxable/50% tax/Tax exempted.
    <b>4. Then we have purchasing</b> screen in which the data like the purchasing group, variable units,etc are entered. This will effect the purchasing cycle when we are procuring a material from outside. This is related to MM.
    <b>5. The we have MRP</b>, this is related to PP as to how to manufacture the product, the MRP type, the strategy group - whether it is MTO/MTS like that.
    <b>5. Sales:Sales Org.2 screen</b> - Here we mainatin the account assignment group which is very important as far as the generation of the accounting document is concerned. This triggers the system where to post the value in which G/L account. Accounting document is generated when we create the invoice in VF01 & save it.
    <b>6. Work scheduling</b> - Related with the sceduling of the production as to whether underdelivery or overdelivery is allowed, the storage location
    <b>7. Quality</b> - Here you can select for a particular finished item where where it has to be checked for quality during its journey from the raw material stage to the finished goods store as a finished item.
    <b>8. Accounting</b> - Related to accounting, product costing, total value of the stock in hand, etc. Also related with FI & PP
    So all the screens have data which effects one or more modules for the proper functioning of the system to give the optimum results.
    <b>Industry Sector:</b>
    Key that specifies the branch of industry to which the material is assigned.
    <b>Use</b>
    When you create a material master record, the industry sector you specify determines
    1. which screens appear and in what order
    2. which industry-specific fields appear on the individual screens
    <b>Screens for Sales:</b>
    Sales:Sales Org.1, Sales:Sales Org.2. But other screens also have data which is related to sales. You cannot just maintain the sales views and save the master. It has to be properly linked with the other modules also for the proper functioning of the system. That is why the system is called as "Enterprise Resource Planning" You have to paln the resources of your company and these resources are related with all the modules.
    Reward points if solution helps.
    Regards,
    Allabaqsh G. Patil

  • Sales org 2 view in material master

    hi gurus,
    Iam not able to see all fields in sales org 2 view in material master and i would like to know how to configure to restrict end users not to change it . thank you in advance.
    regards,
    Gopio

    Hi naga gopathi
    go to Spro->logistics general ->materials management->  there you select the options of material feilds and select the material type and click on till you reach the sales orgn 2  view , .
    In MMR settigs you can see table  wise so i think it should me MARA table. for sales orgn 2 view
    There you check the feilds wat you want is in display or supress mode 
    Regards
    Srinath

  • View using Material master,Vendor master and PO tables

    Hello folks.
    There is a requirement to create view using material master tables ( MARA,MARC,MARD,MAKT & MBEW ) , vendor master tables ( LFA1 & LFB1) and
    Purchase order tables ( EKKO & EKPO tables).
    I have created the attribute views for material and vendor master tables separately.Now I am thinking about the following design pattern.
    1. Join the material master master attribute view to EKPO table using the inner join to create a analytic view1.
    2. Join the material vendor  master attribute view to EKKO table using the inner join to create a analytic view2.
    3. Now create calculate view using join to combine analyticalview1 & analyticalview2.
    Please suggest me the best optimize pattern and am strange to SAP HANA. Please also clarify the following doubts.
    1. What is the role of system supplied default aggregation node?
    2. How can I use Union node in the calculation view in the current requirement  because people/documentation  always suggesting  using of  Union than Join?
    Thanks & Regards,
    Suresh Kuturu

    I have managed to create the Analytic view as per my requirement.. No need to use calculation view  in this case..

  • Extend Classification View for Material Master

    Hello, How do I extend classificiation view for Material Master? Is there any BAPI or FM to do that?
    I cant find any place to extend it with BAPI_MATERIAL_SAVEDATA

    Hi,
    Use this FM to create Classfiaction view BAPI_OBJCL_CREATE
    Regards,
    Shan

  • Adding fields in costing view of material master

    Hi gurus,
    I need to add 4 fields in costing view of material master. I have followed the steps in SPRO, for configuring customized screen in material master.
    1) Created a function group YMMCO and copied the screen 2904 from program SAPLMGD1.
    2) Added 4 fields in my customized screen.
    3) Created copy of 01 ( Screen reference ) to z1 in OMT3B.
    Since 2904 is not there in the sequence . I changed one 0001 sequence at the end to 2904 . I also assigned my program
    SAPLYMMCO to it. I can see the changed fields in data screen and subscreen.
    4) Then I assigned the SSq to z1 in transaction OMT3E.
    But unfortunately, when I go to MM01 to create a material , I am not able to view the fields I added in costing view.
    I have checked the screen for the previous field, it shows 2904 only.
    Two days back, I did the same thing in basic data view 1 , it was working properly. As per client's suggestion I put it in
    costing view, it is not working . Please give me suitable suggestions.
    Thanks in advance.
    D. Mallick

    Hi,
    I also need to add custom fields to Basic data view. After copying & changing the screen sequence in Config, I could able to see the custom fields in Basic Data view.
    I have appended structure with custom fields to MARA table.
    But the values I enter in the screen is not getting updated to the table MARA.
    Can you please let me know the code, I should have have in PAI (Process After Input) module in the Sub Screen to update the values?
    Thanks,
    Dasa

  • Purpose of maintaining classification view in material master

    Hi gurus
    can anyone explain Purpose of maintaining classification view in material master with example
    Regards
    Vishal...

    Hi
    One of the reason we maintain classification is for batch management where characteristics like shelf life expiry date is being attached to a class & that class is maintained in material master so whenever transactions takes place it will read from the characteristics value.
    the other purpose is with variant configruation, for a configurable material there will be more than one characteristics for ex: in a car it comes with A/C - non a/c, metallic - non metallic, normal steering - power steering all these are mainatained as characteristics & assigned to a class & we use that class in classification for materials.
    there is many more advantages & ways of using classification in material master.
    Regards
    Rang

  • Significance of purchasing view in Material master

    Hi,
    What is the significance of purchasing view in Material master.
    What could be effect if this view is not maintained?
    Like for material type FERT there is no Purchasing view, but we can do procurement for FERT items.
    So what is the significance of purchasing view in Material master?
    Uts

    Hi,
    I cant Agree your statement,because for the Purchasing Activities it is mandatory that you Maintain the Purchasing view of the Material.
    it Gives a error ..material not maintained by Purchasing.
    Material XXXXXX not maintained by Purchasing
    Message no. ME046
    For Inhouse Production through Quota arrangement,it can be optional.
    but for the remaining cases ,it is Mandatory.
    and the Material type your are speaking is FERT.which is standard material type for Finished products.
    if you are having External Procuremnt 100% sure it would be having Purchasing Tab activated .
    if not so that,if it is a inhouse production.
    check it in OMS2 ..for clear information
    Regards
    Anjanna.

Maybe you are looking for

  • Performance issue in BI due to direct query on BKPF and BSEG tables

    Hi, We had a requirement that FI document number fieldshould be extracted in BI. Following code was written which has the correct logic but performance is bad. It fetched just 100 records in more than 4-5 hrs. The reason is there was a direct qury wr

  • Adobe Media Player bug, 2 years on.

    I note on the Adobe Develop site for Flex tutorials, the company states: Want to view Flex in a Week videos in offline mode? Follow these steps: Install Adobe Media Player. Click the My Favorites menu at the top. Click Add RSS Feed at the bottom. Cop

  • Mophie Juice Pack for iPhone4

    Does anyone know if there are plans to release a new juice pack for the iPhone 4? Is there anything even comparable to the Mophie juice pack? I have the one for my 3GS, but I will be upgrading like most of you and just wanna be prepared. I don't like

  • How can I hide the thought bubble when typing?

    Very simple, I'd love to know how to hide the bubble with the ellipsis that pops up for others to see when I'm typing. I'm hoping this is an easy question for someone to answer. I knew how to do it before, but now not so much. Thanks!

  • User manual for the PXI-6723

    I've been trying to find a pdf of the user manual for the PXI-6723. I need to know the pinouts of the two connectors. The data sheet I have shows no pinout. Arthur Galan Senior Technician - Space Science and Engineering Southwest Research Institute D