PO without invoice report
Hi all
i am in a real need for extracting a report which can show me the list of invoices entered without being linked to a specified PO (i.e. without PO)
I do not have access to tables within SAP, so i will not be able to link tables, i need a standard report sadly
Hello Mohammad,
Please check the same in BKPF table by giving the document type- KR and any other doc types which you are using and t code details like FB60. Else you can find the same details in FBL1N t code to know the vendor line items by giving the document types, vendor details, company code details (if required)
Please revert us if you require any more information.
Thanks & Regards,
Lakshmi S
Similar Messages
-
A/r Invoice report query based on posting date selection criteria
Hi experts,
I am trying to write a query to get the A/r invoice report including Docnum, Docdate, cardname, project, linetotal, taxcode, taxtotal.
and i tried the below query
SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName],T1.[LineTotal] FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]
In this query ,
1) i am unable to sum up the linetotal( total before tax)
2) also unable to fetch the sum of taxamount.
3) its more important , the above query will me docnum , when i try to open that doc, it opens the 2007 docments. whereas the other details are correct like docdate, amount and all.
example: from date: 1/04/2011 to date: 28/07/2011
Docnum Docdate cardname linetotal.... etc
2 1/04/11 XYZ 5000
when i click the 2 (docnum) it opens me the 04/04/2007 documents.
how to limit the doc within the periods given?
thanks in advance
DwarakHi Rahul/Gordon,
thanks for your query's .
additionally, i want this query without the A/r invoices whichever having credit memo as target doc.
and
i have selection criteria as T0.[U_Sec_Category] = '[%2]' and this has 3 values like 1)CIM 2)BIN 3)DMP
among these CIM should be seen only only user1 and BIN & DMP only by user2.
can u plz get me this
thanks,
Dwarak -
Hi all
Let me know about Report for Goods receipt without Invoice for Purchase order? ie. PO pending for Invoice?
If anybody a report, pls send it to me. I have used 101-102, 105-106 movement types?
So any one send that reports?Hi Muthu
I am sending you one source code regarding the Goods receipt without invoice.
Pls reward pts if help.
Regards
Deepanker.
FUNCTION zrfc_vcs_get_goodsreceipt.
*& Program Name : ZRFC_VCS_GET_GOODSRECEIPT *
*& Title : Function Module for getting the GOODSRECEIPT *
*& Details *
*& Author : M.Jayasree *
*& Create Date : 21/03/2007 *
*& Logical DB : None *
*& Program Type : FM *
*& SAP Release : 4.6 *
*& Description : This is a program used for retrieving the *
*& GOODSRECEIPT Details. *
*& REVISION LOG *
*& LOG# DATE AUTHOR *
*& 0000 21/03/2007 Jayasree.M *
Tables *
TABLES : mkpf,komv,mseg.
Data declarations *
DATA: lv_suc_date TYPE d,
lv_suc_time TYPE t,
lv_fileloc TYPE char40,
lv_filename TYPE char40,
lv_date TYPE d,
lv_time TYPE t,
lv_filepath TYPE string,
lv_error TYPE char50,
lv_fileloc1 TYPE char20,
lv_filename1 TYPE char40,
lv_filepath1 TYPE string,
lv_value TYPE zvcsconfig-zvalue,
lv_value_h TYPE zvcsconfig-zvalue,
lv_value1 TYPE zvcsconfig-zvalue,
lv_fileloc_d TYPE char40,
lv_filename_d TYPE char40,
lv_filepath_d TYPE string,
lv_value_d TYPE zvcsconfig-zvalue,
lv_fileloc_d1 TYPE char40,
lv_filename_d1 TYPE char40,
lv_filepath_d1 TYPE string,
lv_value_d1 TYPE zvcsconfig-zvalue,
lv_taxamt TYPE bseg-wrbtr,
lv_elikz TYPE mseg-elikz,
lv_waers TYPE mseg-waers,
lv_emlif TYPE mseg-emlif,
lv_dmbtr TYPE mseg-dmbtr,
lv_vkwrt TYPE mseg-vkwrt,
lv_menge_acc TYPE mseg-menge,
lv_ebeln TYPE ebeln,
lv_lifnr TYPE ekko-lifnr,
lv_wkurs TYPE ekko-wkurs,
lv_ekgrp TYPE ekko-ekgrp,
lv_bsart TYPE ekko-bsart,
lv_inco1 TYPE ekko-inco1,
lv_land1 TYPE lfa1-land1,
lv_eknam TYPE eknam,
lv_knumv TYPE ekko-knumv,
lv_lifnr_t TYPE komv-lifnr,
lv_kwert TYPE kwert,
lv_changenr TYPE cdchangenr,
lv_flag TYPE c,
lv_sum_a TYPE kwert,
lv_sum_a1 TYPE kwert,
lv_sum_a1_a TYPE kwert,
lv_sum_a_a TYPE kwert,
lv_count TYPE n,
lv_wempf TYPE wempf,
lv_add TYPE kwert,
lv_werks_p TYPE werks_d,
lv_maktx TYPE maktx,
lv_wemng TYPE wemng,
lv_ebelp_b TYPE ebelp,
lv_erfmg_b TYPE erfmg,
lv_menge_r TYPE menge_d,
lv_remng TYPE remng,
lv_rewrt TYPE rewrt,
lv_wrbtr TYPE wrbtr,
lv_mwskz TYPE mwskz,
lv_wmwst TYPE wmwst,
lv_lifnr_sc TYPE lifnr,
lv_pstyp TYPE pstyp,
lv_menge TYPE menge_d,
lv_budat TYPE budat,
lv_waers_bc TYPE waers,
lv_netwr_tbv TYPE netwr,
lv_wrbtr_ai TYPE wrbtr,
lv_sum TYPE rewrt,
lv_netpr_bv TYPE netpr,
lv_etenr TYPE etenr,
lv_bstyp TYPE bstyp,
lv_grtxt TYPE grtxt,
lv_ebelp TYPE ebelp,
lv_basicv TYPE netwr,
lv_smbln TYPE mseg-smbln,
lv_waers_c TYPE ekko-waers,
lv_kwert_a TYPE konv-kwert,
lv_knumv_a TYPE ekko-knumv,
lv_knumv_a_a TYPE ekko-knumv,
lv_netwr_a TYPE ekpo-netwr,
lv_netwr_a_a TYPE ekpo-netwr,
lv_kwert_a1 TYPE konv-kwert,
lv_knumv_a1 TYPE ekko-knumv,
lv_netwr_a1 TYPE ekpo-netwr,
lv_netwr_a1_a TYPE ekpo-netwr,
lv_knumv_a1_a TYPE ekko-knumv,
lv_sum_b TYPE konv-kwert,
lv_fwnav TYPE bset-fwste,
lv_sum_b_a TYPE konv-kwert,
lv_netpr_a TYPE ekpo-netpr,
lv_erfmg_add TYPE mseg-erfmg,
lv_erfmg_add_a TYPE mseg-erfmg,
lv_netpr_a_a TYPE ekpo-netpr,
lv_netpr_a1 TYPE ekpo-netpr,
lv_netpr_a1_a TYPE ekpo-netpr,
lv_erfmg_add1 TYPE mseg-erfmg,
lv_erfmg_add1_a TYPE mseg-erfmg,
lv_menge_inv TYPE menge_d,
lv_wrbtr_inv TYPE wrbtr,
lv_netpr_tax TYPE netpr,
lv_kwert_total TYPE konv-kwert,
lv_kwert_total_a TYPE konv-kwert,
lv_kwert_total_r TYPE konv-kwert,
lv_kwert_total_r_a TYPE konv-kwert,
lv_bukrs_tax TYPE bukrs,
lv_waers_tax TYPE waers,
lv_erfmg_ret TYPE mseg-erfmg,
lv_server TYPE tsle4-server,
lv_bwart_rev TYPE mseg-bwart,
lv_erfmg_rev1 TYPE mseg-erfmg,
lv_bukrs TYPE bukrs,
lv_land1_t TYPE land1,
lv_kalsm TYPE kalsm,
lv_text1 TYPE text1,
lv_netpr_tax1 TYPE netpr,
lv_netpr_tax1_r TYPE netpr,
lv_mwskz_r TYPE mwskz,
lv_mwskz_tax TYPE mwskz,
lv_taxamt_t TYPE bseg-wrbtr,
lv_tax_tot TYPE netpr,
lv_fwnav_tax TYPE bset-fwste,
lv_taxamt_t_r TYPE bseg-wrbtr,
lv_tax_tot_r TYPE netpr,
lv_fwnav_tax_r TYPE bset-fwste,
lv_bukrs_tax_r TYPE bukrs,
lv_waers_tax_r TYPE waers,
lv_mblnr_rev TYPE mblnr,
lv_erfmg_rej TYPE erfmg,
lv_budat_m TYPE budat,
lv_bldat_m TYPE bldat,
lv_year1(4),
lv_mth1(2),
lv_day1(2),
lv_base TYPE waers,
lv_base_t TYPE waers,
lv_waers_t TYPE waers,
lv_wkurs_b TYPE wkurs,
lv_stblg_re TYPE stblg,
lv_belnr TYPE belnr_d.
Structures *
Structures for storing the output HEADER file
TYPES: BEGIN OF t_fintab1,
mblnr(30) TYPE c, "GRNumber
ebeln(20) TYPE c, "PONumber
changenr(38) TYPE c, "POAmendmentNumber
lifnr(22) TYPE c, "SupplierCode
adr_code(20) TYPE c, "AddressCode
plt_code(22) TYPE c, "PlantCode
land1(3) TYPE c, "CountryCode
elikz(25) TYPE c, "GoodsReceiptStatus
waers(3) TYPE c, "CurrencyCode
wkurs(34) TYPE c, "ExchRateValue
server(100) TYPE c, "ERPSource
ekgrp(22) TYPE c, "BuyerCode
eknam(240) TYPE c, "BuyerName
bldat(20) TYPE c, "GoodsReceiptDate
bsart(25) TYPE c, "DocType
bsart_c(50) TYPE c, "ContractType
asnno(8) TYPE c, "ASNNo
asndate(20) TYPE c, "ASNDate
xblnr(16) TYPE c, "DCNo
dc_date(20) TYPE c, "DCDate
bktxt(25) TYPE c, "PreGRNo
pre_date(20) TYPE c, "PreGRDate
emlif(22) TYPE c, "ReceiverCode
re_name(240) TYPE c, "ReceiverName
lifnr_t(10) TYPE c, "ThreePLCode
inco1(8) TYPE c, "CommercialTerms
dmbtr(34) TYPE c, "TotalValue
vkwrt(34) TYPE c, "TotalBasicValue
kwert(34) TYPE c, "TotalAdditionalCharges
base(3) TYPE c, "BaseCurrencyCode
END OF t_fintab1.
Structures for storing the output HEADER for STATUS file
TYPES: BEGIN OF t_fintab_s,
mblnr(30) TYPE c, "GRNumber
ebeln(20) TYPE c, "PONumber
changenr(38) TYPE c, "POAmendmentNumber
lifnr(22) TYPE c, "SupplierCode
adr_code(20) TYPE c, "AddressCode
plt_code(22) TYPE c, "PlantCode
land1(3) TYPE c, "CountryCode
elikz(25) TYPE c, "GoodsReceiptStatus
waers(3) TYPE c, "CurrencyCode
wkurs(34) TYPE c, "ExchRateValue
server(100) TYPE c, "ERPSource
ekgrp(22) TYPE c, "BuyerCode
eknam(240) TYPE c, "BuyerName
bldat(20) TYPE c, "GoodsReceiptDate
bsart(25) TYPE c, "DocType
bsart_c(50) TYPE c, "ContractType
asnno(8) TYPE c, "ASNNo
asndate(20) TYPE c, "ASNDate
xblnr(16) TYPE c, "DCNo
dc_date(20) TYPE c, "DCDate
bktxt(25) TYPE c, "PreGRNo
pre_date(20) TYPE c, "PreGRDate
emlif(22) TYPE c, "ReceiverCode
re_name(240) TYPE c, "ReceiverName
lifnr_t(10) TYPE c, "ThreePLCode
inco1(8) TYPE c, "CommercialTerms
dmbtr(34) TYPE c, "TotalValue
vkwrt(34) TYPE c, "TotalBasicValue
kwert(34) TYPE c, "TotalAdditionalCharges
smbln TYPE mseg-smbln,"For reversal status
END OF t_fintab_s.
Structures for storing the output DETAIL file
TYPES: BEGIN OF t_fintab2,
zeile(22) TYPE c, "GRLineNumber
mblnr(30) TYPE c, "GRNumber
server(100) TYPE c, "ERPSource
ebelp(38) TYPE c, "POLineNumber
ebeln(20) TYPE c, "PONumber
changenr(38) TYPE c, "POAmendmentNumber
scheculenumber(38) TYPE c, "ScheduleNumber
meins(25) TYPE c, "UOM
lgort(22) TYPE c, "WarehouseCode
waers(3) TYPE c, "Currency Code
matnr(40) TYPE c, "PartNumber
maktx(240) TYPE c, "PartDescription
kostl(22) TYPE c, "CostCenterCode
bukrs(15) TYPE c, "CompanyCode
menge_i(22) TYPE c, "InspectedQuantity
wemng(22) TYPE c, "GRRecievedQuantity
menge_a(22) TYPE c, "GRAcceptedQuantity
menge_g(22) TYPE c, "GRRejectedQuantity
grrework(22) TYPE c, "GRReworkQuantity
menge_r(22) TYPE c, "GRReturnedQuantity
grund(25) TYPE c, "RejnReason
remng(22) TYPE c, "QuantityInvoiced
rewrt(34) TYPE c, "AmountInvoiced
wrbtr(34) TYPE c, "AmountPaid
mwskz_t(100) TYPE c, "TaxCode
wmwst_w(34) TYPE c, "TaxValue
lifnr_sc(22) TYPE c, "SupplierCode
adr_code(20) TYPE c, "AddressCode
taxdiscount(34) TYPE c, "TaxChargeDiscount
mwskz_v(22) TYPE c, "VATCode
wmwst_v(34) TYPE c, "VATValue
vatoption(1) TYPE c, "VATOption
kwert_i(34) TYPE c, "InspectionCost
pstyp(25) TYPE c, "IssueType
pendingschdqty(22) TYPE c, "PendingSchdQuantity
menge_o(22) TYPE c, "POOrderQty
erfmg(22) TYPE c, "MovedQty
tobemovedqty(22) TYPE c, "TobeMovedQty
balanceqty(22) TYPE c, "BalanceQty
netpr_bv(34) TYPE c, "BasicValue
kwert_a(34) TYPE c, "AdditionalCharges
budat_i(20) TYPE c, "InspectionDate
budat_m(20) TYPE c, "MovedDate
elikz(25) TYPE c, "GRItemStatus
budat_g(20) TYPE c, "GRRecdDate
END OF t_fintab2.
Structures for storing the MKPF
TYPES: BEGIN OF t_mkpf,
mblnr TYPE mkpf-mblnr,
budat TYPE mkpf-budat,
xblnr TYPE mkpf-xblnr,
bldat TYPE mkpf-bldat,
END OF t_mkpf.
Structures for storing the MSEG
TYPES: BEGIN OF t_mseg,
matnr TYPE mseg-matnr,
zeile TYPE mblpo,
menge TYPE menge_d,
meins TYPE mseg-meins,
lgort TYPE mseg-lgort,
mblnr TYPE mseg-mblnr,
bukrs TYPE mseg-bukrs,
ebeln TYPE bstnr,
ebelp TYPE ekpo-ebelp,
kostl TYPE mseg-kostl,
waers TYPE mseg-waers,
erfmg TYPE mseg-erfmg,
vkwrt TYPE mseg-vkwrt,
elikz TYPE mseg-elikz,
insmk TYPE mseg-insmk,
bwart TYPE mseg-bwart,
grund TYPE mseg-grund,
END OF t_mseg.
Structures for storing the log file
TYPES: BEGIN OF t_logfile,
desc TYPE char50,
END OF t_logfile.
Structures for storing the RSEG file
TYPES: BEGIN OF t_rseg,
menge TYPE menge_d,
wrbtr TYPE wrbtr,
END OF t_rseg.
TYPES: BEGIN OF t_add,
ebeln TYPE ebeln,
END OF t_add.
TYPES: BEGIN OF t_add1,
ebeln TYPE ebeln,
ebelp TYPE ebelp,
END OF t_add1.
TYPES: BEGIN OF t_total,
dmbtr TYPE dmbtr,
END OF t_total.
TYPES: BEGIN OF t_total1,
dmbtr TYPE dmbtr,
END OF t_total1.
TYPES: BEGIN OF t_basictotal,
erfmg TYPE erfmg,
END OF t_basictotal.
TYPES: BEGIN OF t_basic,
ebeln TYPE ebeln,
ebelp TYPE ebelp,
erfmg TYPE erfmg,
END OF t_basic.
TYPES: BEGIN OF t_zcond,
zcond1 TYPE kscha,
zcond2 TYPE kscha,
zcond3 TYPE kscha,
zcond4 TYPE kscha,
zcond5 TYPE kscha,
zcond6 TYPE kscha,
zcond7 TYPE kscha,
zcond8 TYPE kscha,
zcond9 TYPE kscha,
zcond10 TYPE kscha,
END OF t_zcond.
TYPES: BEGIN OF t_add_k,
kwert TYPE konv-kwert,
END OF t_add_k.
TYPES: BEGIN OF t_tax,
ebeln TYPE mseg-ebeln,
ebelp TYPE mseg-ebelp,
menge TYPE mseg-menge,
END OF t_tax.
TYPES: BEGIN OF t_mseg_m,
mblnr TYPE mblnr,
elikz TYPE elikz,
wempf TYPE wempf,
ebeln TYPE ebeln,
ebelp TYPE ebelp,
werks TYPE werks,
erfmg TYPE erfmg,
bwart TYPE bwart,
bukrs TYPE bukrs,
lfbnr TYPE lfbnr,
END OF t_mseg_m.
TYPES: BEGIN OF t_erfmg,
erfmg TYPE erfmg,
END OF t_erfmg.
Internal tables *
DATA: i_zrfcinfo LIKE zrfcinfo OCCURS 0 WITH HEADER LINE,
i_fintab1 TYPE TABLE OF t_fintab1 WITH HEADER LINE,
i_fintab_s TYPE TABLE OF t_fintab_s WITH HEADER LINE,
i_fintab2 TYPE TABLE OF t_fintab2 WITH HEADER LINE,
i_mkpf TYPE TABLE OF t_mkpf WITH HEADER LINE,
i_mseg TYPE TABLE OF t_mseg WITH HEADER LINE,
i_rseg TYPE TABLE OF t_rseg WITH HEADER LINE,
i_total TYPE TABLE OF t_total WITH HEADER LINE,
i_basictotal TYPE TABLE OF t_basictotal WITH HEADER LINE,
i_erfmg TYPE TABLE OF t_erfmg WITH HEADER LINE,
i_erfmg1 TYPE TABLE OF t_erfmg WITH HEADER LINE,
i_basic TYPE TABLE OF t_basic WITH HEADER LINE,
i_total1 TYPE TABLE OF t_total1 WITH HEADER LINE,
i_tax TYPE TABLE OF t_tax WITH HEADER LINE,
i_tax_r TYPE TABLE OF t_tax WITH HEADER LINE,
i_mseg_m TYPE TABLE OF t_mseg_m WITH HEADER LINE,
i_add TYPE TABLE OF t_add1 WITH HEADER LINE,
i_add_a TYPE TABLE OF t_add1 WITH HEADER LINE,
i_add1 TYPE TABLE OF t_add1 WITH HEADER LINE,
i_zcond TYPE TABLE OF t_zcond WITH HEADER LINE,
i_zcond_r TYPE TABLE OF t_zcond WITH HEADER LINE,
i_add_cond TYPE TABLE OF t_add_k WITH HEADER LINE,
i_add_cond_r TYPE TABLE OF t_add_k WITH HEADER LINE,
i_add_cond_r_a TYPE TABLE OF t_add_k WITH HEADER LINE,
i_zcond_a TYPE TABLE OF t_zcond WITH HEADER LINE,
i_add_cond_a TYPE TABLE OF t_add_k WITH HEADER LINE,
i_add1_a TYPE TABLE OF t_add1 WITH HEADER LINE,
i_zcond_r_a TYPE TABLE OF t_zcond WITH HEADER LINE,
i_logfile TYPE TABLE OF t_logfile WITH HEADER LINE,
i_fintab1_h TYPE TABLE OF t_fintab1 WITH HEADER LINE,
i_fintab2_h TYPE TABLE OF t_fintab2 WITH HEADER LINE.
DATA: BEGIN OF i_mwdat OCCURS 0.
INCLUDE STRUCTURE rtax1u15.
DATA: END OF i_mwdat.
DATA: BEGIN OF i_mwdat_t OCCURS 0.
INCLUDE STRUCTURE rtax1u15.
DATA: END OF i_mwdat_t.
DATA: BEGIN OF i_mwdat_t_r OCCURS 0.
INCLUDE STRUCTURE rtax1u15.
DATA: END OF i_mwdat_t_r.
Work areas *
DATA : wa_zrfcinfo TYPE zrfcinfo.
Get the last execution date/time from ZTABLE
SELECT *
FROM zrfcinfo
INTO TABLE i_zrfcinfo
WHERE
name = 'ZRFC_VCS_GET_GOODSRECEIPT' AND
status = '1'.
DESCRIBE TABLE i_zrfcinfo LINES sy-tabix.
Sort the table for retrieving the latest date/time
SORT i_zrfcinfo BY exc_date DESCENDING exc_time DESCENDING.
READ TABLE i_zrfcinfo INDEX 1.
IF sy-subrc = 0.
lv_suc_date = i_zrfcinfo-exc_date.
lv_suc_time = i_zrfcinfo-exc_time.
ENDIF.
Fetch the updated records from the table MKPF between the latest
*date/time
lv_suc_date = '20070529'.
SELECT mblnr
budat
xblnr
bldat
FROM mkpf
INTO TABLE i_mkpf
WHERE
cpudt GE lv_suc_date AND
cputm GE lv_suc_time.
HEADER
For multiple PO
IF NOT i_mkpf[] IS INITIAL.
SELECT mblnr
elikz
wempf
ebeln
ebelp
werks
erfmg
bwart
bukrs
lfbnr
FROM mseg
INTO TABLE i_mseg_m
FOR ALL ENTRIES IN i_mkpf
WHERE mblnr = i_mkpf-mblnr
and bwart NE '543'.
IF NOT lv_suc_date IS INITIAL.
SELECT mblnr
elikz
wempf
ebeln
ebelp
werks
erfmg
bwart
bukrs
FROM mseg
INTO TABLE i_mseg_m
FOR ALL ENTRIES IN i_mseg_m
WHERE mblnr = i_mseg_m-lfbnr
ENDIF.
ENDIF.
For Selecting the ERP Source
SELECT SINGLE server INTO lv_server FROM tsle4.
Appending all the fields to the output HEADER file layout
LOOP AT i_mseg_m.
MOVE-CORRESPONDING i_mseg_m TO i_fintab1.
CONCATENATE i_mseg_m-mblnr '-' i_mseg_m-ebeln '-' i_mseg_m-ebelp
INTO i_fintab1-mblnr.
CLEAR : lv_budat_m , lv_bldat_m .
For GR Date
SELECT SINGLE budat bldat INTO (lv_budat_m , lv_bldat_m) FROM mkpf
WHERE mblnr = i_mseg_m-mblnr.
IF sy-subrc = 0.
i_fintab1-bldat = lv_budat_m.
lv_year1 = lv_bldat_m+0(4).
lv_mth1 = lv_bldat_m+4(2).
lv_day1 = lv_bldat_m+6(2).
CONCATENATE lv_day1 '/' lv_mth1 '/' lv_year1 INTO i_fintab1-dc_date.
ENDIF.
Retrieve the base currency code
CLEAR lv_base.
SELECT SINGLE waers INTO lv_base FROM t001 WHERE bukrs =
i_mseg_m-bukrs.
IF sy-subrc = 0.
i_fintab1-base = lv_base.
ENDIF.
For the Receiver Name
i_fintab1-re_name = i_mseg_m-wempf.
For the Plant Code
i_fintab1-plt_code = i_mseg_m-werks.
For the ERP Source
i_fintab1-server = lv_server.
For The Address Code
i_fintab1-adr_code = 'A1'.
For the Quantity ( ebeln - PO number , Elelp - PO line number,
erfmg - Quantity, bwart - Movement type ).
SELECT ebeln ebelp erfmg INTO TABLE i_basic FROM mseg WHERE mblnr =
i_mseg_m-mblnr AND bwart NE '543' AND ebeln = i_mseg_m-ebeln AND
ebelp = i_mseg_m-ebelp.
CLEAR lv_basicv.
LOOP AT i_basic.
Retrieve from table EKPO (Po LineItem) for total basic value( netpr
- Net price )
SELECT SINGLE netpr
INTO lv_netwr_tbv
FROM ekpo WHERE ebeln = i_basic-ebeln
AND ebelp = i_basic-ebelp.
IF sy-subrc = 0.
lv_basicv = lv_basicv + i_basic-erfmg * lv_netwr_tbv.
ENDIF.
Retrieve the basic value for Reversal
SELECT erfmg INTO TABLE i_basictotal FROM mseg
WHERE ( bwart = '122' OR bwart = '124' OR bwart = '161' )
AND lfbnr = i_mseg_m-mblnr AND ebelp = i_basic-ebelp
AND ebeln = i_basic-ebeln.
LOOP AT i_basictotal.
lv_basicv = lv_basicv - ( i_basictotal-erfmg * lv_netwr_tbv ).
ENDLOOP.
ENDLOOP.
lv_basicv move to total basic value i.e i_fintab1-vkwrt
MOVE lv_basicv TO i_fintab1-vkwrt.
CONDENSE i_fintab1-vkwrt NO-GAPS.
Retrieve the total value from table MSEG ( GR Line item )
SELECT dmbtr INTO TABLE i_total FROM mseg
WHERE mblnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp.
LOOP AT i_total.
lv_dmbtr = lv_dmbtr + i_total-dmbtr.
ENDLOOP.
Calculating the total value for reversal
SELECT dmbtr INTO TABLE i_total1 FROM mseg
WHERE ( bwart = '122' OR bwart = '124' OR bwart = '161' )
AND lfbnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp .
LOOP AT i_total1.
lv_dmbtr = lv_dmbtr - i_total1-dmbtr.
ENDLOOP.
For getting the exchange Rate ( wkurs - Exchange Rate )
SELECT SINGLE wkurs INTO lv_wkurs_b FROM ekko
WHERE ebeln = i_mseg_m-ebeln .
IF sy-subrc = 0.
lv_dmbtr = lv_dmbtr / lv_wkurs_b.
ENDIF.
Calculate the tax
CLEAR : i_tax, lv_netpr_tax1 , lv_mwskz, lv_taxamt_t , lv_tax_tot ,
lv_fwnav_tax, lv_bukrs_tax , lv_waers_tax.
*****( menge - Quantity ).
SELECT ebeln ebelp menge FROM mseg INTO TABLE i_tax
WHERE mblnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp.
LOOP AT i_tax.
( bukrs - Company Code , waers - Currency Key ).
SELECT SINGLE bukrs waers INTO (lv_bukrs_tax , lv_waers_tax)
FROM ekko WHERE ebeln = i_tax-ebeln.
*****( netpr - net price , mwskz - tax on sales).
SELECT SINGLE netpr mwskz INTO (lv_netpr_tax1 , lv_mwskz)
FROM ekpo WHERE ebeln = i_tax-ebeln AND ebelp = i_tax-ebelp.
IF sy-subrc = 0.
lv_taxamt_t = i_tax-menge * lv_netpr_tax1.
ENDIF.
IF NOT lv_mwskz IS INITIAL.
CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
EXPORTING
i_bukrs = lv_bukrs_tax
i_mwskz = lv_mwskz
i_waers = lv_waers_tax
i_wrbtr = lv_taxamt_t
IMPORTING
e_fwnav = lv_fwnav_tax
TABLES
t_mwdat = i_mwdat_t.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
lv_tax_tot = lv_tax_tot + lv_fwnav_tax.
CLEAR lv_fwnav_tax.
ENDLOOP.
For reversal
CLEAR : i_tax_r, lv_netpr_tax1_r, lv_mwskz_r, lv_taxamt_t_r,
lv_tax_tot_r, lv_fwnav_tax_r, lv_bukrs_tax_r, lv_waers_tax_r
SELECT ebeln ebelp menge FROM mseg
INTO TABLE i_tax_r WHERE ( bwart = '122' OR bwart = '124' OR bwart =
'161' )
AND lfbnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp.
LOOP AT i_tax_r.
SELECT SINGLE bukrs waers INTO (lv_bukrs_tax_r , lv_waers_tax_r)
FROM ekko WHERE ebeln = i_tax_r-ebeln.
SELECT SINGLE netpr mwskz INTO (lv_netpr_tax1_r , lv_mwskz_r)
FROM ekpo WHERE ebeln = i_tax_r-ebeln AND ebelp = i_tax_r-ebelp.
IF sy-subrc = 0.
lv_taxamt_t_r = i_tax_r-menge * lv_netpr_tax1_r.
ENDIF.
IF NOT lv_mwskz_r IS INITIAL.
CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
EXPORTING
i_bukrs = lv_bukrs_tax_r
i_mwskz = lv_mwskz_r
i_waers = lv_waers_tax_r
i_wrbtr = lv_taxamt_t_r
IMPORTING
e_fwnav = lv_fwnav_tax_r
TABLES
t_mwdat = i_mwdat_t_r.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
lv_tax_tot_r = lv_tax_tot_r + lv_fwnav_tax_r.
CLEAR lv_fwnav_tax_r.
ENDLOOP.
Finally the Total value is moving to i_fintab-dmbtr
i_fintab1-dmbtr = lv_dmbtr + lv_tax_tot - lv_tax_tot_r.
CONDENSE i_fintab1-dmbtr NO-GAPS.
IF i_fintab1-dmbtr = ' '.
i_fintab1-dmbtr = '0.0000'.
ENDIF.
IF i_fintab1-vkwrt = ' '.
i_fintab1-vkwrt = '0.0000'.
ENDIF.
SELECT SINGLE mblnr INTO lv_mblnr_rev FROM mseg
WHERE ( bwart = '102' OR bwart = '104' OR bwart = '106' )
AND lfbnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp.
IF sy-subrc = 0.
i_fintab1-elikz = 'Reversed'.
ELSEIF i_fintab1-elikz = 'X'.
i_fintab1-elikz = 'Completed'.
ELSEIF i_fintab1-elikz = ' '.
i_fintab1-elikz = 'NotCompleted'.
ENDIF.
Retrieve from table EKKO for Supplier Code , Exchange Rate,
Purchasing Group, Purchasing Document Type,
SELECT SINGLE lifnr
wkurs
ekgrp
bsart
inco1
knumv
waers
INTO (lv_lifnr , lv_wkurs, lv_ekgrp , lv_bsart ,
lv_inco1 , lv_knumv , lv_waers_c)
FROM ekko
WHERE ebeln = i_mseg_m-ebeln.
IF sy-subrc = 0.
i_fintab1-lifnr = lv_lifnr.
i_fintab1-ekgrp = lv_ekgrp.
i_fintab1-waers = lv_waers_c.
i_fintab1-bsart = lv_bsart.
i_fintab1-inco1 = lv_inco1.
i_fintab1-bsart_c = lv_bsart.
MOVE lv_wkurs TO i_fintab1-wkurs.
CONDENSE i_fintab1-wkurs NO-GAPS.
ENDIF.
Retreive for Land
SELECT SINGLE land1 INTO lv_land1 FROM lfa1 WHERE lifnr = lv_lifnr .
IF sy-subrc = 0.
i_fintab1-land1 = lv_land1.
ENDIF.
Retrieve from table T024 for BuyerCode
SELECT SINGLE eknam INTO lv_eknam FROM t024 WHERE ekgrp = lv_ekgrp.
IF sy-subrc = 0.
i_fintab1-eknam = lv_eknam.
ENDIF.
Retrieve from table KONV for AdditionalCharges
Retrieve PO Number, PO Line Number from GR Line Item
SELECT ebeln ebelp INTO TABLE i_add FROM mseg
WHERE mblnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp.
DELETE ADJACENT DUPLICATES FROM i_add COMPARING ebeln ebelp .
LOOP AT i_add.
********( knumv - number of document condition )
SELECT SINGLE knumv INTO lv_knumv_a FROM ekko
WHERE ebeln = i_add-ebeln.
IF sy-subrc = 0.
CLEAR : i_zcond,i_add_cond[], lv_kwert_total.
SELECT zcond1
zcond2
zcond3
zcond4
zcond5
zcond6
zcond7
zcond8
zcond9
zcond10
FROM zvcs_con_config
INTO TABLE i_zcond
WHERE ( zid = '001' ) OR
( zid = '002' ) OR
( zid = '003' ) OR
( zid = '004' ) OR
( zid = '005' ).
LOOP AT i_zcond.
SELECT kwert APPENDING TABLE i_add_cond FROM konv
WHERE knumv = lv_knumv_a AND kposn = i_add-ebelp
AND ( ( kschl EQ i_zcond-zcond1 ) OR
( kschl EQ i_zcond-zcond2 ) OR
( kschl EQ i_zcond-zcond3 ) OR
( kschl EQ i_zcond-zcond4 ) OR
( kschl EQ i_zcond-zcond5 ) OR
( kschl EQ i_zcond-zcond6 ) OR
( kschl EQ i_zcond-zcond7 ) OR
( kschl EQ i_zcond-zcond8 ) OR
( kschl EQ i_zcond-zcond9 ) OR
( kschl EQ i_zcond-zcond10 ) ).
ENDLOOP.
CLEAR : lv_kwert_total.
LOOP AT i_add_cond.
lv_kwert_total = lv_kwert_total + i_add_cond-kwert.
ENDLOOP.
CLEAR : lv_sum_a.
IF sy-subrc = 0.
lv_sum_a = lv_sum_a + lv_kwert_total.
SELECT SINGLE netwr netpr INTO (lv_netwr_a , lv_netpr_a)
FROM ekpo WHERE ebeln = i_add-ebeln AND ebelp = i_add-ebelp.
SELECT SINGLE erfmg INTO lv_erfmg_add FROM mseg
WHERE mblnr = i_mseg_m-mblnr AND ebeln = i_add-ebeln
AND ebelp = i_add-ebelp.
lv_sum_b = lv_sum_b + ( lv_erfmg_add * lv_netpr_a ) *
lv_sum_a / lv_netwr_a .
ENDIF.
ENDIF.
CLEAR : lv_kwert_a, lv_knumv_a , lv_netwr_a , lv_netpr_a ,
lv_erfmg_add.
ENDLOOP.
CLEAR: lv_sum_a.
Retrieve the returned
SELECT ebeln ebelp INTO TABLE i_add1 FROM mseg
WHERE ( bwart = '122' OR bwart = '124' OR bwart = '161' )
AND lfbnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp.
DELETE ADJACENT DUPLICATES FROM i_add1 COMPARING ebeln.
LOOP AT i_add1.
SELECT SINGLE knumv INTO lv_knumv_a1 FROM ekko
WHERE ebeln = i_add-ebeln.
IF sy-subrc = 0.
CLEAR : i_zcond_r,i_add_cond_r[], lv_kwert_total_r.
SELECT zcond1
zcond2
zcond3
zcond4
zcond5
zcond6
zcond7
zcond8
zcond9
zcond10
FROM zvcs_con_config
INTO TABLE i_zcond_r
WHERE ( zid = '001' ) OR
( zid = '002' ) OR
( zid = '003' ) OR
( zid = '004' ) OR
( zid = '005' ).
LOOP AT i_zcond_r.
SELECT kwert APPENDING TABLE i_add_cond_r FROM konv
WHERE knumv = lv_knumv_a1 AND kposn = i_add1-ebelp
AND ( ( kschl EQ i_zcond_r-zcond1 ) OR
( kschl EQ i_zcond_r-zcond2 ) OR
( kschl EQ i_zcond_r-zcond3 ) OR
( kschl EQ i_zcond_r-zcond4 ) OR
( kschl EQ i_zcond_r-zcond5 ) OR
( kschl EQ i_zcond_r-zcond6 ) OR
( kschl EQ i_zcond_r-zcond7 ) OR
( kschl EQ i_zcond_r-zcond8 ) OR
( kschl EQ i_zcond_r-zcond9 ) OR
( kschl EQ i_zcond_r-zcond10 ) ).
append i_add_cond.
ENDLOOP.
LOOP AT i_add_cond_r.
lv_kwert_total_r = lv_kwert_total_r + i_add_cond_r-kwert.
ENDLOOP.
IF sy-subrc = 0.
lv_sum_a1 = lv_sum_a1 + lv_kwert_total_r .
SELECT SINGLE netwr netpr INTO (lv_netwr_a1 , lv_netpr_a1)
FROM ekpo WHERE ebeln = i_add-ebeln.
CLEAR : i_erfmg.
SELECT erfmg INTO TABLE i_erfmg FROM mseg
WHERE ( bwart = '122' OR bwart = '124' OR bwart = '161' )
AND lfbnr = i_mseg_m-mblnr AND ebeln = i_mseg_m-ebeln
AND ebelp = i_mseg_m-ebelp. -
Has anybody out there ever created a DD250 invoice report using Oracle Reports. I am told that it is impossible to accomplish because it contains an extremely small font that you cannot use in Oracle Reports. Is this true or the person who told me this is wrong. Is anybody willing to share their experience with me.
Thanks a lot in advance,
Thomas Morgan
[email protected]Approximately what size fonts are you looking for? I know 9i goes down at least to 4 pt font. I'm assuming 6i would go that far too.
I doubt you would want to go below 4pt font anyway - thats super tiny. 8 is the lowest pt font listed in the drop down box, but just type in 4 and it will accept that.
Without seeing a link to a sample report, thats all I can say. I dont work with the DOD so I have no idea what a DD250 invoice looks like. -
Query, dicount on invoice report
Hello,
We have some items that are not discountable, so I created on item properties"discountable =yes/no".
On the invoice report I'd like to have the following:
Payable until xx.yy.zzzz: EUR XXXXX <sum of amount of discountable items & based upon BP payment terms discount rate and last date>, until xx.yy.zzzz: EUR <total amount and last date without discount>.
Example:
Payable until 14.02.2012 EUR 1960,00 (14 days 2%, 30 days Net.), until 28.02.2012 EUR 2000,00.
I know this is only for the report(paper and screen) and some tables will showup wrong data as the customer pays the discount amount.
Coresuite installed.
Thank you
MarcHi Jitin,
Thanks for you code sniplet, as you can see I played a bit with the SQL query:
SELECT
T0.DocNum AS 'Belegnummer',
SUM(T1.LineTotal) AS 'Betrag Zeilensumme', T0.DocTotal AS 'Gesamt', T5.Discount AS 'Skontowert',
(CAST (T0.DocTotal AS money)-(CAST (T0.DocTotal AS money)-(((SUM(CAST (T1.LineTotal AS money)1.1900)/(T5.Discount/100 + 1))+((CAST (T0.DocTotal AS money)/1.1900)-(SUM(CAST (T1.LineTotal AS money))))1.1900)))) AS 'Skontobereinigt'
FROM
dbo.OINV T0 FULL OUTER JOIN dbo.INV1 T1
ON T1.DocEntry = T0.DocEntry
FULL OUTER JOIN dbo.OITM T2
ON T2.ItemCode = T1.ItemCode
FULL OUTER JOIN dbo.OCRD T3
ON T1.BaseCard = T3.CardCode
FULL OUTER JOIN dbo.OCTG T4
ON T3.GroupNum = T4.GroupNum
FULL OUTER JOIN dbo.CDC1 T5
ON T4.DiscCode = T5.CdcCode
WHERE T2.QryGroup1 = (N'Y' )
GROUP BY T0.DocNum, T5.Discount , T0.DocTotal, T2.QryGroup1
so how can I get this into my invoice to be Shown like:
Zahlungskonditionen: 10 Tage abzüglich "T5.Discount/SkontoimGP" EUR "RN Betrag Skontoabzug", 30 Tage Netto
Thanks Marc -
AP payment without invoices, is it possibile ?
11i in ap, is it possibile to do the payment without invoices ?
The clients want to generate this journals directly:
DR Expense
CR Cash
They don't want to go through the "payables account".
If it is possibile , how to do that?
Thanks very much.Hi
With out an invoice you can not do a payment in AP.
I hope you can acheive the client accouting requirement though Subledger Accounting Method for payables as cash based accouting method.
Check if this suites your requirement.
Edited by: Madhav Guduguntla on Aug 30, 2010 4:35 PM -
How to create dynamic Invoice report based on Tax calculations
Hi Ppl,
I have an invoice report requirement. There are multiple line items in invoice and each line item will have a tax % and discount associated with it. Discount has to be applied at line item level. Tax will be applicable on resultant amount which respect to tax share on total amount. Below is example
Part# Tax Qty UnitPrice Amount Discount Net Value
1 12.5% 40 10 400 100 300
2 12.5% 50 20 1000 200 800
3 4% 10 30 300 50 250
SubTotal 1350
VAT 12.5% on 1100(300+800) 137.50
VAT 4% on 250 10
Total Amount 1497.5
I have created a static rtf which does all calculations correctly. I have hardcoded 12.5 and 4 % tax values for calculations. But issue is that taxes are changeable in future so I want to create dynamic template which takes care for tax calculations. I thought of to create an array to store distinct tax values from XML data and then to perform calculation but don’t know how to do that.
Can some body help me out as this is very critical and urgent?
Note: Tax calculation can be done at line item level itself but there are some scenarios where additional discounts are there so tax calculation can not be done at line item level.
Below is the sample XML data
<?xml version="1.0" encoding="UTF-8" ?>
- <ListOfBipActionTest>
- <Action>
<AccountId>1</AccountId>
<PartName>17211KCC900LS</PartName>
<TAX>12.5</TAX>
<QTY>40</QTY>
<UNITPRICE>47.06</UNITPRICE>
<DIS>15.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>2</AccountId>
<PartName>17213KCC900LS</PartName>
<TAX>12.5</TAX>
<QTY>50</QTY>
<UNITPRICE>19.53</UNITPRICE>
<DIS>8.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>3</AccountId>
<PartName>28302KAG900S</PartName>
<TAX>12.5</TAX>
<QTY>50</QTY>
<UNITPRICE>59.49</UNITPRICE>
<DIS>15.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>4</AccountId>
<PartName>2830AKAG900S</PartName>
<TAX>12.5</TAX>
<QTY>10</QTY>
<UNITPRICE>168.7</UNITPRICE>
<DIS>15.00</DIS>
<TaxType>CST</TaxType>
</Action>
- <Action>
<AccountId>4</AccountId>
<PartName>91001GF6000S</PartName>
<TAX>4.00</TAX>
<QTY>60</QTY>
<UNITPRICE>115.34</UNITPRICE>
<DIS>17.00</DIS>
<TaxType>CST</TaxType>
</Action>
</ListOfBipActionTest>
Thanks
AshishDear Efstratios Kara,
I installed SAP Integration Kit 3.1. Yes I installed the integration kit after installing CR.
I have uninstalled the earlier version and i have reinstalled CR with (12.3.0.601) version.
But still i cant view the SAP connectivity. can u tell me from which version they have included this connectivity option in CR.
If CR going to support SAP Table connectivity on specific version, what is that version.
Waiting for your reply.
Regards,
Suman -
See sql query from crystal report without crystal report
see sql query from crystal report without crystal report
Hi,
Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
Regards,
Craig
And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
Please click "Mark As Answer" if my post helped. Tony C. -
Invoices report that displays also the VAT number
Hi
I am looking for invoices report that displays also the customer/vendor name and its VAT registration number.
The customer invoices are SD invoices (can be displayed using the FI) and the supplier invoices are MM or FI invoices.
It is relevant for the supplier invoices (MM/FI) and for the customer invoices (two seperate reports)
Thanks
OferHi Edgar,
As per my understanding, std SAP report won't fulfill your requirement. Best approach would be a custom report where you can update the required fields.
Regards,
Chandru -
How to import pictures into excel sheet without using report generation
Dear Friends
I want to know how to import the picture or picture file into excel sheet without using report generation..
kindly come up with any suggestions or example code
Regards
Karthick
Solved!
Go to Solution.Thank you Rajesh
i am going through that vi
Rajesh Nair wrote:
Please go through below link
http://zone.ni.com/devzone/cda/epd/p/id/3638
Eventhough one subVI is missing i think it will be usefull for you.
Regards
Rajesh R.Nair
Rajesh Nair wrote:
Please go through below link -
hi experts,
I have an issue. I want to get the 'vendor invoice reporting' having the volume and as per the company code.
i am unable to get it using the BSAD, BSID tables. if I use BSEG for vendor type K, i am unable to get doc type, or posting date.
can anyone share ideas for which table to use to get the VENDOR INVOICE REPORT to get volume co.code wise.
thanking you in advance
priyankaHi,
What's wrong with FBL1N report?
Regards,
Eli -
Error when attempting to run auto invoice report
Hi,
We are currently using Oracle E-Business Suite 11.2. One of our users was attempting to run an Auto Invoice Report this morning and got an error occur. The log file shows the following:
SELECT INTERFACE_LINE_ID
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b5
AND L2.INTERFACE_LINE_CONTEXT = 'UPLS INVOICES'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE10 = L2.INTERFACE_LINE_ATTRIBUTE10
AND L1.LINK_TO_LINE_ATTRIBUTE11 = L2.INTERFACE_LINE_ATTRIBUTE11
AND L1.LINK_TO_LINE_ATTRIBUTE12 = L2.INTERFACE_LINE_ATTRIBUTE12
WHERE NVL(INTERFACE_STATUS, '~') != 'P'
AND (REQUEST_ID IS NULL OR REQUEST_ID IN (:b6)
AND EXISTS
SELECT 'x'
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b7
AND L2.INTERFACE_LINE_CONTEXT = 'UPLS INVOICES'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE10 = L2.INTERFACE_LINE_ATTRIBUTE10
AND L1.LINK_TO_LINE_ATTRIBUTE11 = L2.INTERFACE_LINE_ATTRIBUTE11
AND L1.LINK_TO_LINE_ATTRIBUTE12 = L2.INTERFACE_LINE_ATTRIBUTE12
len = 1171
Current system time is 09-OCT-2013 07:33:50
APP-AR-11526: ORA-01427: single-row subquery returns more than one row
UPDATE RA_INTERFACE_LINES L1
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE =
APP-AR-11526: 2913367/ar/src/autoinv/raamil.lpc 1333
UPDATE RA_INTERFACE_LINES L1
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE = sysdate,
LAST_UPDATED_BY = :b2,
LAST_UPDATE_LOGIN = :b3,
CUSTOMER_TRX_ID = NULL,
INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID,
RA_CUSTOMER_TRX_LINES_S.NEXTVAL),
SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
LINK_TO_LINE_ID =
Would someone be able to help me with this as my knowledge on Oracle is quite basic and the person who usually deals with these queries is out of the office.
Regards,
Jon DitchfieldThe error is
APP-AR-11526: ORA-01427: single-row subquery returns more than one row
A subquery that is supposed to return only one row is returning more than one. Most likely it is this query
SELECT 'x'
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b7
AND L2.INTERFACE_LINE_CONTEXT = 'UPLS INVOICES'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE10 = L2.INTERFACE_LINE_ATTRIBUTE10
AND L1.LINK_TO_LINE_ATTRIBUTE11 = L2.INTERFACE_LINE_ATTRIBUTE11
AND L1.LINK_TO_LINE_ATTRIBUTE12 = L2.INTERFACE_LINE_ATTRIBUTE12 -
Special Characters in the Invoice Report
I am working on Multi- Org Invoice report and it is displaying special characters in some of the fields for foreign languages, i tried to change the encoding but it didn't work, i am working on XML Publisher 5.0.
(In reports builder Report Builder 9.0.2.0.3) Default XML Prolog value: <?xml version="1.0"?>, i changed it to <?xml version="1.0" encoding="iso-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?> , But it didn't work.
Can someone help me on this issue.
Thanks!
Edited by: user8909874 on Jan 11, 2010 8:24 AMIt seems to be problem with specific font, I am using a different one and its working now. Thanks for your reponse.
Edited by: user8909874 on Jan 15, 2010 4:54 PM -
Question marks coming in the menu bar in the Z Invoice Report
Hello Everybody,
When I am executing the Zinvoice transaction code for my Invoice Report in my Development System and selecting the Get variant --> Variant name as VAR --> Clicking on the Execute button after that I am getting the following in the Menu bar :
?????????????????????Edit???????????????????????
Also when pressing the F1key for help for the Invoice Report I am not getting any help message screen.
Please provide the solution for above mention problem so that
I can get all the options in Menu bar and after pressing the F1 key Help message Screen should appear for my Invoice Report.
Thanks and Regards,
Ashish Thakkar.Hi Gareth,
I had found the solution to the problem which I am facing in ZInvoice report .The Solution is :
1]Keep your cursor on the Menu bar where ???????Edit???????? is coming .
2]Keep your cursor on print preview option an press F1 key and a new popup screen appears named technical information.In that screen double click on the function name and a new screen appears named "DISPLAY STATUS STANDARD_FULLSCREEN,Interface SAPLKKBL.In this screeen single click on "Check Syntax button" and than single click on "Activate" button available in Application Toolbar.
3] Than again move to my previous screen and now it shows the Proper menu bar as :
List Edit Goto Views Settings System Help instead of getting ??????Edit??????? in the menu bar.
Thanks and Regards,
Ashish Thakkar. -
How to purge the config without deleting reports
Hi all,
How to quisce the config without deleting reports from reports tab.
first I quisced and retired and then try to create the sonfig with the same name" it showing that name already exists"
If I purged the config and created the config with the same name, its creating successfully but all the reports are deleting.
Out TP is firing on us, if we delete the reports in reports tab.
Please suggest with new idea.
RegarsdHi ,
If I am not purging the config, I am getting below exception
2009.11.09 at 04:16:01:443: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error : Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:132)
at oracle.tip.adapter.b2b.data.DBContext.resetRuntime(DBContext.java:283)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:495)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
Caused by: Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.repos.core.driver.CatalogDriver.checkDirtyList(CatalogDriver.java:399)
at oracle.tip.repos.core.driver.CatalogDriver.setRuntimeActiveandQuiescing(CatalogDriver.java:523)
at oracle.tip.buslogic.common.ExecutionContextImpl.setRuntimeActiveandQuiescing(ExecutionContextImpl.java:799)
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:130)
... 4 more
2009.11.09 at 04:16:01:445: Thread-44: B2B - (DEBUG) DBContext commit: Enter
2009.11.09 at 04:16:01:450: Thread-44: Repository - (ERROR) Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.repos.core.driver.CatalogTransaction.changeObjectState(CatalogTransaction.java:184)
at oracle.tip.repos.core.driver.CatalogTransaction.commit(CatalogTransaction.java:1504)
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:70)
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:250)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:16:01:454: Thread-44: BusinessLogicLayer - (ERROR) Error -: AIP-11059: Invalid object {0} state {1} to persist
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:72)
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:250)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:16:01:457: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:256)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:16:01:463: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error : Error -: AIP-11059: Invalid object {0} state {1} to persist : Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:256)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
Caused by: Error -: AIP-11059: Invalid object {0} state {1} to persist : Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:72)
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:250)
... 4 more
Caused by: Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.repos.core.driver.CatalogTransaction.changeObjectState(CatalogTransaction.java:184)
at oracle.tip.repos.core.driver.CatalogTransaction.commit(CatalogTransaction.java:1504)
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:70)
... 5 more
2009.11.09 at 04:27:59:850: Thread-44: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Enter
2009.11.09 at 04:27:59:851: Thread-44: B2B - (DEBUG) DBContext beginTransaction: Enter
2009.11.09 at 04:27:59:863: Thread-44: B2B - (DEBUG) DBContext beginTransaction: Leave
2009.11.09 at 04:27:59:865: Thread-44: Repository - (ERROR) CatalogDriver - error switching context
2009.11.09 at 04:27:59:867: Thread-44: Repository - (ERROR) CacheService dirty list contains 1 entries
2009.11.09 at 04:28:00:836: Thread-44: Repository - (ERROR) Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.repos.core.driver.CatalogDriver.checkDirtyList(CatalogDriver.java:399)
at oracle.tip.repos.core.driver.CatalogDriver.setRuntimeActiveandQuiescing(CatalogDriver.java:523)
at oracle.tip.buslogic.common.ExecutionContextImpl.setRuntimeActiveandQuiescing(ExecutionContextImpl.java:799)
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:130)
at oracle.tip.adapter.b2b.data.DBContext.resetRuntime(DBContext.java:283)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:495)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:28:00:839: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:132)
at oracle.tip.adapter.b2b.data.DBContext.resetRuntime(DBContext.java:283)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:495)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:28:00:842: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error : Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:132)
at oracle.tip.adapter.b2b.data.DBContext.resetRuntime(DBContext.java:283)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:495)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
Caused by: Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.repos.core.driver.CatalogDriver.checkDirtyList(CatalogDriver.java:399)
at oracle.tip.repos.core.driver.CatalogDriver.setRuntimeActiveandQuiescing(CatalogDriver.java:523)
at oracle.tip.buslogic.common.ExecutionContextImpl.setRuntimeActiveandQuiescing(ExecutionContextImpl.java:799)
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:130)
... 4 more
2009.11.09 at 04:28:00:844: Thread-44: B2B - (ERROR) MsgListener:onMessage Activate DBContext failed with Exception - Error -: AIP-50025: Repository error
2009.11.09 at 04:28:00:847: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error : Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:132)
at oracle.tip.adapter.b2b.data.DBContext.resetRuntime(DBContext.java:283)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:495)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
Caused by: Error -: AIP-11435: Cannot switch configuration context when entries exist in Persistency Service dirty list. Transaction must be flushed before switching context.
at oracle.tip.repos.core.driver.CatalogDriver.checkDirtyList(CatalogDriver.java:399)
at oracle.tip.repos.core.driver.CatalogDriver.setRuntimeActiveandQuiescing(CatalogDriver.java:523)
at oracle.tip.buslogic.common.ExecutionContextImpl.setRuntimeActiveandQuiescing(ExecutionContextImpl.java:799)
at oracle.tip.adapter.b2b.data.B2BExecutionContext.setRuntimeActiveAndQuiescing(B2BExecutionContext.java:130)
... 4 more
2009.11.09 at 04:28:00:849: Thread-44: B2B - (DEBUG) DBContext commit: Enter
2009.11.09 at 04:28:01:838: Thread-44: Repository - (ERROR) Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.repos.core.driver.CatalogTransaction.changeObjectState(CatalogTransaction.java:184)
at oracle.tip.repos.core.driver.CatalogTransaction.commit(CatalogTransaction.java:1504)
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:70)
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:250)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:28:01:842: Thread-44: BusinessLogicLayer - (ERROR) Error -: AIP-11059: Invalid object {0} state {1} to persist
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:72)
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:250)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:28:01:844: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:256)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2009.11.09 at 04:28:01:850: Thread-44: B2B - (ERROR) Error -: AIP-50025: Repository error : Error -: AIP-11059: Invalid object {0} state {1} to persist : Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:256)
at oracle.tip.adapter.b2b.msgproc.DbAccess.doCommit(DbAccess.java:2485)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:505)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
Caused by: Error -: AIP-11059: Invalid object {0} state {1} to persist : Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:72)
at oracle.tip.adapter.b2b.data.DBContext.commit(DBContext.java:250)
... 4 more
Caused by: Error -: AIP-11059: Invalid object BusinessMessage_C58F state 2 to persist
at oracle.tip.repos.core.driver.CatalogTransaction.changeObjectState(CatalogTransaction.java:184)
at oracle.tip.repos.core.driver.CatalogTransaction.commit(CatalogTransaction.java:1504)
at oracle.tip.buslogic.common.Transaction.commit(Transaction.java:70)
... 5 more
Maybe you are looking for
-
Same trouble, problem moving my itunes library to an external hard drive
sorry to post this again, but my original question got confused with another in its proper thread. hi, i recently bought an external hard drive to save space on my internal HD, i tried to move my ITUNES music folder to the new external drive, which i
-
Anyone NOT having problems with ITunes 8 and latest firmware update???
I have really been put off updating to ITunes 8. The firmware update appears to be doing well. Is there anyone that uses a MacBook like myself who have had absolutely NO problems with new Itunes and firmware update? Answers on the back of a £50 note.
-
Cloning tool not working in LR 5
Cloning tool is not working but healing tool is. Anyone else having this problem and if so how can it be fixed?
-
Why net discount base is amount included tax in t-code F-53 but not in FBZ2
dear all expert SAP consultant i am here need your help..i have case where the discount amount in F-53 is different with FBZ2. but all the configuration and amount in the both transaction are the same even the currency. for the detail here is scenari
-
No stock posting for this material
I have create a material with item category LEIH for returnable packaging,while doing stock posting in MB1C error comes as "No Cmaterial posting for this material".plz help how to post the material.