Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

single select query on vbfa table

Former Member
0 Likes
1,191

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
899

check in LIPS table

cheers

S.Janagar

4 REPLIES 4
Read only

Former Member
0 Likes
900

check in LIPS table

cheers

S.Janagar

Read only

Former Member
0 Likes
899

It is not possible through VBFA table.Pass the delivery number to LIPS andyou get he sales order in VGBEL field.

Regards,

Sai Prasad

Read only

Former Member
0 Likes
899

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'.

Read only

Former Member
0 Likes
899

Get Order number from LIPS-VGBEL. Extract Order flow information from function module "RV_ORDER_FLOW_INFORMATION".

Regards

Vinod