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

Sales Order CReated with Reference

Former Member
0 Likes
386

Hi,

I created a sales order with reference to an existing order. I created delivery based on the new order that was created with reference. HOwever, if i try to get the sales order number of my delivery, the sales order that i am getting is the sales order number that was referenced. How will I retreived the new sales order number from VBFA?

Thanks,

Louisse

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
347

Hello,

We can follow the below Procedure to get the Sales Order Number from VBFA Table.

1. Input the Delivery in VBELN field to get VBELV (Sales Order)

Number with VBTYP_V = 'C' (Order).

2. Now, if the Sales Order which is fetched is the one which is

referenced, then Input the Sales Order Number again in the

VBFA Table into the Field VBELV and fetch the Sales Order

Number (New) in the VBELN Field with VBTYP_N = 'C'.

3. You should be able to satisfy your requirement.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri

Hi,

I created a sales order with reference to an existing order. I created delivery based on the new order that was created with reference. HOwever, if i try to get the sales order number of my delivery, the sales order that i am getting is the sales order number that was referenced. How will I retreived the new sales order number from VBFA?

Thanks,

Louisse

1 REPLY 1
Read only

Former Member
0 Likes
348

Hello,

We can follow the below Procedure to get the Sales Order Number from VBFA Table.

1. Input the Delivery in VBELN field to get VBELV (Sales Order)

Number with VBTYP_V = 'C' (Order).

2. Now, if the Sales Order which is fetched is the one which is

referenced, then Input the Sales Order Number again in the

VBFA Table into the Field VBELV and fetch the Sales Order

Number (New) in the VBELN Field with VBTYP_N = 'C'.

3. You should be able to satisfy your requirement.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri