Get variantclass from KMAT in report

Hello Community,
I want to program a "F4-valuelist-function" in my zreport where the user can find
all dependent characteristics from the variantclass (type 300) of the
KMAT. The KMAT is the select-option in my report. So the program
should find the right class and then use a bapi to list all characteristics,
so the user could choose the chosen characteristic for his request.
I can't find the association between KMAT (MARA) and CLASS in SAP.
Can anybody guide me?
Thanks
Markus Pawlinka

Hello Markus,
For a KMAT , you can get the link via the following tables and fields
Enter materials number as OBJEK in table INOB. From that you can get CUOBJ.
With that CUOBJ , please check table KSSK. Enter KSSK-OBJEK as INOB-CUOBJ.
You will get CLINT from table KSSK. Which is the class ID.You can the access the characteristics from table KSML.Please be carefull with overwritten characteristics.
As for the object values , you can simply use BAPI BAPI_OBJCL_GETDETAIL_KEY or BAPI_OBJCL_GETDETAIL.
Also please review note 1547034 - How are characteristic values updated in table AUSP?
It has detailed information on how the characteristics are saved,
Thanks
Amber

Similar Messages

  • Get DataTable From SSRS Server Report

    HI,
    I am using SSRS reporting service. In my web application, I am showing SSRS Server Report in my custom rdlc viewer.
    I am getting report definition by ReportingService2005 Web Service and setting report parameters from UI.  
    My Code Snippet Like Below:
    RptViewer.ProcessingMode = ProcessingMode.Remote;
    IReportServerCredentials irsc = new CustomReportCredentials(System.Configuration.ConfigurationManager.AppSettings["rsUser"], System.Configuration.ConfigurationManager.AppSettings["rsPassword"], System.Configuration.ConfigurationManager.AppSettings["rsDomain"]);
    RptViewer.ServerReport.ReportServerCredentials = irsc;
    RptViewer.ServerReport.ReportServerUrl = new Uri(System.Configuration.ConfigurationManager.AppSettings["SSRSSVR"]);
    RptViewer.ServerReport.ReportPath = my_reportPath;
    RptViewer.ServerReport.SetParameters(reportParameters);
    RptViewer.ServerReport.Refresh();
    MY Question:
    This Code directly show the report. But my requirement is not to showing the report if the datatable return 0 rows.
    How can I get the datatable from server report just before loading the report? Is there any way? 
    Getting the datatable from server report is also necessary for another reason. I want to export the report to excel (only data not rdlc built in excel format), and for that I need the datatable available.
    Since the report is already loaded, I do not want to query again to pick the datable.
    So, Is there any way to get the resultant datatable before the server report loaded in report viewer.
    Regards,

    hope the link is hopeful:http://www.experts-exchange.com/Programming/Microsoft_Development/Q_27581973.html

  • Where do I get attributes from in AuditLog Report

    Hi,
    Here is my AuditLog Report
    defvar name='attrMap'>
    <Map>
    <MapEntry key='attr.office' value='Office'/>
    <MapEntry key='attr.lastname' value='Last Name'/>
    <MapEntry key='attr.custid' value='Cust-ID'/>
    <MapEntry key='attr.action' value='Action'/>
    <MapEntry key='timestamp' value='Date'/>
    <MapEntry key='attr.actionOnUser' value='Action on User'/>
    <MapEntry key='attr.station' value='Station'/>
    <MapEntry key='attr.mailrouting' value='Mail Office Code'/>
    <MapEntry key='attr.firstname' value='First Name'/>
    <MapEntry key='attr.initials' value='Middle Initial'/>
    </Map>
    </defvar>
    <defvar name='attrList'>
    <List>
    <String>attr.office</String>
    <String>attr.lastname</String>
    <String>attr.custid</String>
    <String>attr.action</String>
    <String>timestamp</String>
    <String>attr.actionOnUser</String>
    <String>attr.mailrouting</String>
    <String>attr.firstname</String>
    <String>attr.initials</String>
    <Field name='audit.attrMapField'>
    <Expansion>
    <ref>attrMap</ref>
    </Expansion>
    </Field>
    Not sure where do I get the values from? there is no attribute named attr.custid etc.. Where can I find these. Any help would be appreciated. Basically I have to add an attribute for user's job title. When I define attribute attr.title, no value is populated in the AuditLog Report. Any help would be appreciated. Thanks in advance
    Edited by: 994616 on Mar 18, 2013 4:29 PM

    My photo icon on icloud.com did not appear until I went to my device (ipad in my case) and went to settings...Photos and Camera and toggle on iCloud Photo and Library (Beta) then refresh the icloud.com page.

  • How can I get CDP neighbor information from access point reports in Cisco Prime 2.0

    How can I get CDP neighbor information from access point reports in Cisco Prime 2.0?  I have looked through all the reports and I cannot find a report that gives me the CDP neighbor information of an access point.  I thought that information was in there, however I cannot seem to find it.
    Thanks in advance!

    Hi
    You can get this from an inventory report in PI (Select Report Type AP). Here is an example of PI 2.1 works for me. Once you export this into excel you can sort based on controllers & filter the single controller connected AP you want.
    Regards
    Rasika
    **** Pls rate all useful responses ****

  • Values not getting displayed from first page of the report.

    Values in the report is getting displayed from second page.
    First page in the report only displaying the report title and column names.
    Secone page onwards, data and column names are generated.
    Can any one please help me, with the cause of the problem.

    what reporting tool?
    Interactive Reporting
    Financial Reporting

  • Get value from  APEX_ITEM.SELECT_LIST_FROM_QUERY - column on a report.

    Hello.
    Help. Help. Help.
    I have to get value from APEX_ITEM.SELECT_LIST_FROM_QUERY - column on a report.
    SELECT DISTINCT ROLE AS GET_ROLE,
    JOB AS GET_JOB,
    APEX_ITEM.SELECT_LIST_FROM_QUERY
    ( 1, '%', 'SELECT DISTINCT CODE c,
    MODE m
    FROM T2
    WHERE ROLE = ' || ROLE ) AS GET_CODE
    FROM T1
    WHERE AGE >30 AND
    SEX = 'M' ;
    I was trying to use javascript :
    for (var i = 0; i < selectlist_name.options.length; i++)
    if (selectlist_name.options[ i ].selected)
    result=selectlist_name.options;
    But I don't know is that correct:
    "selectlist_name" - APEX_ITEM.F01
    (of my APEX_ITEM.SELECT_LIST_FROM_QUERY)?

    Just as a note, but you want to make sure your APEX_ITEM call is closed. The code snippet you posted isn't complete.
    APEX_ITEM.SELECT_LIST_FROM_QUERY(6,c020, 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from DISTRIBUTIONS','style="", SEQ_ID   <-- No closing )In the documentation - http://www.utoug.org/i/doc/api099.htm - (though it isn't necessarily the easiest to read) it gives this explanation of the syntax:
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
    p_idx IN NUMBER,
    p_value IN VARCHAR2 DEFAULT,
    p_query IN VARCHAR2,
    p_attributes IN VARCHAR2 DEFAULT,
    p_show_null IN VARCHAR2 DEFAULT,
    p_null_value IN VARCHAR2 DEFAULT,
    p_null_text IN VARCHAR2 DEFAULT,
    p_item_id IN VARCHAR2 DEFAULT,
    p_item_label IN VARCHAR2 DEFAULT,
    p_show_extra IN VARCHAR2 DEFAULT)
    RETURN VARCHAR2;
    What you want to look at is p_value to set an initial value. It should come from your data, but you could consider doing an NVL or DECODE to substitute your default.
    In this case it would modify your query to be:
    SELECT distinct apex_item.hidden(1, seq_id), c003,c004,c005, c006,
          APEX_ITEM.SELECT_LIST_FROM_QUERY(6,c020, 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from DISTRIBUTIONS','style=""),
          SEQ_ID
      FROM APEX_collections
    WHERE collection_name = 'ARGYLL_INVOICES'
    order by seq_id If the value is always NULL, you can use the p_show_null, p_null_value, and p_null_text to put in a "default"
    SELECT distinct apex_item.hidden(1, seq_id), c003,c004,c005, c006,
          APEX_ITEM.SELECT_LIST_FROM_QUERY(6,NVL(c020,0), 'select DISTRIBUTION_NAME, DISTRIBUTION_NAME from DISTRIBUTIONS','style="",YES, 100, 'Default'),
          SEQ_ID
      FROM APEX_collections
    WHERE collection_name = 'ARGYLL_INVOICES'
    order by seq_id

  • Get data in a subreport based on a shared variable from the main report.

    Goodd morning,
    My question/problem is how to manage this scenario.
    I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now  i would like to get data in this subreport based on these 2 variables...
    The problem is that i can not find the shared one in select expert icon...
    Could anyone point me to solve this issue?
    Thks for any help.
    Jose Marin
    Crystal Report XI SR3

    Hello Jos,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • TS1702 I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2.  I can get no further as a report code keeps appearing saying too many http redirects so I can not get any furthe

    I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2.  I can get no further as a report code keeps appearing saying too many http redirects so I can not get any further.
    I have also sent 3 emails to the company if Smart Office 2 with no response.
    How do I report my dissatisfaction which is growing with the frustration of not being able to contact any one!
    Zena Parton

    I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2.  I can get no further as a report code keeps appearing saying too many http redirects so I can not get any further.
    I have also sent 3 emails to the company if Smart Office 2 with no response.
    How do I report my dissatisfaction which is growing with the frustration of not being able to contact any one!
    Zena Parton

  • Get data from a Report Painter

    Hello.
    Does anyone know how to get data from a Report Painter?
    Thanks in advance!

    Hi
    check the links
    Report Writer functions can be accessed from within the Report Painter.
    The difference lies in the GUI of the report painter.
    For Report Painter
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
    For Report Writer
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7dc143c211d182b30000e829fbfe/content.htm
    Refer the following links :
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-other/accessing-tables-using-report-painterwriter-98766
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    Regards
    Anji

  • How to make smartform get data from report painter???

    hi all!
    please tell me how to get data from report painter?
    i has a report painter zabc ( create through t-code ke31).
    I want  get data from Zabc after run and show data by smartform.
    plz help me!
    thanks

    Hi ,
    Please check this link [SMARTFORM|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
    Regards,
    Smart

  • TS5185 Hi After I have report a junk message I coudl not get Imessge from other iphone. and could not send any message in blue color but green which need to pay for.

    Hi After I have report a junk message to 7726, I coudl not get Imessge from other iphones. and could not send any message in blue color but green which need to pay for. Does Apple blocked my imessage ? I have checked the setting. imessage is on.
    Thanks,
    J

    Make sure that your date and time settings and time zone are accurate (Settings - General - Date and Time). Reset your phone to 'Set Automatically' and then try signing in again - this worked for me.  My date/time settings were not automatic (candy crush cheats!!).

  • Get Delay from MD4C Report

    Hi All,
    I have been trying to use FM  MD_SALES_ORDER_STATUS_REPORT to get the Total Delay, Unit of delay and Icon delay from the MD4C report. The FM runs properly with valid data provided but for any input I have not been able to get the ET_MLDELAY table filled from the output of the FM.
    Con you please help? Also I want to suppress the output in the ALV(screen) format. I only want to see the output of the FM in the ET_MLDELAY table. Please tell me how could I do this.
    Thanks & Regards,
    Srilakshmi B

    Not relevant currently

  • Get information from a row in a report region to be used in conditions

    Hi,
    I have a page with 2 regions.
    First region is a report from a table (departments) and the other region is another report region (employees).
    One of the columns in the departments report is a link that when I click on it, it will refresh the second region to show the employees by department.
    My issue is when I open the page for the first time or get back from another page, I want to show by default the employees for the first department. I don't know how to get this value and assign it to a a Page Item and use this page item in the second report.
    I appreciate any help.
    Thanks
    andrese

    Andrese
    For page item (which you populate when user clicks on department report link), write default value as plsqlfunction body and try something like
    DECLARE
    v_dummy tbl_dept.dept_id%TYPE;
    BEGIN
    SELECT dept_id INTO v_dummy FROM tbl_dept WHERE ROWNUM = 1;
    RETURN v_dummy;
    END;I take it you populate dept_id into page item, when users click on department report link. You can change this according to your requirement. Also make sure that the SELECT query matches with your department report query so that first row of your department report always matches with above SQL query output.
    Please note that this may not work if your department report query contains any GROUP BY/ORDER BY/HAVING clauses
    Cheers,
    Hari
    Edited by: Hari_639 on Oct 5, 2009 9:04 PM

  • I dont have data in "Client status summary" report for servers in server collection, but get data from our Windows 7?

    Hi,
    I dont have data in "Client status summary" report for servers in server collection, but get data from our Windows 7?
    So and idea of way I dont get data from or servers? Missing client setting for servers?
    /SaiTech

    Hi,
    I do see the server in Server collections in "Monitoring--Client Status--Client Activity" but not in reports like "Clients with failed client check details" i get "No Data Available"?
    /SaiTech

  • Get feedback from report viewer

    We want to get the feedback from java crystal report viewer whether report is printed or not.Simply want to know print button is pressed by the user of print dialog.
    Earlier we got feedback from VB6 viewer from bellow code,
    CrystalReport.PrintingStatus.Progress
    Do we have a method to get this from java viewer.It is a very important feature for us,
    Thanks.

    Recently i found the method printInteractively (..) in ReportPagePrinter class in CrystalReportsRuntime.jar package does not return any thing.
    public void printInteractively(ReportDocument paramReportDocument, String paramString, PrintObserver paramPrintObserver)
        throws PrinterException
        jdMethod_int(paramReportDocument, paramString, paramPrintObserver);
        int[] arrayOfInt1 = new int[1];
        int[] arrayOfInt2 = new int[1];
        ReportPage localReportPage = jdMethod_int(1, arrayOfInt1, arrayOfInt2);
        if (localReportPage == null)
          return;
        this.D = jdMethod_try(localReportPage);
        if (!jdMethod_int(this.v.defaultPage().getPaper(), this.D))
          PageFormat localPageFormat1 = jdMethod_byte(localReportPage);
          PageFormat localPageFormat2 = this.v.pageDialog(localPageFormat1);
          if (localPageFormat2 == localPageFormat1)
            return;
          this.D = localPageFormat2.getPaper();
        if (!this.v.printDialog())
          return;
        this.v.print();
    Why this important feature does not have in java package.Any future release do you expecting to add that ?

Maybe you are looking for

  • Export portrait view of landscape iBooks Author file?

    I'm working with a template in iBooks Author that is landscape layout. I enabled the portrait view (in Inspector > Document). When I preview my book on iPad it flips to portrait orientation -- changes to pure scrolling, images moved to sides of text,

  • How do I choose what songs will be on my shuffle.

    I also own a classic ipod that holds lots of songs.  I wanted something smaller to take to the gym.  I connected my new ipod shuffle registered it then it automactically started downloading songs from my library.   I have certian songs selected or ch

  • Auditing the Error Records

    How can I audit the bad records that are getting rejected from the target table. ie) i want to store the bad records rejected out to a separate table. i tried checking it out in the wb_rt_error_sources table in runtime repository, but it holds only t

  • Tha database connector 'crdb_p2bxbse.dll' could not be loaded.

    Hi there, When I try to load a DBF file (dBase IV), I'm getting following error: Failed to load database information. Tha database connector 'crdb_p2bxbse.dll' could not be loaded. The correct verision of the database client for this database type mi

  • Scripts missing from Library/WebServer/CGI-Executables

    I updated my Tiger system to Leopard, and in general all is well, however, there are no scripts in Library/WebServer/CGI-Executables. I believe there should be at least two, test-cgi and printenv. In fact, I can't find these anywhere on Leopard. Can