I Need A Clasical Report For  The Following Specification Plz

With out Using any ALVS .
                                                      SALESORDER REPORT
TABLES : VBAK,
                   VBAP,
                    KNA1.
INPUT FIELDS :  Sales Document  (RANGE)----
  (vbak-vbeln)
                              Document Date (Date Received/Sent).(RANGE)----
(vbak-audat)
                              Sold-to party (PARAMETERS)----
(kna1-kunnr)
O/P FIELDS :
Sales Document----
(vbak-vbeln)
Document Date (Date Received/Sent)----
(vbak-audat)
Sales Document Item----
(vbap-posnr)
Short text for sales order item----
(vbap-arktx)
Material Number----
(vbap-matnr)
Cumulative order quantity in sales units----
  (VBAP-KWMENG)
Requested delivery date----
(VBAP-CMKUA)
CUSTMER NUMBER(Sold-to party) -
(kna1-kunnr)
CUSTMER NAME -
(KNA1-NAME1)
CUSTMER CONTRY----
(KNA1-LAND1)
Net Value of the Sales Order in Document Currency----
(VBAK-NETWR)
Sales Organization----
(VBAK-KORG)
Name of Person who Created the Object----
(VBAK-ERNAM)
================================================================================
VBAK :
                                                                                (KNA1-KUNNR)
Sales Document----
(VBAK-VBELN)
Document Date (Date Received/Sent)----
  (VBAK-AUDAT)
  Net Value of the Sales Order in Document Currency----
(VBAK-NETWR)
Sales Organization----
(VBAK-KORG)
Name of Person who Created the Object----
(VBAK-ERNAM)
VBAP:
Sales Document Item----
(VBAP-POSNR)
Short text for sales order item----
(VBAP-ARKTX)
Material Number----
(VBAP-MATNR)
Cumulative order quantity in sales units----
  (VBAP-KWMENG)
Requested delivery date----
(VBAP-CMKUA)
KNA1:
CUSTMER NUMBER(Sold-to party) -
(KNA1-KUNNR)
CUSTMER NAME -
(KNA1-NAME1)
CUSTMER CONTRY----
(KNA1-LAND1)
====================================================================================================
TABLES : VBAK,
VBAP,
KNA1.
INPUT FIELDS : Sales Document (RANGE)
Document Date (Date Received/Sent).(RANGE)
Sold-to party (PARAMETERS)
O/P FIELDS :
Sales Document ....... VBAK-VBELN
Document Date (Date Received/Sent).....VBAK-AUDAT
CUSTMER NUMBER(Sold-to party)................VBAK-KUNNR
Net Value of the Sales Order in Document Currency.....VBAK-NETWR
Sales Organization......................................................VBAK-KORG
Name of Person who Created the Object..................VBAK-ERNAM
Sales Document Item ...............VBAP-POSNR
Short text for sales order item..........VBAP-ARKTX
Material Number.............................VBAP-MATNR
Cumulative order quantity in sales units............VBAP-KWMENG
Requested delivery date.................VBAP-CMKUA
CUSTMER NAME..................KNA1-NAME1
CUSTMER CONTRY..........................KNA1-LAND1

Here is the sample code, please make the necessary modifications...
REPORT ZTEST LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
LOOP AT SCREEN.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
Regards,
Pavan.

Similar Messages

  • I Need a Report For the following Specifications

    SALESORDER REPORT
    TABLES : VBAK,
                       VBAP,
                        KNA1.
    INPUT FIELDS :  Sales Document  (RANGE)----
      (vbak-vbeln)
                                  Document Date (Date Received/Sent).(RANGE)----
    (vbak-audat)
                                  Sold-to party (PARAMETERS)----
    (kna1-kunnr)
    O/P FIELDS :
    Sales Document----
    (vbak-vbeln)
    Document Date (Date Received/Sent)----
    (vbak-audat)
    Sales Document Item----
    (vbap-posnr)
    Short text for sales order item----
    (vbap-arktx)
    Material Number----
    (vbap-matnr)
    Cumulative order quantity in sales units----
      (VBAP-KWMENG)
    Requested delivery date----
    (VBAP-CMKUA)
    CUSTMER NUMBER(Sold-to party) -
    (kna1-kunnr)
    CUSTMER NAME -
    (KNA1-NAME1)
    CUSTMER CONTRY----
    (KNA1-LAND1)
    Net Value of the Sales Order in Document Currency----
    (VBAK-NETWR)
    Sales Organization----
    (VBAK-KORG)
    Name of Person who Created the Object----
    (VBAK-ERNAM)
    ================================================================================
    VBAK :
                                                                                    (KNA1-KUNNR)
    Sales Document----
    (VBAK-VBELN)
    Document Date (Date Received/Sent)----
      (VBAK-AUDAT)
      Net Value of the Sales Order in Document Currency----
    (VBAK-NETWR)
    Sales Organization----
    (VBAK-KORG)
    Name of Person who Created the Object----
    (VBAK-ERNAM)
    VBAP:
    Sales Document Item----
    (VBAP-POSNR)
    Short text for sales order item----
    (VBAP-ARKTX)
    Material Number----
    (VBAP-MATNR)
    Cumulative order quantity in sales units----
      (VBAP-KWMENG)
    Requested delivery date----
    (VBAP-CMKUA)
    KNA1:
    CUSTMER NUMBER(Sold-to party) -
    (KNA1-KUNNR)
    CUSTMER NAME -
    (KNA1-NAME1)
    CUSTMER CONTRY----
    (KNA1-LAND1)
    ====================================================================================================
    TABLES : VBAK,
    VBAP,
    KNA1.
    INPUT FIELDS : Sales Document (RANGE)
    Document Date (Date Received/Sent).(RANGE)
    Sold-to party (PARAMETERS)
    O/P FIELDS :
    Sales Document ....... VBAK-VBELN
    Document Date (Date Received/Sent).....VBAK-AUDAT
    CUSTMER NUMBER(Sold-to party)................VBAK-KUNNR
    Net Value of the Sales Order in Document Currency.....VBAK-NETWR
    Sales Organization......................................................VBAK-KORG
    Name of Person who Created the Object..................VBAK-ERNAM
    Sales Document Item ...............VBAP-POSNR
    Short text for sales order item..........VBAP-ARKTX
    Material Number.............................VBAP-MATNR
    Cumulative order quantity in sales units............VBAP-KWMENG
    Requested delivery date.................VBAP-CMKUA
    CUSTMER NAME..................KNA1-NAME1
    CUSTMER CONTRY..........................KNA1-LAND1

    Here is the sample code, please make the necessary modifications...
    REPORT ZTEST LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    Regards,
    Pavan.

  • Need best Architecture design for the following scenario

    Hi Experts,
    I need best architecture design for the following scenario:
    Sender: Mail
    Receiver: if sender body contain u201DApproveu201D, then call SOAP adapter, If SOAP adapter execute successfully, then  send Mail(SOAP adapter executed successfully) and SMS .  So receiver is SOAP, Mail and SMS.
    My current approach issue:
    Three message mapping:
    Mapping1: mail to SOAP
    Mapping2: mail to Mail
    Mapping3: mail to SMS
    In interface determinant>u201DSelect all three operation mappingu201D> u201Cselect order at runtimeu201D.
    Issue in current approach: For me first SOAP adapter should complete successfully, after that only my Mail and SMS operation mapping should execute:
    But problem is before success of SOAP adapter engine, Mail and SMS mapping completed or integration engine executed.
    Note: There is possible to fail the SOAP request in adapter engine.
    Kindly help me --> u201CAm I going correct way or want to change the architectureu201D?
    Thanks for advance!!
    Regards, Kumar

    What do you mean by successful execution of soap call?  Are you talking about Successful response (happy flow) from the soap call instead of application error ? Then based on the response you want to decide sending mail and sms.  How big call is your soap ?  If your soap interface is very simple I can give the other possible way.
    Sender sends the message, use mapping  to read the content and then do soap call in the mapping itself and after seeing the soap response decide about two receivers (mail and SMS).  If your soap call is very simple one, you can go for it. Otherwise I would not recommend this. The reason is you loose some visibility regards to monitoring during soap call in the mapping.
    Other option is go for CCBPM.  Here you receive the message, use send step to soap interface which is sync step. Then after seeing the response create another block with fork steps each for two senders mail and sms. If response bad then dont proceed or execute the next block. Simply use exeception or control step to jump out from the block,

  • I Need to use ABS for the following statement

    Hi
    WA_OUTTAB-CORES_PER_MOLD = GT_IOOPCOMP-BDMNG / GT_IOOPER-MGVRG.
    I need to put ABS for the following statement.
    Kindly help.

    WA_OUTTAB-CORES_PER_MOLD = GT_IOOPCOMP-BDMNG / GT_IOOPER-MGVRG.
    WA_OUTTAB-CORES_PER_MOLD = abs(WA_OUTTAB-CORES_PER_MOLD).
    Regards
    Aneesh.

  • Genearate a Report for the following data

    Hi All
    The following is of my requirement
    <b>Selection Screen Should be as follows:</b>
    Plant (required) <b>QALS-WERK</b>
    Storage Location <b>MCHB-LGORT</b>
    Material Number  <b>QALS-MATNR</b>
    Batch Number    <b> MCHB-MATNR</b>
    MRP Controller   <b>MARC-DISPO</b>
    Inspection Lot Number <b>QALS-PRUEFLOS</b>
    Inspection Lot Creation Date <b>QALS-ENSTEHDAT</b>
    Inspection Lot Origin <b>QALS-HERKUNFT</b>
    PO Number <b>QALS-EBELN</b>
    Vendor # <b>EKKO-LIFNR</b>
    Goods Receipt Date <b>MKPR-BUDAT</b>
    Delivery Number <b>QALS-KTEXTLOS</b>
    Marked in House Date
    Sterile Load # <b>ZC012-STBAT</b>
    Supplying Plant <b>EKKO-RESWK</b>
    Profit Center <b>QALS-PRCTR</b>
    <b>Radio Buttons for Selection Screen:</b>
    •     Show all stock (not just Q stock)
    •     Show only past due stock (GR Date + GR processing time > today)
    •     Include Serial Numbers
    <b>Fields for report:</b>
    Plant                    <b>QALS-WERK</b>
    STO/PO                    <b>QALS-EBELN</b>
    Delivery/Production Order #     <b>QALS-KTEXTLOS</b>
    Sterile Load #               <b>ZC013-STTYP</b>
    Inspection Lot Number          <b>QALS-PRUEFLOS</b>
    Material               <b>QALS-MATNR</b>
    Old Material                <b>MARA-BISMT</b>
    Serial #s (all serial #s with material      <b>ITOB-SERNR</b>
    batch combination)                    
    Batch                    <b>QALS-CHARG</b>
    Sloc (all SLOCs with Q status items)     <b>MCHB-LGORT</b>                         
    Batch Exp Date               <b>DFBATCH-MHD_IO</b>
    Quantity (in each SLOC)          <b>MCHB-CINSM</b>                    
    Profit Center               <b>QALS-PRCTR</b>
    Date Marked In House          <b>ZTMODE-TDATE</b>
    GR Date                    <b>QALS-ENSTEHDAT</b>
    Expected GR Processing Time     <b>MARC-WEBAZ</b>
    Date Moved to NCMR          <b>MKPF-BLDAT</b>     
    Days in House               System date – ZTMODE-TDATE
    Days in QI          System date - <b>QALS-ENSTEHDAT</b>
    Days from QI         <b>QALS-ENSTEHDAT - MKPF-BLDAT</b>
    Days in NCMR          System date - <b>MKPF-BLDAT</b>
    MRP Controller               <b>MARC-DISPO</b>
    MRP Controller Name          <b>T024D-DSNAM</b>
    Standard Cost               <b>MBEW-STPRS</b>      
    Extended Standard Cost     <b>MCHB-CINSM * MBEW-STPRS</b>
    How we can develop a report for the above, because they havn't given any conditional checking. Supress if any Ztables used.
    i would appreciate if you can send an earliest reply and reward points for the same.
    if any queries just reply me i can clarify.
    Regards
    Prabhu

    Hi Prabhakar,
    Well you can opt for ALV display...
    You want to generate report based on plant data..
    Once the user enters the plant, you can extract the remaining info from table MARA, QALS, EKKO.
    The radio buttons will decide your selection critera.
    I dont think any functional guy will give you everthing spoon feeded. You will have to explore those tables and the relevant fields.
    In case you are finding it to difficult to get the relations between the tables or finding list of tables,
    i shall send u docs which will help u solve the problem.
    Give me ur email id
    Regards,
    Tanveer.
    Mark helpful answers
    Message was edited by: Tanveer Shaikh

  • Creating a Report for the following Query u0096 Kindly help

    Hi,
    Using selection options we have to give the name of
    1) Sales Organization  -- VBAK -VKORG
    2) Distribution Channel -- VBAK - VTWEG
    3) Division -- VBAK -- SPART
    4) Created Date -- VBAK -- ERDAT.
    Once we select this the following list should be displayed.
    1) Order no. -- VBAK - VBELN.
    2) Created date -- VBAK - ERDAT
    3) Sold To Party -- VBAK - KUNNR
    4) Shipped to party -- VBPA -- KUNNR.
    5) Item no -- VBAP -- POSNR
    6) Material no. -- VBAP -- MATNR
    7) Material Discription -- VBAP - ARKTX.
    The out put should be like this
    Sales Org  : **********
    Dist chan  : **************
    Division    : *********
    Created Date : ********
    Orderno  credate soltopar shiptopar itemno materiano materdes
    and so.
    Also When we click on the order no we should ge the transaction VA03.
    With Select options i was able to get the sales organization distribution channel and division and the when we give the values it is showing Run time errors.
    Kindly help me to proceed further.
    Even if I am able to generate the order list it will be fine. Going on to VA03 I will manage some how  If possible give the syntax for this also).
    Regard,
    Surjith

    Hi,
    Check the below code :
    REPORT  yvic_test_sales.
    TABLES vbak.
    TYPES:
      BEGIN OF ty_sales_data,
        vbeln  TYPE vbeln_va,
        erdat  TYPE erdat,
        kunnr   TYPE kunag,
        oid_ship TYPE kunwe,
        posnr    TYPE posnr_va,
        matnr    TYPE matnr,
      END   OF ty_sales_data.
    DATA : gt_data TYPE STANDARD TABLE OF ty_sales_data.
          CLASS gcl_handle_events DEFINITION
    CLASS gcl_handle_events DEFINITION.
      PUBLIC SECTION.
        METHODS:
              on_link_click FOR EVENT link_click OF cl_salv_events_table
                IMPORTING row column.
    ENDCLASS.                    "gcl_handle_events DEFINITION
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS:
    s_vkorg  FOR vbak-vkorg,
    s_vtweg  FOR vbak-vtweg,
    s_spart  FOR vbak-spart,
    s_erdat  FOR vbak-erdat.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      SELECT  d1~vbeln
              d1~erdat
              d1~kunnr
              d2~oid_ship
              d2~posnr
              d2~matnr
              INTO TABLE gt_data
             FROM vbak AS d1
              JOIN vbap AS d2
        ON d1vbeln = d2vbeln
            WHERE d1~vkorg IN s_vkorg[]
            AND   d1~vtweg IN s_vtweg[]
            AND   d1~spart IN s_spart[]
            AND   d1~erdat IN s_erdat[].
          CLASS gcl_handle_events IMPLEMENTATION
    Subroutine call_transaction will get called
    when user clicks on BELNR (Acounting document) or EBELN(PO)
    CLASS gcl_handle_events IMPLEMENTATION.
      METHOD on_link_click.
        PERFORM call_transaction USING row column.
      ENDMETHOD.                    "on_link_click
    ENDCLASS.                    "gcl_handle_events IMPLEMENTATION
    END-OF-SELECTION.
      PERFORM display_data.
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      DATA:
          lo_table         TYPE REF TO cl_salv_table,"table object
          lo_function      TYPE REF TO cl_salv_functions,
          lo_layout        TYPE REF TO cl_salv_layout,
          lo_columns       TYPE REF TO cl_salv_columns_table,
          lo_hotspot       TYPE REF TO cl_salv_column_table,
          lo_events_name   TYPE REF TO cl_salv_events_table,
        lo_click         TYPE REF TO gcl_handle_events,
          ls_key           TYPE salv_s_layout_key,
          lo_sorts         TYPE REF TO cl_salv_sorts,
          lo_aggregation   TYPE REF TO cl_salv_aggregations,
          lo_exception     TYPE REF TO cx_root,"exception object
          l_text           TYPE string." to hold exception message
    create a table object to display result table
      TRY.
          cl_salv_table=>factory( IMPORTING r_salv_table = lo_table
                                 CHANGING  t_table      = gt_data ).
    catch exception
        CATCH cx_salv_msg INTO lo_exception.
    get exception text and display it in message
          l_text = lo_exception->get_text( ).
    Message: & & & &
          MESSAGE i000(zzz) WITH l_text.
      ENDTRY.
    get column object of the table created
      lo_columns = lo_table->get_columns( ).
    FOR HOTSPOT on Doc no
      TRY.
          lo_hotspot  ?= lo_columns->get_column( 'VBELN' ).
          lo_hotspot->set_cell_type( if_salv_c_cell_type=>hotspot ).
        CATCH cx_salv_not_found INTO lo_exception.
    get exception text and display it in message
          l_text = lo_exception->get_text( ).
    Message: & & & &
          MESSAGE i000(zzz) WITH l_text.
      ENDTRY.
      lo_events_name = lo_table->get_event( ).
      CREATE OBJECT lo_click.
      SET HANDLER lo_click->on_link_click FOR lo_events_name.
      lo_table->display( ).
    ENDFORM.                    " DISPLAY_DATA
    *&      Form  CALL_TRANSACTION
          text
         -->P_ROW  text
         -->P_COLUMN  text
    FORM call_transaction  USING    pa_row
                                    pa_column.
      DATA ls_final_data TYPE ty_sales_data.
      IF pa_column = 'VBELN'.
        CLEAR ls_final_data.
        READ TABLE gt_data INTO ls_final_data INDEX pa_row.
        IF NOT ls_final_data-vbeln IS INITIAL.
          SET PARAMETER ID 'AUN' FIELD ls_final_data-vbeln.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
    ENDFORM.                    " CALL_TRANSACTION
    Reward if helpful..
    Thanks

  • Creating a report for the following Query --Kindly help.

    Here when we use select options
    1) you have to use 4 different "Select Option" Statement to select this Below.
    1) Sales Organisation  -- VBAK -VKORG
    2) Distribution Channel -- VBAK - VTWEG
    3) Division -- VBAK -- SPART
    4) Created Date -- VBAK -- ERDAT.
    The following fields have to be displayed.
    1) Order no. -- VBAK - VBELN.
    2) Created date -- VBAK - ERDAT
    3) Sold To Party -- VBAK - KUNNR
    4) Shiped to party -- VBPA -- KUNNR.
    5) Item no -- VBAP -- POSNR
    6) Material no. -- VBAP -- MATNR
    7) Material Discription -- VBAP - ARKTX.
    By using the select options of Sales organisation, Distribution channnel and so on I am not able to get the out put of the order no , created date , sold to party , shipped to party (Which is in a different tableVBPA) and Item no Material No and material Discription which are in table VBAP.Here I am getting a run time error.
    Kindly help and inform how to code this .
    Also When we click the Order no in the list we have to get the screen VA03.
    Regard

    Hi John,
    Use the following Select statement for Query  :-
    Code A )
    SELECT vbak~vkorg
           vbak~vtweg
           vbak~spart
           vbak~erdat
           vbak~vbeln
           vbak~erdat
           vbak~kunnr
           vbpa~kunnr
           vbap~posnr
           vbap~matnr
           vbap~arktx
           into corresponding fields of table ITAB
           FROM ( vbak INNER JOIN vbap
    ON vbakvbeln = vbapvbeln
    INNER JOIN vbpa
    ON vbakvbeln = vbpavbeln
    WHERE vbak~vkorg IN s_vkorg
    AND vbak~vtweg IN s_vtweg
    and vbak~spart in s_spart
    AND vbak~erdat in s_erdat.
    And Use this part of the code to show the selected Sales order  :-
    code B)
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CASE r_ucomm.
    WHEN '&IC1'.
    CASE rs_selfield-sel_tab_field.
    WHEN 'ITAB-VBELN'.
    CHECK NOT rs_selfield-value IS INITIAL.
    SET PARAMETER ID 'AUN' FIELD rs_selfield-value.
    CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
    ENDCASE.
    ENDCASE.
    ENDFORM.
    Award points if useful !
    Regards
    Hrishi

  • Need Mapping logic for the following scenario

    Hi everyone,
    I need a mapping logic for the following scenario.
    For the same order no with same material no, the quantity should be summed and only one idoc should be created.
    For the same order no with different material no, no need to sum the quantity and only one idoc should be created.
    For example:
    Source Structure:
    Ord No      Mat No      QTY
    12               1               2
    13               1               3
    13               2               1
    12               2               4
    15               1               5
    14                3              7
    12               1              6
    Target Structure:
    Ord No      Mat No      QTY
    12               1               8
    12               2               4
    13               1               3
    13               2               1
    14               3              7
    15               1              5
    Thanks in Advance

    Try the graphical mapping as shown below using concat with a space as delimite and UDF to split the value again by space.
    1. Idoc node
    (RootContext)
    OrdNo
         |concat[ ] -> sort[asending] -> SplitByValue -> collapseContexts -> Idoc
    MatNo                case sensitive    [ValueChange]                              
    (RootContext)
    2. OrdNo
    OrdNo(RC)
         |concat[ ] -> sort[asending] ->SplitByValue->collapseContexts->SplitByVale-> UDF to fetch ordno  -> OrdNo
    MatNo(RC)           case sensitive    [ValueChange]                [eachValue]   (return var1.split(" ")[0];)
    3. MatNo
    OrdNo(RC)
         |concat[ ] -> sort[asending] -> SplitByValue ->collapseContexts->SplitByVale-> UDF to fetch ordno  -> MatNo
    MatNo(RC)              case sensitive    [ValueChange]                  [eachValue]   (return var1.split(" ")[1];)
    4. Qty
                   [asending,case sensitive]               
                   --  sortByKey -----> formatByExample -> sum ->Qty
    OrdNo(RC)           |          |          ^          
         |concat[ ] -> |            Qty(RC)          |
    MatNo(RC)           |                |     
                   --sort[asending]-> SplitByValue
                       case sensitive    [ValueChange]
    Regards,
    Sunil Chandra

  • I need a report with the following fields

    Hi All,
    I need a report with the following fields & G/L "Expenses" only.
    1)G/L Code.
    2) G/L Name.
    3) G/L Balance
    & Selection Criteria From Date, To Date , & Location(for me locations is PROFITCENTRE).
    Please some body suggest me an SQL Querry to fetch this result.
    Thanks in Advance,
    S. Mobin

    Hi!
    Individual G/L means i didn't understand
    check this for only Expence Acc
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Location nvarchar(20)
    set @FromDate = (Select min(S0.RefDate) from jdt1 s0 where s0.Refdate >='[%0]')
    set @ToDate = (Select max(S1.RefDate) from jdt1 s1 where s1.Refdate >='[%1]')
    set @Location = (Select max(s2.ProfitCode) from jdt1 s2 where s2.ProfitCode  = '[%2]')
    select
    J1.Account,
    max(A0.AcctName) as Name,
    j1.ProfitCode as Location,
    sum(J1.debit-j1.credit) as Balance
    From
    JDT1 J1,OACT A0
    Where
    J1.Account=A0.AcctCode and
    J1.RefDate >=@FromDate and
    J1.RefDate<= @ToDate and
    j1.ProfitCode=@Location and
    A0.GroupMask = 5
    Group By
    J1.Account,j1.ProfitCode

  • Help needed on balance sheet plan report for the current year

    Hi BW gurus,
    I have a problem with reporting.
    I need to get  Balance-Sheet Plan Reports for the Planned year and for the current year.
    To get the report for the planned year its  straight forward just by restricting 0balance by the version to 1 and the valuetype 20.
    But I have a problem with the current year report.
    I have fiscal year and the company code as the variables.
    The report should be like this.
    If we need the report as of today(July 26 2006),we may input 2006 for the fiscal year variable.
    And the 0balance for the twelve fiscal periods should be as follows
    From jan 2006 to june 2006(fiscal periods) it should have only the actuals
    From july 2006 to dec 2006(fiscal periods) it should have  only  the plan
    I have already built a query by having two restricted keyfigures on 0balance.
    One by restricting version and valuetype 0 and 10 , and the other with 1 and 20.
    But in the report I am getting two columns of data for each fiscal period for 12 periods.0balance with actuals and 0balance with plan.
    But I need to get 0balance with actuals from jan to june(individually for each fiscal period columnwise),and 0balance with plan from july to dec(individually for each fiscal period columnwise).
    Hope you people can visualize my report.
    Please help me ASAP.
    Any kind of help is appreciated.
    My mail id is [email protected]
    Thanks in advance
    Regards
    Sam Mathew

    Hi Sam,
        Did u get this issue solved. I am having the same issue now. Can u please let me know if u have a solution for this.
    Thanks
    Prasad

  • I need the Log Report for the Data which i am uploading from SAP R/3.

    Hi All,
    I am BI 7.0 Platform with Support Patch 20.
    I need the Log Report for the Data which i am uploading from SAP R/3.
    I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item.   In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
    I capture the FS item from the Z table then update this FS item to Infobject FS item.
    Now i  need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
    Please suggest.
    Regards
    nilesh

    Hi.
    Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
    In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
    Regards
    Jacob

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • What r all the tables  used for the following report

    hai
    what r all the tables  used for the following report
    report:
    <b>
    •     Report that displays all the late shipments in a particular period of time</b>
    send important fields for this tables also
    thanks in advance.

    Hi,
       Imp table are vttk,vttp,vtts.
    Regards
    Amole

  • Would like to purchase PSE 12 to process Camera Raw files for the following cameras: Nikon D800, Nikon DF, Canon G9 and Pentax K-3 does the Raw Converter that comes with  PSE 12 when purchased recognize  the cameras listed in the question or do I need to

    Would like to purchase PSE 12 to process Camera Raw files for the following cameras: Nikon D800, Nikon DF, Canon G9 and Pentax K-3 does the Raw Converter that comes with  PSE 12 when purchased recognize  the cameras listed in the question or do I need to download  the camera Raw Version 8.3 ?

    While the G9 RAW files can be read by Adobe Camera RAW and Lightroom, these file are unsupported at this time. Here is a link to Adobe's latest list of cameras that are supported and this list came out yesterday http://www.adobe.com/products/photoshop/cameraraw.html
    I have not done a comparison between Lightroom and Canon's software but others have and say that Canon's software is clearly better. I am sure when Adobe updates their software again to include the G9 it will be a very good RAW converter as it is will most other cameras.

  • Driver files needed for the following Sony dvd/cd rom drive: "dvd-rom ddu 1615". windows xp

    Driver files needed for the following Sony dvd/cd rom drive:  "dvd-rom  ddu 1615". 
    The dvd-rom drive will not read any type of dvd or cd.
    desktop computer:  Dell Dimension E310 , windows xp, service pack 3.
    This Sony dvd rom was installed (by someone else) and replaced the dvd rom that initially came with the Dell E310.  
    Where can I find driver files for this dvd rom?
    Thanks,
    Denise

    Hello Denise,
    Welcome to the Sony Community.
    All of the Sony internal optical drives are plug & play with Windows so no drivers are required for detection in your PC. If you are having issues getting your drive detected then please try the following:
    • Ensure the Sony drive is set as a secondary master by itself. If you have another disc burner or a zip drive on the same IDE cable, please separate them.
    • Ensure you have the latest Service pack for your Windows operating system and any other updates for your system installed.
    service, storage support email
    • Please remove your secondary IDE channel from the Device Manager.
    If the issue is still not resolved, service may be required. You may contact the Sony Storage support team by e-mail at: [email protected] for further information.
    Thank you for your post.

Maybe you are looking for

  • Workflow process changed to admin for all entities

    Hi, We are working in Hyperion 9.3.3. Today morning we saw that the current owners for all the entities are changed to admin for few commbinations of scenario and version members. We sneaked into the audit tables and we can see the changes in those t

  • HT1386 downloaded song won't play

    Downloaded songs will play on the computer but wont play on the iPhone... any suggestions?

  • Safari quits all the time, can't find server, garbled texts

    Safari can't find server, will not browse, quits all the time, garbled texts, don't know if I am using  safari and snow leopard or safari with ox lion which i have upgraded recently.

  • I'm uninstalling Firefox.

    The new design, even with "Classic Theme Restorer," is a step down. One example: I was customizing my address bar and lost -- yes lost -- the home icon. I accidentally dropped it halfway between the page of available icons and the address bar, and it

  • Root Password Doesn't Work on Sudo Commands

    I went through the process of changing the root password in Recovery mode and it appeared everything went as expected. Rebooted the Mac. When I run a command in Terminal using "sudo", I get challenged for the root password, and authentication fails.