How to get inbound delivery number according to materail document number
Our business scenario:
1) ME21N, to create NB purchasing document
2) VL31N, to create inbound delivery based on NB purchasing document
3) MIGO, to receive the material to storage location based on inbound delivery, then materail document number will be generaated.
My question is that how shall I find the original inbound delivery based on the materail document number? Thanks very much.
King qi
2008-08-21
Sridhar,
Yes, you can find inbound delivery in confirmation tab, and GR material document in PO history, but still can not find the matching relattionship between inbound delivery and GR material document.
For example
PO inbound delivery/qty GR material document/qty
450000690 6900001/100 5000001/40
6900001/100 5000004/60
6900003/80 5000008/70
this is my simulation for the matching relattionship between inbound delivery and GR material document.
in fact, this will be more complex in real world, my question is to get the original inbound delivery based on the GR materail document number.
thanks.
Similar Messages
-
Get inbound delivery number by using material serial number
is anyfuction module to get inbound delivery number by using material serial number?
input---material serial number.
output--inbound delivery number.Hi,
BAPI_OUTB_DELIVERY_CHANGE
BAPI_GOODSMVT_CREATE
it's ok with the Function module
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
VBKOK_WA = LWA_VBKOK
SYNCHRON = ' '
NO_MESSAGES_UPDATE = ' '
COMMIT = 'X'
DELIVERY = P_ITEM-VBELN
IT_SERNR_UPDATE = LT_SERIALS
IMPORTING
EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
<b>Reward points</b>
Regards -
BAPI to get inbound delivery from material serial number
BAPI to get inbound delivery number from material serial number?
input---material serial number.
output--inbound delivery number.Perhaps instead of using a BAPI you can code it like this.
DATA:serial(10) TYPE n VALUE '0000340078',
pos TYPE i VALUE 1.
START-OF-SELECTION.
WHILE pos <= 10 AND serial+pos(1) = 0.
pos = pos + 1.
ENDWHILE.
REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
WRITE serial. -
How to get the delivery number for the sales order
hi
how to get the delivery number for the sales orderHi,
1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
Hope it helps...
P.S. Please award points if it helps... -
How to get the Delivery address for PO
I have a problem.
I am working on a SAP Script , which is for PO(Zmedruck_po) , which is a copy of
MEDRUCK.
I am asked to print the delivery adress in a window .
The scenario is like this .
In ME23N , under item details , there is a tab called DELIVERY ADDRESS
this has option to enter the adress details or a delivery number in the address text box .
If the address number is present i have to print that address , else i have to print the address which is entered in the delivery address tab.
If the delivey address number is there i have no problem in printing it ,But if address number is not there ,I need to know how to get the delivery address,
is it the plant address, company code address ... ?
I debuged ,but could not find out.
Can anyone help please .Hi,
try using the below method:
Goto TWLAD table with storage location (EKPO-LGORT) as key to get address number (ADDRNUMBER). then goto ADRC table to get the address of the delivery
Regards
Shiva -
How to get an initialised Object according to it's name?
How to get an initialised Object according to it's name?
For example I have 5 HashSets (initialised, with data) hs1 hs2 hs3 hs4 and hs5
Sometimes I want to get one of them according to it's number : "hs"+number
How this can be done (method class.forName is dedicated to antoher thing).
ThanksI forgot to write that I do not want to use a Map :)
(sure, it' possible via Map, no question).
But in Perl, for example, I could simply write
$ab="col" + "or";
$color="Beidge";
and than I can use address to a variable $color in
such a way : $$ab
... So if a Map is an only way... than it will be a
Map... pity..I do not really know Perl so I can not comment on it; but, are there any compiled languages (at least compiled to the degree of Java) that support this construct? All of the programming languages that I can think of that have this construct are more along the lines of scripting languages.
Just curious. -
How to get sms delivery report on iphone 6 ios 8.1
How to get sms delivery report on iPhone 6 ios 8.1
Not a feature of the iPhone. Ask your carrier if they support this, as it is a carrier feature.
-
How to get po number based on billing document number
Hi every body
how to get a po number based on billing document number
thanks in advance.
sekhar.kHi,
Check this field VBRK-BSTNK_VF.
Regards,
Satish -
How to get MM Invoice number from FI Accounting document number
Hi,
I am writing a query (OPEN ITEMS FOR ACCOUNT PAYABLE)through SQVI. We need to display MM Invoice number from FI Accounting document number . Please let me know the table name from where I can join FI document number and can retreive MM Invoice number.
Thanks
Ramahi,
use this.
SELECT belnr
awkey
INTO TABLE it_bkpf
FROM bkpf
FOR ALL ENTRIES IN it_mkpf
WHERE awkey = it_mkpf-awkey. -
How to select data from a table by passing document number from another tab
How to select data from a table by passing document number from another table.
for eg:-
I want to display name, adres, region from ADRC table
by using field delivery document number
Kind Regards,
Shanbagavalli.SHi Shanbagavalli,
There are multiple solutions to this questions a few i will try to answer and then you can take the best required for your requirements.
**Consider that you have a Internal table having document number from other table..
SELECT NAME ADRES REGION FROM ADRC
INTO IT_ADRC
FOR ALL ENTRIES IN IT_DOC
WHERE DOCUMENT_NO = IT_DOC-DOCUMENT_NO.
**Consider that you have 1 document number then
SELECT NAME ADRES REGION FROM ADRC
INTO IT_ADRC
WHERE DOCUMENT_NO = W_DOCUMENT_NO.
Hope this solves your problem.
Regards,
Kunjal -
P.O number for a billing document number
Hi Experts,
From which table we can find a PO number for corresponding billing document number(VF03)?hi RAVI,
Go to T.code SE16
enter table name VBRK-->enter
billing doc type,billing doc no,s.org,d.channel
execute
waiting for reward points
mcm -
Accouting Document Number along with Invoice Document Number
Hi All,
I want to see the Accouting Document Number along with Invoice Document Number
while Posting the invoice in MIRO.
Regards
ArjunCheck
miro (invoiced document number & account documber number) -
How to Copy Inbound delivery number in MIGO Delivery Note (GOHEAD-LFSNR) ?
Hi all,
I'm Creating the GRN based on Inbound Delivery and i'm looking for the option by which i'll be able to copy Inbound Delivery number in Delivery note Field (GOHEAD-LFSNR).
Is it Possible.....How....
Regards
S AnandHello,
Delivery note filed in MIGO is for Number of External Delivery Note. If you enter External ID in Inbound delivery then it will copy the same in MIGO.
Regards,
Shailesh -
How to get a Delivery note number from a picklist ?
Hello friends,
I'm setting up an alert for a customer, the purpose is to send a notification whenever a new Delivery note is generated from a pick list, what I thought of is to retrieve the baseDoc number from OPKL ( the pick lists table) which would give me the DocNum of the Order Document number, and then I could get the TargetEntry of this Order , but i'm not sure if it is the best solution, since an order can generate several Deliveries, and with this method I could only get one,
What I need is a simple way to link OPKL to ODLN.
Thanks in advance,
AminThe solution I was thinking of did work actually, and the fact that the link is made on the lines ensures that all the target documents are brought.
Select Distinct
T0.AbsEntry As 'Pick List',
T2.DocNum 'Delivery',
T1.OrderEntry As 'Order',
T0.[Name] As 'Creator',
T0.CreateDate As 'Creation Date',
T0.PickDate As 'Pick date',
from OPKL T0
INNER JOIN PKL1 T1 ON T0.AbsEntry = T1.AbsEntry
INNER JOIN DLN1 T3 ON T3.BaseEntry=T1.OrderEntry
INNER JOIN ODLN T2 ON T2.DocEntry = T3.DocEntry
Order BY T0.AbsEntry DESC
Kind regards
Amin -
How to get the Delivery date in PO line Item in SAPScript
Hi Gurus,
I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window. I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the PEKPO-EINDT it is also not working.
Can any body suggest me how i can get the delivery date for the respective line Item ?
Regards
Sonyactually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
For Example u can use this code.
To print you have write the this code in Script item level printing window "MAIN" window
Following perform is called to get the line item delivery date in PO
{/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
/: USING &EKPO-EBELN&
/: USING &EKPO-EBELP&
/: CHANGING &DEL_DATE&
/: ENDPERFORM}
{* Dellivery date &DEL_DATE& }
write the below code in the Z program "ZPerform_prog"
{ FORM get_del_date TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
READ TABLE in_par WITH KEY 'EKPO-EBELN'.
CHECK sy-subrc = 0.
$_po_no = in_par-value.
READ TABLE in_par WITH KEY 'EKPO-EBELP'.
CHECK sy-subrc = 0.
$_po_line = in_par-value.
SELECT *
FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
$_del_date = eket-eindt.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = eket-eindt
IMPORTING
date_external = $_del_date
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
READ TABLE out_par WITH KEY 'DEL_DATE'.
CHECK sy-subrc EQ 0.
out_par-value = $_del_date.
MODIFY out_par
INDEX sy-tabix.
CLEAR : $_po_no , $_po_line ,$_del_date.
ENDSELECT.
ENDFORM. "GET_DEL_DATE }
Maybe you are looking for
-
Creative Cloud subscription in New Zealand
Yes I know, not many people care about NZ, and definitely not Adobe, but I wanted to start this thread to at least get my voice heard. I am unable to purchase a creative cloud subscription in NZD. The only option I have is to buy in AUD. This is wron
-
Changing InfoObject to allow lowercase letters
Hi All, We have Invoice Number InfoObject which was already developed and used in some of the DSO in production. This infoobject was not checked with the lower case letters option in the object properties while creating the object. From two days we a
-
How to split a PO into 2 iDocs ??
Hello, We use EDI to send PO's outbound to suppliers via ORDERS05 iDoc. Problem is that most of our suppliers cannot accept EDI PO if it contains more than one "Delivery Address". I need 2 or more Orders05 iDocs to be created (1 for each Delivery Ad
-
TS3276 how to send a group email with iPhone 5
how to send a group email with iPhone 5
-
How to split a string with regular expression
Hi. I need to split a string with a regular expression. Example String = "this is; a test";rune haavik;12345; And I want the output to be: "this is; a test" rune haavik 12345 If I use this code: private void test1() String str = "\"this is; a test\";