Urgent : SD-ABAP Inspection Certificate Report

Hi Friends,
                 I am a begiiner in SAP, trying to make Inspection Certificate Report, but not able to link table QALS with VBAP. Plz send me any reference report.
Waiting for your valuable response.
Thanks & Regards,
Gulrez Alam
Edited by: gulrez alam on Jan 23, 2008 8:32 AM

Hi Gulrez,
Inspection reports are linked to deliveries, transfer orders or material documents. There is no link between orders (VBAP) and inspecion reports.
Regards,
John.

Similar Messages

  • QM Module- Inspection Rejection Report

    Hi all
      I am looking for a QM MODULE INSPECTION REJECTION REPORT. If any one having it ,Please do send me the codes..
    Thanks in advance.
    Arun.j

    maybe this will help u
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=qmMODULEINSPECTIONREJECTIONREPORT&cat=sdn_all

  • Is it a good idea to use ABAP objects for reports?

    Hello Experts,
    Is it a good idea to use ABAP objects instead of the traditional ABAP for coding reports?

    Hi,
    Go throught Document it will Give you eight Reasons why OOABAP Should be used.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/37c5db90-0201-0010-3a9b-d0a5288f3c15
    Must go through
    Regards,
    Gurpreet

  • ABAP Statistics BI Reporting via CCMSBISETUP

    Hello together,
    I am using ABAP-Statistics BI-Reporting after running CCMSBISETUP on Solution Manager 7.0 EHP1(BI Content 7.04, PI Basis 7.01 Level 0004). Primarily I want to make analyses based on the Infoprovider 0CCMSATIM (time profile).
    During executing Queries of the InfoProvider 0CCMSATIM (time profile) I detected, that the datasets, which are collected from a satellite system, are incomplete. After a drilldown by the attribute "time range" i found out, that some time ranges are missing completely (e.g. 10-11a.m.), some contain incomplete data (e.g.9-10 a.m.)  and some are correct (e.g. 0-9 a.m.). TA ST03N on the Satellite system itself contains the correct data and confirmed that presumtion. It seems that the extractor is not working properly at some times. This  phenomenon occurs very irregularly. Apparently the error occurs most often when the satellite system is very busy and used to capacity.
    The Satellite Systems seem to be configured correct in CEN (RZ21).
    The datasets of the Myself-System (Solution Manger) in the InfoCube are correct too.
    Does anyone know this problem and how to solve it?
    Thank you.

    hi
    pls check this  "The data load process ran without error messages, however no data or only a small amount of data has arrived in the data targets" under listed problems
    [http://help.sap.com/erp2005_ehp_02_sp/helpdata/en/46/62b13c5d8c0ad2e10000000a11466f/content.htm|http://help.sap.com/erp2005_ehp_02_sp/helpdata/en/46/62b13c5d8c0ad2e10000000a11466f/content.htm]
    hope this helps
    Jansi

  • *New to ABAP: what is Report*

    Hi Gurus,
    i am new to ABAP.If any body can explain about what is report and how many types are there to create internal tables.
    points will be reward.
    Thanks,
    Balakrishna.

    hi naidu,
    When you are working in the SAP System, you may want to access information from the database. To do this, you use reports.
    In this documentation, report refers to the report program, and list refers to the output u2013 that is, the results of the report.
    Some reports display information; others allow you to perform analyses.
    A report must be started, or executed. In many cases, the SAP System automatically executes a report. Sometimes, however, you will want to execute a report yourself.
    In addition to report programs, the SAP System provides numerous reporting tools, each of which has its own set of procedures for executing report programs.
    This documentation describes report programs only. For an introduction to the SAP reporting tools, refer to the Reporting Made Easy guidebooks (Release 4.0B). You can find these guidebooks at: www.saplabs.com/rme
    In ABAP, there are a total of 7 types of reports. They are:
    Classical
    Interactive
    Logical Database
    ABAP query
    ALV Reports (ALV stands for ABAP List Viewer)
    Report Writer/Report Painter Views (There are different types of views also)
    [Edit section] Classical Reports
    These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.
    Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.
    Events In Classical Reports.
    INTIALIZATION: This event triggers before selection screen display.
    AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.
    START OF SELECTION: Start of selection screen triggers after proceesing selection screen.
    END-OF-SELECTION : It is for Logical Database Reporting.
    [Edit section] Interactive Reports
    As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.
    And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
    We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).
    Events associated with Interactive Reports are:
    AT LINE-SELECTION
    AT USER-COMMAND
    AT PF<key>
    TOP-OF-PAGE DURING LINE-SELECTION.
    HIDE statement holds the data to be displayed in the secondary list.
    sy-lisel : contains data of the selected line.
    sy-lsind : contains the level of report (from 0 to 21)
    Interactive Report Events:
    AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
    AT PFn: For predefined function keys...
    AT USER-COMMAND : It provides user functions keys.
    TOP-OF-PAGE DURING LINE-SELECTION :top of page event for secondary list.
    [Edit section] Logical Database Reports
    Logical database is another tool for ABAP reports. Using LDB we can provide extra features for ABAP reports.
    While using LDB there is no need for us to declare Parameters.
    Selection-screen as they will be generated automatically.
    We have to use the statement NODES in ABAP report.
    If there are many tables the Performance will be slow as all the table data will be read from top node to bottom node .
    [Edit section] ABAP Query Reports
    ABAP query is another tool for ABAP. It provides efficency for ABAP reports. These reports are very accurate.
    Transaction Code : SQ01
       The advantage with ABAP QUERY is logic required for classic & interactive reports system design automatically 80%.
    For ABAP QUERY handle these
    SQ01 ; QUERY
    SQ02 : INFOSET OR FUNCTIONAL AREA
    SQ03: USER GROUP.
    [Edit section] Report Writer
    Key Concept :
    Super users and end users can use Report Painter/Report Writer tools to write their own reports.
    Giving them the ability to report on additional fields at their discretion shifts the report maintenance burden to them, saving SAP support groups time and effort normally spent creating and maintaining the reports.
    Instead of using ABAP code to write a report in FI and CO, many users build a Report Painter/ Report Writer library using transaction MC27.
    However, this workaround has some drawbacks. Little known transaction GRCT solves these problems in most cases, and eliminates the need to use transaction MC27.
    ABAP Report Types
    ABAP report types are those ones available in some report's attributes screen, i.e. :
    Executable program
    Function group (containing function modules)
    Include
    Interface pool
    Class pool
    Module pool
    Subroutine pool
    Also ALV means ABAP List Viewer. Most convenient way to use it is through reuse library (cf. transaction se83) available from release 4.6 of SAP R/3.
    ALV is available in two modes: list and grid. List mode is good old list processing with standard functionnalities, and grid mode is using a new OCX object displaying grids.
    hope its clear to you,
    Reward points if usefull,
    Thanks,
    Kalyan.

  • Inspection result report

    Hi All,
    My client needs inspection report Work centre (date wise).
    In MCXB it is coming work centre wise but moth wise I am gating.
    In QGA2 its coming work centre and date wise but problem is after expanding the column all information is not there like accepted & rejected quantity, lot seize, percentage rejection, inspection origin.etc.
    Please help me out, how to get such report.
    Regards,
    sid

    SAP does a lousy job of providing inspection result reports.  There are not many ways to get the actual recorded value(s) for a test, or inspection lot.
    For what you want, I woud suggest you develop a custom report.
    FF

  • I m in urgent need of sme alv reports in sd module so plz hlp me out.

    i m in urgent need of sme alv reports in sd module so plz hlp me out.
    if possible plz provide explanation so tht i can understand it fast and well.

    check with below standard reports :
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    <b>Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC</b>Customer
    Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    <b>Blocked orders - V.14</b>
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Display Delivery Changes - VL22
    Simple example what  i did - Monthly Sales Report
    TYPE-POOLS
    type-pools : slis.
    Tables
    tables : VBAK,
             VBAP.
    Internal table for VBAK Table
    data : begin of i_vbak occurs 0,
           vbeln like vbak-vbeln,
           bstnk like vbak-bstnk,
           vdatu like vbak-vdatu,
           end of i_vbak.
    Internal table for VBAP and MATNR
    data : begin of i_vbap occurs 0,
           vbeln like vbap-vbeln,
           matnr like vbap-matnr,
           kdmat like vbap-kdmat,
           kwmeng like vbap-kwmeng,
           netpr like vbap-netpr,
           maktx like makt-maktx,
           end of i_vbap.
    Internal tables
    data : begin of i_sales occurs 0,
           vdatu like vbak-vdatu,
           bstnk like vbak-bstnk,
           matnr like vbap-matnr,
           maktx like makt-maktx,
           kdmat like vbap-kdmat,
           kwmeng like vbap-kwmeng,
           netpr  like vbap-netpr,
           end of i_sales.
    Variable for ALV
    data : v_repid like sy-repid,
           gt_fieldcat    type slis_t_fieldcat_alv.
    Selection-screen
    selection-screen : begin of block blk with frame title text-001.
    select-options : s_vbeln for vbak-vbeln,
                     s_erdat for vbak-erdat,
                     s_ernam for vbak-ernam,
                     s_vdatu for vbak-vdatu obligatory,
                     s_BSTNK for vbak-BSTNK,
                     s_KUNNR for vbak-kunnr,
                     s_matnr for vbap-matnr,
                     s_KDMAT for vbap-KDMAT.
    selection-screen : end of block blk.
    Initilization
    initialization.
      v_repid = sy-repid.
    S T A R T  -  O F  -  S E L E C T I O N ****************
    start-of-selection.
    Get the data from VBAK and VBAP Tables
      perform get_vbak_vbap.
    E N D  -  O F  -  S E L E C T I O N *****************
    end-of-selection.
    Display the data
      perform dispolay_data.
    *&      Form  get_vbak_vbap
          Get the data from VBAK and VBAP Table
    FORM get_vbak_vbap.
    Get the data from VBAK Table
      select vbeln bstnk vdatu from vbak into table i_vbak
                         where vbeln in s_vbeln
                         and   bstnk in s_bstnk
                         and   vdatu in s_vdatu
                         and   kunnr in s_kunnr
                         and   erdat in s_erdat
                         and   ernam in s_ernam.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given selection'.
      endif.
    Get the data from VBAP Table
      select avbeln amatnr akdmat akwmeng a~netpr
             b~maktx into table i_vbap
             from vbap as a inner join makt as b on bmatnr = amatnr
             for all entries in i_vbak
             where a~vbeln in s_vbeln
             and   a~kdmat in s_kdmat
             and   a~abgru = space
             and   a~matnr in s_matnr
             and   a~matnr ne '000000000000009999'
             and   a~matnr ne '000000000000004444'
             and   a~matnr ne '000000000000008888'
             and   a~matnr ne '000000000000001111'
             and   a~werks = '1000'
             and   b~spras = 'E'
             and   a~vbeln = i_vbak-vbeln.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given selection'.
      endif.
      sort i_vbak by vbeln.
      sort i_vbap by vbeln matnr.
      loop at i_vbap.
        read table i_vbak with key vbeln = i_vbap-vbeln
                                binary search.
        if sy-subrc eq 0.
          i_sales-bstnk = i_vbak-bstnk.
          i_sales-vdatu = i_vbak-vdatu.
          i_sales-matnr = i_vbap-matnr.
          i_sales-kdmat = i_vbap-kdmat.
          i_sales-maktx = i_vbap-maktx.
          i_sales-netpr = i_vbap-netpr.
          i_sales-kwmeng = i_vbap-kwmeng.
          append i_sales.
        else.
          continue.
        endif.
        clear : i_sales,
                i_vbap,
                i_vbak.
      endloop.
      sort i_sales by vdatu bstnk matnr.
      refresh : i_vbap,
                i_vbak.
    ENDFORM.                    " get_vbak_vbap
    *&      Form  dispolay_data
          Display the data
    FORM dispolay_data.
    Fill the Fiedlcat
      PERFORM fieldcat_init  using gt_fieldcat[].
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                =
      I_BUFFER_ACTIVE                   = ' '
          I_CALLBACK_PROGRAM                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
          IT_FIELDCAT                       = gt_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_ADD_FIELDCAT                   =
      IT_HYPERLINK                      =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
      IT_EXCEPT_QINFO                   =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = i_sales
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    ENDFORM.                    " dispolay_data
    *&      Form  fieldcat_init
          text
         -->P_GT_FIELDCAT[]  text
    FORM fieldcat_init USING  e01_lt_fieldcat type slis_t_fieldcat_alv.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    Delivery Date
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'VDATU'.
      LS_FIELDCAT-OUTPUTLEN    = 12.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Delivery Date'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Purchase Order #Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'BSTNK'.
      LS_FIELDCAT-OUTPUTLEN    = 25.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Purchase Order #'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-REF_FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-REF_TABNAME    = 'MARA'.
      LS_FIELDCAT-FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Material #'.
      ls_fieldcat-seltext_M = 'Material #'.
      ls_fieldcat-seltext_S = 'Material #'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'MAKTX'.
      LS_FIELDCAT-OUTPUTLEN    = 40.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Material Description'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Customer Material #
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KDMAT'.
      LS_FIELDCAT-OUTPUTLEN    = 35.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Customer material no.'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Quantity
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KWMENG'.
      LS_FIELDCAT-OUTPUTLEN    = 15.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Quantity'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Net Price
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'NETPR'.
      LS_FIELDCAT-OUTPUTLEN    = 15.
      LS_FIELDCAT-TABNAME    = 'I_SALES'.
      ls_fieldcat-seltext_L = 'Net Price'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    ENDFORM.                    " fieldcat_init
    Thanks
    Seshu

  • Incoming Inspection certificate

    Dear Friends,
    Recentally I have come across one scenario in which all required configuration settings are done to activate the incoming inspection certificate madatory. Even after that system's behave is :
    1. At the time of GRN system is not showing any respose w.r.t quality certificate (though option is there in respective tab).
    2. Inspection lot status is always "CROK" in every case.
    I am unable to find the root cause, Pl. help..
    Regards

    some settings are required in certificate type in customising
    Quality Management>QM in Logistics>>QM in Procurement>Define Keys for Certificate Processing>Define Certificate Types> select certificate type which u are using in material master
    check box for 'No certificate confirmation at GR ' should not be set.
    now if u confirm certicate at gr status will be crok
    if no confirmation is done at gr status will be ctcm

  • Remove Inspection certificate

    Hi,
    I have an inspection certificate(2261) for one Material. I want to remove it and to clear the posting.
    How can I do it
    Thanks

    Dede ,
              Remove the control key in material master under QM view and uncheck QM procurement active .This should solve your problem.Let me know if it ou have any furthur questions .
    Regards,
    Naik

  • URGENT Printing a BI publisher report from a column link in APEX

    I am developing an APEX report with a column link that will call a BI publisher report, the case is the link column in the APEX report will pass the item number to the BI publisher query.
    At the moment this is what I am doing:
    1- Create a hidden item on top of page zero. (e.g. PARAM1_VALUE)
    2- Create a report query and a report layout (For BI Publisher) in the Shared Components. (e.g ITEM_REPORT)
    3- Include the state session in the report query and reference that item in the query. (e.g. SELECT * FROM items where item_number = :PARAM1_VALUE)
    4- Create an APEX report displaying orders with the item number as a link column.
    5- In the Link column I set the report URL request to be "PRINT_SERVER=ITEM_REPORT".
    6- In addition I set the PARAM1_VALUE to be #ITEM_NUMBER# on the link.
    When I press on the link the BI publisher report prints but it doesn't display anything except the Headers, my understanding is that PARAM1_VALUE is not set with the item_number value when I press on the link and thus the query returns no results as when I remove the condition from the query i can see the report printing.
    Please help as this is urgent

    I opened the session and it is there with a proper value, it appears that whenever I enable the inclusion of session state in my shared components query the query returns no rows even if I am not using the item in the query.
    So if my query is "SELECT * FROM items" it will display nothing, the only way to get the report data back is to untick the inclusion of the session state and remove any reference to the item from my query, then I will get the report with all my data (which is NOT what I am trying to do).
    Thanks alot
    Khaled Jamoos

  • Urgent: Error while generating large report

    I'm getting below error when I executing the report for long time duration. The below report is executing only for one or two days. Please let me know how to resolve this error. This is very urgent.

    hard to say what's wrong without knowing many details
    so you can start to check
    11G Error "java.lang.reflect.InvocationTargetException" When Executing Report With Conditional Formatting (Doc ID 1553509.1)
    11G BI Publisher Error oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException When Exporting a Report (Doc ID 1548248.1)
    BI Publisher Reports Fail After Installing BI Publisher 11.1.1.5 January 2012 Update (Patch 13554951) (Doc ID 1453875.1)
    BI Publisher Consolidated Reference (Doc ID 1546377.1)

  • Urgent:  making multiple inspection characterstics in QP01 bdc

    Hi,
    I had made a BDC on QP01 in which i am able to upload 1 line for the
    inspection characterstic of a single Operation .
    Now the problem is there are around 10 to 15 lines for the inspection characterstic of a single Operation and i am not able to do it through it my bdc. now anybody can provide me some knowledge about it as how it is to be done?
    plzz help me out as it is really urgent to me and help will be definately rewarded.

    Hi,
    I had made bdc on transaction CA02. Its similiar to your requirement in which there are multiple inspection characterstics for single operation. Through BDC its possible. Please go through the below code.
    LOOP AT i_route_file INTO wa_route_file.
        AT NEW plnnr.
          PERFORM : zf_prepare_bdcdata_prg   USING 'SAPLCPDI'  '1010',
                    zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00',
                    zf_prepare_bdcdata_value USING 'RC271-PLNNR'
                                                   wa_route_file-plnnr.
    *--Conversion of date to internal format.
          PERFORM zf_conv_date.
          PERFORM zf_prepare_bdcdata_value USING 'RC271-STTAG' v_date.
        ENDAT.
        lv_arbpl = wa_route_file-arbpl.
        lv_steus = wa_route_file-steus.
        lv_ltxa1 = wa_route_file-ltxa1.
    *--Operation data
        AT NEW vornr.
          v_inscounter = 1.
          PERFORM : zf_prepare_bdcdata_prg   USING 'SAPLCPDI' '1400',
                    zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00',
                    zf_prepare_bdcdata_value USING 'RC27X-ENTRY_ACT' '1'.
    *--Conversion of vornr to internal format
          PERFORM zf_conv_vornr.
          READ TABLE i_opno INTO wa_opno WITH KEY plnnr = wa_route_file-plnnr
                                                  vornr = wa_route_file-vornr.
          IF sy-subrc <> 0.
            DESCRIBE TABLE i_opno LINES v_lines.
            v_num = v_lines + 1.
          ELSE.
            v_num = sy-tabix.
          ENDIF.
          CLEAR v_fieldnm.
          CONCATENATE 'PLPOD-ARBPL(' v_num ')' INTO v_fieldnm.
          PERFORM : zf_prepare_bdcdata_value USING v_fieldnm lv_arbpl.
          CLEAR v_fieldnm.
          CONCATENATE 'PLPOD-STEUS(' v_num ')' INTO v_fieldnm.
          PERFORM : zf_prepare_bdcdata_value USING v_fieldnm lv_steus.
          CLEAR v_fieldnm.
          CONCATENATE 'PLPOD-LTXA1(' v_num ')' INTO v_fieldnm.
          PERFORM : zf_prepare_bdcdata_value USING v_fieldnm lv_ltxa1,
                    zf_prepare_bdcdata_prg   USING 'SAPLCPDI' '1400',
                    zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMUE',
                    zf_prepare_bdcdata_value USING 'RC27X-ENTRY_ACT' '1'.
          CLEAR v_fieldnm.
          CONCATENATE 'RC27X-FLG_SEL(' v_num ')' INTO v_fieldnm.
          PERFORM: zf_prepare_bdcdata_value USING v_fieldnm 'X'.
        ENDAT.
    *--Inspection Characteristics
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0150',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00'.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-VERWMERKM(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-verwmerkm.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-MKVERSION(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-mkversion.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-PMETHODE(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-pmethode.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-PMTVERSION(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-pmtversion.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-STICHPRVER(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-stichprver.
        CLEAR v_fieldnm.
        CONCATENATE 'QFLTP-SOLLWERT(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-sollwert.
        CLEAR v_fieldnm.
        CONCATENATE 'QFLTP-TOLERANZUN(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-toleranzun.
        CLEAR v_fieldnm.
        CONCATENATE 'QFLTP-TOLERANZOB(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-toleranzob.
        CLEAR v_fieldnm.
        CONCATENATE 'PLMKB-DUMMY10(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm
                                                wa_route_file-dummy10.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1501',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'PLMKB-VERWMERKM'
                                                wa_route_file-verwmerkm,
                 zf_prepare_bdcdata_value USING 'PLMKB-QPMK_WERKS'
                                                wa_route_file-qpmk_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-MKVERSION'
                                                wa_route_file-mkversion,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                 wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                 wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                 wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0150',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMD1',
                 zf_prepare_bdcdata_value USING 'RQPAS-ENTRY_ACT' '1'.
        CLEAR v_fieldnm.
        CONCATENATE 'RQPAS-SEL_FLG(' v_inscounter ')' INTO v_fieldnm.
        PERFORM: zf_prepare_bdcdata_value USING v_fieldnm 'X'.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0160',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMAM',
                 zf_prepare_bdcdata_value USING 'PLMKB-STICHPRVER'
                                                wa_route_file-stichprver.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0160',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '/00',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR'
                                                'PLMKB-PROBENR',
                 zf_prepare_bdcdata_value USING 'PLMKB-PROBENR'
                                               wa_route_file-probenr,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                               wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                      wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                       wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
                 zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                 wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                 wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                 wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '0160',
                 zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=QMBU',
                 zf_prepare_bdcdata_value USING 'PLMKB-PROBENR'
                                                wa_route_file-probenr,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                                wa_route_file-pmethode,
                 zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                                wa_route_file-qmtb_werks,
                 zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                                wa_route_file-pmtversion.
        PERFORM: zf_prepare_bdcdata_prg   USING 'SAPLQPAA' '1502',
               zf_prepare_bdcdata_value USING 'BDC_OKCODE' '=ENT1',
               zf_prepare_bdcdata_value USING 'BDC_CURSOR' 'PLMKB-PMETHODE',
               zf_prepare_bdcdata_value USING 'PLMKB-PMETHODE'
                                               wa_route_file-pmethode,
               zf_prepare_bdcdata_value USING 'PLMKB-QMTB_WERKS'
                                               wa_route_file-qmtb_werks,
               zf_prepare_bdcdata_value USING 'PLMKB-PMTVERSION'
                                               wa_route_file-pmtversion.
        v_inscounter = v_inscounter + 1.
        AT END OF plnnr.
    *--Call transaction CA02- Change Routing
          CALL TRANSACTION 'CA02' USING i_bdcdata
                                  MESSAGES INTO i_messtab
                                  MODE 'N'
                                  UPDATE 'S'.
          COMMIT WORK AND WAIT.
        ENDAT.
      ENDLOOP.
    Please ask if any queries....

  • Urgent Help Needed in this Report

    hi frd. help me in this report.
    parameter : plant,material no,company code,storage location.
    display: material no, material desc, UOM, ROL, warehouse, open po, open po qty, open pr no, open pr qty.
    Kindly Give me tips for doing this report.
    thank u
    Pari Vendhan.R

    Hi Pari,
    Go to se38 --Abap editior..
    chose the includes u like to be as
    Include  <>_top.
    Include  <>_subr.
    then follow the events....
    Initialization.
    ( as per requirement).
    At selection-screen.
    Perform fetch _data.
    Perform fefilloutput.
    any other logic to be followed for u r report.
    end-of-selection.
    Perform output.
    In include top.
    Put the declarartion part and the selection-screen block.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : pa_werks LIKE table name-werks
                            pa_material no like tablename-field.     
    SELECTION-SCREEN END OF BLOCK b1.
    like wise u need to put the logic for the requirement
    Thanks
    Mohinder Singh Chauhan

  • Change output of abap logical database report

    Hello
    I have an abap report that is using a logical database to display some fields.My problem is that i have to change it and display more fields for output ,how can i control this?
    Thank you

    Hi,
    We need to add the required (additional) fields to the internal table structure, fill the fields with relevant data and display them on the screen. How is the output fields related to using a LDB..?
    Can you explain me a little bit more on the below stmt?
    " I have an abap report that is using a logical database to display some fields."
    I am not clear in understanding the relation b/w 'using LDB' and 'fields in output'. I dont think the fields displayed in the output screen will be restricted while using a LDB. Pls correct me if i understood wrong.
    Thanks,
    teja.

  • Urgent Requirement-- ABAP Query

    Hi,
    I have a developed ABAP Query by the name "YCOPM_Bill_PUR".
    In this query, I have an additional field "indicator". For this field, there is some code written, wherein either of the values "N" or "O" are assigned to this "indiactor" field. Now, the query should generate the output, only when indicator = N i.e. only those records should be displayed in the output for which the indicator field has value 'N'.
    Records having indicator field value as "O", should not be displayed.
    I want to know the place where I can write this condition and keep a control on the records displayed in the output.
    Currently, the query output displays all records (irrespective of whether indicator = 'N' or 'O').
    I have added the field indicator on the selection screen.
    But, I want to know where can I write the condition :
    if indicator = 'N'.
    endif.
    In "SQ02", there would be some place where i can write the above condition so that the output is trigerred only for those particular records. If possible, please do let me know.
    In short, I need to know, where are the output fields getting populated and where can I write this code to control the output.
    Please help me out.
    Thanks & Regards,
    Tejas Savla

    Hi Pooja,
                  Thanks a lot for your quick reply.
    I have done the same . i.e. i have written the code for that particular field (indicator) in SQ02 and generated the infoset. Now, the correct value ('O' or 'N') gets assigned to the indicator field.
    But, my problem is different.
    I need to find the location, where the all the output(report output) fields are getting populated, so that I can place a condition on my additional field (indicator) and control the fields to be displayed in the output.
    In short, I need to know, if there exists a location where I can place a condition such as "Display the output, only if field indicator = 'O' ".
    I hope you got my query.
    Thanks in advance.
    Regards,
    Tejas Savla

Maybe you are looking for