Generating of report of configurable material

Hello
We are using configurable material and is there a way to generate reports to know the sale of each varient
regards
naveen

sir /NSAP1 dosn't woek
/NSAP1 won't work if you're in some transaction. You need to be in SAP Easy Access screen or some area menu for it to work. But then you don't need to use /N you can just use SAP1.
A general rule of thumb is you can go to most area menus by the first two letters of their business transaction codes  followed by 00, for example inventory management area menu is MB00
Coming to your question, I don't know what  you mean by
consumption of individual component ie varient of a configrable material.
Variant of a configurable material is just regular material and you can use any report you can use VA05 or COOIS etc.
If you want to look for all the sales orders which have a particular characteristic value assigned you can use CL30N
More reporting transaction codes are in area menu CU00 and CL00

Similar Messages

  • How to generate a report in MM

    Hi All,
    1. I want to generate a report in MM(Material Management) into excel where I can see the comments of my Purchase orders where I mentioned in Header Text, Header Note. Is it possible? If yes please let me know how to do that.
    2. I want to generate report where It shows PO creation Date and the Delivery Date of the PO.
    3. I want to generate report where what ever PO's I created It should show me what are all the ERS(evaluated Receipt System) Vendors and which are all the Non-ERS vendors.
    4. I want to generate report where what ever PO'S I created all have the Tax code.
    These reports I want to export in Exce....... Please suggest can I run these reports in 1 report or how many I can club.....
    Please advise..

    Hi ,
    1. I want to generate a report in MM(Material Management) into excel where I can see the comments of my Purchase orders where I mentioned in Header Text, Header Note. Is it possible? If yes please let me know how to do that.
    --> For the above requirement you will have to develop a 'Z' report with the help of ABAPer
    2. I want to generate report where It shows PO creation Date and the Delivery Date of the PO.
    --> PO creation date is available in standard reports like ME2L , ME2M. However for delivery date you will have to customize a 'Z' report.
    3. I want to generate report where what ever PO's I created It should show me what are all the ERS(evaluated Receipt System) Vendors and which are all the Non-ERS vendors.
    -> This report is not available in Standard SAP.
    4. I want to generate report where what ever PO'S I created all have the Tax code.
    -> This report is not available in Standard SAP.
    All the above requirement of yours can be clubbed in a single report by developing a 'Z' report with the help of ABAPer.
    Regards
    Swapnil Iyer

  • Error while generating the report on Test env (for divide condition)

    Hi All,
    I am facing the below error while generating the report in test environment while the same report is working fine on Prod environment.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression. [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression. [nQSError: 16015] SQL statement execution failed. (HY000)
    Actually the error is coming for the below logics:
    COUNT(DISTINCT RMA.RMA)/COUNT(DISTINCT User."User Name")
    "RMA Fact"."Module Backlog"/COUNT(DISTINCT User."User Name")
    Can anyone please tell if I need to make any configuration changes as the same logic works perfectly fine on production but not on test.
    Thanks in advance

    Is anyone having any idea about it...

  • Generate SSRS Report and save as PDF in SharePoint

    Hi,
    I am working on a SharePoint 2010 Visual WebPart that lets a user click a button to generata a SSRS report and save the report in a SharePoint Library as a PDF file.  Code is mentioned below:
    try
    string siteContext = SPContext.Current.Web.Url;
    string strReport = siteContext + "/Reports/Quote/Quote.rdl";
    WR_SSRS.ReportExecutionService rs = new WR_SSRS.ReportExecutionService();
    rs.Url = siteContext + "/_vti_bin/ReportServer/ReportExecution2005.asmx";
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    byte[] result;
    string format = "PDF";
    string historyID = null;
    string devInfo = "<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
    WR_SSRS.ParameterValue[] parameters = new WR_SSRS.ParameterValue[3];
    parameters[0] = new WR_SSRS.ParameterValue();
    parameters[0].Name = "EnqID";
    parameters[0].Value = enqID.ToString();
    parameters[1] = new WR_SSRS.ParameterValue();
    parameters[1].Name = "QuotationID";
    parameters[1].Value = quoteID;
    WR_SSRS.DataSourceCredentials[] credentials = null;
    string showHideToggle;
    string encoding;
    string mimeType;
    WR_SSRS.Warning[] warnings;
    WR_SSRS.ParameterValue[] reportHistoryParameters;
    string[] streamIDs;
    WR_SSRS.ExecutionInfo execInfo = new WR_SSRS.ExecutionInfo();
    WR_SSRS.ExecutionHeader execHeader = new WR_SSRS.ExecutionHeader();
    string SessionId = null;
    string extension;
    rs.ExecutionHeaderValue = execHeader;
    execInfo = rs.LoadReport(strReport, historyID);
    rs.SetExecutionParameters(parameters, "en-gb");
    SessionId = rs.ExecutionHeaderValue.ExecutionID;
    result = rs.Render(format, devInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);
    execInfo = rs.GetExecutionInfo();
    using (SPSite site = new SPSite(SPContext.Current.Site.ID))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPFolder folder = web.Folders[siteContext + "/Quotes"];
    string filename = string.Concat(quoteID, ".pdf");
    //remove old copies
    SPList lib = web.Lists["Quotes"];
    foreach (SPListItem i in lib.GetItems())
    if (i.Name == filename)
    i.Delete();
    break;
    SPFile file = folder.Files.Add(filename, result);
    SPListItem item = file.Item;
    item["EnquiryID"] = enqID.ToString();
    item["FinalQuote"] = "No";
    item.Update();
    web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    LogError(ex.Message);
    The WebPart works fine in my local server and even on another development testing server.  However, once deployed to the live server that has claims authentication it stops working and throws an error that says:
    "Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. 
    The request failed with the error message: 
    <RSError xmlns="http://www.microsoft.com/sql/reportingservices"><MoreInformation><Message>An unknown error occurred with the Reporting Services endpoint on this SharePoint site. Contact the SharePoint site administrator for help.</Message></MoreInformation></RSError> 
    If I open the report manually in SharePoint Site, it works fines it even works fine when try to view in a WebPart. 
    Can someone help me with this ?
    Regards, Vikram

    Hi Vicky,
    Based on the error message, it is related to the service account for reporting service.
    If the Report Server service runs under a built-in account such as NetworkService, the Grant database access option in SharePoint Central Administration will not work correctly.
    Configure the service account to run under a domain user account as follows:
    1. Start the Reporting Services Configuration tool and connect to the report server.
    2. On the Service Account page, click Use another account, enter a domain user account, and click Apply.
    3. Click Web Service Identity, for Report Server, click New, type an application Restart the Report Server service.
    Here is a detailed MSDN article for your reference:
    http://msdn.microsoft.com/en-us/library/ms159704.aspx
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Generated a report which gives PR(Purchase Requisition) analysis using ALV.

    hi experts,
    please give me tables and fields for following report, and also exlain me briefly,
    Generated a report which gives PR(Purchase Requisition) analysis using ALV.
    thanks in advance,
    radhakrishna

    Hi
    please find this report which link SO PO PR and Prd Ord and there status.
    >
    REPORT z_so_info.
    TABLES: vbak, vbap, afko, afpo.
    *Field catalog
    TYPE-POOLS: slis.
    DATA: lv_repid TYPE sy-repid VALUE sy-repid,
    xfield TYPE slis_t_fieldcat_alv,
    afield TYPE slis_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(25) text-002.
    SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
    PARAMETERS:
    p_kunnr LIKE vbak-kunnr, " sold-to
    p_kunwe LIKE vbak-kunnr. " ship-to
    SELECTION-SCREEN END OF BLOCK b2.
    *Constants
    CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
    c_we TYPE vbpa-parvw VALUE 'WE',
    c_ag TYPE vbpa-parvw VALUE 'AG'.
    c_space TYPE space.
    *Ranges
    RANGES: ra_parvw FOR vbpa-parvw,
    ra_kunnr FOR vbpa-kunnr.
    *Tables
    DATA: BEGIN OF gt_output OCCURS 0,
    vbeln LIKE vbak-vbeln, " sales order number
    posnr LIKE vbap-posnr, " SO item number
    matnr LIKE vbap-matnr, " material number
    sh LIKE vbpa-kunnr, " Ship-to
    sp LIKE vbpa-kunnr, " Sold-to
    lifnr LIKE ekko-lifnr, " Vendor
    bstnk LIKE vbak-bstnk, " PO number
    banfn LIKE vbep-banfn, " Purchase requi
    po_st TYPE char30, " PO status text
    pstyv TYPE vbap-pstyv, " Item catagory
    aufnr LIKE afpo-aufnr, " Production Order
    prd_stat TYPE string, " Prd order status
    END OF gt_output.
    DATA: wa_output LIKE gt_output.
    FIELD-SYMBOLS: <fs_output> LIKE gt_output.
    *Table for sales order and PO
    TYPES : BEGIN OF gs_data,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    pstyv TYPE vbap-pstyv,
    matnr TYPE vbap-matnr,
    END OF gs_data.
    DATA: gt_data TYPE STANDARD TABLE OF gs_data,
    wa_data TYPE gs_data.
    *Table for Production Orders
    TYPES: BEGIN OF gs_prd,
    aufnr TYPE afpo-aufnr,
    posnr TYPE afpo-posnr,
    kdauf TYPE afpo-kdauf,
    kdpos TYPE afpo-kdpos,
    wepos TYPE afpo-wepos, "Goods Receipt Indicator
    elikz TYPE afpo-elikz, "Delivery Completed Indicator
    objnr TYPE aufk-objnr, "Object number
    getri TYPE afko-getri, "Confirmed Order Finish Date
    gltri TYPE afko-gltri, "Actual finish date
    END OF gs_prd.
    DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
    wa_prd TYPE gs_prd.
    *Table for partner data
    TYPES: BEGIN OF gs_partner,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    parvw TYPE vbpa-parvw,
    kunnr TYPE vbpa-kunnr,
    END OF gs_partner.
    DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
    wa_partner TYPE gs_partner.
    TYPES: BEGIN OF gs_po,
    ebeln TYPE ekkn-ebeln,
    ebelp TYPE ekkn-ebelp,
    vbeln TYPE ekkn-vbeln,
    vbelp TYPE ekkn-vbelp,
    END OF gs_po.
    DATA: gt_po TYPE STANDARD TABLE OF gs_po,
    wa_po TYPE gs_po.
    TYPES: BEGIN OF gs_preq,
    vbeln TYPE vbep-vbeln,
    posnr TYPE vbep-posnr,
    banfn TYPE vbep-banfn,
    END OF gs_preq.
    DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
    wa_preq TYPE gs_preq.
    TYPES: BEGIN OF gs_po_stat,
    ebeln TYPE ekko-ebeln,
    procstat TYPE ekko-procstat,
    lifnr TYPE ekko-lifnr,
    END OF gs_po_stat.
    DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
    wa_po_stat TYPE gs_po_stat.
    *Field symbols
    FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
    <fs_temp> TYPE tj02t-txt04,
    <fs_stat> TYPE char30.
    START-OF-SELECTION.
    PERFORM fr_build_range.
    PERFORM fr_get_data.
    PERFORM fr_build_fc.
    PERFORM fr_output.
    *& Form fr_get_data
    text
    --> p1 text
    <-- p2 text
    FORM fr_get_data.
    *Get SO
    SELECT avbeln aposnr apstyv amatnr
    FROM vbap AS a
    JOIN vbak AS b
    ON avbeln = bvbeln
    JOIN vbpa AS c
    ON bvbeln = cvbeln
    INTO TABLE gt_data
    WHERE b~vbeln IN so_so
    AND b~auart EQ c_zor "Only Sales Orders
    AND c~kunnr IN ra_kunnr. "from selection screen
    DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
    *get data of the production order
    IF NOT gt_data[] IS INITIAL.
    SELECT aaufnr aposnr akdauf akdpos awepos aelikz
    b~objnr
    FROM afpo AS a
    JOIN aufk AS b
    ON aaufnr = baufnr
    INTO TABLE gt_prd
    FOR ALL ENTRIES IN gt_data
    WHERE a~kdauf EQ gt_data-vbeln
    AND a~kdpos EQ gt_data-posnr.
    ENDIF.
    *Get partner data
    IF NOT gt_data[] IS INITIAL.
    SELECT vbeln posnr parvw kunnr
    FROM vbpa
    INTO TABLE gt_partner
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln.
    ENDIF.
    *Get Purchase Order
    IF NOT gt_data[] IS INITIAL.
    SELECT ebeln ebelp vbeln vbelp
    FROM ekkn
    INTO TABLE gt_po
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND vbelp EQ gt_data-posnr.
    SELECT vbeln posnr banfn
    FROM vbep
    INTO TABLE gt_preq
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND posnr EQ gt_data-posnr.
    ENDIF.
    IF NOT gt_po[] IS INITIAL.
    SELECT aebeln aprocstat a~lifnr
    FROM ekko AS a
    JOIN ekpo AS b
    ON aebeln = bebeln
    INTO TABLE gt_po_stat
    FOR ALL ENTRIES IN gt_po
    WHERE b~ebeln EQ gt_po-ebeln
    AND b~ebelp EQ gt_po-ebelp.
    ENDIF.
    *Move data to output table
    LOOP AT gt_data INTO wa_data.
    wa_output-vbeln = wa_data-vbeln.
    wa_output-posnr = wa_data-posnr.
    wa_output-pstyv = wa_data-pstyv.
    wa_output-matnr = wa_data-matnr.
    READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
    vbelp = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-bstnk = wa_po-ebeln.
    READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
    IF sy-subrc EQ 0.
    wa_output-lifnr = wa_po_stat-lifnr.
    CASE wa_po_stat-procstat.
    WHEN '01'.
    wa_output-po_st = 'Version in process'.
    WHEN '02'.
    wa_output-po_st = 'Active'.
    WHEN '03'.
    wa_output-po_st = 'In release'.
    WHEN '04'.
    wa_output-po_st = 'Partially released'.
    WHEN '05'.
    wa_output-po_st = 'Released Completely'.
    WHEN '08'.
    wa_output-po_st = 'Rejected'.
    ENDCASE.
    ENDIF. "inner read subrc
    ENDIF. "outer read subrc
    READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
    posnr = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-banfn = wa_preq-banfn.
    ENDIF.
    READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
    kdpos = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-aufnr = wa_prd-aufnr.
    *get the purchase requisition for production order as well
    SELECT SINGLE banfn
    FROM ebkn
    INTO wa_output-banfn
    WHERE aufnr EQ wa_prd-aufnr.
    *Get the status of the production order
    PERFORM fr_get_prd_stat USING wa_prd-objnr
    CHANGING wa_output-prd_stat.
    ENDIF. " sy-subrc
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_we.
    IF sy-subrc EQ 0.
    wa_output-sh = wa_partner-kunnr.
    ENDIF.
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_ag.
    IF sy-subrc EQ 0.
    wa_output-sp = wa_partner-kunnr.
    ENDIF.
    APPEND wa_output TO gt_output.
    CLEAR: wa_data, wa_prd,wa_partner,wa_output.
    ENDLOOP.
    ENDFORM. " fr_get_data
    *& Form fr_build_range
    text
    --> p1 text
    <-- p2 text
    FORM fr_build_range .
    *Range for partner function
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SH' TO ra_parvw-low. " we
    APPEND ra_parvw.
    CLEAR ra_parvw.
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SP' TO ra_parvw-low. " ag
    APPEND ra_parvw.
    CLEAR ra_parvw.
    *Range for ship-to and sold-to
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunnr TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunwe TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    ENDFORM. " fr_build_range
    *& Form fr_build_fc
    text
    --> p1 text
    <-- p2 text
    FORM fr_build_fc .
    sales order number
    afield-fieldname = 'VBELN'.
    afield-seltext_s = 'Sales #'.
    afield-ref_tabname = 'VBAK'.
    APPEND afield TO xfield. CLEAR afield.
    sales ITEM number
    afield-fieldname = 'POSNR'.
    afield-seltext_s = 'Item #'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    Material Number
    afield-fieldname = 'MATNR'.
    afield-seltext_s = 'Material #'.
    afield-ref_tabname = 'VBAP'.
    afield-outputlen = 10.
    APPEND afield TO xfield. CLEAR afield.
    *Vendor Number
    afield-fieldname = 'LIFNR'.
    afield-seltext_s = 'Vendor Num.'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    ship-to-party
    afield-fieldname = 'SH'.
    afield-seltext_s = 'Ship-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    sold-to-party
    afield-fieldname = 'SP'.
    afield-seltext_s = 'Sold-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    *PO number
    afield-fieldname = 'BSTNK'.
    afield-seltext_s = 'PO NUM'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PO status
    afield-fieldname = 'PO_STAT'.
    afield-seltext_s = 'Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *PO step status
    afield-fieldname = 'PO_ST'.
    afield-seltext_s = 'PO.Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *Purchase requisition
    afield-fieldname = 'BANFN'.
    afield-seltext_s = 'Pur. Req.'.
    afield-ref_tabname = 'VBEP'.
    APPEND afield TO xfield. CLEAR afield.
    *Item catagory
    afield-fieldname = 'PSTYV'.
    afield-seltext_s = 'Itm. Catg'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    *Prodcution Order number
    afield-fieldname = 'AUFNR'.
    afield-seltext_m = 'Prod.Order'.
    afield-ref_tabname = 'AFKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PRODCUTION status
    afield-fieldname = 'PRD_STAT'.
    afield-seltext_s = 'Prd. Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    afield-outputlen = 20.
    APPEND afield TO xfield. CLEAR afield.
    *PRODUCTION step status
    afield-fieldname = 'PRD_ST'.
    afield-seltext_s = 'Prd. Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    ENDFORM. " fr_build_fc
    *& Form fr_output
    text
    --> p1 text
    <-- p2 text
    FORM fr_output .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME =
    IS_LAYOUT =
    it_fieldcat = xfield[]
    i_default = 'X'
    i_save = 'A'
    TABLES
    t_outtab = gt_output
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDFORM. " fr_output
    *& Form fr_get_prd_stat
    text
    -->P_WA_PRD_OBJNR text
    FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
    DATA: lt_status TYPE STANDARD TABLE OF jstat,
    wa_status TYPE jstat,
    lv_status TYPE tj02t-txt04,
    lv_temp2 TYPE char5,
    lv_buff TYPE string.
    CALL FUNCTION 'STATUS_READ'
    EXPORTING
    client = sy-mandt
    objnr = p_objnr
    only_active = 'X'
    TABLES
    status = lt_status
    EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.
    LOOP AT lt_status INTO wa_status.
    IF wa_status-stat(1) EQ 'I'.
    SELECT txt04 FROM tj02t
    INTO lv_status
    WHERE istat EQ wa_status-stat
    AND spras EQ 'E'.
    ENDSELECT.
    lv_temp2 = lv_status.
    CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
    SEPARATED BY ','.
    ENDIF.
    CLEAR: wa_status, lv_status, lv_temp2.
    ENDLOOP.
    lv_buff = p_prd_stat.
    *Status of Production Order
    IF lv_buff CS 'CRTD'.
    p_prd_stat = 'Not Active'.
    ENDIF.
    IF lv_buff CS 'REL'.
    IF lv_buff CS 'GMPS'.
    p_prd_stat = 'Printed In Prod'.
    ELSE.
    p_prd_stat = 'Printed'.
    ENDIF.
    ENDIF.
    IF lv_buff CS 'TECO'.
    p_prd_stat = 'Technically Compt.'.
    ENDIF.
    ENDFORM. " fr_get_prd_stat
    >

  • How to generate jasper report in pdf format using swing

    hi all,
    im new to swing and jasper.. can anybody provide me some example on how to generate the jasper report in pdf format? i will call the reportManager from sessionBean.. below is my code:
    1)delegate:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    GenerateReportDto generateReportDto = getAuditTrailServiceRemote().generateIntoPdfReport(fileName, outputFileName, parameters);
    return generateReportDto;
    2)sessionBean:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    //Map parameters = new HashMap();
    ReportManager reportManager = new ReportManager();
    3)ReportManager()
    public void generateIntoPdfReport(String fileName, String outputFileName, Map parameters) {
              Connection conn = null;
              try {
                   conn = dataSource.getConnection();
                   //Generate the report to bytes
                   File reportFile = new File(fileName);               
                   byte[] bytes =
                        JasperRunManager.runReportToPdf(
                             reportFile.getPath(),
                             parameters,
                             conn
              //conn.close();
              //Write the bytes to a file
              ByteBuffer buf = ByteBuffer.wrap(bytes);
              File file = new File(outputFileName);
              // (if the file exists)
              boolean append = false;
              // Create a writable file channel
              FileChannel wChannel = new FileOutputStream(file, append).getChannel();
              // Write the ByteBuffer contents; the bytes between the ByteBuffer's
              // position and the limit is written to the file
              wChannel.write(buf);
              // Close the file
              wChannel.close();
              } finally {
                   if (conn != null) {
    conn.close();
    Any help would be highly appreciated. Thanks in advance

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • How to generate a report in pdf from a stored proc

    Hi, i need guidance on how to generate a report in pdf from an oracle stored proc.
    The environment is oracle 10gas + 10gdb.
    On a specific event, a PL/SQL stored procedure is called to do some processing and at the end of the processing to generate report which has to be sent to the printer (and optionally previewed by the user).
    Can anyone assist me with this?

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • How to generate a report to a file calling it from report client

    Hey there,
    I am pretty new to the whole Oracle world. I have found very little technical books about Report Builder or Report Designer (whichever you prefer to call). Therefore I am unable to figure this out. I know I can generate my report to a certain number of file types if I am running it from the Report Designer 6i, but my user are calling from a application trough the Report Client. I would like to know how I can let them choose whether to preview on screen or to send to a file (a .html file would do). If anybody out there can help me out I will really appreciate.
    Thanks a lot,
    Gleisson Silva

    Thanks a lot ! ! ! This was easy enough ! Now I only have a problem, when I run the report with the output file as a html file, my columns lost their default layout. For example, column which is 10 characters long becomes like 8 characters. As opposed to any other file type. Is there some configuration that I need to do?
    Once again thanks!
    Gleisson Silva

  • Generating a report

    Hi,
    how to generate a report of storage locations by using program in sap.
    thanks in advance

    Hi,
    Can you please elaborate what selection and outputs are you looking for, if its just material, plant and quanity then you can get that using MMBE. The program fo that is RMMMBESTN. You will find many standard SAP reports for storage locations.

  • Generating a Report in Special Purpose Ledger

    Hi,
    Currently i am using K4 as fiscal year variant and for special purpose ledger i am using V3 as fiscal year varinat. However all documents are getting posted in relevant period. suppose if it a 1st period for financial accounting the it will be the 10th period for special purpose ledger.
    However, when i executed transction for generating the report for special purpose ledger It is not generating the report.
    Thanks
    Avinash

    Hi
    The Special purpose ledger is configured to store the data in transaction currency as well. We have configured it to store data in transaction currency, local currency and group currency.
    Thanks!
    AJ

  • Make to Order for Configurable Material & Error in Confirmation

    Hello, PP Gurus,
                       I am doing one MTO for Fabric business but during the confirmation I am getting error that
    SALES order Stock does not Exist as well Please inform me Costing procedure in this scenario.
    *is it necessary to run MRP in this scenario?*
    Please see the all Details of Business so that U can give answer properly.
    One is raw fabric (Raw material) which has to passed different process to convert Colored fabric as my Finish product as well I can sale Raw fabric also.
    is it possible to maintain raw fabric and Colored fabric with same mat.code?
    I have configured the material as well all pricing BOM, Recipe its working properly.
    How can I assign the material to Operation? I am getting GRAY field in New Assignment in change recipe mode ..
    Is it possible to use Material type other than KMAT? I want to use Finish material type. If yes How?
    Right now I can create Process order from the Sales order but I am facing error in confirmation that Sales Order stock does not exist than I have to transfered stock to Sales order and error get solved temporarily but  I want to avoid this manual transaction to remove this error. Any configuration is required please inform.
    My configuration is given below.
    MRP Type : PD
    BOM item Category:  L Stock Item.
    In dependency & Profile I have set radio Button as Single level Bom explosion.
    Order Bom selection in profile.
    Strategy : 25 make to order for configure material.
    How can I do ? please suggest any changes
    I have only 9 months of SAP experience within short time I have gain lot knowledge from this site and other reading material as well my learning Learning thirst.
    thanks to all SAP gurus..
    THANKS IN ADVANCE .... Definitely I will reward points even if my some questions get solved...
    Regards,
    Bhavik dangi.

    Hi,
    You can use variant configuration for selling the colored fabric. Use the basic fabric as raw. and maintain variant configuarations to have many variants.
    Please use strategy 25. When you run MRP the planned orders will be generated and will be assigned to the sales orders. You can see it on the account assignment tab.
    In material master pleasse maintain Individual collective requirement indicator to 1-individual in the MRP-4 view.
    Then the stocks will be reserved to the specific sales orders.
    Thanks and regards
    Murugesan

  • How to do the Partial delivery for configurable material ?

    Hi All,
    I am creating a sales order  for a configurable material and is trying to do the partial delivery for the same. But, after the outbound delivery the status of the sales order is shown as completed although I have done the partial delivery.
    Here are the steps I followed.
    1. material I used here is a configurable material.
        Main settings.
      a. In Basic Data tab, marked as configurable
      b. Procurement type='E' in MRP 2 tab
      c. Strategy group as 82 in MRP 3 view.
    2. I created a sales order for quantity 10
    3. Created a production order followed by goods Movement thereby increasing the stock.
    4. Did the outbound delivery for  quantity 5.
    Now if I checked for the status of the sales order using VA02, the status for the line item as well as for the sales order was "Completed" although I had done partial delivery.
    I have checked for setting in Customer master record, item category in VOV7. Everything seems to be fine.
    I checked for all the information in the FORUM without any help.
    Can you please help me?
    Kind Regards,
    Anupama

    Hi,
    For Info, I am creating a sales order for Item category TAC.
    1. In my case, after completing the partial delivery, in the document flow for Order, the status is shown as completed.
    2. In status overview for this item, delivery status indicator is set as  'Fully delivered'.
    I did check in the customer master record and the field
    Partial delivery per item  is set to Blank(  Partial delivery allowed)                
    3. I did run the report RIBELF20  and I am getting this error for all the sales order I created for partial delivery for configurable material.
    For Normal item, the status is showing properly.
    Is there any other settings I have to check?
    I needed this to be working. Please help

  • STO for Configurable material

    Dear All,
    We require to configure the STO process for a configurable material, but as per the present system configurable material production in supplying plant triggers by sales order. this resulting in non availability of material to dispatch against the STO purchase order.
    Please help me to resolve this issue.
    your inputs are awaited!!!
    thanks & regards,
    Anup
    Edited by: anupam sharma on Jun 27, 2010 3:59 PM
    Edited by: anupam sharma on Jun 30, 2010 8:49 AM

    Maintain the correct MRP parameter for the material, i.e., special procurement type for stock transfer in MRP2.
    So, you have set this up and it generates the stock transfer requests.
    Note that the STO will have the account assignment for sales order stock.
    Check following links for hints:
    Re: Material xxxxx in plant xxxx is configurable and will not be costed
    CK11N:Costing  done for Configurable material is throwing error
    Hope this can assist you.
    Thanks & Regards
    JP

  • Reporting Services R2 log entries have stopped generating on report execution.

    Hi -
    I have a new instance of a reporting server and the log files have quit generating on report execution. 
    When the services restart this is the log file:
    rshost!rshost!8e8!01/22/2014-17:08:33:: i INFO: CLR runtime is initialized.
    rshost!rshost!8e8!01/22/2014-17:08:33:: i INFO: Derived memory configuration based on physical memory as 3931704 KB
    rshost!rshost!8e8!01/22/2014-17:08:33:: w WARN: Failed to initialize performance counters: ffffffff. Possible setup issue.
    rshost!rshost!8e8!01/22/2014-17:08:33:: e ERROR: Failed to start service, error=1063.
    We have logging turned on on the server.  Report Server Mode is Native.  Dont see anything in the application log about failed service.
    Any ideas?

    Hi dwrco,
    Have you recently install any update such as MS12-070 (KB2716440)? If so, it is a known issue for some patches for SQL Server. The reason is as follows:
    When a .NET application starts up, the .NET Framework tries to check if the Microsoft assemblies are right and have not been modified, this is done through connecting to a server that has a revocation list in internet. When the framework tries to connect
    to the server to check if it has access to internet with an elevated timeout, this makes that any other .NET application that has less timeout setting fails (such as SSIS or SSRS) with timeout error.
    For example, the error message "The request failed or the service did not respond in a timely fashion." means that the SSRS timeout is lower than the timeout of the connection to the revoke list server established by .NET Framework.
    To work around the issue, we usually use two approaches:
    Increase the value of ServicesPipeTimeout registry key of Reporting Services
    Disable generatePublisherEvidence element of ReportingServicesService.exe.config file
    For the detailed steps, please see:
    http://blogs.msdn.com/b/mariae/archive/2012/11/12/reporting-services-service-doesn-t-start-after-the-installation-of-ms12-070-security-patch.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • I want standard report to get material MATNR for Which PO isn't created

    hi
    i want standard report to get material no for which Purchase Order is not created.
    only those Material no for Which PO is not generated.
    thanks.

    Hi,
    go to me23n transaction and in the top extreme left click the
    Purchase order  tab it will show you a drop down list where you will have a option called other purch. order click this and enter the purchase order for which you want to know the exsistence of that purchase order.
    if Purchase order is present it will show the order otherwise it will through you an error message.
    hope this helps.

Maybe you are looking for

  • Accounting document not cleared

    HI, I am saving the vf01 and going to document flow there it showing  "accounting document not cleard" what i need to do. and vkoa is done.. Thanks, anand.k

  • JDBC Error with SQL Server

    I created another post asking about this but cannot find it. I had a perfiectly good piece of JDBC code working in a freestanding program that could retrieve a result of any size without issue. However, when I ran the same code from a servlet in Tomc

  • Installing Window 7 with bootcamp

    Hi I installed windows 7 with bootcamp and it worked. Later I removed windows 7 with bootcamp and it also worked. Now I'm reinstalling windows with bootcamp and I'm not able to create a partition that I can use for Windows. Bootcamp creates a partiti

  • "Outline stroke" command makes an unwanted rectange around shapes. Help

    Hi, I'm experiencing weird problem. I have an Art brush (scatter brush) which I sampled from a 5 tiny black circles to get the spray look. And it looks great as long as it stays as an art brush stroke. But when I select the path representing my strok

  • Decimal places: Using Textsybols as variable

    Hi Freinds, is it possible to use variable as decimal indicator anf if yes please how. &symbol(E.2)& = two decimal my intension: &symbol(E.2)& = to replace 2 with variable e. g. &QAMV-STELLEN& Thanks, Blacky