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
Similar Messages
-
Logic needed for the following data
Hi All,
I have procedure in that I am calling a cursor to fetch the records. This query is returning the following data
DI
SZ
DII
CWT
Top
down
9 1/2
9.625
8.921
36
18
1602
13 1/2
13.375
12.515
61
19
1962
18 1/2
18.625
17.755
87.5
20
503
26
26
24.75
105
20
103
9 1/2
9.625
8.835
40
1602
3858
7
7
6.276
26
1683
6352
I want to print just these values ..
9 1/2
9.625
8.921
36
18
1602
9 1/2
9.625
8.835
40
1602
3858
7
7
6.276
26
1683
6352
As you can see in these values top and down are overlapping.
I tried several ways to sort the query on the fields and have some logic, but I am always getting one row extra which is not overlapping.
Can someone please give me the logic to get the desired result through conditions in Procedure/function/package
ThanksBrendanP wrote:
26 AND t.top
"AND t.top....."... what?
Here's another solution, giving the least overlap over the greatest distance...
SQL> ed
Wrote file afiedt.buf
1 with data as (select 1 id , 18 top, 1602 down from dual union all
2 select 2,19, 1962 from dual union all
3 select 3,20, 503 from dual union all
4 select 4,20, 103 from dual union all
5 select 5,1602, 3858 from dual union all
6 select 6,1683, 6352 from dual
7 )
8 -- -------------------------------------------------------
9 -- END OF TEST DATA JUST USE QUERY BELOW AGAINST OWN TABLE
10 -- -------------------------------------------------------
11 ,idealpath as (
12 select id, path, idpath
13 from (
14 select id, path, idpath, cmlt_diff, min_diff, cvrg, max_cvrg
15 from (
16 select x.id
17 ,x.path
18 ,idpath
19 ,to_number(y.column_value) as cmlt_diff
20 ,min(to_number(y.column_value)) over (partition by cvrg) as min_diff
21 ,cvrg
22 ,max(cvrg) over () as max_cvrg
23 from (
24 select connect_by_root(id) as id
25 ,down-connect_by_root(top) as cvrg
26 ,ltrim(sys_connect_by_path(prior down-top,'+'),'+') as cmlt_diff
27 ,ltrim(sys_connect_by_path(top||'-'||down,':'),':') as path
28 ,ltrim(sys_connect_by_path(id,':'),':') as idpath
29 from data
30 where connect_by_isleaf = 1
31 connect by nocycle top between prior top and prior down
32 and not down between prior top and prior down
33 ) x
34 ,xmltable(nvl(cmlt_diff,'0')) y
35 )
36 where cvrg = max_cvrg
37 )
38 where cmlt_diff = min_diff
39 )
40 --
41 select d.id, d.top, d.down
42 from data d
43 ,(select level l, to_number(regexp_substr(idpath,'[^:]+',1,level)) as id
44 from idealpath
45 connect by regexp_substr(idpath,'[^:]+',1,level) is not null) bp
46 where bp.id = d.id
47* order by bp.l
SQL> /
ID TOP DOWN
1 18 1602
2 19 1962
6 1683 6352 -
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,
SurjithHi,
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.
RegardHi 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 -
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-LAND1Here 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. -
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-LAND1Here 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. -
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
nileshHi.
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 -
Custom Report for the Stock and Stock value for a specific date
Hi SAP Gurus,
Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
Our system is R/3 4.7
I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
The history tables MBEWH and MARDH are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
Thank you,
-HarterHi Harter,
Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only m onthwise data is available. For this anyway you can refer to MC.1 and so on reports. -
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 -
Standart GR/IR report with the following fields?
Hi All,
Transaction FBL3N gives a list of open GR/IR items at a keydate. However, I'm looking for the following fields to appear in the output
Purchasing doc#, line item, Vendor number, vendor name, Material, Quantity, Accounting document no., Document date and Amount.
I've tried adding certain fields using the Layout option but still havent got all these fields together. Is there any standard SAP report which would give me this output or would I need to develop a custom report?
I also tried ABAP query but there;s no link between an accounting document and Purchase order apart from the "Assignment" field in the BSEG table which has purchase orderno. and line item combined into a single text field.
Thanks
TejasHi
There is no specific standard report for getting the details required by you.
In FBL3N you will get only the FI vendor line items but all the details required by you is not possible.
BUT you can go for the ABAP Report.
TABLES: RSEG,EKKO, EKPO, EKBE, BSAK
Use the "Object key" = (MM invoice number along with fiscal year it comes10+4 is length of the field take the invoice number use the same in RSEG and you will get the the PO details and material details)field in the BSAK for linking both the BSAK and RSEG
VVR -
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. MobinHi!
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 -
How to get a Report for a past date.
Hi
Is there a way to get a report for a past date in SAP B1. For example I want to take a print out of Customer Receivables Aging Report for 30.06.2008 (Not the current Report.) without rolling back to that date from a backup.
Thank you very much
SanjayaHi Sanjaya,
You can get the past dated or the backdated aging report by taking the relevant dates in the Aging report selection criteria window.
For backdated aging report you can refer to Note No. 800294
Example:
Today is the 12.12.2007, I need to see the ageing report for open customer receivables on 30.11.2007. Between the 30.11.2007 and 12.12.2007 some of the then open invoices have been paid.
Reports => Financials -> Ageing -> Customer Receivables Ageing
Set 'Ageing Date' last date of the period, here 30.11.2007.
Set 'Posting Date' from '01.01.2007' (= Start of fiscal year) to
'30.11.2007'.
Bring tab 'By Journal Postings' into the foreground.
Tick boxes 'Display Customers with Zero Balance' and 'Consider
Reconciliation Date'.
Click on 'OK'.
This setting will generate an ageing report showing all AR invoices posted between 01.01.07 to 30.11.07 that are not reconciled on 30.11.2007.
You can refer to the following thread as well :
Re: Vendor Ageing & G/L account
Hope it helps.
Kind Regards,
Jitin Chawla -
Time Out error problem when i run the report for the whole plant
Dear all,
pls find the below coding, when i execute this report for the whole plant , it gives me time out error since it has to process huge database. pls suggest me in which part of my below coding i can improvise or any other better way to fetch the same result.
pls note that
i m using Views for querying.pls also note the comments given in Bold to understand the reason behind the coding.
Views used in are - ZVPOD and ZVPRDCONF.
START-OF-SELECTION.
Data: zstat type jest-stat.
data: stklocaf type mska-lgort.
data: stklocas type mska-lgort.
<u><b>To collect the status of the production order by joining the ZVPOD and JEST table.</b></u>
CLEAR it_ZVPRODDET.
SELECT DISTINCT ZVPOD~bukrs ZVPOD~aufnr ZVPOD~objnr
jest~stat ZVPOD~werks ZVPOD~arbpl ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN jest ON ZVPOD~objnr = jest~objnr
INTO CORRESPONDING FIELDS OF wa_ZVPRODDET where
plnbez in FGM and arbpl in wc and werks in plant
and SSAVD in eldate
and J_3AKORD2 in cups and jest~inact ne 'X'.
APPEND wa_ZVPRODDET TO it_ZVPRODDET.
ENDSELECT.
SORT it_ZVPRODDET BY aufnr stat.
<u><b>Loop thru Itab to check and delete the records from itab for the specified status.</b></u>
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
IF wa_ZVPRODDET-stat = 'I0045' . " TECO - compl
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0009' . " CNF - Confirmed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0012' . " DLV - Delivered
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0046' . " CLSD - Closed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0076' . " DLFL - Del Flag
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'E0003' . " SCLS - Short Close
CLEAR tj30t.
SELECT SINGLE txt04
FROM tj30t INTO tj30t-txt04
WHERE stsma = 'PRDHOLD' AND
estat = 'E0003' AND
txt04 = 'SCLS' AND
spras = 'EN'.
IF sy-subrc = 0.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ENDIF.
ENDIF.
* Condition for Prod Order released - REL
IF wa_ZVPRODDET-stat = 'I0002'.
mreleased = 'Y'.
else.
mreleased = 'N'.
endif.
zstat = wa_ZVPRODDET-stat.
IF mreleased = 'N'.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr
and stat = zstat.
ENDIF.
ENDLOOP.
<u><b>Loop thru the filtered ITAB to get all the production order details for the production order number specified in the where clause( zaufnr ) and populate another internal table.</b></u>
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
zaufnr = wa_zvproddet-aufnr.
zarbid = wa_zvproddet-arbid.
at new aufnr.
SELECT DISTINCT * INTO CORRESPONDING FIELDS OF walnpln
FROM zvpod where plnbez in FGM and arbpl in wc and SSAVD in
eldate and werks in plant and J_3AKORD2 in cups and aufnr = zaufnr.
APPEND walnpln TO itablnpln.
endselect.
endat.
endloop.
clear walnpln.
<u><b>
Looping thru Internal table and performs all the following calculations and inner loop
and also relevant querying.</b></u>
<u><b>Assume that ITABLNPLN holds appox. 8000 records.</b></u>
LOOP AT itablnpln INTO walnpln.
contot = 0.
SELECT distinct * INTO CORRESPONDING FIELDS OF TABLE itablnp
FROM zvprdconf where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
clear zvprdconf.
SELECT single isdd
FROM zvprdconf into zvprdconf-isdd
where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
SELECT single isdz
FROM zvprdconf into zvprdconf-isdz
where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
IF sy-subrc EQ 0.
<u><b>Assume that ITABLNP holds appox. 30 records.</b></u>
loop at itablnp into walnp.
contot = contot + walnp-J_3ALMNGA.
move walnp-J_3ASIZE to walnpln-J_3ASIZE.
move zvprdconf-isdd to walnpln-zdate.
move zvprdconf-isdz to walnpln-ztime.
endloop.
walnpln-output = contot.
endif.
walnpln-wip = walnpln-menge - contot.
if walnpln-werks = '1000'.
stklocaf = '1050'.
stklocas = '1060'.
elseif walnpln-werks = '2000'.
stklocaf = '2150'.
stklocas = '2160'.
endif.
select single kunnr into walnpln-ship from vbpa where
vbeln = walnpln-KDAUF and PARVW = 'WE'.
zship = walnpln-ship.
move zship to walnpln-ship.
select single kalab into walnpln-zactqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocaf.
condense walnpln-kdauf.
zsales = walnpln-kdauf.
concatenate zsales 'S' into zso.
select single kalab into walnpln-zsndqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocas
and J_4KSCAT = zso.
zmatn = walnpln-plnbez.
zsale = walnpln-KDAUF.
walnpln-kdauf = zsale.
walnpln-plnbez = zmatn.
zcust = walnpln-kunnr.
walnpln-kunnr = zcust.
select single bezei into walnpln-season from TVV2T where
kvgr2 = walnpln-kvgr2 and SPRAS = 'E'.
select single bezei into walnpln-shipmode from T173T where
vsart = walnpln-vsart and SPRAS = 'E'.
STRL = strlen( walnpln-j_3akord2 ).
if strl = 4.
move walnpln-j_3akord2 to walnpln-j_3akord3.
clear walnpln-j_3akord2.
endif.
move zremk to walnpln-remk.
MODIFY itablnpln FROM walnpln.
contot = 0.
clear itablnp.
ENDLOOP.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.Hi raja,
Plese go through the suggessitions.
1.avoide the select ...endselect. write the below select
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X'.
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
2..first of all dont delete a record inside the loop. instead use the Field symobols.
have u obsereved you code in the loop!!!!. wht u r doing..
u r removing the same record which u in the loop..
If u wanto delete the entires with check to<b> stat</b>... <b>then.. why dont u put the STAT field in Wher e condition..?</b> by this you reduce the data base select time..
Now the select query is like the below....
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X' AND
( STAT <> 'I0045' AND
STAT <> 'I0045' AND
STAT <> 'I0009' AND
STAT <> 'I0012' AND
STAT <> 'I0046' AND
STAT <> 'I0076' AND
STAT <> 'E0003' ).
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
<b>3.</b> WHT IS MEANING OF THE SELECT
<b> CLEAR TJ30T.
SELECT SINGLE TXT04
FROM TJ30T INTO TJ30T-TXT04
WHERE STSMA = 'PRDHOLD' AND
ESTAT = 'E0003' AND
TXT04 = 'SCLS' AND
SPRAS = 'EN'.
IF SY-SUBRC = 0.
DELETE IT_ZVPRODDET WHERE AUFNR = WA_ZVPRODDET-AUFNR.
ENDIF.</b>....... IN WHERE CONDION U R GIven all are constant values right?..
why u need select it inside the loop.. u can write before the SELECT from ZVPOD..
that why first checke this field then go for fur thure selects..
<b>now u r code looks like this....</b>
CLEAR TJ30T.
SELECT SINGLE TXT04
FROM TJ30T INTO TJ30T-TXT04
WHERE STSMA = 'PRDHOLD' AND
ESTAT = 'E0003' AND
TXT04 = 'SCLS' AND
SPRAS = 'EN'.
IF SY-SUBRC = 0.
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X' AND
JEST~STAT <> 'I0045' AND
JEST~STAT <> 'I0045' AND
JEST~STAT <> 'I0009' AND
JEST~STAT <> 'I0012' AND
JEST~STAT <> 'I0046' AND
JEST~STAT <> 'I0076' AND
JEST~STAT <> 'E0003' ).
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
ENDIF.
there are so many select inside the loop...... please Delete all of them.... write them be for the loop.......using the FOR ALL ENTRIES.....
THEN LOOP THE TABLE USING THE WHERE CONDITIONS.
<b>Plese write u updated code here again</b>.. -
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 MathewHi 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
Maybe you are looking for
-
I have an iPhone 4. I would like to transfer music from my HP computer to the phone. The music appears on my iTunes page on the computer but I cannot figure out how to transfer it to the phone. I'd also like to transfer the phone numbers on my pho
-
How do I remove an extra Apple ID from my iPod?
Somehow, my child added a seperate Apple ID to my iPod Touch & now every time I try to update it asks for the password to the account & of course my child has forgotten it. How do i remove it so i can use mine?
-
Deferred Billing and Collections- dinging my credit and didn't know
I just recently found out while trying to purchase a home that Verizon shows I owe a balance and has since moved this to a collections agency. I've never been informed of this until my lender informed me of a poor credit score due to this balance "o
-
Unit Conversion Error in Direct Input method for data transfer
Hi Experts, I am getting a error "E MG 427: Conversion error: field BMMH6-MEINH; content PAK" When I am uploading Alt. UoM using BMHH6 structure in Direct Input. I checked value for UoM in converted data it is "PAC". I think system is internally conv
-
I was one of the four people who bought a Dell Ultra-Wide monitor and wanted to know if that resolution is supported on a Mac Mini. Any thoughts?