How to trace sales order number from delivery number, when batch is split
Hi All,
I have created a Sales Order and a Outbound Delivery against the sales order.
While creating the Outbound delivery, I have split the qty in two batches.
Now when I go in table LIPS, and search on the basis of the Delivery number, I get two rows, one for each batch. But here the sales order LIPS-VGBEL, and Sales order item no (LIPS-VGPOS) is updated only for the 1st batch line item, but is not updated for the second batch line item.
Please help me so that on the basis of the delivery number, i will be able to find record from tables for sales order for both the line items (i.e. for each batch).
Immediate help would be appreciated.
Thanks in Advance.
Ankush
Hi,
I have created delivery against sales order.
While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
Sales order (SO1) - Material (Mat1) - qty (15 ea)
Delivery against sales order (Del1) - batch split: batch1 - 10 ea
batch2 - 5 ea
In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
del no. Item No. Material Qty Batch no Sales Order no Sales Order Item no
1. DEL1 10 Mat1 10 ea batch1 SO1 10
2. DEL1 20 Mat1 5 ea batch2 ______ ____
Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
Hope this clarifies the issue faced.
Regards,
Ankush
Similar Messages
-
Which table I can get sales order no from delivery numbar.
Hi,
I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
Thanks,hi,
sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
sales doc item table ( VBAP) copy to Delivery item table( LIPS)
you can see this in copy control VTLA ,
now u want slaes doc no. from dilv doc. no.
so go to t-code se11.....
fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
i hope it will help u. -
How to get master sales order number from delivery number
Hi All,
I need logic for getting master sales order number from available Delivery number.
Note: There can be many SO's in diffrent levels.
Finally i need to pick up master sales order no.
Thanks in advance.
Thanks,
Deep.Hi,
I have a outbound delivery[VL03N] 'X' in my system .
Then for getting sales order no i am writing below code:
SELECT single vbelv vbeln
from vbfa
INTO (vbelv, vbeln)
where vbeln EQ p_vbeln AND
vbtyp_n EQ 'J'.
Then vbelv i need to pick up master sales order no.
SELECT vbelv vbeln
from vbfa
INTO TABLE i_so
where vbeln EQ l_vbelv AND
vbtyp_n EQ 'C'.
If i write code as above it is giving four sales orders which one of them is master sales order no!
Thanks,
Deep. -
How to get purchase order number from delivery number?
hi all,
how to get purchase order number and item if i have only delivery.
and in same way how to get po number and item if i know only batch number.
kindly give me some solution i need this urgently.
thanks in advance.Check the logic below:
* Selecting the Sales Documents from VBFA for corresponding Invoice
SELECT vbelv
posnv
FROM vbfa
INTO TABLE gt_itab3
WHERE vbeln EQ gt_itab5-vbeln
AND posnn EQ gt_itab5-posnr
AND vbtyp_n EQ 'J'.
IF sy-subrc EQ zero.
SORT gt_itab3 BY vbelv posnv.
ENDIF.
ENDIF.
IF NOT gt_itab3 IS INITIAL.
* Selecting the Purchase Orders from VBFA for corresponding Sales Documents
SELECT vbeln
posnn
FROM vbfa
INTO TABLE gt_itab4
FOR ALL ENTRIES IN gt_itab3
WHERE vbelv EQ gt_itab3-vbelv
AND posnv EQ gt_itab3-posnv
AND vbtyp_n EQ 'V'.
IF sy-subrc EQ 0.
SORT gt_itab4 BY vbeln posnn.
ENDIF.
ENDIF.
Batch number will be there in delivery item.
Regards
Kannaiah -
How to transfer Sales order data from R/3 to APO!!
Hi Techies,
I am in the process of moving some sales order data for a particular mat/loc combination in cfm1 after creating a integration model iam even activating even in R/3 but after doing this iam not able to view those sales orders in RRP3 t-code IN APO side.
Kindly let me know what is the procedure to transfer transactional data from R/3 to APO and to do enhancement in CIF which carries Transactional data .
Problem solving answers would be rewarded duly !!.
+PKP.Hi PKP,
The field SPEC_STOCK has the description "Key for Special Stock Section" and is linked to schedule line of the PO. This seems to be something linked to special stock, but I am not very sure about the relevance of this field.
I do not see any related field when I check the order in RRP3 or in RRP2. In standard SAP, you would only be able to use the fields that are already visible in APO. Otherwise you need to add the field to the standard SAP t-code display (read the value from SOMEWHERE and then display it in RRP3. This is possible using Badi /SAPAPO/RRP_IO_COL). Then only you can see the values which you have populated.
If this field SPEC_STOCK already has some functionality (which it should have, though I am not sure what it is), you might not be able to use it for other purposes (since system does some validations for certain fields).
You are updating the value for this field in IT_OUTPUT internal table, you also need to add an X in the corresponding field in the internal table IT_OUTPUTX.
You could try putting this X, so that your changes are considered in CIF, but I am not sure what the impact may be, and you could get a dump also possibly. Even otherwise, since this field doesn't seem to be visible against a PO in APO, I am not sure if this would be helpful for you.
As far as I could see, I did not find any standard field which could be helpful for you.
May be if you open a fresh thread and ask for advice on how to send any custom comments for PO to APO, someone could provide some inputs.
Thanks - Pawan -
How to transfer sales order idoc from R/3 to CRM
Hi,
I want to generate the sales order idoc in R/3 (ORDERS) and replicates to CRM through XIF adapter.
The sales documents are not realy existing in R/3. We can only get the information from related biling documents and try to gerenate ORDERS idoc.
The problem is how to map R/3 idoc to CRM idoc(CRMXIF_ORDER_SAVE_M01). The administration console seems can only send the idocs but not receiving them.
Thanks,
InaHello Yina,
Can you please answer the questions? I am a little bit confused.
If you don't have the order in R/3, are you not going to create one when creating the ORDERS IDoc? If yes, then this order will go to CRM automatically if you have the middleware set properly.
If you are NOT creating any order in R/3 during the IDoc step, Why would you want the order in CRM when you don't have it in R/3?
Are you not going to keep the middleware between R/3 and CRM open? If you keep it open, the order from CRM will crossover to R/3 - in which case you could have created the order in R/3 in the first step itself !!!
If you are not keeping the middleware open between R/3 and CRM - I don't know why would you want to keep the orders in CRM, but not in R/3. Is it because of lack of good CRM consultants in the project?
Easwar Ram
http://www.parxlns.com -
Get Sales Order price from delivery
Hi Folks, I need your help.
I have a smart form to print a ticket that shows the total amount to be paid. Iu2019m using the FM GN_INVOICE_CREATE to simulate the prices and sum the items (Table xvbrp), passing the material and quantity.
The problem here is when some conditions of discounts are included manually as price conditions in the sales order this function has no considerer those and I get the wrong amount or the amount without those conditions.
After this issue a decided to change the FM to RV_INVOICE_CREATE (Table xvbrp), which is the FM used by the transaction VF01, this function works perfect but a Post good issue is required to obtain the prices.
I need a FM to get these prices from the delivery, taking in consideration sales order conditions automatic and manual for the delivery item and delivery quantity. The purpose of this is to print a ticket with the amount to be paid by the customer, before the invoice is created.
Thank in advance.
Alexis RamirezI solved the issue using the FM RV_INVOICE_CREATE.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
invoice_type = rv60a-fkart
invoice_date = sy-datum
pricing_date = rv60a-prsdt
delivery_date = rv60a-fbuda
select_date = rv60a-seldat
i_analyze_mode = 'X'
vbsk_i = vbsk
id_no_enqueue = 'X'
IMPORTING
vbsk_e = vbsk
od_bad_data = lv_bad_data
det_rebate = rebate_determined
TABLES
xkomfk = w_xkomfk
xthead = w_xthead
xvbfs = w_xvbfs
xvbss = w_xvbss
xvbrk = w_xvbrk
xvbrp = w_xvbrp
xvbpa = w_xvbpa
xkomv = w_xkomv.
I get the price from the table xvbrp.
Thanks,
Alexis -
How to retrieve sales Order details from BAPI_SALESORDER_GETLIST
Hi Experts,
I am using Visual Studio 2003 and SAP.Net Connector for Microsoft .NET 1.0.3 .
I need to get the details of sales order.Following is the code snip.
protected ConnectorDemo2.BAPIRETURN bapireturn; /*Manually Added */
proxy.Connection = SAP.Connector.SAPLoginProvider.GetSAPConnection(this);
proxy.Bapi_Salesorder_Getlist("0000000006","","","","","","0001","0",
out bapireturn,ref bapiordersTable1);
I already check records in SAP R/3 system for data Cust No=00000006 and Sales Org=0001.
Please let me know about out parameter and if anyone is having correct list of ref and out parameter.
Help will appreciated and points will rewarded.
Thanks
Sunil Pawar
Edited by: Sunil Pawar on Nov 26, 2008 1:54 PMTo Solve the problem I created one custome RFC and call BAPI_SALESORDER_GETLIST in it and my problem get solved.
This is just work around but still not found why no data when using OUT parameter.
CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
EXPORTING
CUSTOMER_NUMBER = Z_CUSTOMER_NUMBER
SALES_ORGANIZATION = Z_SALES_ORGANIZATION
IMPORTING
RETURN =
TABLES
SALES_ORDERS = Z_SALES_ORDERS
Thanks
Sunil Pawar -
How to get the order type from notification number
Hi,
i have the notification number,
fromthis number how can i get the Maintenance Order type.
what is the table name to get the order type.
Please tell me.Hi,
First you read table QMEL with notification number and get AUFNR. Then go to AUFK and get AUART (order type).
Some thing like,
SELECT SINGLE aufnr INTO lv_aufnr FROM qmel WHERE qmnum EQ <your notification>.
IF sy-subrc EQ 0 AND NOT lv_aufnr IS INITIAL.
SELECT SINGLE auart INTO lv_auart FROM aufk WHERE aufnr EQ lv_aufnr.
ENDIF.
Hope this helps..
Sri -
REPORT-Sales Order Qty minus Delivery Qty
How to find Sales Order Qty minus Delivery Qty in a STd report other than t.code v.02
THanks in advance
PaulDear Paul
The report which you are asking is a Pending Order Report.
You better go for a Zreport & call your required fields in the report.
The selection field will be plant
Eg: You can incorporate in the report Sales Doc, Order type, Doc date, SP, SH, Region, sales area, material code, material description, Order qty, Pend qty, Pending value, pant, PO ref no., date, Customer currency etc.
Once all items delivered the doc number wont be in the report.
Regards
Deepu Pillai -
How to Copy Sales Order Filed in FI from SD while Creating Billing
Hi Everyone
I was checking the line item report for my sales account. (FS10N or FBL3N). The problem is i am not able to see the original sales document number filed against that Sales Gl. Its not even visible on customer account line item details as it only provides billing number field detail. Can anyone guide me is it possible to fill out the sales order number field while creating the accounting document from SD. I have observed only once the sales document field is filled but i struggling how it has been copied from SD and not possible on remaining one? Your kind help will be really appreciated.
Kind RagardsHello,
This can be done in your copying control for Billing by using
- Reference Number
- Allocation Number
in the header node of the copying control.
You can find the allocation number under additional information in the (document) line item that is forwarded from
SD to FI. If the field was not filled in the order, you can determine
For that you have an option of maintaining in Reference & Allocation Number:
A-Purchase order number
B-Sales order number
C-Delivery number
D-External delivery number
E-Actual billing document number
Say, if you do not make an entry and the field is not filled in the order, the field remains empty. If you would like to link the delivery to invoices in accounting (which is necessary in the self-billing procedure), enter 'C' for the relevant invoices.
Check in the relevant tcode VTFA / VTFL / VTFF, based on your business process.
Thanks & Regards
JP -
How to trace purchase order number with respect to Purchase requestion numb
Hi friends,
Can u please help me how to Trace purchase order number with respect to purchase Requetuion number. Is there any standard report available in R/3Hi Vamsi,
Thats what!!!
Goto SE16 - EBAN - Give PR number in the iput screen.
In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
There you choose Purchase Order.
So the output will display for you POs for the PR that you entered.
Regards,
Vishal -
How to get sales order number before saving in VA01 by using parameter
Hi,
Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
can you please suggest how to do it?
Thanks & Regards.
Rahul VerulkarHi,
In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
Thanks & regards,
Rahul Verulkar -
How to Re-open a Closed sales order on which delivery is booked & returned
Dear All,
The scenerio is as such a Sales Order has been made and based on it a delivery note is made. After sometime the user reliazes that the delivery note has been wrongly made and he reverses the delivery by making a Return entry. Now as the delivery has been made the corresponding sales order has been closed and as Return has been booked, delivery note is also closed.
Now the user wants that he makes a new delivery based on the same sales order but how can this be achieved as the sales order is already closed or how can the sales order be cancelled now.
If we make a new sales order then in mothly sales order report it would be seen that two sales order are there and total monthly sales order value would be wrong.
What is the best way to handle such situations.
Regards,
KawishI agree that this is ridiculous.
I wish SAP was there when I needed to tell any customers about this.... -
How to get sales order data in substitution of fi-docu from GM posting ?
How to get sales order data in substitution of FI documents from goods movement posting?
When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
Do you have better solution or idea for this? Please help me. Thank you!Hello Harish,
Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
Regards
Kaushal
Maybe you are looking for
-
ERROR MESSAGE "MACROMEDIA PROJECTOR HAS STOPPED WORKING"
I am using Windows Vista, and can no longer play any of my games. Was able to play before now I get this stupid error message: "Macromedia Projector has stopped working." I have tried redownloading the games again, tried redownloading the Flash and s
-
Entourage no longer syncing with iCal..
I deleted all my MS Office prefs due to an Excel issue. Entourage no longer syncs with iCal. I turned synching on in Entourage. In iSync "reset sync services" is grayed out.. help?
-
How to import activity codes (codes with descriptions) from excel into P6?. Thanks,
-
Question on Numbers Formula:
Hello Guys, Thanks in Advance for all those who attempt to solve my question. I am preparing a numbers file that helps me track my expenses. I would like to know a formula that i should apply on a table that basically sorts and populates all the enti
-
Recently i upgraded my computer from XP to windows 7 home premium 64 bit, i downloaded iTunes 9 64 bit and when finished clicked run only to be met by a message saying the digital signature was invalid. I started up the setup again by clicking on the