Querry for Backorder Report
Hi
Can anyone give me the querry for creating a report which will show me the backorder quantities and their respective sales oders and the report should also give me the details on the open ordered quanities for the same items in the purchase order with the expected delivery dates.Its a kind of backorder fullfilment report.
We tried the following querry but this one gives a lot of instances for each warehouse or item and we are looking at a consolidated report for each item.
SELECT T1.[OpenQty], T0.[DocNum], T0.[CardCode], T1.[ShipDate], T0.[CardName],(T1.[ItemCode]), T1.[WhsCode], T0.[DocDate], T2.[OnOrder], T1.[DelivrdQty], T3.[CardCode], T3.[CardName], T3.[DocNum], T4.[LineNum], T4.[OpenQty], T4.[ShipDate] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode, OPOR T3 INNER JOIN POR1 T4 ON T3.DocEntry = T4.DocEntry WHERE T1.[OpenQty] >0 and T3.[DocStatus] = 'o' and T4.[OpenQty] >0 and T0.[DocStatus] = 'o' ORDER BY T2.[ItemCode]
Regards
C.Louis
Edited by: Philip Eller on Jun 27, 2008 9:56 AM
Edited by: Rui Pereira on Aug 8, 2008 11:35 AM
Hi C.Louis,
From your example, if the PO information you want to get is the ones that created from sales orders, I am afraid only the PO number can be listed in SO report in XL Reporter.
Of course most of the relevant information in SO header and row information can be found.
I drag following information from Report Composer:
go to Sales Module>Drag down:
Item(dimension) ; Document Number(light dimension) ; Document Date ; PO Target No.
PO Target No. column will give you the relevant PO no. But it is not possible in XLR to get more PO information because there is no more link in Sales module.
To list them in a report, please expand two rows in XL Reporter Designer and list SO and PO information seperately.
That also should be a clear report.
Hope this helps.
Regards,
Maggie An
SAP Business One Forum Team
Similar Messages
-
Needs Help in Backorder Report!
Good day to everyone.
I would like to ask for help in checking the Backorder Report below. The user requirement is to include the plant field in the Report. Though I already included the plant field, the program encounters ABAP runtime upon execution. Please help me correct the errors that is being encountered.
Thank you very much.
Raffee
REPORT zsdr_out_of_stock LINE-SIZE 380
LINE-COUNT 65 NO STANDARD PAGE HEADING.
TABLES: mara,
zcust,
vbrk,
vbak,
vbap.
Start of Internal tables for Out of Stock
DATA: BEGIN OF it_total_out_stock1 OCCURS 0,
fkdat LIKE vbrk-fkdat, "Billing Date
bukrs LIKE vbrk-bukrs, "Company
knumv LIKE vbrk-knumv, "No of the document condition
vbeln LIKE vbrp-vbeln, "Billing Doc
posnr LIKE vbrp-posnr, "Item
aubel LIKE vbrp-aubel, "Sales Order
aupos LIKE vbrp-aupos, "Sales Item
matnr LIKE vbrp-matnr, "Material No.
fkimg TYPE p DECIMALS 2, "Billed Quantity
auart LIKE vbak-auart,
kunnr LIKE vbak-kunnr,
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
zcusno LIKE zcust-zcusno,
zregion LIKE zcust-zregion,
END OF it_total_out_stock1.
DATA: BEGIN OF it_total_out_stock2 OCCURS 0,
vbeln LIKE vbak-vbeln,
auart LIKE vbak-auart,
kunnr LIKE vbak-kunnr,
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
zcusno LIKE zcust-zcusno,
zregion LIKE zcust-zregion,
END OF it_total_out_stock2.
DATA: BEGIN OF it_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
netwr LIKE vbap-netwr,
kwmeng LIKE vbap-kwmeng,
bukrs_vf LIKE vbak-bukrs_vf,
knumv LIKE vbak-knumv,
kunnr LIKE vbak-kunnr,
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
END OF it_vbap.
DATA: BEGIN OF it_vbap_stock OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
netwr LIKE vbap-netwr,
kwmeng TYPE p DECIMALS 2,
bukrs_vf LIKE vbak-bukrs_vf,
knumv LIKE vbak-knumv,
kunnr LIKE vbak-kunnr,
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
END OF it_vbap_stock.
DATA: BEGIN OF it_out_stock OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
netwr LIKE vbap-netwr,
knumv LIKE vbak-knumv,
bukrs_vf LIKE vbak-bukrs_vf,
kunnr LIKE vbak-kunnr,
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
fkimg TYPE p DECIMALS 2, "Billed Quantity
kwmeng LIKE vbap-kwmeng,
counter TYPE i,
END OF it_out_stock.
DATA: BEGIN OF it_mara_totals_stock OCCURS 0,
matnr LIKE mara-matnr,
matkl LIKE mara-matkl,
spart LIKE mara-spart,
END OF it_mara_totals_stock.
DATA: BEGIN OF it_tspat_totals_stock OCCURS 0,
spart LIKE tspat-spart,
vtext LIKE tspat-vtext,
END OF it_tspat_totals_stock.
DATA: BEGIN OF it_t023t_totals_stock OCCURS 0,
matkl LIKE t023t-matkl,
wgbez LIKE t023t-wgbez,
END OF it_t023t_totals_stock.
DATA: BEGIN OF it_konv_totals_stock OCCURS 0,
knumv LIKE konv-knumv,
kposn LIKE konv-kposn,
kschl LIKE konv-kschl,
kawrt LIKE konv-kawrt,
kwert LIKE konv-kwert,
kbetr LIKE konv-kbetr,
END OF it_konv_totals_stock.
DATA: BEGIN OF it_total_stock_final OCCURS 0,
cnt1 TYPE i,
cnt2 TYPE i, "DPM Category
werks LIKE vbap-werks, "Plant
spart LIKE mara-spart, "Division Description
matkl LIKE mara-matkl, "Material Type
vbeln LIKE vbrk-vbeln, "Billing Doc
aubel LIKE vbrp-aubel, "Sales document
aupos LIKE vbrp-aupos, "Sales document item
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
kunnr LIKE vbak-kunnr, "Customer
matnr LIKE vbrp-matnr, "Material
vtext LIKE tspat-vtext, "Material Group Desc
kbetr1 LIKE konv-kbetr,
kbetr2 LIKE konv-kbetr,
kawrt LIKE konv-kawrt, "Condition Rate
kwert1 LIKE konv-kwert, "Volume Discount
kwert2 LIKE konv-kwert, "Promo Discount
fkimg TYPE p DECIMALS 2, "Billed Quantity
kwmeng LIKE vbap-kwmeng,
counter TYPE i,
END OF it_total_stock_final.
Start of Internal tables for Held
DATA: BEGIN OF it_total_held1 OCCURS 0,
erdat LIKE vbak-erdat,
bukrs_vf LIKE vbak-bukrs_vf,
knumv LIKE vbak-knumv,
kunnr LIKE vbak-kunnr,
werks LIKE vbap-werks, "Plant
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
kwmeng LIKE vbap-kwmeng, "Order Quantity
cmgst LIKE vbuk-cmgst,
END OF it_total_held1.
DATA: BEGIN OF it_total_held2 OCCURS 0,
zcusno LIKE zcust-zcusno,
zregion LIKE zcust-zregion,
END OF it_total_held2.
DATA: BEGIN OF it_mara_totals_held OCCURS 0,
matnr LIKE mara-matnr,
matkl LIKE mara-matkl,
spart LIKE mara-spart,
END OF it_mara_totals_held.
DATA: BEGIN OF it_tspat_totals_held OCCURS 0,
spart LIKE tspat-spart,
vtext LIKE tspat-vtext,
END OF it_tspat_totals_held.
DATA: BEGIN OF it_t023t_totals_held OCCURS 0,
matkl LIKE t023t-matkl,
wgbez LIKE t023t-wgbez,
END OF it_t023t_totals_held.
DATA: BEGIN OF it_konv_totals_held OCCURS 0,
knumv LIKE konv-knumv,
kposn LIKE konv-kposn,
kschl LIKE konv-kschl,
kawrt LIKE konv-kawrt,
kwert LIKE konv-kwert,
END OF it_konv_totals_held.
DATA: BEGIN OF it_total_held_final OCCURS 0,
cnt1 TYPE i,
cnt2 TYPE i, "DPM Category
werks LIKE vbap-werks, "Plant
spart LIKE mara-spart, "Division Description
matkl LIKE mara-matkl, "Material Type
vbeln LIKE vbrk-vbeln, "Billing Doc
aubel LIKE vbrp-aubel, "Sales document
aupos LIKE vbrp-aupos, "Sales document item
erdat LIKE vbak-erdat,
vkbur LIKE vbak-vkbur, "Sales office
vkorg LIKE vbak-vkorg, "Sales organization
vkgrp LIKE vbak-vkgrp, "Sales group
kunnr LIKE vbak-kunnr, "Customer
matnr LIKE vbrp-matnr, "Material
vtext LIKE tspat-vtext, "Material Group Desc
kwmeng LIKE vbap-kwmeng, "Order Quantity
kawrt LIKE konv-kawrt, "Condition Rate
kwert1 LIKE konv-kwert, "Volume Discount
kwert2 LIKE konv-kwert, "Promo Discount
END OF it_total_held_final.
End of Internal tables for Held
DATA: l_quantity LIKE vbap-kwmeng.
DATA: g_div(20), "Division
g_mat(20), "Material Group
g_maktx(40),
g_name1(40),
v_net_value TYPE p DECIMALS 2.
CONSTANTS DECLARATION
Constants are named data objects that you create statically using
a declarative statement. They allow you to store data under a
particular name within the memory area of a program.
The value of a constant cannot be changed during the execution of
the program.
CONSTANTS: header01(10) TYPE c VALUE 'Invoice #',
header02(06) TYPE c VALUE 'Item',
header03(10) TYPE c VALUE 'Sales Doc.',
header04(03) TYPE c VALUE 'Div',
header05(20) TYPE c VALUE 'Division Desc',
header06(10) TYPE c VALUE 'Customer #',
header07(35) TYPE c VALUE 'Customer Name',
header08(18) TYPE c VALUE 'Material No.',
header09(40) TYPE c VALUE 'Material Text',
header10(09) TYPE c VALUE 'MType',
header11(20) TYPE c VALUE 'Material Grp Desc',
header12(20) TYPE c VALUE 'Condition Rate',
header13(20) TYPE c VALUE 'Vol Discount',
header14(20) TYPE c VALUE 'Promo Discount',
header15(12) TYPE c VALUE 'Date Created',
header16(12) TYPE c VALUE 'Invoice Date',
header17(20) TYPE c VALUE 'Net Value',
header18(12) TYPE c VALUE 'Sales office',
header19(10) TYPE c VALUE 'Sales Org',
header20(10) TYPE c VALUE 'Sales Grp',
header21(20) TYPE c VALUE 'Quantity',
header22(04) TYPE c VALUE 'Plnt'.
End of Internal tables for Out of Stock
Start of selection screen criteria
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_zreg FOR zcust-zregion, "Region
s_matkl FOR mara-matkl, "Material Group
s_spart FOR mara-spart, "Division
s_vkorg FOR vbak-vkorg, "Sales Org
s_vkbur FOR vbak-vkbur, "Sales Office
s_class FOR zcust-zaclass. "Account Class
SELECT-OPTIONS: s_curr FOR vbrk-fkdat OBLIGATORY. "Date
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS p0 RADIOBUTTON GROUP radi.
PARAMETERS p1 RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b2.
Start of Selection
START-OF-SELECTION.
IF p0 = 'X'.
****Get the Out of Stock
PERFORM out_stock.
PERFORM write_report.
ELSEIF p1 = 'X'.
PERFORM held_order.
PERFORM write_report1.
ENDIF.
*& Form out_stock
text
--> p1 text
<-- p2 text
FORM out_stock.
DATA: l_cnt1 TYPE i,
l_cnt2 TYPE i,
l_spart LIKE mara-spart,
l_matkl LIKE mara-matkl,
l_text LIKE tspat-vtext,
l_amount TYPE p DECIMALS 2,
l_aupos LIKE vbrp-aupos,
l_aubel LIKE vbrp-aubel.
SELECT vbrk~fkdat
vbrk~bukrs
vbrk~knumv
vbrp~vbeln
vbrp~posnr
vbrp~aubel
vbrp~aupos
vbrp~matnr
vbrp~fkimg
vbap~werks
vbak~auart
vbak~kunnr
vbak~vkbur "Sales office
vbak~vkorg "Sales organization
vbak~vkgrp "Sales group
zcust~zcusno
zcust~zregion
INTO TABLE it_total_out_stock1
FROM vbrk
INNER JOIN vbrp
ON vbrkvbeln = vbrpvbeln
INNER JOIN vbak
ON vbrpaubel = vbakvbeln
INNER JOIN zcust
ON vbakkunnr = zcustzcusno
WHERE vbrk~fkdat IN s_curr
AND vbrp~matkl IN s_matkl
AND vbrp~spart IN s_spart
AND vbak~auart IN ('ZDOA', 'ZDTO', 'ZQOA', 'ZDTA', 'ZQTO')
AND zcust~zregion IN s_zreg
AND zcust~zaclass IN s_class
AND vbak~vkorg IN s_vkorg
AND vbak~vkbur IN s_vkbur
AND vbak~bukrs_vf IN ('5116', '5106')
AND vbak~vkbur <> '5100'.
IF sy-subrc = 0.
IF NOT it_total_out_stock1[] IS INITIAL.
***Check if the Order is Out of Stock compare to billing invoice
SELECT vbap~vbeln
vbap~posnr
vbap~matnr
vbap~netwr
vbap~kwmeng
vbak~bukrs_vf
vbak~knumv
vbak~kunnr
vbap~werks
vbak~vkbur "Sales office
vbak~vkorg "Sales organization
vbak~vkgrp "Sales group
INTO TABLE it_vbap
FROM vbap
INNER JOIN vbak
ON vbapvbeln = vbakvbeln
FOR ALL entries IN it_total_out_stock1
WHERE vbap~vbeln = it_total_out_stock1-aubel
AND vbap~posnr <> it_total_out_stock1-aupos
AND vbak~auart IN ('ZDOA', 'ZDTO', 'ZQOA',
'ZDTA', 'ZQTO')
AND vbak~vkorg IN s_vkorg
AND vbak~vkbur IN s_vkbur
AND vbap~matkl IN s_matkl
AND vbap~spart IN s_spart.
***Check if the Order is Out of Stock by Quantity
SELECT vbap~vbeln
vbap~posnr
vbap~matnr
vbap~netwr
vbap~kwmeng
vbak~bukrs_vf
vbak~knumv
vbak~kunnr
vbap~werks
vbak~vkbur "Sales office
vbak~vkorg "Sales organization
vbak~vkgrp "Sales group
INTO TABLE it_vbap_stock
FROM vbap
INNER JOIN vbak
ON vbapvbeln = vbakvbeln
FOR ALL entries IN it_total_out_stock1
WHERE vbap~posnr = it_total_out_stock1-aupos
AND vbap~vbeln = it_total_out_stock1-aubel
AND vbap~kwmeng NE it_total_out_stock1-fkimg
AND vbak~auart IN ('ZDOA', 'ZDTO', 'ZQOA',
'ZDTA', 'ZQTO')
AND vbak~vkorg IN s_vkorg
AND vbak~vkbur IN s_vkbur
AND vbap~matkl IN s_matkl
AND vbap~spart IN s_spart.
ENDIF.
IF NOT it_vbap[] IS INITIAL.
SORT it_vbap BY vbeln posnr.
SORT it_total_out_stock1 BY aubel aupos.
LOOP AT it_vbap.
READ TABLE it_total_out_stock1
WITH KEY aubel = it_vbap-vbeln
aupos = it_vbap-posnr.
IF sy-subrc NE 0.
it_out_stock-vbeln = it_vbap-vbeln.
it_out_stock-posnr = it_vbap-posnr.
it_out_stock-matnr = it_vbap-matnr.
it_out_stock-netwr = it_vbap-netwr.
it_out_stock-knumv = it_vbap-knumv.
it_out_stock-bukrs_vf = it_vbap-bukrs_vf.
it_out_stock-kunnr = it_vbap-kunnr.
it_out_stock-werks = it_vbap-werks.
it_out_stock-vkbur = it_vbap-vkbur. "Sales office
it_out_stock-vkorg = it_vbap-vkorg. "Sales organization
it_out_stock-vkgrp = it_vbap-vkgrp. "Sales group
it_out_stock-kwmeng = it_vbap-kwmeng.
APPEND it_out_stock.
ENDIF.
ENDLOOP.
ENDIF.
IF NOT it_vbap_stock[] IS INITIAL.
SORT it_vbap_stock BY vbeln posnr.
SORT it_total_out_stock1 BY aubel aupos.
LOOP AT it_vbap_stock.
LOOP AT it_total_out_stock1 WHERE aubel = it_vbap_stock-vbeln
AND aupos = it_vbap_stock-posnr
AND fkimg NE it_vbap_stock-kwmeng.
it_out_stock-vbeln = it_vbap_stock-vbeln.
it_out_stock-posnr = it_vbap_stock-posnr.
it_out_stock-matnr = it_vbap_stock-matnr.
it_out_stock-netwr = it_vbap_stock-netwr.
it_out_stock-knumv = it_vbap_stock-knumv.
it_out_stock-bukrs_vf = it_vbap_stock-bukrs_vf.
it_out_stock-kunnr = it_vbap_stock-kunnr.
it_out_stock-werks = it_vbap_stock-werks.
it_out_stock-vkbur = it_vbap_stock-vkbur. "Sales office
it_out_stock-vkorg = it_vbap_stock-vkorg. "Sales org
it_out_stock-vkgrp = it_vbap_stock-vkgrp. "Sales group
****Begin Insert by Ron
it_out_stock-kwmeng = it_vbap_stock-kwmeng.
it_out_stock-fkimg = it_total_out_stock1-fkimg.
it_out_stock-counter = 1.
****End Insert
APPEND it_out_stock.
ENDLOOP.
ENDLOOP.
ENDIF.
ENDIF. "it_total_out_stock1
IF NOT it_out_stock[] IS INITIAL.
***get the value of material and material group
SELECT matnr
matkl
spart
INTO TABLE it_mara_totals_stock
FROM mara
FOR ALL ENTRIES IN it_out_stock
WHERE matnr = it_out_stock-matnr.
ENDIF.
***Get the Value of Division Description
IF NOT it_mara_totals_stock[] IS INITIAL.
SELECT spart
vtext
INTO TABLE it_tspat_totals_stock
FROM tspat
FOR ALL ENTRIES IN it_mara_totals_stock
WHERE spart = it_mara_totals_stock-spart AND
spras = sy-langu.
ENDIF.
***Get the Material Group Description
IF NOT it_mara_totals_stock[] IS INITIAL.
SELECT matkl
wgbez
INTO TABLE it_t023t_totals_stock
FROM t023t
FOR ALL ENTRIES IN it_mara_totals_stock
WHERE matkl = it_mara_totals_stock-matkl AND
spras = sy-langu.
ENDIF.
***Get the Value of Condition Type
IF NOT it_out_stock[] IS INITIAL.
SELECT knumv
kposn
kschl
kawrt
kwert
kbetr
INTO TABLE it_konv_totals_stock
FROM konv
FOR ALL ENTRIES IN it_out_stock
WHERE knumv = it_out_stock-knumv
AND kposn = it_out_stock-posnr
AND kschl IN ('ZQPR', 'ZQD3', 'ZQP3',
'ZDPR', 'ZDD3', 'ZDP3').
ENDIF.
SORT it_out_stock BY vbeln posnr.
SORT it_mara_totals_stock BY matnr.
SORT it_tspat_totals_stock BY spart.
SORT it_t023t_totals_stock BY matkl.
SORT it_konv_totals_stock BY knumv kposn.
LOOP AT it_out_stock.
CLEAR: it_total_stock_final-kawrt, it_total_stock_final-kwert1,
it_total_stock_final-kwert2, it_total_stock_final-vtext,
it_total_stock_final-matkl, it_total_stock_final-spart,
it_total_stock_final-aubel, it_total_stock_final-aupos,
it_total_stock_final-cnt1, it_total_stock_final-cnt2.
***Begin Insert by RONCR
CLEAR: it_total_stock_final-kwmeng, it_total_stock_final-fkimg,
it_total_stock_final-counter.
***End Insert by RONCR
CLEAR: it_mara_totals_stock, it_tspat_totals_stock,
it_t023t_totals_stock, it_konv_totals_stock,
l_cnt1, l_cnt2.
**Counter for Total Orders Column
l_cnt1 = 4.
READ TABLE it_mara_totals_stock
WITH KEY matnr = it_out_stock-matnr.
IF sy-subrc EQ 0.
it_total_stock_final-matnr = it_mara_totals_stock-matnr.
it_total_stock_final-matkl = it_mara_totals_stock-matkl.
it_total_stock_final-spart = it_mara_totals_stock-spart.
***DPM
IF it_total_stock_final-matkl EQ 'DPM' OR
it_total_stock_final-matkl EQ 'SSN'.
READ TABLE it_tspat_totals_stock
WITH KEY spart = it_mara_totals_stock-spart.
IF sy-subrc EQ 0.
it_total_stock_final-vtext = it_tspat_totals_stock-vtext.
ENDIF.
***Non Dole
ELSE.
READ TABLE it_t023t_totals_stock
WITH KEY matkl = it_mara_totals_stock-matkl.
IF sy-subrc EQ 0.
it_total_stock_final-vtext = it_t023t_totals_stock-wgbez.
ENDIF.
ENDIF.
ENDIF.
IF it_total_stock_final-matkl = 'DPM' OR
it_total_stock_final-matkl = 'SSN'.
l_cnt2 = 1.
ELSE.
l_cnt2 = 2.
ENDIF.
***Condition Value for Comapny Code 5116
IF it_out_stock-bukrs_vf EQ '5116'.
READ TABLE it_konv_totals_stock
WITH KEY knumv = it_out_stock-knumv
kposn = it_out_stock-posnr
kschl = 'ZQPR'.
IF sy-subrc EQ 0.
it_total_stock_final-kawrt = it_konv_totals_stock-kawrt.
ENDIF.
READ TABLE it_konv_totals_stock
WITH KEY knumv = it_out_stock-knumv
kposn = it_out_stock-posnr
kschl = 'ZQD3'.
IF sy-subrc EQ 0.
it_konv_totals_stock-kwert = it_konv_totals_stock-kwert * -1.
it_total_stock_final-kwert1 = it_konv_totals_stock-kwert.
it_total_stock_final-kbetr1 = it_konv_totals_stock-kbetr.
it_total_stock_final-kbetr1 = it_total_stock_final-kbetr1 * -1.
ENDIF.
READ TABLE it_konv_totals_stock
WITH KEY knumv = it_out_stock-knumv
kposn = it_out_stock-posnr
kschl = 'ZQP3'.
IF sy-subrc EQ 0.
it_konv_totals_stock-kwert = it_konv_totals_stock-kwert * -1.
it_total_stock_final-kwert2 = it_konv_totals_stock-kwert.
it_total_stock_final-kbetr2 = it_konv_totals_stock-kbetr.
it_total_stock_final-kbetr2 = it_total_stock_final-kbetr2 * -1.
ENDIF.
ENDIF.
***Condition Value for Company Code 5106
IF it_out_stock-bukrs_vf EQ '5106'.
READ TABLE it_konv_totals_stock
WITH KEY knumv = it_out_stock-knumv
kposn = it_out_stock-posnr
kschl = 'ZDPR'. "Base price
IF sy-subrc EQ 0.
it_total_stock_final-kawrt = it_konv_totals_stock-kawrt.
ENDIF.
READ TABLE it_konv_totals_stock
WITH KEY knumv = it_out_stock-knumv
kposn = it_out_stock-posnr
kschl = 'ZDD3'. "Volume Discount
IF sy-subrc EQ 0.
it_konv_totals_stock-kwert = it_konv_totals_stock-kwert * -1.
it_total_stock_final-kwert1 = it_konv_totals_stock-kwert.
it_total_stock_final-kbetr1 = it_konv_totals_stock-kbetr.
it_total_stock_final-kbetr2 = it_total_stock_final-kbetr2 * -1.
ENDIF.
READ TABLE it_konv_totals_stock
WITH KEY knumv = it_out_stock-knumv
kposn = it_out_stock-posnr
kschl = 'ZDP3'. "Promo Discount
IF sy-subrc EQ 0.
it_konv_totals_stock-kwert = it_konv_totals_stock-kwert * -1.
it_total_stock_final-kwert2 = it_konv_totals_stock-kwert.
it_total_stock_final-kbetr2 = it_konv_totals_stock-kbetr.
it_total_stock_final-kbetr2 = it_total_stock_final-kbetr2 * -1.
ENDIF.
ENDIF.
it_total_stock_final-cnt1 = l_cnt1.
it_total_stock_final-cnt2 = l_cnt2.
it_total_stock_final-aubel = it_out_stock-vbeln.
it_total_stock_final-aupos = it_out_stock-posnr.
it_total_stock_final-kunnr = it_out_stock-kunnr.
it_total_stock_final-werks = it_out_stock-werks.
it_total_stock_final-vkbur = it_out_stock-vkbur. "Sales office
it_total_stock_final-vkorg = it_out_stock-vkorg. "Sales org
it_total_stock_final-vkgrp = it_out_stock-vkgrp. "Sales group
***Begin Insert by RONCR
it_total_stock_final-kwmeng = it_out_stock-kwmeng.
it_total_stock_final-fkimg = it_out_stock-fkimg.
it_total_stock_final-counter = it_out_stock-counter.
**End of Insert by RONCR
APPEND it_total_stock_final.
ENDLOOP.
ENDFORM. " out_stock
*& Form write_report
text
--> p1 text
<-- p2 text
FORM write_report.
ULINE (360).
FORMAT COLOR 1.
WRITE: / sy-vline, header01,
12 sy-vline, header02,
19 sy-vline, header03,
30 sy-vline, header04,
35 sy-vline, header05,
55 sy-vline, header18,
75 sy-vline, header19,
87 sy-vline, header20,
100 sy-vline, header06,
112 sy-vline, header07,
150 sy-vline, header08,
170 sy-vline, header09,
215 sy-vline, header10,
225 sy-vline, header11,
247 sy-vline, header21,
271 sy-vline, header12,
293 sy-vline, header13,
315 sy-vline, header14,
337 sy-vline, header17,
360 sy-vline, header22,
363 sy-vline.
ULINE (360).
FORMAT COLOR 2.
SORT it_total_stock_final BY cnt2 cnt1 spart aubel aupos.
LOOP AT it_total_stock_final.
CLEAR: g_div, g_mat, g_maktx, g_name1, v_net_value.
SELECT SINGLE vtext INTO g_div
FROM tspat
WHERE spart = it_total_stock_final-spart
AND spras = sy-langu.
SELECT SINGLE wgbez INTO g_mat
FROM t023t
WHERE matkl = it_total_stock_final-matkl
AND spras = sy-langu.
SELECT SINGLE maktx INTO g_maktx
FROM makt
WHERE matnr = it_total_stock_final-matnr
AND spras = sy-langu.
SELECT SINGLE name1 INTO g_name1
FROM kna1
WHERE kunnr = it_total_stock_final-kunnr.
IF it_total_stock_final-counter = 1.
CLEAR: l_quantity.
l_quantity = it_total_stock_final-kwmeng -
it_total_stock_final-fkimg.
it_total_stock_final-kawrt = it_total_stock_final-kawrt /
it_total_stock_final-kwmeng.
it_total_stock_final-kawrt = it_total_stock_final-kawrt *
l_quantity.
it_total_stock_final-kbetr1 = it_total_stock_final-kbetr1 /
1000.
it_total_stock_final-kbetr2 = it_total_stock_final-kbetr2 /
1000.
it_total_stock_final-kwert1 = it_total_stock_final-kawrt *
it_total_stock_final-kbetr1.
it_total_stock_final-kwert2 = it_total_stock_final-kawrt *
it_total_stock_final-kbetr2.
clear: it_total_stock_final-kawrt,
it_total_stock_final-kbetr1,
it_total_stock_final-kbetr2,
it_total_stock_final-kwert1,
it_total_stock_final-kwert2.
ENDIF.
v_net_value = it_total_stock_final-kawrt -
it_total_stock_final-kwert1 -
it_total_stock_final-kwert2.
WRITE: / sy-vline, it_total_stock_final-vbeln,
12 sy-vline, it_total_stock_final-aupos,
19 sy-vline, it_total_stock_final-aubel,
30 sy-vline, it_total_stock_final-spart,
35 sy-vline, g_div,
55 sy-vline, it_total_stock_final-vkbur,
75 sy-vline, it_total_stock_final-vkorg,
87 sy-vline, it_total_stock_final-vkgrp,
100 sy-vline, it_total_stock_final-kunnr,
112 sy-vline, g_name1,
150 sy-vline, it_total_stock_final-matnr,
170 sy-vline, g_maktx,
215 sy-vline, it_total_stock_final-matkl,
225 sy-vline, it_total_stock_final-vtext.
IF it_total_stock_final-counter = 1.
WRITE: 247 sy-vline, l_quantity,
271 sy-vline, it_total_stock_final-kawrt,
293 sy-vline, it_total_stock_final-kwert1,
315 sy-vline, it_total_stock_final-kwert2,
337 sy-vline, v_net_value,
360 sy-vline, it_total_stock_final-werks,
363 sy-vline.
ELSE.
WRITE: 247 sy-vline, it_total_stock_final-kwmeng,
271 sy-vline, it_total_stock_final-kawrt,
293 sy-vline, it_total_stock_final-kwert1,
315 sy-vline, it_total_stock_final-kwert2,
337 sy-vline, v_net_value,
360 sy-vline, it_total_stock_final-werks,
363 sy-vline.
ENDIF.
ENDLOOP.
ULINE (360).
ENDFORM. " write_report
*& Form held_order
text
--> p1 text
<-- p2 text
FORM held_order.
DATA: l_cnt1 TYPE i,
l_cnt2 TYPE i,
l_spart LIKE mara-spart,
l_matkl LIKE mara-matkl,
l_text LIKE tspat-vtext,
l_amount TYPE p DECIMALS 2,
l_aupos LIKE vbrp-aupos,
l_aubel LIKE vbrp-aubel.
SELECT vbak~erdat
vbak~bukrs_vf
vbak~knumv
vbak~kunnr
vbap~werks
vbak~vkbur "Sales office
vbak~vkorg "Sales organization
vbak~vkgrp "Sales group
vbap~vbeln
vbap~posnr
vbap~matnr
vbap~kwmeng "Order Quantity
vbuk~cmgst
INTO TABLE it_total_held1
FROM vbak
INNER JOIN vbap
ON vbakvbeln = vbapvbeln
INNER JOIN vbuk
ON vbapvbeln = vbukvbeln
WHERE vbak~erdat IN s_curr
AND vbak~vkorg IN s_vkorg
AND vbak~vkbur IN s_vkbur
AND vbap~matkl IN s_matkl
AND vbak~bukrs_vf IN ('5116', '5106')
AND vbak~vkbur NE '5100'
AND vbak~auart IN ('ZDOA', 'ZDTO', 'ZQOA', 'ZDTA', 'ZQTO')
AND vbak~kkber = '5116'
AND vbuk~cmgst = 'B'
AND vbap~spart IN s_spart.
IF sy-subrc = 0.
SELECT zcusno
zregion
INTO TABLE it_total_held2
FROM zcust
FOR ALL ENTRIES IN it_total_held1
WHERE zcusno = it_total_held1-kunnr
AND zcust~zregion IN s_zreg
AND zcust~zaclass IN s_class.
IF sy-subrc EQ 0.
***get the value of material and material group
SELECT matnr
matkl
spart
INTO TABLE it_mara_totals_held
FROM mara
FOR ALL ENTRIES IN it_total_held1
WHERE matnr = it_total_held1-matnr.
***Get the Value of Division Description
IF NOT it_mara_totals_held[] IS INITIAL.
SELECT spart
vtext
INTO TABLE it_tspat_totals_held
FROM tspat
FOR ALL ENTRIES IN it_mara_totals_held
WHERE spart = it_mara_totals_held-spart AND
spras = sy-langu.
ENDIF.
***Get the Material Group Description
IF NOT it_mara_totals_held[] IS INITIAL.
SELECT matkl
wgbez
INTO TABLE it_t023t_totals_held
FROM t023t
FOR ALL ENTRIES IN it_mara_totals_held
WHERE matkl = it_mara_totals_held-matkl AND
spras = sy-langu.
ENDIF.
***Get the Value of Condition Type
IF NOT it_total_held1[] IS INITIAL.
SELECT knumv
kposn
kschl
kawrt
kwert
INTO TABLE it_konv_totals_held
FROM konv
FOR ALL ENTRIES IN it_total_held1
WHERE knumv = it_total_held1-knumv
AND kposn = it_total_held1-posnr
AND kschl IN ('ZQPR', 'ZQD3', 'ZQP3',
'ZDPR', 'ZDD3', 'ZDP3').
ENDIF.
ENDIF.
ENDIF.
SORT it_total_held1 BY vbeln posnr.
SORT it_total_held2 BY zcusno zregion.
SORT it_mara_totals_held BY matnr.
SORT it_tspat_totals_held BY spart.
SORT it_t023t_totals_held BY matkl.
SORT it_konv_totals_held BY knumv kposn.
LOOP AT it_total_held1.
CLEAR: it_total_held_final-kawrt, it_total_held_final-kwert1,
it_total_held_final-kwert2, it_total_held_final-vtext,
it_total_held_final-matkl, it_total_held_final-spart,
it_total_held_final-aubel, it_total_held_final-aupos,
it_total_held_final-cnt1, it_total_held_final-cnt2.
CLEAR: it_mara_totals_held, it_tspat_totals_held,
it_t023t_totals_held, it_konv_totals_held,
l_cnt1, l_cnt2.
READ TABLE it_total_held2
WITH KEY zcusno = it_total_held1-kunnr.
IF sy-subrc = 0.
**Counter for Total Orders Column
l_cnt1 = 3.
READ TABLE it_mara_totals_held
WITH KEY matnr = it_total_held1-matnr.
IF sy-subrc EQ 0.
it_total_held_final-matnr = it_mara_totals_held-matnr.
it_total_held_final-matkl = it_mara_totals_held-matkl.
it_total_held_final-spart = it_mara_totals_held-spart.
***Dole
IF it_total_held_final-matkl EQ 'DPM' OR
it_total_held_final-matkl EQ 'SSN'.
READ TABLE it_tspat_totals_held
WITH KEY spart = it_mara_totals_held-spart.
IF sy-subrc EQ 0.
it_total_held_final-vtext = it_tspat_totals_held-vtext.
ENDIF.
***Non Dole
ELSE.
READ TABLE it_t023t_totals_held
WITH KEY matkl = it_mara_totals_held-matkl.
IF sy-subrc EQ 0.
it_total_held_final-vtext = it_t023t_totals_held-wgbez.
ENDIF.
ENDIF.
ENDIF.
IF it_total_held_final-matkl = 'DPM' OR
it_total_held_final-matkl = 'SSN'.
l_cnt2 = 1.
ELSE.
l_cnt2 = 2.
ENDIF.
***Condition Value for Comapny Code 5116
IF it_total_held1-bukrs_vf EQ '5116'.
READ TABLE it_konv_totals_held
WITH KEY knumv = it_total_held1-knumv
kposn = it_total_held1-posnr
kschl = 'ZQPR'.
IF sy-subrc EQ 0.
it_total_held_final-kawrt = it_konv_totals_held-kawrt.
ENDIF.
READ TABLE it_konv_totals_held
WITH KEY knumv = it_total_held1-knumv
kposn = it_total_held1-posnr
kschl = 'ZQD3'.
IF sy-subrc EQ 0.
it_konv_totals_held-kwert = it_konv_totals_held-kwert * -1.
it_total_held_final-kwert1 = it_konv_totals_held-kwert.
ENDIF.
READ TABLE it_konv_totals_held
WITH KEY knumv = it_total_held1-knumv
kposn = it_total_held1-posnr
kschl = 'ZQP3'.
IF sy-subrc EQ 0.
it_konv_totals_held-kwert = it_konv_totals_held-kwert * -1.
it_total_held_final-kwert2 = it_konv_totals_held-kwert.
ENDIF.
ENDIF.
***Condition Value for Comapny Code 5106
IF it_total_held1-bukrs_vf EQ '5106'.
READ TABLE it_konv_totals_held
WITH KEY knumv = it_total_held1-knumv
kposn = it_total_held1-posnr
kschl = 'ZDPR'. "Base price
IF sy-subrc EQ 0.
it_total_held_final-kawrt = it_konv_totals_held-kawrt.
ENDIF.
READ TABLE it_konv_totals_held
WITH KEY knumv = it_total_held1-knumv
kposn = it_total_held1-posnr
kschl = 'ZDD3'. "Volume Discount
IF sy-subrc EQ 0.
it_konv_totals_held-kwert = it_konv_totals_held-kwert * -1.
it_total_held_final-kwert1 = it_konv_totals_held-kwert.
ENDIF.
READ TABLE it_konv_totals_held
WITH KEY knumv = it_total_held1-knumv
kposn = it_total_held1-posnr
kschl = 'ZDP3'. "Promo Discount
IF sy-subrc EQ 0.
it_konv_totals_held-kwert = it_konv_totals_held-kwert * -1.
it_total_held_final-kwert2 = it_konv_totals_held-kwert.
ENDIF.
ENDIF.
it_total_held_final-cnt1 = l_cnt1.
it_total_held_final-cnt2 = l_cnt2.
it_total_held_final-aubel = it_total_held1-vbeln.
it_total_held_final-aupos = it_total_held1-posnr.
it_total_held_final-kunnr = it_total_held1-kunnr.
it_total_held_final-erdat = it_total_held1-erdat.
it_total_held_final-werks = it_total_held1-werks.
it_total_held_final-vkbur = it_total_held1-vkbur. "Sales office
it_total_held_final-vkorg = it_total_held1-vkorg. "Sales Org
it_total_held_final-vkgrp = it_total_held1-vkgrp. "Sales group
it_total_held_final-kwmeng = it_total_held1-kwmeng. "Order qty
APPEND it_total_held_final.
ENDIF. "it_total_held2
ENDLOOP.
ENDFORM. " held_order
*& Form write_report1
text
--> p1 text
<-- p2 text
FORM write_report1.
ULINE (360).
FORMAT COLOR 1.
WRITE: / sy-vline, header01,
12 sy-vline, header02,
19 sy-vline, header03,
30 sy-vline, header15,
45 sy-vline, header04,
50 sy-vline, header05,
75 sy-vline, header18,
90 sy-vline, header19,
103 sy-vline, header20,
115 sy-vline, header06,
127 sy-vline, header07,
167 sy-vline, header08,
184 sy-vline, header09,
227 sy-vline, header10,
237 sy-vline, header11,
260 sy-vline, header21,
282 sy-vline, header12,
306 sy-vline, header13,
330 sy-vline, header14,
354 sy-vline, header17,
376 sy-vline, header22,
380 sy-vline.
ULINE (376).
FORMAT COLOR 2.
SORT it_total_held_final BY cnt2 cnt1 spart aubel aupos.
LOOP AT it_total_held_final.
CLEAR: g_div, g_mat, g_maktx, g_name1, v_net_value.
SELECT SINGLE vtext INTO g_div
FROM tspat
WHERE spart = it_total_held_final-spart
AND spras = sHi,
790072 wrote:
Hi Gurus,
Need your help in writing an sql to search records which has length of 4000 bytes from an varchar2(4000) column and inserting the same records to another table by truncating the record to 3500 bytes .Something like this:
INSERT INTO new_table (txt_column)
SELECT SUBSTRB (txt_column, 1, 3500)
FROM old_table;SUBSTR returns a string with a specified number of characters , SUBSTR<b>B</b> has a specified number of bytes . -
Backorder report, not possible to print Cardname
Hello,
in the PLD template for the backorder report it is not possible to inlcude the Cardname, there is no system variable available.
Does anyone have a workaround for this?
Thank you in advance.
Best regards,
Anton Wieser.Hi,
Were you able to figure out solution for this.
I tried this out by processing a backorder goods delivery. The system is still taking the delivery PLD. So, I am getting the Cardname (Customer Name).
Try out using Advanced print layout. Probably that will help in finding out a solution.
Assign points if useful.
Thanks,
Srikanth -
Available stock in Backorder report
Hi,
How can I have the available qty (In stock - Committed + Ordered) in the Backorder report for viewing purposes? In PLD, what is the field for this specific field?
Appreciate the PLD experts.
Thanks,
HarithThis PLD does not expose the OITW table from where the OnHand, and other quantites can be added. Using the Alt in the table selection to manully add the OITW will not also help as linking fields does not work.
Thats why this will not be possible.
Suda -
Backorder report and order types
Experts,
We have a standard backorder report in ECC called as t-code v.15
I want to know, if this is only for standard order types or it is for every sales order created in ECC.
Thanks
Shankar.Hi,
Backorder processing is only available for materials with individual requirements. If any of the orders mentioned by you carry material number (with individual requirement), then it applies to those orders also.
Regards, -
Backorder Reports V.15 and V_RA
Hi !
Can someone explain to me how exactly these reports works. These reports show orders that are fully confirmed. I was hoping these reports will only show orders that the fully or partially unconfirmed (which is my client's definition of a Backorder)
What is SAP's definition of a Backorder (in the context of these reports).
I am not liking these reports and I am inclined to develop custom Backorder reports for my client... though I would like to avoid that if possible.
Input from anyone experienced in these reports is greatly appreciated.
Thanks,
Anisha.Hi Anisha,
See, basically back order means following:
Your customer had placed an order for 100 qty, out of which you could confirm only 30 & deliver the same. At this point of time a sales order will deliver only confirmed qty that is 30 & rest will be on backorder (that qty deliverable after some days after availibility check & confirmation).
Later when stocks arrive you can either run availibility check thru sales order or by using the reports you mentioned.
These are not only reports, but also used as transaction. see when you run V_RA you can see material wise the backorder quantities, wherein you can manually change the confirmation.
Other use of these transaction is that, suppose you have created two orders in sequence but the second one has to be delivered first. But due to availibility check you entire stock is in fiest sales order. Using these reports you can also release stock from first order & confirm it for second & deliver it.
Customised reports is a good options but its always better to use standard SAP functionality.
Hope this is very much helpful to you.
Regards,
Dhananjay -
How to Save Multiple Variants for a Report at a time?
Hi Experts,
I have a report in one server and I have copied the same into another server.
And now I also have to copy the variants of that report.
There are totally 192 variants for the report. So, is there any easier way to copy all those variants for the new report that I have created, rather than re-creating the variants one-by-one manually.
Note:There is no connection to both the servers. So I cannot transport them.
Thanks in advance.Basis can do a export and import transport, still if don't have connection between boxes.
or
check this
http://www.sap-basis-abap.com/abap/copy-program-variants-from-one-to-another.htm
a® -
I have a situation, where i need to write expression Period to date(PTD). i want to know how to get the period date. i want you to help in writing Period date or else is there any function to get period date for a given date(the date is given
from the parameter dynamically) in MDX for SSRS report
ramHi ram,
Per my understanding that you want to get the period date based on the month selected and the given date, right?
Could you please provide details information below to help us better understanding your requirements, thus we will be more effective to provide an solution:
What is the format of the period date you want to get, is this date in the DB and you want to filter it based on the month and the given Date?
Did the month and given date are two parameters in the report? if possible, could you please provide some sample data in the DB and also the snapshot of the report structure
I assume you want to get the period date(mm/dd/yyy) between the select month(e.g:Feb) and the given date (10/1/2014) and you should get the date between(02/01/2014-10/1/2014).
If so,and you also have two parameter "Month","EndDate"(EndDate is the given date), please reference to details information below:
You can create an new parameter "BeginDate" (Date/Time) which is the begin date of the period, you can use the expression to get the value based on the value of the month and the year value from the given date,finally hide this parameter:
Specify the available value:
Label:=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value)
Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
Specify the default Value:
Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
Add filter to the dataset as below:
Preview you will get all the date in the given Period:
If you still have any problem, please feel free to ask.
Regards
Vicky Liu -
Error while saving view for a report
Hi All,
I have transported queries to production and executing them from web, when I am saving the view for a report I get an error
" The Object cannot not be processed due to a transport problem - Notification Number RSWWW 240 "
What could be the problem...please help
Thanks
IndraneelCheck the OSS note 550760 regarding the issue.
-
Checkboxes in BI Publisher not showing up for all reports
Hi everyone,
I followed the instructions (uploading fonts, checking the checkbox font property e.t.c) for displaying checkboxes (without the diamond shape) in my BI Publisher reports. It worked for 1 report and still does. Unfortunately the new reports I have uploaded still display the diamond shape. I find this very odd even though followed exactly the same process for all of my reports.
Is there a way to make sure that checkboxes display properly for all reports? Could there be a mistake I have made and that I am missing out on. Any thoughts will be appreciated.Have you set the properties as per
http://blogs.oracle.com/xmlpublisher/2007/05/wherere_my_checkboxes.html
especially
1. The font location, we need to tell the publisher engine where the Wingdings font is located:
<font family="Wingdings" style="normal" weight="normal">
<truetype path="c:\windows\fonts\wingding.ttf"/>
</font>
2. The glyphs to be used. Here we specify the font family name ie 'Wingdings' and the 253/254 glyphs
<property name="rtf-checkbox-glyph">Wingdings;253;254</property>
Do ensure that you use the same glyph character codes defined in ur config and RTF -
Enhancement request for VAT Report of Customer and Vendor.
Hello SAP Gurus,
Have enhancement request for adding new fields in existing VAT report of Customer and Vendor like user id, GL account etc.
As I am fresher, can you please help me that how I need to approach. Thanks for your support.
Regards,
SaleemHello Saleem,
Almost all fields required for VAT reporting are available in standard tax report
S_ALR_87012357 .
You have to configure the layout from the selection screen as below
regards
pb -
Oracle bi publisher report for apex - Report Layout
Hi There,
Navigation: Home>Application Builder>Application 20>Shared Components>Report Layouts
I created rtf template for a Report Query. It worked fine upto certain point.
However at some point, if I make a minor modification to the layout it is not displaying all the data that it is supposed to.
I have 3 tables in my RTF template 1) Header 2) Details 3) Summary. Details section has a group. This runs fine.
Now if I just combine all the above 3 tables into one by adding row above and row below to the "2) details" table and moving the table 1 and table 3 into those rows, makes the data in the group in table 2 disappear when run on the apex application.
However it works fine when data is loaded on the RTF template and Preview --> PDF is seen.
Is it a known bug? Because some of my coleagues has same issues.
Thanks
Krishna
Edited by: Krishna on Aug 9, 2010 10:08 AMHi, I think you need to provide more information.
user452458 wrote:
Hi There,
Navigation: Home>Application Builder>Application 20>Shared Components>Report Layouts
I created rtf template for a Report Query. It worked fine upto certain point.
However at some point, if I make a minor modification to the layout it is not displaying all the data that it is supposed to. What modification? added extra fields? Are those fields in the corresponding report query? change to the design of the document? did you delete the old template and re-upload after making the changes?
Moreover the preview on the RTF template works fine with the same data.Preview from where?
>
Is it a known bug? Because some of my coleagues has same issues.
Thanks
KrishnaAlso, you should change your display name to something better than user452458 ;)
Trent -
How to create a z-tcode for a report in FSI3 transaction
hi friends,
i want to create a z tcode for a report in FSI3 transaction, i have copied the program of the report and created a tcode in se93, but some more tabs are getting displayed in selection screen when im executing my Z Tcode, and report is not getting executed. kindly help.
regards,
nagarajan.jHi,
follow these steps:
1. enter into transaction SE43 and change any Z area menu (we won't save it anyway)
2. choose to add a new entry
3. in the popup, choose to add a new report
4. select "Drilldown"
5. the application class depends on the area from you are trying to define/launch drilldown reports. In case of transaction FSI3, the appropriate application class is "FBR FI:FIS - Balance sheet, balance sheet key figures
6. then choose the suitable report type. This corresponds to the nodes that you'll see in transaction FSI3
7. finally choose a report, and optionally a variant.
8. you'll return to the screen "Transaction code for reports" (same as in step 4)
9. expand the button to display further options
10. optionally, specify a custom transaction code and/or description
11. accept all popups. This will create the transaction
12. finally, exit and don't save the area menu
I hope this helps. Kind regards,
Alvaro -
Custom Filename for PDF Report
Hi,
I have a requirement to download pdf for a report. I provided the download action as a column link on the report. Clicking the link I direct to the URL for the custom report I created (f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT= MyReport). Pdf gets downloaded with the name MyReport.pdf. But I need to provide a custom name for the downloaded pdf, it should be based on the Id value of the report column something like this Emp123.pdf where 123 is the employee Id (selected row's employee id value in my report).
I searched in the forums and came across this thread APEX 3 PDF Report Export Custom Filename? but here its mentioned that
" In this case there's no separate attribute for the file name. And we don't do substitutions on the report query name, so setting the name dynamically as you described in your sample, won't be possible. "
Since the thread is a old one so posting a new one. Any pointers is highly appreciated.
Thanks,
Rakesh1. Call the report with utl_http.
2. Store the output as a BLOB. Either local variable or store it in a table.
3. Print the blob.
Here is how you can print the blob and read the package spec for utl_http.
Re: display a blob on webpage using mod-plsql -
Agewise Outstanding Report for Vendors report
Hi All,
In SAP, Agewise Outstanding Report for Vendors report coming with Vendor Master Details along with Address details in the report S_ALR_87012085 - Vendor Payment History with OI Sorted List which is not really required. Hence we need to remove all un necessary details. We need only a signle line report for each vendor like below.
Vendor Code Vendor Name Due - 30 days Due - 60 days Due 90 Days Due 120 days and more than above
The selection of period option is already available in std SAP. We have to change the output report only. This is rquired for Audit purpose.
Please help me in the above issue.
Regards
VinuHello,
The following example I have given is for customers.
The only difference is in transaction codes. For customer you go to FDI1, for vendor you go to FKI1 (reports).
For Customer you go to FDI4, for vendor you go to FKI4 for forms.
Remaining all are the same.
Hello,
Go to transaction code FDI4
Select Form Type RFFRRD20 Line item analysis
Give your form name and description
Structure (Two axis) - as defaulted
Click on Create
You will have lead column
Delete the rows 2, 3 and 4
Double click on column 1
Enter the customer numbers from 1 to 999999
First column double click (A)
Slelect following values
Due date analysis 1
Days for net due date 0 to 30
Give the short name, medium name and long text for the column.
Repeat this step in next columns like 31 to 60, 61 to 90, 91 to 120 and 121 to 99999 days etc in other columns and select due date analysis 1. (B,C,D,E)
Create one more column by way of formula. To create a new column you need to double click on blue line. Put formula add all five columns you have created above. (F = ABCDE)
You prepare one more column with
Due date analysis 2 (G)
Now you prepare one more column add (F+G) = This will be total open items = over due and not due.
Now go to FDI1 and prepare a report - assign the form created in FDI4 to the report.
Characteristics you need to select are
Account Type (Select Account Type as D for customers)
Currency
Customer
Document Type
Special G/L Ind
Company Code
Change the output types and options according to your requirement.
Refer FDI2 and FDI3 for other standard reports created.
Refer FDI5 and FDI6 for other standard forms created.
Save your report and execute.
Regards,
Ravi
Maybe you are looking for
-
Unable to upgrade to latest itunes (10.1.1)
hello.. i am having a bit of trouble updating my iphone to the latest verson (4.2) when i click on update on the iphone summary page, it tells me 'a new iphone software version (4.2) is available, but requires itunes 10.1.1. would you like to downloa
-
Import xml file from server to itab
Hi all, I have a little issue loading data from xml file in server into my itab. With my file in local (C:\example\example.xml) works fine, but if try this with the same file in the server (e:\example\example.xml) dont work. This is my code resume. T
-
S_ALR_87013533 report does not show FI direct postings.
Hi We have posted two FI documents(Vendor invoice) using Network/Activity. one in October and other one in December. When we execute the above report, the document posted during October does not feature in the report though both the documents have be
-
Most of my apps wont open... safari, logic, itunes
-
Can I still keep photoshop CS4 after installing photoshop CC?
Hi, I'm intending to upgrade my Photoshop CS4 to CC version, but I would like to keep CS4 in my computer, is it possible to keep these 2 versions?