‎2010 Mar 30 10:53 AM
Hi,
i know the delivery number. Based on Delivery number i want to get sales order number and return delivery number.
is it possible to get sales order No and return delivery No using single select query on the VBFA table.
Regards,
Suresh
‎2010 Mar 30 11:10 AM
‎2010 Mar 30 11:10 AM
‎2010 Mar 30 11:20 AM
It is not possible through VBFA table.Pass the delivery number to LIPS andyou get he sales order in VGBEL field.
Regards,
Sai Prasad
‎2010 Mar 30 11:38 AM
sure this is possible.
But not in ONE select single, you need two to do that.
data: ls_vbfa type vbfa.
select single vbelv
from vbfa
into corresponding fields of ls_vbfa
where vbeln = delivery_numer_you_were_talking_of
and vbtyp_v = 'C'.
This will get a sales order connected to your delivery, Be AWARE that if you have more orders involved in this process you either need to adopt this or maybe even have no chance getting the desired one.
select single VBELN
from vbfa
into corresponding fields of ls_vbfa
where vbeln = delivery_numer_you_were_talking_of
and vbtyp_n = 'T'.
‎2010 Mar 30 11:54 AM
Get Order number from LIPS-VGBEL. Extract Order flow information from function module "RV_ORDER_FLOW_INFORMATION".
Regards
Vinod