Purchase Order Report with Me22n.....Kindly help its

Hi Friends
  Here is my requirement.
I have developed a purchase order alv report, and it is working perfectly.Now i want to give a provision to the user to view the desired purchase order from the report itself by taking him to ME22n transaction.
any kind of solution is welcom.
Thanks a lot to all.
Mrutyun
Edited by: Vijay Babu Dudla on Dec 3, 2008 12:20 AM

Hi Tripathy,
this is simple. when you double click you need to capture the clicked record and then set the parameter ID and then call transaction.
REPORT  ZTEST_ALV_CHECK                         .
TYPE-POOLS: SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
      IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
      L_LAYOUT type slis_layout_alv,
      x_events type slis_alv_event,
      it_events type SLIS_T_EVENT.
DATA: BEGIN OF ITAB OCCURS 0,
      VBELN LIKE VBAK-VBELN,
      POSNR LIKE VBAP-POSNR,
      CHK(1),
     END OF ITAB.
SELECT VBELN
       POSNR
       FROM VBAP
       UP TO 20 ROWS
       INTO TABLE ITAB.
X_FIELDCAT-FIELDNAME = 'CHK'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 1.
X_FIELDCAT-INPUT = 'X'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-CHECKBOX = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-SELTEXT_L = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 2.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-SELTEXT_L = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_LAYOUT-window_titlebar = 'Popup window'.
  x_events-NAME = SLIS_EV_END_OF_PAGE.
  x_events-FORM = 'END_OF_PAGE'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .
  x_events-NAME = SLIS_EV_TOP_OF_PAGE.
  x_events-FORM = 'TOP_OF_PAGE'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    I_CALLBACK_PROGRAM       = SY-REPID
    IS_LAYOUT                = L_LAYOUT
<b>    I_CALLBACK_PF_STATUS_SET = 'STATUS'
    I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'</b>
    IT_FIELDCAT              = IT_FIELDCAT
    it_events                = it_events
*    I_SCREEN_START_COLUMN    = 10
*    I_SCREEN_START_LINE      = 1
*    I_SCREEN_END_COLUMN      = 50
*    I_SCREEN_END_LINE        = 20
  TABLES
    T_OUTTAB                 = ITAB
  EXCEPTIONS
    PROGRAM_ERROR            = 1
    OTHERS                   = 2.
IF SY-SUBRC <> 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM TOP_OF_PAGE.
* BREAK-POINT.
  WRITE: / 'TOP_OF_PAGE'.
ENDFORM.
FORM END_OF_PAGE.
* BREAK-POINT.
  WRITE: / 'END_OF_PAGE'.
ENDFORM.
*&      Form  STATUS
*       text
*      -->P_EXTAB    text
FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
*- Pf status
  SET PF-STATUS 'STATUS'.
ENDFORM.                 " STATUS
*&      Form  USER_COMMAND
*       text
*      -->R_UCOMM      text
*      -->RS_SELFIELD  text
FORM USER_COMMAND USING R_UCOMM     LIKE SY-UCOMM
                               RS_SELFIELD TYPE SLIS_SELFIELD.
  case r_ucomm.
    when 'BACK' or 'CANC' or 'EXIT'.
      leave to screen 0.
    when '&IC1'.
      set parameter id 'AUN' field rs_selfield-value.
      call transaction 'VA03' and skip first screen.
  endcase.
ENDFORM.                    "USER_COMMAND
the above code takes you to Sales order Display VA03 similarly you should code,
don't forget to set the pf-satus and user-command. and enable F2 key with &IC1.
Regards
vijay

Similar Messages

  • Purchase order report with basic price and Excise duty values

    Hi All,
    Is there any standard report in SAP to get the Purchase order basic price / qty and its Excise duty values ? Since we are including Excise duties for non - codified items (w/o material master and with cost center 'K') Purchase order and the ed values are added to the cost and the requirement is to see the split up (Basic priceEdEcs+Hcs)for these Purchase orders for the vendors. If there is no std report then please let me know how to link Purchase order table with this Condition value table in query to get the desired report.
    Thanks in advance
    Benny

    Hi,
    there is no standert report to fullfill this requierment
    you have to create this report with the help of abaer
    for that which tax code you are using its importnat thing
    for po table EKPO
    1. A524 (Normal supply point / Material) it will return condition record number for condition type.
    2. KONP (Conditions (Item)) .
    3. J_1IMTCHID (Combination of Material Number and Chapter ID).
    4. J_1IEXCTAX (Tax calc. - Excise tax rates
    5 get the IR no. from RBKP and RSEG, and get the relevant FI doc no. and goto BSET table
    for IR number  to get from table apply logic for doc type RE ,you will get fi number nad in refernce field you will get invoice number + fiscal year
    Map this by refernig on po for which grn and invoice happen
    Regards
    Kailas Ugale

  • Customized R12 Standard Purchase Order report with custom data and layout

    Hi all,
    We need to customize the seeded Purchase Order report in R12 to add an additional section to include cost data coming from our custom table. The key is that our customized report should be launched instead of the seeded report via various PO forms (e.g. View Document menu option, PO Communications form to email, fax and print PO, etc).
    I manually set up a custom Document Type Layout for the Document "Standard Purchase Order" to use my customized template so my custom layout is shown instead of the R12 layout, but according to Oracle support the report can only draw data from a set of seeded Oracle views like po_headers_xml,po_lines_xml etc.
    Any suggestions how we can add our custom data to PO report in R12?
    Thanks! Mike.

    Hi Mike
    thats a tough one, the PO generation is a bit restrictive to say the least when it comes to customizing. It sounds like you have worked out how to get your own template in there to render the PO.
    On the data front, all I can think of is to customize and replace the seeded PO view with one that incorporates your extra data.
    Or, get into the page customization world and write your own extract and format concurrent program/procedure and then hook it onto the buttons where you want to launch it.
    You might have more luch, response wise from the EBS PO forum.
    Procurement : Procurement
    OAF: OA Framework
    Regards
    Tim

  • Open Purchase Orders Report with Confirmation Dates

    Hi Friends,
    I have searched a lot for the following need and I have found nothing. I was wondering if there ia any report that I can show the scheduled delivery dates from a Purchase order. I have seen in ME2L that by placing EINT in scope of list I can see the schedule lines. However, if there is a new delivery date due to supplier confirmation that have been placed in PO with the indicator AB this is not appeared. At the same time if there is a partial quantity that has already been delivered then it does not appear as well. So, I need a report with all the scheduled delivery line plus the open quantity.
    Many Thanks in advance,
    Ioannis

    It is very strange. Because what I see is that in this report the confirmation date is not appeared although the schedule line is appeared. Then If I go to change the confirmation date in PO for second time then it is appeared. I have no idea why this is happening

  • Purchase Order report with MIRO invoice and/or FI invoice number

    Hello,
    I am searching for a standard report which will allow PO number as input and dispaly the MIRO invoice number/s and if possible the corresponding FI document numbers.
    I have exhausted all the reports I know of - ME80FN. ME2* series, FBL3N.
    These are two options I know of but want to avoid:-
    SQVI query
    Z-report
    If there are no standrad reports, can someone explain use of Flexible analysis to create such a report.
    (Must confess that I have not fully explored that option yet).
    Thanks,
    Saurav.

    Hi,
    You can get invoice number in RSEG table
    pass this invoice number in BKPF into field  AWKEY field where you will get invoice number+fiscal year and in same table you will get BELNR FI dc for same invoice number
    Regards
    Kailas ugale

  • How to create purchase order report  form MM function module

    Dear All,
                  i need customized purchase order report with logo and grand total.
    regards,
    krishna

    hi,
    When you are using the outline agreement for the PR and then shd use for the PO...from where this RFQ comes in the scene??
    Also PR is already asigned to the source as outline agreement...
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on Nov 7, 2008 6:03 AM

  • Unable Print Purchase Order Report as BITMAP

    I am working on customizing POXPRPOP purchase order report by adding layout with some lines and boxes, around some of the fields.
    When we test to print it. The boxes and lines print as ------ instead of solid lines. I believe its something to do with DISPLAY set at OS level.
    Also, It doesnt print different fonts. It just prints in default courier 10.
    I am sure this issue was faced before. I am hoping get some info on how to resolve it.

    As far as the RDF is concerned, you do not need to change any properties. Just add your lines and boxes to the required fields.
    The Concurrent manager setup controls the output. There may be some setup for Postscript - cannot advise you on how to fix it. Did you try using PDF as the output format?
    Regards,
    John

  • How to trace purchase order number with respect to Purchase requestion numb

    Hi friends,
    Can u please help me how to Trace purchase order number with respect to purchase Requetuion  number. Is there any standard report  available in R/3

    Hi Vamsi,
    Thats what!!!
    Goto SE16 - EBAN - Give PR number in the iput screen.
    In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
    There you choose Purchase Order.
    So the output will display for you POs for the PR that you entered.
    Regards,
    Vishal

  • How to add CIN condition types in Purchase Order Report

    Hi,
    I'm developing a purchase order report using smart forms. I have add the conditions: BED, ECess, SECess and VAT.
    Where from I can get each of the above values.
    I was told that I can get break up of CIN Tax through following Link
    1.) EKKO-KNUMV <-> KNOV-KNUMV
    2.) KNOV-KNUMH <-> KNOP-KNUMH
    But in Link No 2 I'm not able to find any values.
    Kindly help.
    Regards,
    Sriram

    Hi,
    All BED, ECess, SECess and VAT should be calculated manually based on the net value of the purchase order & Company noms. I guess, we cannot get them directly.
    Hope it helps!!
    Rgds,
    Pavan

  • Import Purchase orders failing with numeric/value error issue

    Import Purchase orders failing with numeric/value error issue

    Hi All,
    Import Purchase Orders program is failing with PL/SQL Numeric or Value Error.
    DECLARE
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 55
    Kindly help me to get the issue fixed

  • Purchase Order Report In R12

    Hi All,
    I have created a purchase order report in R12,in the test instance the report is running perfectly for all the operating units but when i moved the rdf to the LIVE instance the report is running for only one operating unit(nothing is hard coded in the rdf) and the report says completed normar but after clicking on view output i am getting a msg as the output is not generated for the concurrent request.
    After clicking on the view log i am getting an error msg as
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    Report Builder: Release 10.1.2.2.0 - Production on Tue Aug 19 16:41:18 2008
    Help me in fixing this issue.
    Thanks in advance

    Somu,
    chk note:
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=210795.1

  • Printed XML Purchase Order Report - Printing blank Blanket PO page

    Hi,
    When printing the xml report of a Blanket PO Release, the release lines and headers print first but the last page is a page for the primary blanket PO (PO Num without any releases attached). This page does not contain any information in the header or line fields therefore it is a waste of paper. Looking into the XML code the blanket PO page is pulled in the same manner as the Release lines, against G_Headers. I'm going to look into the Reports Developer SQL to see if I can find something but I would rather not mess with the configuration of the SQL if I did not have to.
    Any ideas on how to get rid of this extra unnecessary page?
    Thanks,
    -Steve

    Hi,
    RDBMS : 11.2.0.1.0
    Oracle Applications : 11.5.10.2
    OS: Unix
    The issue can be reproduced.
    The report in question has had customization but the blank page prints in the Printed Purchase Order Report(Portrait) seeded function as well. From what I see the SQL might be able to modified based off of the input paramet "Print Blanket PO". When this is selected "No" the Blanket header is printed with no lines (that's where the blank PO page is coming from). When selected Yes the blanket header with all the blanket lines are printed. So I may be able to go in and change how that input parameter changes the output, unless there is a better way.
    -Steve

  • Customizing 'Print Purchase Order' Report

    Hi All,
    We need to customize the 'Print Purchase Orders' report, for communicating the PO to supplier. But the Fax commnds, and the output format we have to change accordingly. Also we need to move the generated output file to another directory.
    Please let me know the recommended customizing procedure for the above.
    Thans,
    Gowri.

    Hi,
    If you want to modify Print PO Report (POXPOPDF), refer to the following document.
    Note: 305307.1 - How To Modify Print PO Report POXPOPDF With Custom Template
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=305307.1
    Regards,
    Hussein

  • Printed Purchase Order Report Custom version FAX enabling

    Hi All,
    We customized Printed Purchase Order Report(Landscape) 'POXPRPOL' and is runnig fine. Our client want FAX enabled to the output of custom report.
    Is there any option like print option for this. Or do we need to write and code for this.
    Please help.
    Thanks

    Hi;
    Please see below which could be helpful for your issue:
    http://blogs.oracle.com/xmlpublisher/entry/faxing_from_ebs
    http://www.strsoftware.com/blog/oracle-ebs-r12-1-3-submit-request-delivery-options-button-fax-4-of-6/
    Also see <a href=https://forums.oracle.com/forums/search.jspa?threadID=&q=fax&objID=c3&dateRange=all&userID=&numResults=15
    this search</a>Regard
    Helios

  • Printed Purchase Order Report gives no output

    hello,
    The standard report "Printed Purchase Order Report(Landscape)" gives a a zero size output file for a certain po . Although i have checked the tables PO_HEADERS_ALL and PO_LINES_ALL and that purchase order has all the data entered in the tables above.
    what can the problem possibbly be and how can i fix it?
    please help...

    hello,
    as an update i found that the specified purchase orders has 9 lines entered and in PO_LINES_ALL only 5 are there !!!

Maybe you are looking for

  • How to set proxy while deploying a bpel proxy?

    Hi All, How can i set proxy while deploying a bpel process. I'm trying to deploy an async bpel process that requires proxy to be set coz to access one of the xsd file requires to go thru a proxy. I have actually set proxy in the following files, sete

  • Flash player probs in iweb

    Never had this before but recently I can hardlly access my own page because of this: "A script in this movie is causing Macromedia Flash Player 8 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the s

  • Response payload missing in SXMB_MONI

    Dear All, I have a query related to Response payload in SXMB_MONI. I am using IDOC-XI-FILE & FILE-XI-IDOC asynchronous scenario . Output xml files and idocs are generated properly. <b>In SXMB_MONI,when I click on successful processed message it is no

  • Tomcat 4/Apache 2: Are spaces in include path a problem?

    Hi, Like so many before me, I am trying to make TOMCAT 4.0.4 and Apache 2.0.39 play together on Windows 2000, and am failing miserably. I followd several different approaches with no success. When I place the include directive in httpd.conf, Apache w

  • Cant use some tools in tools panel

    Some tools in the tools panel are inop namely, spot healing brush, clone stamp and brushes when image is opened using Mini Bridge. Regular Bridge is OK no problem. CS5/Win7 64.