New G/L line item extractor 0FI_GL_14
Hi,
has anyone worked with the new G/L line item extractor 0FI_GL_14 already? I know that this line items extractor uses function module FAGL_GET_LINE_ITEMS and extract structure FAGLPOSBW.
Does anyone have the coding for this function module?
Thanks
Christian
Hi,
Please find the code
FUNCTION fagl_get_si_data.
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SBIWA_S_INTERFACE-REQUNR
*" VALUE(I_ISOURCE) TYPE SBIWA_S_INTERFACE-ISOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SBIWA_S_INTERFACE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SBIWA_S_INTERFACE-INITFLAG OPTIONAL
*" VALUE(I_UPDMODE) TYPE SBIWA_S_INTERFACE-UPDMODE OPTIONAL
*" VALUE(I_DATAPAKID) TYPE SBIWA_S_INTERFACE-DATAPAKID OPTIONAL
*" VALUE(I_CALLMODE) TYPE RSAZT_CALLMODE OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SBIWA_T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SBIWA_T_FIELDS OPTIONAL
*" E_T_FAGLPOSBW STRUCTURE FAGLPOSBW OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
STATICS:
sd_flag_interface_initialized TYPE boole_d,
sd_counter_datapakid TYPE sbiwa_s_interface-datapakid,
sd_step_extrmode TYPE rsazt_extrmode,
sd_no_more_data TYPE boole_d,
sd_cursor_open TYPE string,
sd_max_lines LIKE sy-tabix,
sd_updmode LIKE i_updmode,
sd_rldnr TYPE rldnr.
DATA:
ld_rldnr TYPE rldnr,
lt_select TYPE sbiwa_t_select,
ls_select TYPE sbiwa_s_select,
ld_syst_date TYPE d,
ld_syst_time TYPE t,
ld_utc_timestamp TYPE timestamp,
lt_select_int TYPE gusl_t_selection,
lt_fields_int TYPE gusl_t_fields,
ld_cursor_flag TYPE flag,
lt_faglpose TYPE faglpose_t.
CASE i_callmode.
WHEN rsazt_c_callmode-selscreen OR
rsazt_c_callmode-selcheck.
not supported yet
WHEN rsazt_c_callmode-extraction.
initialization mode (first call by SAPI) or data transfer mode
IF i_initflag = sbiwa_c_flag_on.
Initialization
Invalid second initialization call -> error exit
IF NOT sd_flag_interface_initialized IS INITIAL.
IF 1 = 2. MESSAGE e008(r3). ENDIF.
MESSAGE ID 'R3' TYPE 'E' NUMBER '008'
RAISING error_passed_to_mess_handler.
ENDIF.
Check for supported update mode
CASE i_updmode.
WHEN sbiwa_c_updmode_full.
WHEN sbiwa_c_updmode_deltainit.
WHEN sbiwa_c_updmode_delta.
WHEN sbiwa_c_updmode_init.
WHEN sbiwa_c_updmode_repeat.
WHEN OTHERS.
IF 1 = 2. MESSAGE e011(r3) WITH i_updmode. ENDIF.
MESSAGE ID 'R3' TYPE 'E' NUMBER '011' WITH i_updmode
RAISING error_passed_to_mess_handler.
ENDCASE.
sd_flag_interface_initialized = sbiwa_c_flag_on.
initialize change pointer
PERFORM initialize_change_pointer.
get relevant ledger.
PERFORM get_relevant_ledger
USING i_isource
CHANGING ld_rldnr.
build selection table
lt_select[] = i_t_select[].
LOOP AT lt_select INTO ls_select
WHERE fieldnm = c_fieldname_rldnr.
IF ls_select-low <> ld_rldnr OR
( ls_select-high <> ld_rldnr AND
ls_select-option = 'BT' ).
IF 1 = 2. MESSAGE e014(r3). ENDIF.
MESSAGE ID 'R3' TYPE 'E' NUMBER '014'
RAISING error_passed_to_mess_handler.
ENDIF.
ENDLOOP.
IF NOT sy-subrc IS INITIAL.
CLEAR ls_select.
ls_select-fieldnm = c_fieldname_rldnr.
ls_select-sign = 'I'.
ls_select-option = 'EQ'.
ls_select-low = ld_rldnr.
APPEND ls_select TO lt_select.
ENDIF.
sd_rldnr = ld_rldnr.
convert timestamp from SYS -> UTC
The TIMESTAMP provided by S-API is always in local time (SYS),
and the timestamp in the FlexGL tables is stored as UTC.
LOOP AT lt_select INTO ls_select
WHERE fieldnm = c_fieldname_timestamp.
IF NOT ls_select-low IS INITIAL.
ld_syst_date = ls_select-low(8).
ld_syst_time = ls_select-low+8(6).
CALL METHOD cl_abap_tstmp=>systemtstmp_syst2utc
EXPORTING
syst_date = ld_syst_date
syst_time = ld_syst_time
IMPORTING
utc_tstmp = ld_utc_timestamp.
ls_select-low = ld_utc_timestamp.
ENDIF.
IF NOT ls_select-high IS INITIAL.
ld_syst_date = ls_select-high(8).
ld_syst_time = ls_select-high+8(6).
CALL METHOD cl_abap_tstmp=>systemtstmp_syst2utc
EXPORTING
syst_date = ld_syst_date
syst_time = ld_syst_time
IMPORTING
utc_tstmp = ld_utc_timestamp.
ls_select-high = ld_utc_timestamp.
ENDIF.
MODIFY lt_select FROM ls_select.
ENDLOOP.
convert selection into internal format
PERFORM convert_selection
USING lt_select
CHANGING lt_select_int.
convert fieldlist into internal format
PERFORM convert_fieldlist
USING i_t_fields[]
CHANGING lt_fields_int.
sd_max_lines = i_maxsize.
sd_updmode = i_updmode.
initialize database selection
CALL FUNCTION 'FAGL_GET_LINE_ITEMS'
EXPORTING
i_block_data = 'X'
i_block_size = sd_max_lines
i_selection = lt_select_int
i_fieldlist = lt_fields_int
i_initflag = i_initflag.
ELSE. "data extraction
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
REFRESH e_t_faglposbw.
IF sd_counter_datapakid = 0.
sd_step_extrmode = rsazt_c_extrmode-db.
ENDIF.
IF NOT sd_no_more_data IS INITIAL.
RAISE no_more_data.
ENDIF.
CASE sd_step_extrmode.
WHEN rsazt_c_extrmode-archive.
not supported
WHEN rsazt_c_extrmode-db.
database selection
IF sd_cursor_open IS INITIAL OR
sd_cursor_open = 'NEW'.
process database selection for new line items
CALL FUNCTION 'FAGL_GET_LINE_ITEMS'
EXPORTING
i_block_data = 'X'
i_block_size = sd_max_lines
IMPORTING
flag_cursor_open = ld_cursor_flag
CHANGING
c_t_faglpose = lt_faglpose.
IF ld_cursor_flag IS INITIAL.
CLEAR sd_cursor_open.
ELSE.
sd_cursor_open = 'NEW'.
ENDIF.
ENDIF.
IF sd_updmode = sbiwa_c_updmode_delta OR
sd_updmode = sbiwa_c_updmode_repeat.
IF sd_cursor_open IS INITIAL OR
sd_cursor_open = 'CHANGED'.
process database selection for changed line items
CALL FUNCTION 'FAGL_GET_LINE_ITEMS'
EXPORTING
i_block_data = 'X'
i_block_size = sd_max_lines
i_changed_records = 'X'
IMPORTING
flag_cursor_open = ld_cursor_flag
CHANGING
c_t_faglpose = lt_faglpose.
IF ld_cursor_flag IS INITIAL.
CLEAR sd_cursor_open.
ELSE.
sd_cursor_open = 'CHANGED'.
ENDIF.
ENDIF.
ENDIF.
there is no more data to read
IF ld_cursor_flag IS INITIAL.
sd_no_more_data = 'X'.
ENDIF.
fill additional bw fields
PERFORM convert_data
USING lt_faglpose
sd_rldnr
i_updmode
CHANGING e_t_faglposbw[].
ENDCASE.
ADD 1 TO sd_counter_datapakid.
ENDIF. "Initialization mode or data extraction ?
ENDCASE.
ENDFUNCTION.
Similar Messages
-
New G/L Line item Datasource 0FI_GL_14 not extracting exchange rate field
Hi,
We are implementing new G/L Line item datasource and standarad field of this datasource KURSE - exchange rate field not extracting data.
Debugged standard extractor function module but field for exchange rate is not populating even there is a value in the base table BKPF.
Please advise on this.
Thanks
UDAY
Edited by: Udaybi on Apr 12, 2011 5:30 AMDid you solve the issue? I am facing the same issue too.
-
No line item Extractor for New Ledger?
Hi,
we are currently converting our current ledger to the New ledger from SAP.
now it seems that there are only Totals Extractors as in
0FI_GL_10 and 3FI_GL_xx_TT.
so no Line item extractor.
is it possible to create such an extractor (like with a Special ledger?).
regs
rogierI was able to create a datasource using an SAP Infoset.
1. Create an infoset for only table FAGLFLEXA (tcode SQ02) in source system. Make sure you check the box for 'no automatic text recognition' to avoid generating text fields. include all fields from the table.
2. Go to RSO2 and create a datasource using the infoset.. Save your datasource without generating the generic delta. Ignore warnings for currency fields and save. Your currency will still be extracted.
3. Go to your created data source in RSO2 and create Generic Delta. I used Timestamp field with 1800 for the upper limit setting. This should create a generic delta datasource. -
New DataSources for Line Items from FI-GL, FI-AP, FI-AR
Dear Experts,
Kindly sugest the SAP Note's and SAP Document links on New DataSources for Line Items from FI-GL, FI-AP, FI-AR
for( 0FI_GL_14, 0FI_AR_14, 0FI_AP_14 ). and what is the advantage of using this data sources.
Currently we are using the Data Sources with ( 0FI_GL_4, 0FI_AR_4, 0FI_AP_4 ) and we want to migrate to ( 0FI_GL_14, 0FI_AR_14, 0FI_AP_14 ).
Please sugest in this regard.
Thanks&Regards,
Nagendra prasad.
Edited by: nagendra prasad on Jul 20, 2010 5:12 AM
Edited by: nagendra prasad on Jul 20, 2010 6:05 AMHi
Please find FI_GL_14 related links
[http://help.sap.com/saphelp_nw70/helpdata/en/49/5700570223413085021a8b4ef1087a/frameset.htm]
[http://help.sap.com/saphelp_nw70/helpdata/en/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/frameset.htm]
There is no FI_AR_14 and FI_AP_14. If you want more information directly goto help.sap.com you will find all the details.
Regards
YuvaraajP -
Add new column at line item level in MIR7 transaction
Hi All,
I would like to know how to add new column at line item level for GL Account
tab in MIR7 transaction. could you please let me know how do i add new
column in MIR7 transaction. Please let me know is there any user exit or any
other wat to do it.
Thanks,
raoHi,
The customer include CI_FMBL can only be used with FMPEP and not with other transaction like FMBB.
Technically speaking, the structure CI_FMBL must be part of many other interfaces like the one use by BAdI 'FMKU_BUDGET_EVNT'.
In order to add such customer fields in FMPEP, you have to use the BAdI 'FMBW_CUSTOMER'. For instruction, you have to look at the note 1356725 and the instruction of paragraph 30. Please read the instruction and start to do your implementation.
With the BAdI 'FMBW_CUSTOMER', you can use the PBO and PAI for handling the customer fields. There is no other place to populate these customer fields. Do you want to use customer fields in FMPEP? Please check note 1356725 for reference.
I believe this answer your inquiry.
Best Regards,
Vanessa Barth. -
Extract ECC 5.0 New GL transaction Line item to BI 7.0(delta enabled)
Hi all,
The back end system is ECC 5.0 and i need to extract New GL line item transaction level data (with document/transaction currency amount) to BI 7.0 .0FI_GL_4 datasource is on GLT0 table instead of NEW GL FAGLFLEXA and 0FI_GL_14 is available only from ECC 6.0onwards.What should be the approach/advice to accomplish this wth delta enabled
regards
savvyIn my previous implementation, what we followed was
We used 0FI_GL_10 to fill 0FIGL_O10 & 0FIGL_C10 for totals and
for line items load DSO 0FIGL_O02 through 0FI_GL_4
And we had drilldown (RRI) reports from C10 to O02 -
Create New Filed in Line Item Text Tab
Hi Experts,
How Can I create a new filed in Quotation > Line Item > Text Tab ?
Tks. & Brgds.
RiponHi,
Hope your requirement is to add one u2018Text typeu2019 in the line item of the sales order. Say you want to add u2018ITEM DETAILS_SOURCEu2019 in the line item text of sales order. Follow the steps given below.
1. SPRO >> SD >> Basic function >> Text Control. Click u2018Text Controlu2019
2. Click on u2018Define Text Typeu2019
3. Select u2018Sales Documentu2019 and then u2018Itemu2019
4. Click on u2018Changeu2019; select the Text procedure u2018Sales itemu2019 and click on u2018Text IDu2019
5. The text object is VBBP; Create a new u2018Text IDu2019; Go for a new entry and enter the sequence number (higher than the existing one); enter TEXT id as u2018ITEM DETAILS_SOURCEu2019; save
6. Now the new text id will be displayed at item text if you create a sales document that includes inquiry, quotation and sales order.
Hope this will be useful to you.
Regards,
K Bharathi -
FM code for New GL Extractor : 0FI_GL_14
Hi,
For G/L line item extractor 0FI_GL_14 the line items extractor uses function modules FAGL_GET_LINE_ITEMS and FAGL_GET_SI_DATA
Does anyone has the code for both Function Modules?
Thanks,
Prash.Hi
If you find them on R/3 system but they are still in german code.So you wont be able to understand the code.
Only you can get some assistance from help.sap.com then check how each has been coded to help you to write on your own.
Regards,
Chandu. -
PO line item copy to new PO doc.
Hi , one question PO line item copy to new PO doc.
if i made on PO docuemnt as bleow
10 Item1 20unit
20 Item2 10 unit
30 Intem3 20 Uni
and when I need to create new PO , if i wanna creat PO inclue only line time 10 ,20
how can i do it? could you pls kinldy adivse?
just copy POC totlay to new PO is very easy.. I already know that..Hello.
thanks so much for your answer.
I tried to create new PO as you told, but I failed again.
I could copy only one item into new PO document ( there are serveral item (material item , comsumer itme , )
but only material item copied to new PO (select item and adopt)
Could you pls kindly adivse?
I would like to copy several items from the old PO document and pastes those items on one new PO document
Step 1 - Type ME21N - Create Purchase order
Step 2 - Select PO document type, Vendor & PO date.
=================================================== ( by step 2 , this is just create new PO===
Step 3 - Click Document Overview button and open new window menu in PO screen left side
(Do you mean just clike Document overview? in the left screen? )
Answer : Yes, click on the Document Overview ON button and then open left side one small window.
Step 4 - Click Selection Variant button in the left side window menu and then select Purchase Order option.
(do you mean just select "my purchase order" button i the selection options?)
Answer : No, click on the 'Purchase Order' first option.
Step 5 - Now next screen open and give OLD Purchase Order document number in Purchasing Document ______ input field &
other input data filed is empty.
( I dont understand exactly what you mean, what's next screen? do mean open new session? or
just select old PO document via document overview window in the left side? )
Answer : Yes, after click 'Purchase Order' first option, it will open new session screen and on the screen input option is 'Purchasing Document ___________ . Here, you will give copy of the old PO number remaining input options data are empty.
Step 6 - Now Execute the screen and shown old PO number 3 times shown (10,20,30)
(What exactly do you mean? do you mean just click old PO number shown on the document overview? )
Answer : Yes, after execute the old PO number shown on the document overview screen.
( we can do if there is still PO number in the left pane , just clicking po number )
Step 7 - In the OLD PO first 2 line items are to be create new PO, Select 1st line using mouse and then adopt button click
(Selection variant next button), 2nd line select & adopted to new purchase order line item from old PO line item 10 & 20 copied.
(I wonder this answer , I followed as your instuction same way.. select itme 10 and adopt , and select item 20 and adopt
and in the new PO document just click adopt , in that case, only one item copied..
Could you pls make clear it? )
Step 8 - Click Document overview button, the left side window menu closed.
Step 9 - Adopted 2 line item rate, qty and tax details to be provide and then SAVE as new Purchase Order.
Hello, my answer provided for you question. Now, you are clear and resolved of old PO to new PO for the particular line items.
Regards,
K.Rajendran
Edited by: SAP toddler on May 14, 2011 9:50 AM -
Total and Line Item dataload (1 or 2 datasources)
Hi all,
When realignment happens on R/3 it does not update line items, only totals.
If you have been loading line items in BW how to you get the new "totals" when realignment happens? I read the notes that state COPA will decide what table to read when loading (most appropriate).
Do you need to create 2 datasources (1 for line item and 1 for totals) or does the system know (even when your loading line items) to update totals and read appropriate table?
Thanks, MikeHi Manfred,
Thanks for replying...
I have a COPA extractor that has line items selected in addition to totals.
When a realignment happens in R/3 I understand that it updates totals, but not line items.
When I load to BW I have a COPA ODS that I am leaving line item information in. Then updating "totals" to the InfoCube.
So I am not sure if the "totals" is getting updated after realignment because I have line item char's selected also in my datasource.
Do I need to worry about this, or simply when a realignment happens all I have to do is re-init and the "totals" will be updated to BW.
This is why I was asking if I should have 2 COPA datsources, 1 for line item the other for just totals (not selecting any line item char's). Then just update the line item extractor to ODS and update total extractor to InfoCube.
Thanks so much.
Mike -
Line item not displaying thru fbl3n
Hello Dear,
I am not able to see my posting document thru f-02 thru t.code fbl3n. I have checked the master data of the gls there is already tick in line item display. For it i run a programe that is RFSEPA01, after running this programe i am able to see my posted document but not current post document.
Pls help it is very urgent.
Thanks in advanceHi,
Although the question is not clear.
But before running the program, you must block the questioned GL account for posting and run the program and again unblock the same and execute FBL3N report.
Still , if you are not getting lines in FBL3N report, please check whether your new doc has line items in table BSEG or not thru SE16.
Regards,
Srinu -
Header and Line Item reporting (MultiProvider)
Hello All,
We have data coming in from a LO Extractor. There are 2 extractors. 1 for line item the other for Header. The line item extractor has all the fields for both so we decided to use this extractor (the line item).
Question is, when extracting this data multiple records come over. Let's say the order has 2 line items. It brings over a header record and then 2 line item records. We have it going to an ODS and then Cube. The ODS key is order number and item. Well the header record comes over with item number #, so 3 records hit the ODS.
How do you handle this? We saw something about denormalization and make this header record item number a 0.
Can someone explain to us how to handle this? We also read about a Constant selection and loading the header record and line item as we are to both the InfoCube, but we just don't understand this solution.
Please help, Thank youItem level will have all fields those are in Header level.Header level data will be a subset of Item level data.Load only Item level and when you require header data remove Item number in that relevant DSO and you can see all the data summarized to header level in overwrite mode.
This will not be good option if you require some fields that may have different records in the header and the item.
One better option is create a secondary staging DSO that updated by header, item and schedule line level and you can choose your own data fields and key fields. You can update them in overwrite mode to have summarized records that avoids duplication of records from header and item for same document.
Constant selection wil be helpful in the report level not during load process.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e7/5f983c1a356858e10000000a114084/frameset.htm
This will ensure total displayed is constant even after navigation. So it hides repetitive records displaying after drilldown. -
Additional table in MA line item
All,
We have a requirement to add an additional table in the line items / line items terms of a master agreement.
The table should have a condition type, currency and vendor fields.
I see that the line item cannot be extended.
I cannot use the line item specifications because of the multiple fields needed (not just an attribute and its value).
Is there a way I can achieve this?
Regards,
SubhasiniHi
You can create a new collection for line items hiding the standard line item collection wherein you can modify the fields as desired.
Regards
Mudit Saini -
New PO from specific item of old PO doc
Hello ,
I have one qeustion about PO.
when I can not find PO on the left pane (PO overview )
I have to find that...(it is ok ) but when i try to copy specific item(lines) of PO
document.. to New PO
I coundn't.
Could you pls kindly let me know?Hi,
Your requirement is possible to adopted for the particular PO line item copied to new purchase order using T-code ME21N document overview option are as follows.
Step 1 - Type ME21N - Create Purchase order
Step 2 - Select PO document type, Vendor & PO date.
Step 3 - Click Document Overview button and open new window menu in PO screen left side
Step 4 - Click Selection Variant button in the left side window menu and then select Purchase Order option.
Step 5 - Now next screen open and give OLD Purchase Order document number in Purchasing Document ______ input field &
other input data filed is empty.
Step 6 - Now Execute the screen and shown old PO number with 5 times ( if old PO 5 line items are available)
Step 7 - In the OLD PO first 3 line items to create new PO, Select 1st line using mouse and then adopt button click
(Selection variant next button), 2nd line select & adopted and finally 3rd line select and then adopted. After adopted 3
lines are come to new purchase order line item.
Step 8 - Click Document overview button, the left side window menu closed.
Step 9 - Adopted 3 line item rate, qty and tax details to be provide and then SAVE as new Purchase Order.
Hope, the steps are very useful to you.
Regards,
K.Rajendran -
BAPI for Deletion of line Items from PR
Hi Experts,
I need to delete line items from Purchase Requisition when user check the check box.Check box available on output display i.e check box to delete item.
thanks,
santhosh.Use "BAPI_REQUISITION_CHANGE". Existing list of LIne items should be filled in the structure "REQUISITION_ITEMS_OLD" & New list of line items should be included in the structure "REQUISITION_ITEMS_NEW"
OLD - will contain the records currently in database.
NEW - fresh list of records (in your case exclude the line item which is to be deleted)
Regards
Vinod
Edited by: Vinod Kumar on Apr 14, 2010 3:36 PM
Maybe you are looking for
-
Disappearing Photo Albums in iWeb
I've seen so many posts on this topic here and elsewhere, but it never seems to be resolved. I had just added a new album to an iWeb created site this morning and though it was working correctly before this, now all of my albums are not showing up in
-
Pse 8.0 error message150:30 preventing program from running
pse 8.0 error message 150:30
-
Crash report,when i try to render in shake
**Does anybody understand this? Date/Time: 2010-10-22 21:37:04.351 -0700 OS Version: Mac OS X 10.6.4 (10F569) Report Version: 6 Interval Since Last Report: 426688 sec Crashes Since Last Report: 17 Per-App Crashes Since Last Report: 15 Anonymous UUID:
-
What's up with these error messages? I have been syncing my iPhone and Shuffle to my Mac Book Pro without a problem for several months. This morning the iPhone would not sync--iTunes said it did not recognize the iPhone and I needed to restore. The S
-
SOA: invalid security error
getting errors when testing or using interface in SOA. I have attached security policy: oracle/aia_wss_saml_or_username_token_service_policy_OPT_ON java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP F