Problem in finding Idoc number from Delivery document number(VERY URGENT)
Hi experts,
I have a delivery document number.Now i have to find the Idoc number for thet delivery document and extract some necessary data from one of the segment of that Idoc.So I am not able to find a link through tables .
So I exact query is 'what is the selection method i have to follow to get the idoc number given the delivery document number'.
Regards,
Praveen.
Edited by: Praveen Jada on Mar 14, 2008 12:15 PM
That's what I meant, do the following query:
DATA: LT_DOCNUM TYPE TABLE OF EDI_DOCNUM.
SELECT DOCNUM
INTO TABLE LT_DOCNUM
FROM EDID4
WHERE SEGNAM EQ 'E1EDL20'
AND SDATA EQ '0001234567%'.
This will list you all the IDOC numbers in which delivery number 0001234567 appear in the delivery header segment.
Depending on your process it's probably going to be one entry only.
Hope that clarifies it,
Michael
Similar Messages
-
How to get Accounting document number from billing document number
Hi,
How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
Cheta PantHi,
VBAK is the Sale Order header table, Billing document table is VBRK.
Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
Regards,
Chintan Joshi -
Link to find Accounting document number from Material document number / PO
Hi
We are working on a custom report, in which we need to print purchasing details (from EKPO, EKKO & EKBE) as well as accounting details (from BSEG & BKPF). We need to hit BKPF/BSEG with the accounting document number, since it is the only key field (though PO number is there in BKPF, we can not use this because it is not a key field)
My question from which table we get the accounting document number ? We need to provide a link between purchasing & accounting through accounting document number, but how to find the accounting document number. ?
Thanks
Venkat.Venkat,
I guess you are trying to fetch Accouting Documents for goods receipt against PO.
To do this, you need to look at the PO History table (EKBE) and find out the Corresponding material document (VGABE = 1 for good receipt).
Get the value of BELNR and GJAHR.
Concatenate BELNR and GJAHR into your refernce key (like BKPF-AWKEY).
Then use this key to read table BKPF with the following key
AWTYP = 'MKPF' for Material document
AWKEY = reference key generated above.
AWSYS = the value of the logical system (if used) or blanks
This will get you quicker access as compared to what you've described below. In this case, the system uses a standard SAP Index "Index by application type and key" to fetch the relevant records.
Hope this helps. -
How to find the invoice number from accounting document number?
Hi
I am using the bapi BAPI_AP_ACC_GETSTATEMENT and trying to get the invoice numbers of all the payments.
but i am unable to find the link between the accounting document number from the bapi and the vendor invoice number.
i have tried the tables BSE_CLR, BSEG and BKPF. the field AWKEY in BKPF has the combination of BELNR & BUKRS & GJAHR when the document type is anything other than RE.
How can i get the invoice numbers from the accounting doc. numbers?
Regards
SujaiI am unable to find the link between BKPF-BELNR and RBKP-BELNR from the bapi return values.
XBLNR is blank when i check the table.
the output of the bapi is something like this
COMP VENDOR CLEAR_DATE CLR_DOC_NO ALLOC_NMBR FISC DOC_NO ITE
1000 1100 ........ ......................................... 20020123 2002 1900000202 002
1000 1100 ........ .........................................20020123 2002 1900000203 002
1000 1100........ .........................................20020123 2002 1900000204 002
1000 1100........ .........................................20020123 2002 1900000205 002
now i try passing the doc_no (1900000XXX) and the fiscal year (2002) and company code to BKPF
the XBLNR field is blank. This document number sequence doesn't seem to be the accounting document number of the invoice coz that starts with 51XXXXXXXXX.
If i try passing the number with sequence 51XXX... to BKPF i get the invoice number there in the AWKEY field.
I am not sure what this sequence (19___) represents.
Sujai
Edited by: Sujai S on Nov 5, 2008 7:22 PM
Edited by: Sujai S on Nov 5, 2008 7:22 PM -
How to get a Reversal document number from Original Document Number ?
Hi,
Say I have a Original Document number. This document has been reversed.
I am using table BSEG. Original Document Number for any Reversal Document is stored in field "BSEG-REBZG"
My query is that now I have the Original Document Number. How can I get the Reversal Document from this Original Document number ??
OR in simple words, Is there any possible way to find out if my original document has been reversed ?
I need help to write a select query i.e the tables and fields.
Please help.
Thanks.Hello,
Check the fields:
BKPF-XREVERSAL: Reversal Indicator (1: Reversed Document, 2: Reversal Document)
BKPF-STBLG: Reverse Document Number.
BR,
Suhas -
Accounting Document number from Purchasing Document Number
Hi Gurus,
My Requirement is that i have a Purchasing Document number (EBELN) and i need Accounting Document Number( BELNR_D) so that i can get the Amount in Document Currency (WRBTR) for that document .Hi,
Check table EKBE. -
Removing Serial Number from Delivery
Hi Folks,
I have a requirement of Removing Serial Number from Delivery Document. Is there is some BAPI or FM available for this?
Thanks in Advance,
PunitHi Anirban,
I tried the FM. By Using the FM status of Serial Number 'Assigned to Delivery' is removed.
But I could still see the Serial Number attached to Line Item in tran VL02N.
Following is the code I have written.
MOVE: '0085003031' TO DA_SERXX-LIEF_NR,
'000030' TO DA_SERXX-POSNR,
'0000034226' to DA_SERXX-OBKNR,
'M047SBX050034' TO SERNO-SERNR.
APPEND serno.
CALL FUNCTION 'SERNR_DEL_FROM_DOCUMENT'
EXPORTING
objkopf = 'SER01'
serxx = DA_SERXX
operation = 'SDD1'
MATERIAL = 'BM20847'
j_vorgang = 'PMSA'
BSTCH =
BSTUP =
DEL_COMPLETE = ' '
PROFILE =
BUDAT =
IMPORTING
ANZSN =
SERIAL_COMMIT =
STATUS_NOT_ALLOWED =
TABLES
SERNR = serno
R_SERNR = e_serno
CHANGING
T_SMESG = t_msg
EXCEPTIONS
OBJECTLIST_NOT_FOUND = 1
PARAMETER_ERROR = 2
OTHERS = 3
Please Let me know if I am worng someware.
Thanks a lot,
Punit -
Query on delivery document number
Hi All,
I have requirement i have to catch the delivery document number dynamically from the txn VL02 i am writing a report in that report i have to catch that delivery document number.
the delivery is created by some other person and after creating delivery when he pressess post goods issue at that time my report is triggered and i have to catch that number in my report
can you suggest me how i can do this..
Regards,
RajIf both actions are to be performed on same system, you can use GET PARAMTER ID Statemetnt.
Parameter ID for Delivery Document is 'VL'. -
hi all,
The Delivery document number of SBO was different from the doc # on e-commerce. Can it be the same as SBO?
Regards,
PhilHi Philip,
Currently, Webtools does not synchronize the document number on deliveries.
Message was edited by:
Shane Hart -
Find equipment number from the asset number
hi,
where i can find ( I NEED TABLE name ) Equipment number,
its in transaction as03 ->allocations -> right to field Equipment number
i press f1 and found it's a structure ra02s
where i can find it (which table)?
i know equi is the master data table of equipment but i need to find equipment number from the asset number
Regards
Edited by: liu shaochang on Jan 21, 2010 3:31 AMHi
Please use view M_EQUIA . Hope this will serve your purpose.
Regards
Gaurav -
CRM- Find Service contract from Internal Order Number
Hi Friends,
I would like to know how to get service contract from internal oredr number.
From service contract we can find internal order number by using CRM_ORDER_READ function module- table et_document_flow, but my requirement is how to find service contract from Internal order number.Any function module or BAPI available for this requierement ?
Regards
Vinayak SapkalHi,
when the costs are transferred from CRM to R3, they are posted to an internal order. When a service order or incident is transferred to R3, we have to create an internal order for it, regardless of whether or not a contract has been assigned.
This is all linked to the logic used in CO to find the appropriate internal order. It works as follows:
The internal order is stored in the table IAOM_ASSIGNMENTS. This is accessed by a guid (the account assignment guid).
To get this guid, there is a second table IAOM_EXT_OBJ_INF. This table links the GUIDs coming from CRM, dependent on the CO Customizing for CRM (Mass Controlling, Header level, item level controlling etc.)
This is how we manage to link a service order to the internal order of a contract in the first place.
When we call CO, CO first looks for an assignment for the object guid passed. If a service order has been linked to a contract, nothing will be found for the object guid. CO will then check for assignments to the reference guid and find the contract entry.
If no contract has been assigned, CO will create an internal order based on the service order guid.
From a CRM point of view, costs are assigned directly to an item, and so it makes no sense to have a reference guid for the costs or the possibility to change the guid via BADI.
regards
Waman -
Delivery Document Number as Sort Key
Is it possible to configure Delivery Document Number (VBELV -VBFA) as sort key
Regards
Ramesh NalamadaHi ,
You need to write a substitution for the field assignment ..
Use the tcode OBBH for this ,using the ABAP developement you can set the logic.
the prerequisite will be the specific expense accounts ..
Kedar -
Direct Billing from Delivery Document?
Hi Team,
We were using and a order to billing process so far. Here once the SO ins created from the SO i had the option to do direct billing.
By which the vf01 will be open with the invoice details.
Now i am implementing a order- delivery - billing.
Here the delivery document is ready however i am unable to view the option to do billing from this document. Hence i have to go vf01 and create the billing.
Can you help me explore how to do direct billing from Delivery document if its possible or do i have to create another doc like Billing request for attaining thia.
Regards,
RajneeshHi ,
Alike billing VA02, there is no option triggering billing for delivery related billing process.
Either you need to go transaction VF01 (online process) or VF04 ( back ground/online) collective process.
The same VF04 also useful for order related billing (multiple doc.)
The reason is here is We can create delivery from sales to delivery with N:1 relation
Also same applies to sales/delivery doc to Billing .
In delivery we need to different process after creation of delivery documnet as per business requirement besidess compulsory picking/ goods issue
Thanks
Chidambaram -
How can i restrict the change of serial number in delivery document ?
how can i restrict the manual change of serial number in delivery document ?
I can tell you that you are observing standard program behavior.
By using a reference document for a return delivery, you are only
receiving proposal values for a new document. The posting will not
create a permanent link between the referred document and the return
delivery document.
Hence it is allowed to change various fields. This applies not only
to serial numbers, but to storage location, quantity and other fields. -
Link between inv. number and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?Hello,
Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
Regards,
Ravi
Maybe you are looking for
-
Opening image files in their own windows in PS4
Before PS4, I could open image files in their own windows. In PS4, when I want to open more than one file, these open with tabs and any new file I open is added to the tab queue. It is annoying to right click on each tab so each file is in its own wi
-
Hello, I'm a newbie as well and I'm being migrated from LabWindows to LabVIEW. I'm trying to use the "General Error Handler" VI to handle some problems if there is a problem on the GPIB Bus. I'm a bit confused and befuddled with it. I need to supply
-
Sending mail to root summarizing results of daily/weekly/monthly?
I would like to modify the daily, weekly, and monthly scripts so that I get an email notification that the jobs ran, and what they did. I added two cron jobs to my crontab file (I use cron, not launchd, should it make a difference) and they send an e
-
Hi, is it possible to write text in sqlplus? Do I have to activate some server output before? Or is the only possibility to log into tables? Many thanks cheers, Daniel
-
Hi all We have installed Oracel 11g Database and 10g developer suite on two seprate machines... Forms are working fine through client(third machine) browser(internet explorer).But, When reports are call from forms we get an error meesage saying "repo