Retreiving accounting Doc number based on PO number
Hi,
In my abaprogram I need to retrieve the accounting document number for a given PO number which has been GR'd.
I need to know the table which stores there details.
I need acounting document number because I need to read the BKPF table for getting exchange rate for a PO.
If I read the BKPF table based on Object key which I can retrieve from PO, the select query takes a long time hence I think I need to read bkpf based on primary key ?
Please advice,
Regards,
Shital
Hi,
Refer to these links...
For BSID- Accounting Document Number corresponding PO Number is required
Retrieving Accounting Document number based on PO numbers
Similar Messages
-
How to find out SD billing doc # using accounting doc number ?
Hi Experts,
Using accounting doc tables such as BKPF , BSEG and BSID , I need to find out respective SD billing doc no when I have accounting doc number.
The issue is I cannot use either 'reference number' or assignment number' because the same numbers are not flowing to accounting doc from SD ( enabled by a enhacement ).
Regards
Mahesh.Hi,
In BKPF : AWKEY / XBLNR with these fields we can identify the SD billing document number.
In BSEG table VBELN field is Billing document number
Or
Goto T.Code FB03 enter the accounting document number,company code and fiscal year and press enter.
select the line and choose details, choose addtional data tab, here we can see the billing document number.
Regards,
Chandrasekhar.S -
Link from Accounting Doc Number to PO
Hi,
In FBL3n certain doc types PO number is not updating.Using assignmnets i want to update the field for these kind of doc no.
My doubt is from FI doc number how can i link it to the PO number.
Eg:i have an FI doc number say 51000000 which has two line items and corrponding 3 tax line items each .(ie 9 lines for the same in FBL3N).How can i link that my tax line items corrspond to which line item.
Hope my question is clear.Please suggest.Hello,
Generally the FI doc created from an PO Invoice have:
BKPF-AWTYP = 'RMRP'.
You can goto RSEG from BKPF using:
RSEG-BELNR = BKPF-AWKEY+0(10)
RSEG-GJHAR = BKPF-AWKEY+10(4)
In RSEG, you have the PO details in RSEG-EBELN & RSEG-EBELP.
BR,
Suhas -
Transaction type and account doc number
hi,
can any one let me know,
in which screen i can find the transaction type and account document number for a given g/l account?
Edited by: Ranjini cn on Sep 11, 2009 11:11 AMhi,
you cannot have any transaction you can get this from the table only -
Accounting doc number for a material doc
Hi Experts,
Pls help me to know the accouting document number for a material document.
Is there any functional module for the above or any table fields.
currently we are developing zprogram.
Appreciate for advices.Hi
u want Accounting document against Material document
means
u done GR through Migo
and ur documennt type is We _ goods receipt - this is ur material document no
u done invoice dopcument againmst Gr - RE Dcoument type - accounting Document No
see when u going to Po , purchase order history
then bothe Gr and IR document u seen
for example :_ gR - 500000123
and IR 5105601234
but when u double clcik on IR Dcoument , screen will be open
here u also se another accounting no document see 510004563 then clcik on this field and f1 then u see table and field
i can tell u u doing GR 5000000123
at the time of ir two document no genrated
one for document for Mm Point of view and one for Fianance point of view
means 5105601234 is MM Accounting dcouemnt
510004563 is finance accounting document
i hope u clear that
if any query revert back
Regards
Roobal -
Reteiving Accounting Document number by passing the reference key
Hi All,
I have the reference key (bkpf-awkey), fiscal year(gjahr) and bukrs and I need to retreive the Accounting doc number(Belnr).
Right now, I am writing a select statement to retreive belnr from bkpf and passing bukrs, gjahr and awkey in the where clause (for all entries in another internal table containing these fields).
But the performance is pretty poor. Pls help.Hi,
you have to go for index 4 of BKPF (with fields MANDT, AWTYP, AWKEY, AWSYS).
Your select does not contain AWTYP, so this index is not used. You are filling BUKRS and GJAHR - but you don't have BELNR (that's what you want to get), so primary key won't help (unless you have thousands of BUKRS, unlikely picture).
So select some entries to figure out, which AWTYP you use, maybe you can even specify AWSYS. Then index 4 should be nearly as fast as the primary key. To not confuse the DB optimizer, don't fill BUKRS and GJAHR - this won't speed up your select in case index 4 is used, but might prevent the system to use index 4.
Regards,
Christian -
Report with Invoice and Accounting Document Number
Dear Experts,
Here i have a requirement.
I wanna a report which gives a Invoice (MIRO) and its accounting documents (Follow on document) in one page. Because If I view a MIRO document, for checking the accounting document, I need to click on Follow on doc, then I'll get.
But If wanna see for 1000 MIRO documents with accounting document number, then I don't want to click 1000 times to see the account doc for respective Invoice number.
The approximate format is,
Column 1 Column 2 Column 3 ....................... Column n
MIRO (Invoice number) Accountting Doc Number
5100000099 5100000011
Which tcode will give the both in one screen?
Thanks in advance
Regards,
navahsekHi,
Enter Sork Key 002 for Vendor Master Record.
and also you can check the Report in ECC 6.0
MIR5 - Display List of Invoice Documents
There you select Export Mode --> Display Accounting Document Number.
You can get Report FI and MM Document Numbers.
Hope It will Clear.
Regards,
Kishore -
GRN for respective Accounting document number
Hi guru,
I need to show a report like bellow:
+Accounting doc number+ +GRN+
4900030516 4900743137
Both document number and GRN is saved in same table MSEG.
can you please give me the relation, depending on that I can recognise 'GRN 4900743137' is created for
'doc number 4900030516'
with thanks
Moshior
Edited by: moshiur sohel on Oct 7, 2010 8:24 AMhi,
1st to find accounting docs for GR find BKPF - BLART = WE
read table field BKPF-AWKEY
suppose u found AWKEY = 49007431372010
AWKEY = GR number + GR year
for above example GR number is = 4900743137 and GR year = 2010
you can use reverse logic if want to go from accounting document to GR document .
hope this helps
regards
Avinash
Edited by: avinash goswami on Oct 7, 2010 12:11 PM -
I have accounting document number, I want to find its invoice.
Hi
I have an accounting document number.
Now I need to find its invoice number where it comes from.
How could I find it?
Please help for this.
Thank you.HI
Goto FB03 and enter the accounting doc number. or else in table BKPF enter the accounting doc number you will get the invoice number
regards
Prashanth -
Table for Invoice accounting doc
I have got the invoice number posted in MIRO,i need to get the accounting document number generated for this invoice number.
Can any one please let me know th etable where i could give the the invoice number posted in MIRO and get accounting doc generataed for it.I need to pass invoice number posted in MIRO and get the accounting doc.Hi,
Table BKPF will help you...
BELNR = Accounting document number
AWKEY = Object Key which is nothing but Material Doc no + Fiscal year
From SE16, select table BKPF
In the field AWKEY (Object Key), give the material doc number+fiscal year ( for example, 50000000002009)
Execute.
You will get the corresponding accounting doc number
Regards,
Mike -
Number range of billing doc and accounting doc to be same
Hi Gurus,
Can any one help me out to make the number ranges of billing doc and accounting doc same every time.
Even though the invoice is cancelled the same no range should come for cancellation accounting doc.
Thanks in advance
DushyantHi,
Create or change the same interval for the BILLING DOCUMENTS & ACCOUNTING DOCUMENTS in VN01 and FBN1*
For BILLING DOCUMENTS assign this Number range in the VOFA transaction code for the Billing document tyes*
For ACCOUNTING DOCUMENTS assign this Number range in the FBN1 for your company code and fiscal year*
activate the External Field [] . this is mandtry
please check and revert back.
regards,
Anup Shukla -
How to find sales document and billing document number of a accounting doc
Hi,
I have opened a accounting doc. using fb03. Now how to find the corresponding sales doc. and billing doc. no. of this accounting doc. no.Dear satyam
Go to SE16 / BKPF, give the accounting document number reference in "Document number" and execute, so that you will get the respective billing document number. Make a note of it.
Now go to again SE16 and give table VBFA and give all the billing document references in "Follow-on doc" and maintain "C" in "Prec.doc.categ." and execute.
Alternatively, you can try with table joining BKPF and VBFA in SQVI.
thanks
G. Lakshmipathi -
Restrict selection from LDB 'DDF' based on FI Doc number(BELNR)?
Hi all,
I am trying to restrict selection from LDB 'DDF' based on FI Doc number(BELNR).
Even if i pass only one document number in selection-screen, the program is still printing lot of documents?
Where I am going wrong?
*& Report ZSUB_READ_LDB
REPORT ZSUB_READ_LDB.
DATA wa_BSEG TYPE BSEG.
SELECT-OPTIONS s_BELNR FOR wa_BSEG-BELNR.
DATA: callback TYPE TABLE OF ldbcb,
callback_wa LIKE LINE OF callback.
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab.
callback_wa-ldbnode = 'BSEG'.
callback_wa-get = 'X'.
callback_wa-get_late = 'X'.
callback_wa-cb_prog = sy-repid.
callback_wa-cb_form = 'CALLBACK_BSEG'.
APPEND callback_wa TO callback.
CLEAR callback_wa.
seltab_wa-kind = 'S'.
seltab_wa-selname = 'BELNR'.
LOOP AT s_BELNR.
MOVE-CORRESPONDING s_BELNR TO seltab_wa.
APPEND seltab_wa TO seltab.
ENDLOOP.
CALL FUNCTION 'LDB_PROCESS'
EXPORTING
ldbname = 'DDF'
variant = ' '
TABLES
callback = callback
selections = seltab
EXCEPTIONS
ldb_not_reentrant = 1
ldb_incorrect = 2
ldb_already_running = 3
ldb_error = 4
ldb_selections_error = 5
ldb_selections_not_accepted = 6
variant_not_existent = 7
variant_obsolete = 8
variant_error = 9
free_selections_error = 10
callback_no_event = 11
callback_node_duplicate = 12
OTHERS = 13.
IF sy-subrc ne 0.
WRITE: 'Exception with SY-SUBRC', sy-subrc.
ENDIF.
*& Form CALLBACK_BSEG
text
-->NAME text
-->WA text
-->EVT text
-->CHECK text
FORM CALLBACK_BSEG USING name TYPE ldbn-ldbnode
wa TYPE BSEG
evt TYPE c
check TYPE c.
CASE evt.
WHEN 'G'.
WRITE: / wa-BELNR.
ULINE.
WHEN 'L'.
ULINE.
ENDCASE.
ENDFORM. "CALLBACK_BSEGHi Andreas,
I have included bukrs and gjahr too...but if I input only one invoice number the report is printing a lot of invoices.
Not sure from where the data is being picked up?
Sorry of poor formatting of code.
Thanks ,
Subba
*& Report ZSUB_READ_LDB
REPORT ZSUB_READ_LDB.
TYPE-POOLS: RSDS, RSFS.
DATA wa_BSEG TYPE BSEG.
SELECT-OPTIONS s_BELNR FOR wa_BSEG-BELNR.
SELECT-OPTIONS s_BUKRS FOR wa_BSEG-BELNR.
SELECT-OPTIONS s_GJAHR FOR wa_BSEG-BELNR.
DATA: callback TYPE TABLE OF ldbcb,
callback_wa LIKE LINE OF callback.
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab.
DATA: TEXPR TYPE RSDS_TEXPR,
FSEL TYPE RSFS_FIELDS.
start-of-selection.
callback_wa-ldbnode = 'BSEG'.
callback_wa-get = 'X'.
callback_wa-get_late = 'X'.
callback_wa-cb_prog = sy-repid.
callback_wa-cb_form = 'CALLBACK_BSEG'.
APPEND callback_wa TO callback.
CLEAR callback_wa.
seltab_wa-kind = 'S'.
seltab_wa-selname = 'BELNR'.
*seltab_wa-LOW =
LOOP AT s_BELNR.
MOVE-CORRESPONDING s_BELNR TO seltab_wa.
APPEND seltab_wa TO seltab.
ENDLOOP.
seltab_wa-kind = 'S'.
seltab_wa-selname = 'BUKRS'.
*seltab_wa-LOW =
LOOP AT s_BELNR.
MOVE-CORRESPONDING s_BUKRS TO seltab_wa.
APPEND seltab_wa TO seltab.
ENDLOOP.
seltab_wa-kind = 'S'.
seltab_wa-selname = 'GJAHR'.
*seltab_wa-LOW =
LOOP AT s_BELNR.
MOVE-CORRESPONDING s_GJAHR TO seltab_wa.
APPEND seltab_wa TO seltab.
ENDLOOP.
CALL FUNCTION 'LDB_PROCESS'
EXPORTING
ldbname = 'DDF'
variant = ' '
EXPRESSIONS = TEXPR
FIELD_SELECTION = FSEL
TABLES
callback = callback
selections = seltab
EXCEPTIONS
ldb_not_reentrant = 1
ldb_incorrect = 2
ldb_already_running = 3
ldb_error = 4
ldb_selections_error = 5
ldb_selections_not_accepted = 6
variant_not_existent = 7
variant_obsolete = 8
variant_error = 9
free_selections_error = 10
callback_no_event = 11
callback_node_duplicate = 12
OTHERS = 13.
IF sy-subrc ne 0.
WRITE: 'Exception with SY-SUBRC', sy-subrc.
ENDIF.
*& Form CALLBACK_BSEG
text
-->NAME text
-->WA text
-->EVT text
-->CHECK text
FORM CALLBACK_BSEG USING name TYPE ldbn-ldbnode
wa TYPE BSEG
evt TYPE c
check TYPE c.
CASE evt.
WHEN 'G'.
WRITE: / wa-BELNR.
ULINE.
WHEN 'L'.
ULINE.
ENDCASE.
ENDFORM. "CALLBACK_BSEG -
Based on single Doc number Multiple line items update to in single Z database table
Dear Frds,
Based on single Doc number Multiple line items update to database table
Example : Doc Num: Janu
If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
Like CS01 TransactionDear Frds,
Based on single Doc number Multiple line items update to database table
Example : Doc Num: Janu
If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
Like CS01 Transaction -
Doc.Number & Accounting Document number
Dear All.
In FBCJ, there is a column called "Doc.Number" & its technical info is "table name : ISCJ_E_POSTINGS" , "field name :D_POSTING_NUMB".
This is the number which gets printed on the cash receipt.
Now we need a report showing this doc.number as well as the accounting document number.
Please advise.
Thanks
sunil.Hi, Did not fulfil the requirement, thanks for the suggestion, please advise any other option.
Maybe you are looking for
-
Lync 2013 Server / Roles & Components
Lync 2013 Server / Roles & Components Front End User authentication and registration Presence information and contact card exchange Address book services and distribution list expansion IM functionality, including multiparty IM conferences Web confe
-
i have been trying to develop digital pictures from my iphoto library and when i develop them with snapfish or walgreens they are blurry (i.e. low res/low pixels). it's not the camera b/c i developed the same pics months ago and they were fine. is th
-
How do I get my security questions if I forgot them?
If I forgot my security questions, could I send the answers to my email? Or how would I get them? I forgot the answers.
-
Cannot sync calendar to iPhone 3G
In iTunes, I was asked to set up my iPhone, 3G, to sync with mobile me. Well, I did whatever the set up was and it has not synced ever since. I would like to go back to the "old" sync, which worked great and transferred entries between my iMac and iP
-
Hi all, I have a requirement like, when the user executes a report; it has to show the previous execution history. Like last time execution date, time and number of times the report wad executed. How can I handle this and which event can I write the