Account Payables with Procurement data query
Hi Gurus,
Anyone who developed reports on a query of Account Payables with Procurement data.. the sources of fields are from R/3....
Can you provide me with the business content or the datasources you use?
Thanks..
Irish
Hi Irish,
The Datasources used are :
1. Purchasing 2LIS_02_S012
2. Purchasing Groups 2LIS_02_S011
3. Purchasing Data (Schedule Line Level) 2LIS_02_SCL
4. Purchasing Data (Header Level) 2LIS_02_HDR
5. Purchasing Data (Item Level) 2LIS_02_ITM
6. External Services 2LIS_02_S174
7. Vendor Evaluation 2LIS_02_S013
8. Vendor Evaluation Data 0MM_PUR_VE_01
9. Vendor Evaluation Data (Semi-Automatic) 0MM_PUR_VE_02
10. Subsequent Settlement - Evaluation 2LIS_02_S015
11. Allocation - Confirmation with Schedule Line 2LIS_02_SCN
12. Allocation - Confirmation with Goods Receipt 2LIS_02_CGR
13. Allocation - Schedule Line with Goods Receipt 2LIS_02_SGR
Hope this helps.
Regards
Hemant Khemani
Similar Messages
-
List of invoices paid in accounts payable with corresponding expense GL
Hi,
Need to know whether there ia any standard report in SAP ECC 6.0 version where we can get the list of all invoices paid in a period in A/Pwith corresponding expense GL Account. IF we need to build report painter report or query any idea which tables will contain all these information. If any one is having functional specification document it will be of great help.
Regards,
VipinHi,
- check in Easy Access->Accounting-> Fin Acctng->Accounts Payable-> Vendors:Items or Payment Transactions (like S_P99_41000099 or S_ALR_87012085 etc.,)
- relevant tables would be BSAK or BSEG
Rgds. -
How to delete account members with no data (EPMA)
Hi all,
I loaded an account hierarchy coming from SAP in EPMA and now that I have the data into my cube I need to remove all the branches which bottom have no data. I have a list of all used account, and the EPMA ads file, how would you approach this problem? At the moment the Account is a Sparse dimension which all non-bottoms are dynamic, I would like to have some tips before start approaching the problem in some weird way..
Thank you,
bidiYou could just go into EPMA and remove those members from the Dimension Library APPLICATION Pane (The one in the middle that appears when you are exiting an app) by right clicking and "Excluding" from the hierarchy.
-
Account IIB with no date....
One of my closed accounts included in my BK has no delinquent dates.....so how will I know when it will fall off ? It only has a Status date of 8/1/09 Thank you
Andy77 wrote:
Well the report I was looking at was Experien online. I noticed all the accounts included in my BK had lates showing at 30 days...however the discover account did not Like another poster stated, call and they will tell you. Is the report you are looking at the credit monitoring product or a full actual report? -
Account payable with payment block
how to assign one company code to two different controlling area, where do we define payment block reason ? Thanks
Hi,
One company code can be assigned to only one controlling area. However one controlling area can be assigned to multiple company codees. Refer below:-
http://help.sap.com/saphelp_erp60_sp/helpdata/en/08/513f4b43b511d182b30000e829fbfe/content.htm
You can define the payment block reasons in transaction OB27 and can define the default values for payment block in OBBC transaction.
Regards,
Gaurav -
Accounts payable report with PO reference - FBL1N
Hi
I need to see a report on accounts payable with the display of PO, profit center. I see report FBL1N wherein PO reference, profit center is not displayed even though selection field is there in the layout. kindly help me out.Hello,
Hope this article really helps you.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f6b256-23be-2b10-8b93-cad83a617634
Regards,
Ravi -
SRKIM: R12: Accounts Payable Trial Balance issue troubleshoot
Purpose
R12 에서 AP Trial Balance Report 확인 시 데이터가 비정상적일 경우 check 해야 하는 내용에 대해 확인 해 보도록 한다.
Question
R12 에서 invoice 생성 후 gl 로 transfer 하였으나 ap trial balance report 의 데이터가 비정상적인 것으로 확인 된다.
어떤 내용을 확인 해야 하는가.
Answer
1. APList Diagnostics Script 을 해당 invoice 에 대해 수행 하여 아래의 내용을 확인한다.
- Accounting 이 생성되어 gl로 모두 transfer 되었는지 여부.
- Accounting Date 가 Trial Balance Report 의 start date 와 as of date 안에 포함 되는지 여부
2.위의 내용에 문제가 없다면 아래 sql 로 데이터를 확인 해 보도록 한다.
select *
from xla_trial_balances
where source_entity_id in (
select entity_id
from xla.xla_transaction_entities xte
where application_id = 200
and (
(entity_code = 'AP_INVOICES' and source_id_int_1 in (&invoice_id))
OR
applied_to_entity_id in (
select entity_id
from xla.xla_transaction_entities xte
where application_id = 200
and (
(entity_code = 'AP_INVOICES' and source_id_int_1 in (&invoice_id))
3.GL 에 실제 해당 데이터가 존재 하는지 아래 sql 로 확인 해 보도록 한다.
SELECT distinct aeh.*
FROM gl_je_lines gjl, GL_IMPORT_REFERENCES gir, gl_je_headers gjh, GL_JE_BATCHES gjb, XLA_AE_LINES
ael,
XLA_AE_HEADERS aeh, XLA_EVENTS aea, xla.xla_transaction_entities xte
WHERE ael.gl_sl_link_id = gir.gl_sl_link_id
and gjh.je_batch_id= gjb.je_batch_id
and gjl.je_header_id = gjh.je_header_id
and gjl.je_header_id = gir.je_header_id
and gjl.je_line_num = gir.je_line_num
AND gir.gl_sl_link_table in ('XLAJEL')
and ael.gl_sl_link_table in ('XLAJEL')
AND aea.application_id = 200
AND aea.event_id = aeh.event_id
AND aeh.ae_header_id = ael.ae_header_id
AND gjb.je_batch_id = gir.je_batch_id
and xte.application_id = 200
and xte.entity_id = aea.entity_id
and gjh.je_header_id = gir.je_header_id
and gjh.je_source = 'Payables'
and (
(xte.entity_code = 'AP_PAYMENTS' and xte.source_id_int_1 = &check_id)
OR
(xte.entity_code = 'AP_INVOICES' and xte.source_id_int_1 = &invoice_id)
SELECT distinct gjl.*
FROM gl_je_lines gjl, GL_IMPORT_REFERENCES gir, gl_je_headers gjh, GL_JE_BATCHES gjb, XLA_AE_LINES
ael,
XLA_AE_HEADERS aeh, XLA_EVENTS aea, xla.xla_transaction_entities xte
WHERE ael.gl_sl_link_id = gir.gl_sl_link_id
and gjh.je_batch_id= gjb.je_batch_id
and gjl.je_header_id = gjh.je_header_id
and gjl.je_header_id = gir.je_header_id
and gjl.je_line_num = gir.je_line_num
AND gir.gl_sl_link_table in ('XLAJEL')
and ael.gl_sl_link_table in ('XLAJEL')
AND aea.application_id = 200
AND aea.event_id = aeh.event_id
AND aeh.ae_header_id = ael.ae_header_id
AND gjb.je_batch_id = gir.je_batch_id
and xte.application_id = 200
and xte.entity_id = aea.entity_id
and gjh.je_header_id = gir.je_header_id
and gjh.je_source = 'Payables'
and (
(xte.entity_code = 'AP_PAYMENTS' and xte.source_id_int_1 = &check_id)
OR
(xte.entity_code = 'AP_INVOICES' and xte.source_id_int_1 = &invoice_id)
4.위의 sql 을 통해 Trial Balance Table 의 데이타가 잘 못 생성 되었음이 확인 되면 해당 Trial balance table 의 데이타를 recreate 하는 작업을 수행 해야 한다.
Reference
Note. 553484.1 - THE R12 ACCOUNTS PAYABLE TRIAL BALANCE DATA IS
INCORRECT/WRONGFollow the below steps and Run the Trial Blance and let me know if it helps.
Thanks
Girish
How to Rebuild Trial Balance Data (repopulate XLA_TRIAL_BALANCES)
1. Navigate: Payables Responsibility > Setup > Accounting Setups > Subledger Accounting Setups > Open Account Balances Listing Definitions
2. Query up your Report Definition: select Defined By = Accounting Flexfield or Segment (whichever applies in your case), click “Go”
3. Click on Update icon in the "Actions" column – the definition's update page opens.
4. "Touch" the definition by simply clicking "Apply" button (without making any change).
This should start the “Open Account Balances Data Manager” concurrent processes -
Creation of Invoice for Accounts Payables - RERAIV
Hi Gurus,
I would like to create invoices (or in this case credit memos) to accounts payables with transaction RERAIV.
Is this possible. Can I influance this via an enhancment?
thx in advance,
br, ChristianHi,
yes the contract type is 0-External Contract.
I have now analysed the programm in detail. I seems that it will be not possible to create invoices to vendors without a modifikation.
In the class "CL_RECN_CONTRACT" there is a check with method IS_DEBIT, which forbits the creation.
WIth some modifcations it is no possible to create invoices to vendors from planed positions, not from posted.
I will inform you about my solution.
br, christian -
AP Invoice Aging Report by GL Date (using: Accounts Payable Trial Balance)
Hi
Need some suggestions:
I need to develop a custom report in (R12).
Account Payable Trial Balance Report, does have the capability to run as of a particular date but it does not show aging buckets. This custom report is to be developed to meet the requirements from a Payables detail perspective as well as to reconcile.
The report should show the balance due as of the report date selected. If As of Date = 5/31/11, then when the report is run on 6/15/11, it gives the results as it existed on 5/31/11. If we run it again on 8/31/11 for As of Date = 5/31/11, and again on 1/13/12, we get the EXACT SAME results each and every time except for the following fields: Current Status, Date Paid and Payment Reference Number.
The end result should be this report ties to the penny to Oracle GL as of the date selected EXCEPT for any JEs posted to the account.
Thanks
PravinHi Pravin,
For all transactions in Oracle, you will have GL dates (Accounting Dates) associated to it. If you use this date in your query to filter data, then you will get correct aging data as on a given date.
To tally with GL, you also must check if the selected transaction has been accounted?
Raajkumar G -
Hi Guys,
What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10?
I have to write an AP Invoice Aging Report in Discoverer to show all unpaid invoices that have been transferred into GL... Business wants it to match one-to-one with the AP Trial Balance standard report...
Business wants to run the report for any date in a past...
The report has two parameters:
As Of Date - the same as As of Date for the AP Trial Report
Trial Balance Run Date - the date when Trial Balance was run...
Conditions are:
TRUNC(Invoice Date) <=TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
TRUNC(NVL(Payment Date,'01-JAN-5000')) > TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
TRUNC(Invoice Creation Date) <= TRUNC(NVL(TO_DATE(:Trial Balance Run Date),SYSDATE))
Distr Accounting Date <= TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
NVL(Distr Creation Date,Invoice Creation Date) <= TRUNC(NVL(TO_DATE(:Trial Balance Run Date),SYSDATE))
Show_Flag = 'YES', where:
Show_Flag = CASE WHEN ( NVL(Cancelled Date,'01-JAN-1901') > NVL(:As Of Date,SYSDATE) AND NVL(Inv Amount Aud,0) = 0 ) THEN 'YES' ELSE ( CASE WHEN NVL(Inv Amount Aud,0) = 0 THEN 'NO' ELSE 'YES' END ) END
There is a difference between the logic of my report, and the logic of AP Trial Balance...
Could you please advise what I'm missing?
Thanks,
IanaWhat is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10? You can get the code by opening the report in Reports Builder and get the query.
Or, enable trace/debug as per (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]).
Thanks,
Hussein -
Hi All
Cud any one provide sample code how to upload accounts payable master data?
thnx in advance,
Pavani.Hi
Account Payables means the amounts that are to be paid to vendor against the purchase we made
So here the master data menas the VENDOR, MATERIAL data
see the related BDC programs
REPORT zmm_mat_master_non_stock
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Standard Include for Selection Screen
INCLUDE bdcrecx1.
Internal Table for Upload Data
DATA: BEGIN OF i_mat OCCURS 0,
mbrsh(001), " Industry Sector
mtart(004), " Material Type
Views
Organization Levels
werks(004), " Plant
Basic Data1 View
maktx(040), " Material Description
meins(003), " Unit of Measure
matkl(009), " Material Group
MTPOS_MARA(004), " Gen Item Category
Purchasing
ekgrp(003), " Purchasing Group
END OF i_mat.
Data Variables & Constants
CONSTANTS : c_x VALUE 'X'. " Flag
Parameters
PARAMETERS: p_file LIKE ibipparms-path. " Filename
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start of Selection
START-OF-SELECTION.
Open the BDC Session
PERFORM open_group.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_mat
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Upload the Data from Internal Table
LOOP AT i_mat.
Basic Screen
PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RMMG1-MBRSH'
'C'."i_mat-mbrsh.
PERFORM bdc_field USING 'RMMG1-MTART'
'NLAG'."i_mat-mtart.
Views Selection
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(08)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'
c_x."i_mat-kzsel_01.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(02)'
c_x."i_mat-kzsel_02.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(08)'
c_x."i_mat-kzsel_08.
Organization Levels
PERFORM bdc_dynpro USING 'SAPLMGMM' '0080'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-WERKS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'RMMG1-WERKS'
'2000'."i_mat-werks.
Basic data1 View
PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'MAKT-MAKTX'
i_mat-maktx.
PERFORM bdc_field USING 'BDC_CURSOR'
'MARA-MTPOS_MARA'.
PERFORM bdc_field USING 'MARA-MEINS'
'EA'."i_mat-meins.
PERFORM bdc_field USING 'MARA-MATKL'
i_mat-matkl.
PERFORM bdc_field USING 'MARA-MTPOS_MARA'
'NLAG'."i_mat-mtpos_mara.
Basic data2 View
PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MAKT-MAKTX'.
Purchasing View
PERFORM bdc_dynpro USING 'SAPLMGMM' '4000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
PERFORM bdc_field USING 'MARC-EKGRP'
i_mat-ekgrp.
Call The Transaction
PERFORM bdc_transaction USING 'MM01'.
ENDLOOP.
Close the BDC Session
PERFORM close_group.
REPORT zmm_vendor_master_upload
NO STANDARD PAGE HEADING
LINE-SIZE 255.
ABAP Name : ZMM_VENDOR_MASTER_UPLOAD
Description : This Program is used to Upload the Vendor Master.
Standard Include for Selection Screen
INCLUDE bdcrecx1.
Internal Table for Upload Data
DATA: BEGIN OF i_vendor OCCURS 0,
bukrs(004), " Company Code
ekorg(004), " Purchase Orgn
ktokk(004), " Account Group
Address Screen
anred(015), " Title
name1(035), " Name1
sortl(010), " Sort Field
name2(035), " Name2
name3(035), " Contact Person1
name4(035), " Contact Person 2
stras(035), " Street
pfach(010), " PO Box
ort01(035), " City
pstlz(010), " Postal Code
land1(003), " Country
spras(002), " Language
telf1(016), " Telephone No
telfx(031), " Fax Number
lfurl(132), " URL-Mail Id
Material Group Characteristics
klart(003), " Class Type '010'
class(018), " Class 'Vendor'
mname_01(030), " Characteristic
mname_02(030), " Characteristic
mname_03(030), " Characteristic
mwert_01(030), " Charct.Value
mwert_02(030), " Charct.Value
mwert_03(030), " Charct.Value
Control Data
emnfr(010), " Manufact.Part No
Bank Details
banks_01(003), " Country of Bank1
banks_02(003), " Country of Bank2
bankl_01(015), " Bank Key of 1
bankl_02(015), " Bank Key of 2
bankn_01(018), " Account No Bank1
bankn_02(018), " Account No Bank2
Accounting Info
akont(010), " Reconcillation Account
zuawa(003), " Sort Key
fdgrv(010), " Cash Management Group
Payment Transactions
zterm(004), " Payment terms
reprf(001), " Check Double Inv.
zwels(010), " Payment Method
hbkid(005), " House Bank
xpore(001), " Individ.Payment
Correspondence
mahns(001), " Dunning Level
xausz(001), " Account Statement
Withholding Tax Details
qland(003), " Withholding Tax Country
witht_01(002), " WH tax Type
wt_withcd(002), " WH Tax Code
wt_subjct(001), " Indicator:WH Tax
Purchasing Data
waers(005), " Currency
zterm1(004), " Payment Terms
END OF i_vendor.
Data Variables & Constants
CONSTANTS : c_x VALUE 'X'. " Flag
Paramters
PARAMETERS: p_file LIKE ibipparms-path. " Filename
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start of Selection
START-OF-SELECTION.
Open the BDC Session
PERFORM open_group.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_vendor
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Upload the Data from Internal Table
LOOP AT i_vendor.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-BUKRS'
i_vendor-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
i_vendor-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
i_vendor-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-SPRAS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=KLAS'.
PERFORM bdc_field USING 'LFA1-ANRED'
i_vendor-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
i_vendor-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
i_vendor-sortl.
PERFORM bdc_field USING 'LFA1-NAME2'
i_vendor-name2.
PERFORM bdc_field USING 'LFA1-NAME3'
i_vendor-name3.
PERFORM bdc_field USING 'LFA1-NAME4'
i_vendor-name4.
PERFORM bdc_field USING 'LFA1-STRAS'
i_vendor-stras.
PERFORM bdc_field USING 'LFA1-PFACH'
i_vendor-pfach.
PERFORM bdc_field USING 'LFA1-ORT01'
i_vendor-ort01.
PERFORM bdc_field USING 'LFA1-PSTLZ'
i_vendor-pstlz.
PERFORM bdc_field USING 'LFA1-LAND1'
i_vendor-land1.
PERFORM bdc_field USING 'LFA1-SPRAS'
i_vendor-spras.
PERFORM bdc_field USING 'LFA1-TELF1'
i_vendor-telf1.
PERFORM bdc_field USING 'LFA1-TELFX'
i_vendor-telfx.
PERFORM bdc_field USING 'LFA1-LFURL'
i_vendor-lfurl.
PERFORM bdc_dynpro USING 'SAPLCLCA' '0602'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMCLF-KLART'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'RMCLF-KLART'
'010'. "i_vendor-klart.
PERFORM bdc_dynpro USING 'SAPLCLFM' '0500'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMCLF-CLASS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=AUSW'.
PERFORM bdc_field USING 'RMCLF-CLASS(01)'
'Vendor'."i_vendor-class.
PERFORM bdc_dynpro USING 'SAPLCTMS' '0109'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RCTMS-MWERT(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'.
PERFORM bdc_field USING 'RCTMS-MNAME(01)'
'MATERIALGROUP'." i_vendor-mname_01.
PERFORM bdc_field USING 'RCTMS-MNAME(02)'
'MATERIALGROUP'." i_vendor-mname_02.
PERFORM bdc_field USING 'RCTMS-MNAME(03)'
'MATERIALGROUP'." i_vendor-mname_03.
PERFORM bdc_field USING 'RCTMS-MWERT(01)'
i_vendor-mwert_01.
PERFORM bdc_field USING 'RCTMS-MWERT(02)'
i_vendor-mwert_02.
PERFORM bdc_field USING 'RCTMS-MWERT(03)'
i_vendor-mwert_03.
PERFORM bdc_dynpro USING 'SAPLCLFM' '0500'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMCLF-CLASS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENDE'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-ANRED'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-EMNFR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFA1-EMNFR'
i_vendor-emnfr.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFBK-BANKS(01)'
i_vendor-banks_01.
PERFORM bdc_field USING 'LFBK-BANKS(02)'
i_vendor-banks_02.
PERFORM bdc_field USING 'LFBK-BANKL(01)'
i_vendor-bankl_01.
PERFORM bdc_field USING 'LFBK-BANKL(02)'
i_vendor-bankl_02.
PERFORM bdc_field USING 'LFBK-BANKN(01)'
i_vendor-bankn_01.
PERFORM bdc_field USING 'LFBK-BANKN(02)'
i_vendor-bankn_02.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFB1-AKONT'
i_vendor-akont.
PERFORM bdc_field USING 'LFB1-ZUAWA'
i_vendor-zuawa.
PERFORM bdc_field USING 'LFB1-FDGRV'
i_vendor-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-XPORE'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFB1-ZTERM'
i_vendor-zterm.
PERFORM bdc_field USING 'LFB1-REPRF'
c_x. "i_vendor-reprf.
PERFORM bdc_field USING 'LFB1-ZWELS'
i_vendor-zwels.
PERFORM bdc_field USING 'LFB1-HBKID'
i_vendor-hbkid.
PERFORM bdc_field USING 'LFB1-XPORE'
c_x. "i_vendor-xpore.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFB5-MAHNS'
i_vendor-mahns.
PERFORM bdc_field USING 'LFB1-XAUSZ'
i_vendor-xausz.
PERFORM bdc_dynpro USING 'SAPMF02K' '0610'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBW-WT_SUBJCT(01)'.
PERFORM bdc_field USING 'LFB1-QLAND'
i_vendor-qland.
PERFORM bdc_field USING 'LFBW-WITHT(01)'
i_vendor-witht_01.
PERFORM bdc_field USING 'LFBW-WT_WITHCD(01)'
i_vendor-wt_withcd.
PERFORM bdc_field USING 'LFBW-WT_SUBJCT(01)'
c_x.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_field USING 'LFM1-WAERS'
i_vendor-waers.
PERFORM bdc_field USING 'LFM1-ZTERM'
i_vendor-zterm1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
Call the Transaction
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
Close the BDc Session
PERFORM close_group.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to query the opening balance for an specific account for an spec. date
Hi all,
for my user query I need to calculate the opening balance for an cash account for an specific date.
Any ideas, how can I do this?
Or may be you know a field in an SBO table that already contains information I need...
Best Regards,
InnaHi Inna,
to find the opening balance for an account or a business partner, please see SAP Note [1114253|https://service.sap.com/sap/support/notes/1114253] :
Symptom
How to find the opening balance of a business partner or G/L account.
Other terms
Account, customer, supplier, vendor, creditor, debitor, start, initial, first, opening balance, business partner, G/L, SAP Business One
Reason and Prerequisites
Consulting
Solution
There are several possible approaches:
Approach 1 - Business Partner Opening Balance:
1. Go to Business Partners -> Business Partner Master Data -> find the Business Partner
2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
Approach 2 - Business Partner Opening Balance:
1. Go to Business Partners -> Business Partner Master Data.
2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Double click on the column header 'Posting Date' to find the earliest transaction on the business partner account. This transaction could be opening balance, verify this with the company accountant.
Approach 3 - G/L Account Opening Balance:
1. Go to Financials -> Chart of Accounts -> click on the account name once.
2. Click on the orange link arrow next to the field 'Balance'.
3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
4. Click on the button 'Refresh'.
5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
Approach 4 - Business Partner and/or G/L Account Opening Balance:
1. If using SAP Business One 2005 SP01 or earlier, go to Reports -> Query Generator -> click on 'Execute'.
2. If using SAP Business One 2007 or later, go to Tools -> Queries -> Query Generator -> click on 'Execute'.
3. Ignore the red system message in the bottom of the screen.
4. Click on the pencil icon in the top left of the window, the field with 'SELECT *' will change colour to white, then yellow when activated by clicking in the field.
5. Copy the query below:
SELECT T0.[TransId], T0.[Debit], T0.[Credit] , T0.[CreatedBy], T0.[TransType] FROM [dbo].[JDT1] T0 WHERE T0.[TransType] = '-2' and T0.[ShortName] = '[%1]'
6. Click on 'Save' and give the query an appropriate name and select the appropriate category.
7. Click on 'Execute'.
8. Click on 'Existing Values'.
9. Select the G/L account or the Business Partner name from the list and click on 'OK'.
10. The system message 'Records retrieved by this query #' (# = number of records) will pop up. Click on 'OK'.
All the best,
Kerstin -
Formula Created in BI Query appears in Universe as Measure with No Data
Hi,
I have created the universe on top of SAP BI Query(Which is built on Infoset).
There are some formulas created in BI Query as mentioned below:
Eg: Status1=
If Completion Code = null then Status1 = 0
If Completion Code = =10,11,18 then Status1 = 1
Status2=
If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
In the Universe I get Status1 and Status2 as Measures.
When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
Is there any issue with the formulas to be used in SAP BI Query?
Are Formulas supported in Business Objects from SAP BI Query?
regards,
NishaHi Ingo,
I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
But I wonder why there is no data in WebI for those formulas(Key Figures)?
In Standard test MDX the MDX Query is as Follows:
SELECT
[Measures].MEMBERS ON COLUMNS,
NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
[!V000001] INCLUDING [Z_WM_IS01___F15].[3]
Based on above Query I created the WebI report which includes the objects as described below:
one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS from above query.
Selected All the measures objects available in query which refers to [Measures].MEMBERS
And one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report??? -
Query Not reflected with Updated Data
Dear Experts,
I am facing a Problem in query data updation. Data has been daily updating in infoprovider successfully ,But when user run query through Bex he is always shown old data. Then I go to RSRT and generate the query and data got updated.
Every Time for new data updation I need to Generate the query.
What could be reason for this. Is this related to cache data ?
Any Advise .
Thanks in Advance.Dear Michael,
This problem is coming only for one Multiprovider. Running this program would affect all other queries also . This will Delay the reporting.
Any other reason why query is reflected with old data Though infoprovide is loaded with new data. -
Process flow of excise duty from procurement to sales accounting entry with amount.
Dear Expert ,
Kindly any one help the process flow of excise duty calculation from procurement to sales accounting entry with amount. for example.- if material amount is Rs. 10,0000 and excise duty is 8% , edu ecss 2 % , and sec ecss 1%. I want know the accounting entry on- MIGO, J1IEX, MIRO, F-43 AND , PGI, BILLING DOCUMENT, J1IJ , TR6 CHALLAN, J2IUN.
Regards
AkshayaHi,
In case of
A. Procurement : there are two types of procurement viz. Local and Import
LOCAL
1. MIGO
Inventory A/c Dr
To GR?IR
2. J1IEX
CENVAT Receivable (Basic) A/c - Dr
CENVATReceivable (Ecess) A/c - Dr
CENVAT Receivable (S & H) A/c - Dr
To CENVAT Clearing
3. MIRO
CENVAT Clearing A/c - Dr
To Vendor A/chrough
4. F-43
No excise entry through SAP direct posting but through manual posting in case using TAXINN procedure.
5. TR6 Challan
PLA Payment (Basic) A/c - Dr
PLA Payment (Ecess) A/c - Dr
PLA Payment (S & H) A/c - Dr
To PLA on Hold A/c
IMPORT
1. MIRO
ECS+SECS on Cus+CVD A/c Dr (consists of ECS on custm+cvd and S & H on custm+cvd)
CVD Clearing A/c Dr (consists of Additional Duty CVD and CVD)
Customs Clearing A/c Dr (consists of Basic Customs)
To Customs Vendor
2. MIGO
Inventory A/c - Dr
To GR/IR A/c
To Customs Clearing (consists of Basic Customs)
To ECS+SECS on Cus+CVD (consists of ECS on custm+cvd and S & H on custm+cvd)
3. J1IEX
CENVAT Receivable (Basic) A/c - Dr
CENVATReceivable (Ecess) A/c - Dr
CENVAT Receivable (S & H) A/c - Dr
To CVD Clearing
4. F-43
No excise entry through SAP direct posting but through manual posting in case using TAXINN procedure.
5. TR6 Challan
PLA Payment (Basic) A/c - Dr
PLA Payment (Ecess) A/c - Dr
PLA Payment (S & H) A/c - Dr
To PLA on Hold A/c
Sales
1. PGI
COGS A/c Dr
To Inventory
2. Billing Document
Excise
ED Suspense A/c Dr
To Liability for BED
To Liability for ECS
To Liability for S & H
Customer
Customer A/c Dr
To ED Suspense A/c
To Revenue
To VAT / CST
Hope your doubts are clear.
Regards,
Tejas
Maybe you are looking for
-
I recently changed my email address and updated my Apple account profile to reflect the new address. This changed my Apple ID for signing into Apple store and making purchases as expected. I am however undable to get iCloud account to recognize the n
-
MBPr+disconected external monitor= no auto graphics switching
Hello! I am having a problem with automatic graphics switching. Recently i updated OS X to Mavericks and noticed that my MBPr not going back to integrated GPU when I disconect my external monitor. In Activity Monitor all processes are not requiring H
-
I'm having an issue where I cannot start to install from the 2008.04-RC disc. Instead of getting sent straight to the fancy grub menu, I get dumped at the grub prompt. It needs a kernel argument passed to it in order to start anything. I don't want t
-
I cannot wake up IMAC from sleep at times
Recently when my IMAC is either intentionally placed in Sleep Mode of when it goes to that state through inactivity, I find that I am unable to wake the machine up. The sleep mode indicator like goes out, the machine is running, but, nothing can brin
-
Sdo_union gives inconsistent results
Hi, Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 We are using sdo_union to convert line geometries. Some of the geometries that are inserted into our database have sdo_gtype 2006, but can be easily converted to 2002 using a query like: u