Application Development 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: 

need billing document for a delivary

rnb86
Participant
0 Kudos

Hi experts,

i have a requirement where i need to get the delivaries by entering the shipment number on the selection screen.

After i get the delivaries, i need to get all the billing documents for the delivaries.

I am not able to get the link to get all the related details when a shipment number is enterd on the selection screen.

Pls guide me.

Points will be rewarded. Thanks in advance.

5 REPLIES 5

Former Member
0 Kudos

Hi,

From LIKP you will get the deliveries for shipping points.

once you have the deliveries, you will get the related Billing documents from table VBFA where VBELV = delivery document and get VBELN for VBTYP_N = 'N'.

Thanks,

Rajinikanth G

kiran_k8
Active Contributor
0 Kudos

RNB,

VTTK is the Shipment Header table and VTTP is the Shipment Item.VTTP is having both the shipment number and delivery number.

K.Kiran.

Former Member
0 Kudos

Use VTTP table to get the delivery number for a Shipment number entered on selection screen.

VTTP-VBELN gives the delivery number.

Hit VBFA table to get the Invoices. Using the below condition;

VBELV = all the deliveries u got from VTTP table

VBTYP_N = 'M'

VBTYP_v = 'J'.

With the above condition you will get all the invoices associated to deliveries, Refer VBFA-VBELN for the Invoice.

*******Reward points if useful

Regards,

Kiran Bobbala

Former Member
0 Kudos

Hi,

You can get the Delivery Documents associated with the Shipment Nbr entered on screen by querying the table, VTTP. VBELN field contains the Delivery Nbr.

Further to get the aociated Billing Document, you may query table, VBRK.

XBLNR field contains the Delivery Nbr and VBELN contains the Billing Document Nbr.

Please let me know, if this works in your scenario.

Reward points for useful answers.

Thanks,

Binu

former_member188827
Active Contributor
0 Kudos

check table vbfa for this