BDC to Check the Views Maintained For A Material Master

You want to run a BDC programme to update your material master for selected views. Now every master depending on its creation has got different views maintained, and you want to select only two views i.e. PURCHASING and MRP 1 every time for each material code. If you go statically by giving the index for the views selection screen, then the selection of the views go wrong every time there is a change in the total maintained views for a material.

For example:
Check field MARA-VPSTA. Updated with a character for a specific view.
Think it is like this: 
           'A'.                  " Work scheduling
           'B'.                  " Accounting
           'C'.                  " Classification
           'D'.                  " MRP 1 / 2 / 3 / 4
           'E'.                  " Purchasing/Foreign trade import
           'F'.                  " Production resources / tools
           'G'.                  " Costing
           'K'.                  " Basic Data
           'L'.                  " Plant data - Storage 1 / 2
           'P'.                  " Forecasting
           'Q'.                  " Quality Management
           'S'.                  " Warehouse Management
           'V'.                  " Sales
           'X'.                  " Plant stocks
           'Z'.                  " Storage location stocks

Answer: 
Many Abaper have this problem.  When you record your BDC transaction select the basic data view only.  Then navigate to the views you want using the tabs.  (don't select and use enter).  You will get values like "SP06".  These will take you directly to the screen. 

Questions
Do you have a ABAP Question?

Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.