Hi,
Have the same problem. Anjana, can you post the solution if you got it.
Thanks
Simon
Hi,
Have the same problem. Anjana, can you post the solution if you got it.
Thanks
Simon
Hi Methma,
These values are populated from a structure EK08G and sub structure EK08BN (Delivery Costs for Invoice Verification (New)).These structure populates values during run time.
Thanks,
Shakthi Raj Natarajan.
Fields in the Extract Structure | Description of the Field in the Extract Structure | Table of Origin | Field in the Table of Origin |
BELNR | Accounting document number | RBKP | BELNR |
BUZEI | Item in invoice document | RSEG | BUZEI |
GJAHR | Fiscal year | RBKP | GJAHR |
COBL_NR | Four-character running number for account assignment block | RBCO | COBL_NR |
ARKUEMW | VAT portion of automatic invoice reduction amount | RBKP | ARKUEMW |
ARKUEN | Automatic invoice reduction amount (net) | RBKP | ARKUEN |
BEZNK | Unplanned delivery costs | RBKP | BEZNK |
BKTXT | Document header text | RBKP | BKTXT |
BLDAT | Document date in document | RBKP | BLDAT |
BUDAT | Posting date in document | RBKP | BUDAT |
BUKRS | Company code | RBKP | BUKRS |
DIFFMW | VAT portion of invoice verification difference | RBEX | DIFFMW |
DIFFN | Document balance | RBEX | DIFFN |
IVTYP | Origin of a Logistics Invoice Verification document | RBKP | IVTYP |
LIEFFMW | VAT portion of vendor error | RBKP | LIEFFMW |
LIEFFN | Vendor error excluding VAT | RBKP | LIEFFN |
LIFNR | Different invoicing party | RBKP | LIFNR |
LOGSYS | Logical system | RBKP | LOGSYS |
MAKZMW | Manually accepted VAT amount | RBKP | MAKZMW |
MAKZN | Manually accepted difference amount net | RBKP | MAKZN |
MRM_ZLSPR | Logistics payment block | RBKPV | MRM_ZLSPR |
MWSKZ_BNK | Tax code | RBKP | MWSKZ_BNK |
RBSTAT | Invoice document status | RBKP | RBSTAT |
RMWWR | Gross invoice amount in document currency | RSEG | RMWWR |
STBLG | Number of reversal document | RBKP | STBLG |
STJAH | Fiscal year of reversal document | RBKP | STJAH |
WAERS | Currency key | DRSEG | WAERS |
WMWST1 | Tax amount in document with sign (+/-) | RBKP | WMWST1 |
XBLNR | Reference document number | RBKP | XBLNR |
XRECH | Indicator: Post invoice | RBKP | XRECH |
ZLSPR | Key for payment block | RBKP | ZLSPR |
AFNAM | Name of requester | DRSEG | AFNAM |
AREWR | Clearing value on GR/IR account in local currency | DRSEG | AREWR |
BASME | BOM base unit of measure | RSEG | MEINS |
BEWAE | Purchase order currency | DRSEG | BEWAE |
BPMNG | Quantity in purchase order price unit | RSEG | BPMNG |
BPRBM | Invoice quantity according to vendor invoice in PO price unit | RSEG | BPRBM |
BPREM | Invoice receipt quantity in PO price unit | DRSEG | BPREM |
BPRME | Purchase order price unit | RSEG | BPRME |
BPUMN | Denominator for conversion of OPUn into OUn | DRSEG | BPUMN |
BPUMZ | Numerator for conversion of OPUn into OUn | DRSEG | BPUMZ |
BPWEM | Goods receipt quantity in purchase order price unit | DRSEG | BPWEM |
BSMNG | Ordered quantity of purchase requisition | DRSEG | BSMNG |
BSTME | Purchase order unit | RSEG | BSTME |
EBELN | Purchasing document number | RSEG | EBELN |
EBELP | Purchasing document item number | RSEG | EBELP |
EKGRP | Purchasing group | DRSEG | EKGRP |
EKORG | Purchasing organization | EKKO | EKORG |
EREKZ | Final invoice indicator | RSEG | EREKZ |
HWAER | Currency key | DRSEG | HWAER |
KNTTP | Account assignment category | RSEG | KNTTP |
KONNR | Number of principal agreement | EKPO | KONNR |
KTPNR | Item number of principal agreement | EKPO | KTPNR |
LFBNR | Document number of a reference document | RSEG | LFBNR |
LFGJA | Fiscal year of the current period | RSEG | LFGJA |
LFPOS | Item in a reference document | RSEG | LFPOS |
LIFNR2 | Vendor account number | EKKO | LIFNR |
MATKL | Material/service group | DRSEG | MATKL |
MATNR | Material number | RSEG | MATNR |
MEINS | Base unit of measure | DRSEG | MEINS |
MENGE | Quantity | RSEG | MENGE |
NETPR | Net price in purchasing document in document currency | DRSEG | NETPR |
NETWR | Net value in document currency | DRSEG | NETWR |
NOQUANTITY | No quantity logic (document item without quantity) | DRSEG | NOQUANTITY |
PEINH | Price unit | DRSEG | PEINH |
PSTYP | Item category in purchasing document | RSEG | PSTYP |
RBMNG | Invoice quantity according to vendor invoice in purchase order unit | RSEG | RBMNG |
RBWWR | Invoice amount in document currency according to vendor invoice | RSEG | RBWWR |
REFWR | Entered invoice value in foreign currency | DRSEG | REFWR |
REMNG | Invoice receipt quantity | DRSEG | REMNG |
RETPO | Returns item | DRSEG | RETPO |
REWWR | Invoice amount in foreign currency | DRSEG | REWWR |
SHKZG | Debit/credit indicator | RSEG | SHKZG |
SPGRC | Blocking reason 'quality' | RSEG | SPGRC |
SPGRG | Blocking reason 'purchase order price quantity' | RSEG | SPGRG |
SPGRM | Blocking reason 'quantity' | RSEG | SPGRM |
SPGRP | Blocking reason 'price' | RSEG | SPGRP |
SPGRQ | Blocking reason 'manual' | RSEG | SPGRQ |
SPGRS | Blocking reason 'amount' | RSEG | SPGRS |
SPGRT | Blocking reason 'date/time' | RSEG | SPGRT |
SPGRV | Blocking reason 'project budget' | RSEG | SPGRV |
TBTKZ | Indicator: Subsequent debit | RSEG | TBTKZ |
TXZ01 | Short text | DRSEG | TXZ01 |
UMREN | Denominator for conversion into base units of measure | DRSEG | UMREN |
UMREZ | Numerator for conversion into base units of measure | DRSEG | UMREZ |
WEMNG | Goods receipt quantity | DRSEG | WEMNG |
WENWR | Accepted service value net in foreign currency | RSEG | WENWR |
WEPOS | Goods receipt indicator | DRSEG | WEPOS |
WERKS | Plant | RSEG | WERKS |
WEUNB | Goods receipt non-valuated | DRSEG | WEUNB |
WEWWR | Goods receipt value in foreign currency | DRSEG | WEWWR |
WRBTR | Amount in document currency | RSEG | WRBTR |
ANLN1 | Main asset number | RBCO | ANLN1 |
ANLN2 | Asset subnumber | RBCO | ANLN2 |
AREWW | Clearing value on GR/IR account in transaction currency | DRSEG | AREWW |
AUFNR | Order number | RBCO | AUFNR |
FIKRS | FM area | RBCO | FIKRS |
FIPOS | Commitment item | RBCO | FIPOS |
FISTL | Funds center | RBCO | FISTL |
FKBER | Functional area | RBCO | FKBER |
GEBER | Fund | RBCO | GEBER |
GSBER | Business area | RBCO | GSBER |
KOART | Account type | DRSEG | KOART |
KOKRS | Controlling area | RBCO | KOKRS |
KOSTL | Cost center | RBCO | KOSTL |
KTOPL | Chart of accounts | RBCO | KTOPL |
LSTAR | Activity type | RBCO | LSTAR |
NPLNR | Network number for account assignment | RBCO | NPLNR |
PAOBJNR | Number for profitability segments (CO-PA) | RBCO | PAOBJNR |
PRCTR | Profit center | RBCO | PRCTR |
PS_PSP_PNR | Work breakdown schedule (WBS) element | RBCO | PS_PSP_PNR |
SAKNR | G/L account number | RBCO | SAKNR |
VORNR | Transaction/event number | RBCO | VORNR |
ROCANCEL | Record type at time of extraction of Invoice Verification data (table/field of origin determined by extraction.) | - | — |
PRDIFF | Price Difference in Local Currency | BSEG |
Hi Folks,
I’ve issue in extracting data from 0PM_OM_OPA_3 datasource, this particular DS updating zero records since 1 month, issue surfaced post ECC SP upgrade at that time entries from BWOM_SETTINGS table has been deleted or gone missing. When I checked in DBTABLOG table there I found entries in BWOM_SETTINGS table was deleted with some background user GTUSTB***. So, I am curious to know culprit behind this. It will be great can someone help me in this regard. For more information regarding this issue you can go through note 2206082.
Thanks & Regards,
Harish
Hi Harish,
Take basis team help track the table data deletion logs thru SLG1 for past one month.
please explore Tx - SCU3
Thanks
Hello Raman,
Thanks for your quick revert, unfortunately I can't take BASIS help here because this guys did service pack upgrade activity and they are pretending nothing happen from there end, but I am curious to know entry in table won't be deleted without manual intervention!
And I checked above mentioned tcode but didn't get any fruitful info.
Thanks & Regards,
Harish
Hi Harish,
You misunderstood my statement.
Thru basis help, we can track all logs thru SLG1. for that purpose i requested to take basis team help.
At SLG1 we need to pass certain parameters to track table data deletion logs. Basis team might be aware of those.
Tx - SLG1 - is the place where we can track all logs information of server.
Thanks
Hi Team,
We are trying to load data from CRM to BW.
We have installed BW content for the below Info providers along with Datasource
0CRM_OPPT_I
0CRM_QUOT_ORDER_I
0SAL_DS01
0CRM_OPPH
But when we went back to ECC in RSA5 & RSA6 for activation.We do not find the datasource.
Based upon other forums, we came to know that we need to enable the datasource in BWA7 (T-Code) to get in RSA5 and BWA5 (T-code). After that we can do replication and modelling in BW.
Concern
We do not find the above related datasource in BWA7 (T-code)
Please suggest how to bring the Datasource in BW7 and get it activated so that we can replicate in SAP BW for data extraction.
Or suggest other ways to rectify
Environment :
BW 7.4
CRM 7.0
Thanks in advance
Regards,
MF
Please check at BWA1 and RSA9.
If not exist then take CRM functional help and activate Related business functions at Tx - SFW5.
After that you can check at RSA5/RSA9.
Hi Harish,
Did you have a look at the jobs running at the date/time of your DBTABLOG entry (transaction SM37) ?
That could give a hint...
Regards,
Frederic
I'm having similar problems - it falls over on line 424 - call to function module 'rsndi_shie_structure_get',
.. can be specified under 'E_T_HIERINTVL' - the currently specified field )" ") has the right type but its length is incorrect.
Any help appreciated.
Thanks.
Hi All,
I have written a FM that extracts data based on a certain logic. The data that is extracts is somewhere around 10,000 to 12,000 records. While the code has no errors and executes with correct output, the extraction takes a lot of time and generates a huge log. The job runs for around 2 days. The logic for the extraction is pretty straight forward and the code is short. All select statements are written according to the indexes. But I think there is something wrong with the code as such simple logic shouldn't take this amount of time.
I am basically querying DFKKOP but the problem is elsewhere.
The code is as shown below. It would be great if anyone can point out where the problem is.
-------------------------------------------------------------------------------------------------------------------------------------------
FUNCTION ZX_BIW_SD_SDJ_REFUND.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZEXT_SD_REFUND OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
*"----------------------------------------------------------------------
TABLES:ZEXT_SD_REFUND.
* Auxiliary Selection criteria structure
DATA: L_S_SELECT TYPE SRSC_S_SELECT.
* Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
s_strlen TYPE i,
* counter
S_COUNTER_DATAPAKID LIKE SY-TABIX,
* cursor
S_CURSOR TYPE CURSOR.
TYPES:BEGIN OF ty_DFKKOP,
MANDT TYPE DFKKOP-MANDT,
VKONT TYPE DFKKOP-VKONT,
AUGBL TYPE DFKKOP-AUGBL,
AUGDT TYPE DFKKOP-AUGDT,
AUGST TYPE DFKKOP-AUGST,
AUGRD TYPE DFKKOP-AUGRD,
BUKRS TYPE DFKKOP-BUKRS,
HVORG TYPE DFKKOP-HVORG,
TVORG TYPE DFKKOP-TVORG,
BETRW TYPE DFKKOP-BETRW,
END OF ty_DFKKOP.
TYPES:BEGIN OF ty_DFKKOP2,
MANDT TYPE DFKKOP-MANDT,
OPBEL TYPE DFKKOP-OPBEL,
VKONT TYPE DFKKOP-VKONT,
BUDAT TYPE DFKKOP-BUDAT,
AUGST TYPE DFKKOP-AUGST,
BUKRS TYPE DFKKOP-BUKRS,
HVORG TYPE DFKKOP-HVORG,
TVORG TYPE DFKKOP-TVORG,
BETRW TYPE DFKKOP-BETRW,
DIFF_AMT TYPE DFKKOP-BETRW,
END OF ty_DFKKOP2.
TYPES :BEGIN OF ty_FKKVKP,
MANDT TYPE FKKVKP-MANDT,
VKONT TYPE FKKVKP-VKONT,
ZLOCCODES TYPE FKKVKP-ZLOCCODES,
END OF ty_FKKVKP.
TYPES :BEGIN OF ty_DFKKKO,
MANDT TYPE DFKKKO-MANDT,
OPBEL TYPE DFKKKO-OPBEL,
ERNAM TYPE DFKKKO-ERNAM,
END OF ty_DFKKKO.
DATA: it_DFKKOP TYPE standard table of ty_DFKKOP,
wa_DFKKOP TYPE ty_DFKKOP,
it_DFKKOP_EXT TYPE standard table of ty_DFKKOP,
wa_DFKKOP_EXT TYPE ty_DFKKOP,
it_DFKKOP_EXT2 TYPE standard table of ty_DFKKOP,
wa_DFKKOP_EXT2 TYPE ty_DFKKOP,
it_DFKKOP2 TYPE standard table of ty_DFKKOP2,
wa_DFKKOP2 TYPE ty_DFKKOP2,
it_FKKVKP TYPE STANDARD TABLE OF ty_FKKVKP,
wa_FKKVKP TYPE ty_FKKVKP,
it_DFKKKO TYPE STANDARD TABLE OF ty_DFKKKO,
wa_DFKKKO TYPE ty_DFKKKO.
DATA: it_finallist1 TYPE standard table of ZEXT_SD_REFUND,
wa_finallist1 TYPE ZEXT_SD_REFUND.
* Select ranges
RANGES: S_DAT FOR ZEXT_SD_REFUND-ZZAUGDT.
RANGES: S_OPBEL FOR ZEXT_SD_REFUND-ZZOPBEL.
* Initialization mode (first call by SAPI) or data transfer mode
* (following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
************************************************************************
* Initialization: check input parameters
* buffer input parameters
* prepare data selection
************************************************************************
* Check DataSource validity
CASE I_DSOURCE.
* WHEN 'DATASOURCE NAME'.
WHEN 'ZDS_SD_ADJREF'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
* this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
* Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
* Fill field list table for an optimized select statement
* (in case that there is no 1:1 relation between InfoSource fields
* and database table fields this may be far from beeing trivial)
APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
ELSE. "Initialization mode or data extraction ?
************************************************************************
* Data transfer: First Call OPEN CURSOR + FETCH
* Following Calls FETCH only
************************************************************************
* First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
* Select ranges
RANGES: s_date FOR ZIUBIS_EXTRACTOR5-zdate.
RANGES: s_date1 FOR ZIUBIS_EXTRACTOR5-zdate.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'ZZAUGDT'.
s_date-sign = l_s_select-sign.
s_date-option = l_s_select-option.
s_date-low = l_s_select-low.
s_date-high = l_s_select-high.
s_date1-sign = l_s_select-sign.
s_date1-option = l_s_select-option.
s_date1-low = l_s_select-low.
s_date1-high = l_s_select-high.
APPEND s_date1.
s_strlen = STRLEN( l_s_select-low ).
IF s_strlen = 10.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = l_s_select-low
IMPORTING
date_internal = s_date-low
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF l_s_select-high <> space.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = l_s_select-high
IMPORTING
date_internal = s_date-high
EXCEPTIONS
date_external_is_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
APPEND s_date.
ENDLOOP.
IF s_date IS NOT INITIAL.
OPEN CURSOR WITH HOLD s_cursor FOR
SELECT MANDT VKONT AUGBL AUGDT AUGST AUGRD BUKRS HVORG TVORG BETRW
FROM DFKKOP
WHERE augdt IN s_date
and AUGST = '9'
AND BUKRS = 'WBDC'.
ENDIF.
ENDIF.
FETCH NEXT CURSOR s_cursor
APPENDING CORRESPONDING FIELDS OF
TABLE it_DFKKOP
PACKAGE SIZE s_s_if-maxsize.
IF sy-subrc <> 0.
CLOSE CURSOR s_cursor.
RAISE no_more_data.
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF.
DATA: S_AUGRD TYPE RANGE OF DFKKOP-AUGRD,
WA_AUGRD LIKE LINE OF S_AUGRD.
WA_AUGRD-sign = 'I'.
WA_AUGRD-option = 'EQ'.
WA_AUGRD-low = '01'.
append WA_AUGRD TO S_AUGRD.
WA_AUGRD-sign = 'I'.
WA_AUGRD-option = 'EQ'.
WA_AUGRD-low = '02'.
append WA_AUGRD TO S_AUGRD.
WA_AUGRD-sign = 'I'.
WA_AUGRD-option = 'EQ'.
WA_AUGRD-low = '03'.
append WA_AUGRD TO S_AUGRD.
WA_AUGRD-sign = 'I'.
WA_AUGRD-option = 'EQ'.
WA_AUGRD-low = '08'.
append WA_AUGRD TO S_AUGRD.
DELETE IT_DFKKOP WHERE HVORG NE '0020'.
DELETE IT_DFKKOP WHERE TVORG NE '0010'.
DELETE IT_DFKKOP WHERE AUGRD NOT IN S_AUGRD.
CLEAR : WA_DFKKOP.
IF IT_DFKKOP IS NOT INITIAL.
IT_DFKKOP_EXT[] = IT_DFKKOP[]. "All docs with Clearing Reason = '03'
IT_DFKKOP_EXT2[] = IT_DFKKOP[]. "All docs with Clearing Reason NE '03'
DELETE IT_DFKKOP_EXT WHERE AUGRD NE '03'.
ENDIF.
IF IT_DFKKOP IS NOT INITIAL. "For Location Code
SELECT MANDT VKONT ZLOCCODES
FROM FKKVKP
INTO TABLE IT_FKKVKP
FOR ALL ENTRIES IN IT_DFKKOP[]
WHERE VKONT = IT_DFKKOP-VKONT.
SELECT MANDT OPBEL ERNAM "For ERNAM
FROM DFKKKO
INTO TABLE IT_DFKKKO
FOR ALL ENTRIES IN IT_DFKKOP[]
WHERE OPBEL = IT_DFKKOP-AUGBL.
ENDIF.
"LOGIC FOR CLEARING REASON 03 ************************************
IF IT_DFKKOP_EXT IS NOT INITIAL.
SELECT MANDT OPBEL VKONT BUDAT AUGST BUKRS HVORG TVORG BETRW
FROM DFKKOP
INTO CORRESPONDING FIELDS OF TABLE IT_DFKKOP2
FOR ALL ENTRIES IN IT_DFKKOP_EXT[]
WHERE OPBEL = IT_DFKKOP_EXT-AUGBL
AND HVORG = '0250'
AND TVORG = '0010'.
ENDIF.
DELETE IT_DFKKOP2 WHERE BUKRS NE 'WBDC'.
DELETE IT_DFKKOP2 WHERE AUGST NE ''.
DATA : ADJAMT TYPE P DECIMALS 2.
SORT IT_DFKKOP2.
SORT IT_DFKKOP_EXT.
IF IT_DFKKOP2 IS NOT INITIAL.
LOOP AT IT_DFKKOP2 INTO WA_DFKKOP2.
READ TABLE IT_DFKKOP_EXT INTO WA_DFKKOP_EXT WITH KEY AUGBL = WA_DFKKOP2-OPBEL BINARY SEARCH.
IF SY-SUBRC = 0.
ADJAMT = WA_DFKKOP2-BETRW.
IF ADJAMT < 0.
ADJAMT = ADJAMT * -1.
ENDIF.
IF WA_DFKKOP_EXT-BETRW < 0.
WA_DFKKOP_EXT-BETRW = WA_DFKKOP_EXT-BETRW * -1.
ENDIF.
WA_DFKKOP2-DIFF_AMT = WA_DFKKOP_EXT-BETRW - ADJAMT.
MODIFY IT_DFKKOP2 FROM WA_DFKKOP2.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR : WA_DFKKOP2.
"LOGIC FOR CLEARING REASON 03 ************************************
"Direct amount update for Clearing Reason 01, 08 and 02***********
SORT IT_DFKKOP_EXT2.
SORT IT_FKKVKP.
SORT IT_DFKKKO.
DELETE IT_DFKKOP_EXT2 WHERE AUGRD EQ '03'.
IF IT_DFKKOP_EXT2 IS NOT INITIAL.
LOOP AT IT_DFKKOP_EXT2 INTO WA_DFKKOP_EXT2.
WA_FINALLIST1-ZZOPBEL = WA_DFKKOP_EXT2-AUGBL.
WA_FINALLIST1-ZZAUGDT = WA_DFKKOP_EXT2-AUGDT.
WA_FINALLIST1-ZZCURR = 'INR'.
IF WA_DFKKOP_EXT2-AUGRD = '08' OR WA_DFKKOP_EXT2-AUGRD = '01'.
WA_FINALLIST1-ZZBETRW1 = WA_DFKKOP_EXT2-BETRW * -1.
WA_FINALLIST1-ZZBETRW2 = '0'.
ELSEIF WA_DFKKOP_EXT2-AUGRD = '02'.
WA_FINALLIST1-ZZBETRW2 = WA_DFKKOP_EXT2-BETRW * -1.
WA_FINALLIST1-ZZBETRW1 = '0'.
ENDIF.
READ TABLE IT_FKKVKP INTO WA_FKKVKP WITH KEY VKONT = WA_DFKKOP_EXT2-VKONT BINARY SEARCH.
IF SY-SUBRC = 0.
WA_FINALLIST1-ZZLOCCODES = WA_FKKVKP-ZLOCCODES.
ENDIF.
READ TABLE IT_DFKKKO INTO WA_DFKKKO WITH KEY OPBEL = WA_DFKKOP_EXT2-AUGBL BINARY SEARCH.
IF SY-SUBRC = 0.
WA_FINALLIST1-ZZERNAM = WA_DFKKKO-ERNAM.
ENDIF.
APPEND WA_FINALLIST1 TO IT_FINALLIST1.
CLEAR : WA_FINALLIST1.
ENDLOOP.
ENDIF.
"Direct amount update for Clearing Reason 01, 08 and 02***********
IF IT_DFKKOP2 IS NOT INITIAL.
LOOP AT IT_DFKKOP2 INTO WA_DFKKOP2.
WA_FINALLIST1-ZZOPBEL = WA_DFKKOP2-OPBEL.
WA_FINALLIST1-ZZAUGDT = WA_DFKKOP2-BUDAT.
WA_FINALLIST1-ZZCURR = 'INR'.
WA_FINALLIST1-ZZBETRW1 = WA_DFKKOP2-DIFF_AMT.
WA_FINALLIST1-ZZBETRW2 = '0'.
READ TABLE IT_FKKVKP INTO WA_FKKVKP WITH KEY VKONT = WA_DFKKOP2-VKONT BINARY SEARCH.
IF SY-SUBRC = 0.
WA_FINALLIST1-ZZLOCCODES = WA_FKKVKP-ZLOCCODES.
ENDIF.
READ TABLE IT_DFKKKO INTO WA_DFKKKO WITH KEY OPBEL = WA_DFKKOP2-OPBEL BINARY SEARCH.
IF SY-SUBRC = 0.
WA_FINALLIST1-ZZERNAM = WA_DFKKKO-ERNAM.
ENDIF.
APPEND WA_FINALLIST1 TO IT_FINALLIST1.
CLEAR : WA_FINALLIST1.
ENDLOOP.
ENDIF.
IF it_finallist1[] IS NOT INITIAL.
e_t_data[] = it_finallist1[].
ENDIF.
ENDFUNCTION.
Hi Olzhas,
we had a Problem with the communication between our application Server and the db Server. Both are VMWare and at the host with the VM of DB Installation was too much traffic and not enough ressources.
We moved the VM to another host and solved this problem.
Hi Harshit
There should be issue with cursor which doesn't stop counting. Though there is no data packages to extract, the code keeps searching for the data.
We had the same issue with one of DS based on FM and we solved it by changing the counter datapackid from 0 to 5 (for my DS, it should be 5)
May be someone else will also give you some suggestions.
Remove the below code
*IF S_COUNTER_DATAPAKID = 0.
Add the below code
*Newly added code starts to check
IF S_COUNTER_DATAPAKID = 2 " try 1 first based on the number of data packages you have
RAISE NO_MORE_DATA.
ENDIF.
*Newly added code ends
*Below is existing step in middle of your code.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
This should work fine. Let us know if there is any challenges.
If this works, then consult with your ABAPer and correct the code as you wish foreseeing the future data loads.
Regards
Karthik
Hi all,
i'm trying to empty all queues from SMQ1 on the ERP System.
I have no problem with other datasources just by running the delta infopackage from BW, but datasource 0FI_GL_0L_TT always keeps a lot of data after delta running.
Any tips to solve this ?
thx
Dear Lopez,
The Deltas for this GL is based on TIMESTAMP....I hope you are clearing your deltas on a daily basis.
We can probably trigger the Infopak frequently in a day rather than once in a day.
rgds
SVU
Hi Harshit,
I'm not sure the tests your doing to test the emptiness of your internal tables before doing a FOR ALL ENTRIES are correct.
I generally use a
IF IT_DFKKOP[]IS NOT INITIAL
insteadt of
IF IT_DFKKOP IS NOT INITIAL
Regards,
Frederic
Hi,
I would advise to start loading that everyday shortly after midnight.
Some FIGL data sources don't see the data recorded on the same day. However I'm not sure if it is the case.
Regards, Leszek
for the record: your title mentions 3FI_GL_0L_TT, but your post mentions 0FI_GL_0L_TT (might be confusing to some people)
you should talk to your FI consultant/specialist, depending on how SL is setup in your company the actions to be taken will be different
Hi,
A lot of information can be found here:
You can also find several related SCN Discussions using Google; search with the following key words:
sap posdm extraction from ecc
Best regards,
Sander